University Systems --> LPCR - Print Accounts --> All LPCR Pages --> Using hpstat to get information on a printer -->

Using hpstat to get information on a printer

description

Hpstat lists information about a printer.

what is it used for?

Hpstat is useful for diagnosing why a printer isn't printing (it indicates paper-jams, low toner, etc.) or checking the status of a printer (online, ready, paper-jam, internal error, user maintenance, etc).

What to check for? Does it:

  • read READY and Online in the Status Display and System State fields.
  • know its ip
  • syslog to neobank
  • have neobank and bank in its access list

hpstat <printer-hostname> examples

healthy examples

bmgt-hp3
example of a printer that isn't configured via bootp
z:~% hpstat bmgt-hp3.umd.edu
initializing MIB...done
bmgt-hp3.umd.edu (): up 00w 0d 09h 55m 14.98s (3571498)

Status Display: 00 READY        Job:    Source: 
System State: Online (printing)
Gen. status: 
Config by: FRONTPANEL
0 Access list entries:
Reconfig OFF  protos 770000fe
z:~%   
pg2-hp1
example of an hp5
ros:~% hpstat pg2-hp1
initializing MIB...done
pg2-hp1 (pg2-hp1.wam.umd.edu): up 01w 6d 19h 43m 40.78s (119422078)
PG2 WAM Lab
Status Display: READY   Job:    Source: 
System State: Online (ready to print)
Gen. status: 
Config by: HP5_BOOTP
BOOTP Config (from 128.8.70.9), file from 128.8.73.1, logging to 128.8.10.69
2 Access list entries:
128.8.10.32     255.255.255.255
128.8.10.69     255.255.255.255
Reconfig OFF  protos 770000fe
ros:~% 
cscpc-hp1
example of an hp4
ros:~% hpstat cscpc-hp1
initializing MIB...done
cscpc-hp1 (cscpc-hp1.wam.umd.edu): up 00w 0d 00h 19m 47.70s (118770)
CSC WAM Lab
Status Display: 00 READY        Job:    Source: 
System State: Online (ready to print)
Gen. status: 
Config by: BOOTP
BOOTP Config (from 128.8.70.9), file from 128.8.78.1, logging to 128.8.10.69
2 Access list entries:
128.8.10.32     255.255.255.255
128.8.10.69     255.255.255.255
Reconfig OFF  protos 7700000c
ros:~% 

pathological examples

printer not turned on
example where the printer is not turned on or is completely isolated from us.
ros:~% hpstat bmgt-hp3
initializing MIB...done
Can't open connection to host bmgt-hp3 at /usr/local/scripts/hpstat line 49.
can also use ping
ros:~% ping bmgt-hp3.umd.edu
no answer from bmgt-hp3.umd.edu
bootp problem
example where printer is having trouble during the bootp process
neobank:~% hpstat educ-hp1.umd.edu
initializing MIB...done
educ-hp1.umd.edu (educ-hp1.umd.edu): up 00w 0d 20h 44m 46.64s (7468664)

Status Display: 00 READY        Job:    Source: 
System State: Online (TFTP config file fetch from 127.0.0.1 failed with TFTP error 0: "Retransmits exceeded")
Gen. status: 
Config by: BOOTP
BOOTP Config (from 127.0.0.1), file from 129.2.20.1, logging to 128.8.10.69
0 Access list entries:
Reconfig OFF  protos 770000fe
z:~% 
low toner problem
Printer is offline due to low toner.
neobank:~% hpstat pg2-hp2
initializing MIB...done
pg2-hp2 (pg2-hp2.wam.umd.edu): up 00w 3d 18h 06m 06.36s (32436636)
PG2 WAM Lab
Status Display: TONER LOW       Job:    Source: 
System State: Online (toner/ink low)
Gen. status: OFFLINE Intervention Required TONER_LOW 
Config by: HP5_BOOTP
BOOTP Config (from 128.8.70.9), file from 128.8.73.1, logging to 128.8.10.69
2 Access list entries:
128.8.10.32     255.255.255.255
128.8.10.69     255.255.255.255
Reconfig OFF  protos 770000fe
neobank:~% 
How do I:
How are we doing? Comments on this page?
Office of Information Technology
Office of Information Technology Help Desk Web Site University of Maryland Web Site Office of Information Technology Web Site