Technical article 105100

I can't print to a network printer that worked under earlier versions of SCO OpenServer

OpenServer 6.0.0OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I'm trying to print to a network printer using the hpnpf command. (In some cases, this printer used to work with earlier versions.

Now, I get a core dump when running this command, such as:

# /usr/lib/hpnp/hpnpf -x <printer-name> /etc/profile

/etc/getone: no response - try again Memory fault - core dumped

Cause

The hpnpf binary has been modified to check various SNMP printer variables.

If the printer doesn't implement these variables, hpnpf doesn't
parse the returned messages correctly.  This ultimately results
in the core dump.  Check to see if your printer implements these
variables by running these commands:
# getone <printer-name> public HP.2.3.9.1.1.2.1.0
# getone <printer-name> public HP.2.4.3.1.2.0
# getone <printer-name> public HP.2.3.9.1.1.2.2.0
# getone <printer-name> public HP.2.3.9.1.1.2.3.0

Solution

Move the getone binary to a different name:

# mv /etc/getone /etc/getone.org
NOTE:     Another possible cuase for this problem has been discovered,
          when the permissions on the directory /dev/inet are incorrect
          the getone command may also fail.  Be sure that the permissions
          for /dev/inet are set to 755.
# chmod 755 /dev/inet
# l /dev/|grep inet
drwxr-xr-x    2 root     sys     512  Apr 20  1999  inet

From the Xinuos technical article database, record 105100. Reproduced with permission. The original is at www.sco.com/ta/105100, 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.