APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

hpnp getone snmp hp printers 3 port
© December 2004 (various authors)

What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):

From: Jeff Liebermann <jeffl@comix.santa-cruz.ca.us>
Subject: Re: Quick LP question
Date: Fri, 05 Jan 2001 18:51:06 -0800

On Fri, 05 Jan 2001 18:55:15 GMT, Dan <danielcmartin@my-deja.com> wrote:

>Dear Matt,
>Make sure the printer on port 1 is always on and on/line.
>Or, as Jeff Liebermann pointed out to me a while back, rename
>the snmp utility /etc/getone to some other name.
>I would encourage you to try netcat instead of using hpnp.

That requires a bit of explanation.  The HP JunkDirect print server has
only one IP address for all 3 ports.  SCO HPNP uses SNMP (stupid network
management protocol) to determine if the print server is ready to print.
Because there were no 3 port print servers available at the time HPNP was
first inscribed, HPNP only polls the first port for status info.  If you
take the first printer offline, HPNP thinks that all 3ea ports are
offline and nothing works on any of the ports.  Put the printer on the
first port back online, and printing resumes on all ports.

The solution is a kludge.  If HPNP discovers that SNMP is not installed
on the server, it simply pretends that the printe server is always ready.
The /etc/getone program is what HPNP uses to get SNMP status.  It is not
used by any other SCO supplied program and can safetly be renamed to
something else.

If you get a totally bogus error about adding the printer to some
non-existant access list (I forgot the name), it's the /etc/getone

Incidentally, the reason SCO has not fixed this problem was that someone
decided to impliment IPP (Internet Printing Protocol) instead, which
includes all the features of HPNP printing.  However, this was deemed to
be a major project and the entire effort was dropped.  IPP is my favorite
example of collective insanity by an industry committee.  It is the lack
of work on HPNP to deal with modern print servers and ancient bugs that
inspired me to push Kevin Smith's netcat program as the solution to all
such nonsense.  I would strongly recommend trying netcat.  You can have
both running at the same time and as long as the printer names and
printer scripts are different, there should be no complications (famous
last words before every disaster).

Drivel:  Please do not send me 24bit true-colour screen dumps of whatever
ails your system via email.  I still get my mail via a 14.4Kbits/sec
connection and only have about 30MB of diskspace left on my 3.2v4.2 mail
server.  Sometimes I'm glad that SCO doesn't include an X11 screen

Jeff Liebermann   jeffl@comix.santa-cruz.ca.us
150 Felker St #D  Santa Cruz CA  95060
831-421-6491 pager   831-429-1240 fax
https://www.cruzio.com/~jeffl/sco/   SCO stuff

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> hpnp getone snmp hp printers 3 port printserver ––>Re:Quick LP question

Inexpensive and informative Apple related e-books:

El Capitan: A Take Control Crash Course

iOS 8: A Take Control Crash Course

Take Control of Preview

Photos: A Take Control Crash Course

Take Control of Apple Mail, Third Edition

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family Anatidae on our hands. (Douglas Adams)

Linux posts

Troubleshooting posts

This post tagged:



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode

SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)