Technical article 118109

My JetDirect printer does not work, /etc/getone fails to get a response and verifying network printer operation produces errors.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

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 fault
UX: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.orig

Using 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 getone
NOTE:     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/getone
TROUBLESHOOTING:
---------------
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 lpd

NOTE: 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."

From the Xinuos technical article database, record 118109. Reproduced with permission. The original is at www.sco.com/ta/118109, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.