Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Important commands
Three commands for printer checks
Icon
Note: there must not be a space between option < -p > and < spooler_name >.
Otherwise the command relates to all printers!!
Printer status from the perspective of the printer. Shows print jobs
or list is empty. Also when out of paper
lpstat -o<spooler_name>
printer queue for ... No entries
# lpstat -tp0060517
Start/stop spooler
The scheduler must be restarted when creating a new printer in versions up to HPUX 11.23.
This is no longer required from 11.31 ! Note: risk of malfunction. The printeradmin script
(see below) proceeds as per the OS level. HPUX version < 11.31 is no longer available at Germersheim.
# lpshut
# lpsched
Creating printers
Icon
Operating principle
Determines the OS version and (if necessary) stops the local scheduler
(lpshut, OS < HPUX 11.31)
If necessary, it determines the spooler name from the DNS name
Creates spooler
Script code
/usr/sbin/lpadmin \
-p$spooler_name \
-v/dev/null \
-mrmodel \
-ocmrcmodel \
-osmrsmodel \
-orm$printer_adress \
-orp$printer_port
echo
/usr/sbin/accept $spooler_name
echo
/usr/bin/enable $spooler_name
Starts the scheduler if it has been stopped previously (lpsched, HPUX < 11.31 only)
Creating VDS2 printers
Icon
Determine for which location the printer must be created. Must be visible from the ticket
# ssh pvds2s
# nslookup p50a0085.de050.corpintra.net
Address: 53.188.70.249
# ping p50a0085.de050.corpintra.net
Creating printers
# printeradmin p50a0085.de050.corpintra.net
Address: 53.188.70.249
If it has been created incorrectly (e.g. printer should have been created in pvds2g, but it is located
in Wörth [Ticket#99040964/0028223722 ]) the following solution is available:
# lpstat -vpwoe14074
# lpstat -opwoe14074
Printer \\53.8.148.239\PWOE14074
----------------------------------------------------------------------------
no entries
Parameter
chg_printer.sh <spooler_name> <dns_name> [ <del_spooler> ]
For instance, spooler p261e091 is assigned a new address (by previously deleting it and creating
a new one)
Listing
# /usr/local/sbin/list_printjobs.pl p00640037
Available from HP-UX 11.23 without having to stop the spooler. However, the print queue
must be empty
Deleting (do not leave a space behind the parameter! )
# lpadmin -x<printer_name>