Problem
My HPNP/JetDirect printer stopped working. I can connect to the
printer on port 9100 via telnet, but 'getmany' or 'getone' do not
respond.For example:# telnet HPLASER 9100
Trying 192.168.1.142...
Connected to HPLASER.sco.com
Escape character is '^]'# getmany HPLASER public iso
getmany: no response -- retrying.
getmany: no response -- retrying.Jobs sent to HPLASER are stuck in the queue.
There may also be hpnpf logs in /tmp which contain: "unable to connect to transport endpoint"
- You may also see a failure to print and notices about adding printers to ACL's when trying to verify network printer operation from the HP Network Printer Manager such as:
"Printer access test failed. Add HPLASER to the printer's access
list before continuing"- You may also see the following error from a printer configured with "lp":
Your request EPS_05-38 destined for printerx was canceled by the administrator, and encountered an error while printing on printer printerx
Reason for failure:UX:stty: ERROR: Invalid argument
/usr/spool/lp/admins/lp/interfaces/printerx: 1673 Memory faultUX:stty: ERROR: Invalid argument/usr/spool/lp/admins/lp/interfaces/printerx: 1697 Memory fault/usr/spool/lp/admins/lp/interfaces/printerx: 1716 Terminated/usr/spool/lp/admins/lp/interfaces/printerx: 1722 Terminated Cause
The hpnp transfer program /usr/lib/hpnp/hpnpf relies on the SNMP command getone to determine the status of the printer, so if SNMP is turned off, or being blocked, printing fails.
Solution
As a possible workaround to this problem, you can try to replace
the getone command so that it gives the response that hpnpf is
looking for. Follow these steps:(For OpenServer getone is in /etc/, but under UnixWare and Open UNIX getone is in /usr/sbin/)
# cd /etc -or- cd /usr/sbin
# mv getone getone.origUsing your favorite editor, create a new getone command script with these contents:
----------------- cut here ------------------
#!/bin/sh
echo "Name: HP.2.3.9.1.1.2.1.0
Value: 0
"
----------------- cut here ------------------# chmod 755 getoneNOTE: Be sure that you don't have extra white in the script, extra spaces
can prevent this from working.
Alternatively, you can download a copy of this replacement getone
script from our ftp site at:ftp://ftpput.sco.com/tmp/support/fixes/getoneTROUBLESHOOTING:
---------------For further troubleshooting please check:- access to port 9100 of the printer with "telnet HPLASER 9100"
- check if the printer or print server itself has a host table
- debug canaccess using the -v param:
# /usr/lib/hpnp/cfg/canaccess -v HPLASER
# echo $?- reconfiguring the printer to use its ip address instead of the hostname
- if both printer and server are not on the same subnet then is a firewall installed and could this have an effect?
- that no entry for the printer is set in /etc/bootptab
- that entry for the server in /etc/hosts correspond to 'uname -n' and 'hostname'
- if /tftpboot/hpnp/hpp.cfg exists and what does it contain
- lastly if the printer can print lpdNOTE: This workaround may interfere with other uses of SNMP.
NOTE: This workaround is needed when printing to non-HP printers.
NOTE: A feature request has been filed with SCO Engineering asking to have hpnpf's reliance on SNMP removed.
NOTE: You may still see error messages in /usr/adm/syslog relating to this issue even though printing is now working fine.
See also
TA105100, "I can't print to a network printer that worked under SCO Open Server 3.0."