APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > HPNP and getone getmany (SNMP) ––>Re: Can't print to HP Printserver
Printer Friendly Version




News Group Posts

HPNP and getone getmany (SNMP)


I've always had mixed feelings about this. On the one hand, I'd applaud HP for using SNMP because who needs another proprietary method to query a device? That part is good.

But to not print based on this is a little less clear. If the print server had a problem, well, it isn't going to print, right? The spooler would realize that and so would the user, so I don't see how using SNMP status adds anything here. Possibly the printer app (hpnpf in this case) could query SNMP if it found that it actually could NOT print and put that in its log files as additional troubleshooting data.

That's how I would have done it, anyway.


From: Jeff Liebermann <jeffl@comix.santa-cruz.ca.us>
Newsgroups: comp.unix.sco.misc
Subject: Re: Can't print to HP Printserver
Date: Wed, 13 Oct 1999 10:56:01 -0700
Message-ID: <4cUEODUzMn4O33h+=ahSMHo8ZKaN@4ax.com> 

On Wed, 13 Oct 1999 11:06:16 -0500, Ric Pennington <ricp@summit-soft.com>
wrote:

>Try renaming getone in the /etc directory














Let me explain *HOW* that works.  getone is the program that retreives
SNMP information from a network device.  HPNP uses getone to detemine if
the print server is ready for action.  However, HPNP was inscribed in the
days before 3 port servers and therefore *ASSUMES[1]* that the print
server has only one printer port.  It therefore only check the first port
to see if the attached printer is ready to print.  It ignores the other
two ports.

If you take the printer on the first port offline, HPNP will not print to
the other two ports until the first port printer is back online.

By renaming getone, the incredibly stupid HPNP program assumes that SNMP
is not installed on the system, and to therefore not bother asking the
print server if it's ready for action.  It just *ASSUMES[1]* that it's
allways ready.

Incidentally, if you need some entertainment, try:
        getmany IP_of_print_server public iso
On some printers, it will even tell you how many pages are left in the
paper bin.

[1]Assumption:  The mother of all screwups.

-- 
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.cruzio.com/~jeffl   WB6SSY
jeffl@comix.santa-cruz.ca.us   jeffl@cruzio.com




If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?




More Articles by



Click here to add your comments

Rather than renaming getone in the /etc/ directory,
which is just a symlink to the 'real' getone in
/opt/K/SCO/tcp/*/etc (and will be rebuilt the
next time custom repairs symlinks), follow the link
and rename the actual file.

Get1=`ls -l /etc/getone | awk '{print $11}'`

mv $Get1 $Get1.bak





---January 25, 2005


Yeah, that's been argued before. Personally, I wouldn't use hpnp anyway (netcat is much more reliable). Anyway, some will say that they never let custom do anything by itself anyway. I'm not quite that difficult, though I do like to examine its proposed fixes before turning it loose.

But your point is valid and important to be aware of.

--TonyLawrence




Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



LOD Communications, Inc.

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

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. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide


 I sell and support
 Kerio Mail server
pavatar.jpg

This post tagged:

       - Printing
       - Programming
       - SCO_OSR5
       - Troubleshooting




Unix/Linux Consultants

Skills Tests

Guest Post Here