Printer Status
13
1
Printer Status
You can use the following commands to have information and the printer status
displayed or copied to a file.
Use the lpq or lp command to display the status of the printer or information
about print jobs.
Use the rsh, rcp or ftp commands to get more detailed information from the
printer.
Viewing the Printer Status with lpq and lpstat
❖
❖❖
❖ BSD UNIX workstation, Linux
% lpq -Pprinter_name
For example: Printer name is np
% lpq -Pnp
❖
❖❖
❖ System V UNIX, Soralis, HP-UX
% lpstat -o printer_name
For example: Printer name is np
% lpstat -o np
Viewing the Printer Status with rsh and ftp
Use the rsh or ftp command to display the status of printer or information about
print jobs using specified parameters.
You can use these commands for BSD and System V UNIX.
Note
❒
If your workstation is HP-UX, use the remsh command instead of the rsh.
% rsh host_name parameter
% ftp host_name
User user_name
password:
ftp> get parameter -