HP-UX System Administrator's Guide: Routine Management Tasks

Using HP SMH
1. Access the HP SMH homepage as root.
2. Select Tools,Printer Management,Save or Restore Print Spooler
Configuration. This will display a tool launching page.
NOTE: If your client console is a PC, you must have an X Window Server running
before executing this function.
3. Click on the Run button. This will display a printer management X Window.
From the Actions pull-down menu,
Choose Stop Print Spooler to stop the LP spooler.
HP SMH asks for confirmation before stopping the LP spooler.
Choose Start LP Spooler to start or restart the LP spooler.
HP SMH asks whether you want it started with or without logging. If yes,
logging information is kept in /var/adm/lp/log.
Using HP-UX Commands
1. Ensure that you have superuser capabilities.
2. Check for active print requests. Ideally, it is best to wait until there are no requests
printing before stopping the LP spooler.
/usr/bin/lpstat -o -i
In the above command, the -o option prints the output of all output requests; the
-i option inhibits the reporting of remote requests (that is, lpstat shows local
requests only).
3. Stop the LP spooler.
/usr/sbin/lpshut
All active print requests will stop, but remain in the print queue.
4. Restart the LP spooler.
/usr/sbin/lpsched
When the spooler is restarted, any print request actively being printed at the time the
lpshut command was issued will be completely reprinted, regardless of how much
of the request was previously printed.
Controlling the Flow of Print Requests
As superuser, you can use HP SMH or HP-UX commands to control the flow of print
requests to the queues of named printers or printer classes.
164 Managing Printers