We no longer offer ftp downloads. If there is a file you need referenced here, please contact me by email and I will get it to you.

SCO Unix/System V Printing FAQ

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

How do I install a HP Network Printer or Print Server on SCO Unix/System V ?

Before you do anything else, the printer needs an IP address. Some models let you do that right on the printer itself, all have Windows software that will assign it, and if all else fails you can configure it with BOOTP.

On some models, you can assign an address using arp and then telnet to the printer to configure it permanently. Not that if you are planning on printing from remote locations, you'll need to configure a gateway address also.

There are several ways to add the printer. First, you can use the HP Printer Manager: scoadmin HP Network Printer Manager

Before running this, add the printer name/ip address to /etc/hosts or DNS if you are not using BOOTP. If you are using BOOTP, choice 2 on the HP menu lets you add the configuration to /etc/bootptab (or you can do it manually). You need the MAC address of the printer or print server- that's the number that looks like 00:00:C6:00:3C:7F. Reboot the printer/server and print out its configuration sheet so that you can confirm that it got its IP address after doing this.

Choice 6 on the menu adds the printer to the spool system. It's generally best to use the same name throughout: if you've called the printer "hpprinter", then make that the spooler name also. Choose "HPLaserJet" as the model (note where that uses capital letters!). If you need to make adjustments to the interface, you'll find it in /usr/spool/lp/admins/lp/interfaces/model.orig with the spooler name you chose. The HP script calls the script in model.orig, and also saves log files in /tmp/ using the (printerspoolername).$$ and /tmp/hpnpf.$$ ($$ is the current PID). Those logs are automatically removed if the interface is successful- otherwise, look for them in /tmp.

">Anytime you have a lot of files in a directory and just need to see what has been added or used most recently, try:

 ls -lut | head
 

You can also print to HP printers using "netcat". I usually just use a copy the "network" printer script for that: go to /usr/spool/lp/model and copy "network" to some other name ("hpprinter"). Edit "hpprinter" and modify the line that looks like this:

 ) | $network -s -ob $lpflags
 
to be:
 ) | netcat -h hpprinter -p 9100
 

You also need to remove the lines near the top of the script that say:

[ -r $mapping ] || exit 2
set -- `grep -e "^$printer:" $mapping` || exit 3
shift
network=$*
 

Now just add a local printer using

 scoadmin Printer Manager
 

(or "mkdev lp") and use "hpprinter" as its interface and /dev/null as the device.

Or set the printer up using the HP Printer manager and modify the /usr/spool/lp/admins/lp/interfaces/YOURPRINTER changing these lines:

HPNPF=/usr/bin/netcat
and
if $REALMODEL "$@" | $HPNPF -h YOURPRINTERIP -p 9100  2> $LOG > /dev/null
 

You can download ftp://ftp.aplawrence.com/pub/netcat.hp.model

Finally, you could install the printer on a Windows machine and print to it through Visionfs or Samba. Or, set it up as an LPD printer and print to it that way (other articles here cover those methods).

If you need to use one of the multiport HP Jetdirects (two or more parallel ports), see http://aplawrence.com/cgi-bin/ta.pl?arg=104997 and http://aplawrence.com/cgi-bin/ta.pl?arg=105327

Other printers on HP Printeservers?

Sure. The HP print servers (not the MIO cards) will happily print to any parallel port printer, though some older models didn't understand the newer style EPC ports.

Second port on EX3 printer server- mibs, snmp

There was an interesting bug in the HPNP printing system prior to 5.0.6 - it would use SNMP to check if the print server was ready, but it ONLY cecked port 1. So, if you wanted to print to port 2, and port 1 happened to be off line, it would not print.

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.

Anyway, the quick solution was to rename or remove /etc/getone (which is what HPNP used to check SNMP).

Also see How to configure an HP JetDirect EX Plus3 with SCO operating systems. and How do I configure the HP JetDirect EX Plus3 Print Server to use HPNP?. If you don't have an HP print server, try Printserver Ports.

Some print servers (and HP's can do this too) accept data on the lpd port (515) amd use a name like TEXT1, TEXT2 and TEXT3 for the specific output port. There may be other available ports, like RAW1, RAW2, and RAW3. RAW would do what you expect; TEXT might do CR/LF translation (for example).



Got something to add? Send me email.





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

Printer Friendly Version

->
-> (SCO Unix) How do I install a HP Network Printer or Print Server?

13 comments



Increase ad revenue 50-250% with Ezoic







Wed Jul 20 00:39:45 2005: 815   anonymous


I have a HP psc printer2210 all-in-one which is up and
running everything is OK except I can send faxes out but cannot receive I have
misplace the instructions can you help me.
Kay
archie1206@myway.com



Wed Jul 20 00:41:20 2005: 816   anonymous


I have a HP psc printer2210 all-in-one which is up and
running everything is OK except I can send faxes out but cannot receive I have
misplace the instructions can you help me.
Kay
archie1206@myway.com



Wed Jul 20 08:38:22 2005: 819   TonyLawrence

gravatar
I'm quite sure you can get the manual from HP's web site.



Mon Aug 14 22:10:58 2006: 2394   anonymous


dont have any software to install hp psc 1210v printer could u help
ekthick26@aol.com






Tue Aug 15 13:56:20 2006: 2395   TonyLawrence

gravatar
Looks like a cheap dumb "Windows-only" printer. Those things are really not worth having, but see
(link)



Wed Aug 16 13:26:00 2006: 2399   BigDumbDInosaur


Looks like a cheap dumb "Windows-only" printer.

It is a "cheap dumb 'Windows-only' printer, the emphasis being on "cheap and dumb." Also it is a USB interface, not Ethernet.



Thu Nov 23 00:52:41 2006: 2641   anonymous



We added a new hard drive and forgot to save the printer. I cannot find my disk
to reinstall the printer. Could I please get help with this or know where to get
another printer cd?



Thu Nov 23 09:33:28 2006: 2643   TonyLawrence

gravatar
From the manufacturer's web site?



Thu Feb 21 04:48:46 2008: 3688   dumbkid


Okay i lost everything on my computer the other day i ordered new disk put them in but now i cant get my printer or microsoft works to work can someone please help me i know nothing about computers and i have finals comin up... <<<PLEASE HELP>>>



Thu Feb 21 12:06:47 2008: 3689   TonyLawrence

gravatar
You are in the wrong place, sorry: you need a Microsoft site.



Wed Jan 6 18:28:09 2010: 7876   anonymous

gravatar


Sounds like a smart a@# answer to me.



Wed Jan 6 18:42:23 2010: 7877   TonyLawrence

gravatar


Sounds like a smart a@# answer to me.

Not at all. We don't cover a lot of Microsoft stuff here unless it relates to the things we do cover.



Wed Jun 8 09:14:44 2011: 9537   Bill

gravatar


The article was very useful and I was able to configure printer on my client sco open server

Thanks,
Bill




------------------------
Kerio Samepage


Have you tried Searching this 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.

Contact us

privacy policy