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.orgNOTE: 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 inetdrwxr-xr-x 2 root sys 512 Apr 20 1999 inet