Operating System - HP-UX
1820591 Members
1822 Online
109626 Solutions
New Discussion юеВ

Error adding printer with JetDirect

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Error adding printer with JetDirect

I have just installed JetDirect E.10.34 for support of a new HP 9-65 printer we just received. We had been using Jetadmin in the past.
Server runs HPUX 11.00
Jetdirect (Rev. E.10.34)

When using JetDirect I received the following error: Addprinter error: can't find /etc/lp/interface/us101024

I can't see where it is a permission problem since I can still add printers to this same directory using jetadmin....

Any ideas??

Addprinter error: can't find /etc/lp/interface/us101024

****************************************
JetDirect Printer Installer for UNIX
Version E.10.34
Spooler Administration
User: (root) OS: (HP-UX B.11.00)
************************************
9 REPLIES 9
Geoff Wild
Honored Contributor
Solution

Re: Error adding printer with JetDirect

How are you adding the printer?

Should use the addqueue command:

addqueue -i 9998 -q PRINT1 -h print1.yourdomain.com

The -i option is the "printID type from the following list:

cat /opt/hpnpl/admin/PrinterList

:1:HP LaserJet IIISi;:HP LaserJet IIISi
:1:HP PaintJet XL300;:HP PaintJet XL300
:2:HP Color LaserJet;:HP Color LaserJet
:3:HP LaserJet 4;:HP LaserJet 4 / 4M
:5:HP LaserJet 4Si;:HP LaserJet 4Si / 4SiMX
:6:HP PaintJet XL300;:HP PaintJet XL300
:7:DeskJet 1200C;:HP DeskJet 1200C / 1200C/PS
:7:HP CopyJet;:HP CopyJet / CopyJetM
:8:DesignJet 650C;:HP DesignJet 650C
:10:HP LaserJet 4 Plus;:HP LaserJet 4 Plus / 4M Plus
:11:HP LaserJet 5Si;:HP LaserJet 5Si / 5SiMX
:12:HP LaserJet 4V;:HP LaserJet 4V
:14:DeskJet 1600C;:HP DeskJet 1600C
:14:DeskJet 1600CM;:HP DeskJet 1600CM
:15:HP LaserJet 5;:HP LaserJet 5
:15:HP LaserJet 5N;:HP LaserJet 5N
:15:HP LaserJet 5M;:HP LaserJet 5M
:16:HP Color LaserJet 5;:HP Color LaserJet 5
:16:HP Color LaserJet 5M;:HP Color LaserJet 5M
:20:DesignJet 750C (C3196A);:HP DesignJet 750C
:20:HP DesignJet 750C Plus (C4708A);:HP DesignJet 750C Plus
:20:HP DesignJet 750C Plus (C4709A);:HP DesignJet 750C Plus
:21:DesignJet 755CM (C3198A);:HP DesignJet 755CM
:21:DesignJet 755CM (C3198B);:HP DesignJet 755CM
:22:HP DesignJet 700 (C4705A);:HP DesignJet 700
:22:HP DesignJet 700 (C4706A);:HP DesignJet 700
:23:HP DesignJet 2500CP (C4704A);:HP DesignJet 2500CP
:24:HP DesignJet 2000CP (C4703A);:HP DesignJet 2000CP
:25:HP DesignJet 3500CP (C4724A);:HP DesignJet 3500CP
:26:HP DesignJet 3000CP (C4723A);:HP DesignJet 3000CP
:257:HP LaserJet 4000 Series;:HP LaserJet 4000 Series
:258:HP LaserJet 5000 Series;:HP LaserJet 5000 Series
:259:HP Color LaserJet 4500;:HP Color LaserJet 4500
:261:HP Mopier 320;:HP Mopier 320
:261:HP LaserJet 8100 Series;:HP LaserJet 8100 Series
:264:DesignJet 1055CM (C6075A);:Hewlett-Packard DesignJet 1055CM (E sized)
:264:DesignJet 1050C (C6074A);:Hewlett-Packard DesignJet 1050C (E sized);
:266:HP LaserJet 8000 Series;:HP LaserJet 8000 Series
:267:HP LaserJet 4050 Series;:Hewlett-Packard LaserJet 4050 Series
:513:HP LaserJet 2100 Series;:Hewlett-Packard LaserJet 2100 Series
:1000:HP LaserJet 5L;:HP LaserJet 5L
:1001:HP LaserJet 5P;:HP LaserJet 5P
:1001:HP LaserJet 5MP;:HP LaserJet 5MP
:1002:HP LaserJet 4P;:HP LaserJet 4P
:1002:HP LaserJet 4MP;:HP LaserJet 4MP
:1003:LaserJet 4L;:HP LaserJet 4L
:1003:LaserJet 4ML;:HP LaserJet 4ML
:1004:HP LaserJet 6P;:HP LaserJet 6P Printer
:1004:HP LaserJet 6MP;:HP LaserJet 6MP Printer
:1005:HP LaserJet 6L;:HP LaserJet 6L Printer
:1008:HP 2000C;:HP Deskjet 2000C Printer
:1010:HP Color LaserJet 8500;:HP LaserJet 8500
:1020:HP 2500C;:Hewlett-Packard 2500C Series
:1025:HP LaserJet 1100;:HP LaserJet 1100A Printer-Copier-Scanner
:9990:dumplot plotter;:To Select dumbplot model script for plotter
:9991:dumplot printer;:To Select dumbplot model script for printer
:9992:dumplot printer_cr;:To Select dumbplot model script for printer with CR
:9997:Generic PCL3 Printer;:HP PCL3 Printer not given in this list
:9998:Generic printer;:HP LaserJet Printer not given in this list
:9999:Generic plotter;:HP Plotter not given in this list


-h is the host name, and -q is the queue name.

Most printers are added with 9998 "Generic". Some may have to be 9992 (Genicom).


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: Error adding printer with JetDirect

I'm not clear about the term JetDirect. This is the product line of I/O cards and boxes. The software is either the old jetadmin (obsolete since 2000) and hppi (current). Are you typing the command: hppi when you say JetDirect? Do you have jetadmin also installed at the same time? (opt/hpnp and /opt/hpnpl). Is us101024 a printer name? Does it exist in /etc/lp/interface? What happens if you just add the printer using addqueue as in:

/opt/hpnpl/bin/addqueue -h 12.34.56.78 -q my_printername

You should verify the lp subsystem with swverify as in:

swverify PrinterMgmt


Bill Hassell, sysadmin
MikeL_4
Super Advisor

Re: Error adding printer with JetDirect

A cat of my printer list contains an entry for:
[uxas02] [/] # cat /opt/hpnpl/admin/PrinterList
:339:HP LaserJet 9065mfp;:HP LaserJet 9065mfp

which is the model I am setting this printer up for...

JetDirect is a menu driven script from HP that adds printers to the local print queue
so why would I issue individual commands ???
Geoff Wild
Honored Contributor

Re: Error adding printer with JetDirect

Are you using hppi to install?
That should work as well...

# which hppi
/usr/bin/hppi
# ll /usr/bin/hppi
lrwxr-xr-x 1 root sys 22 Sep 27 2002 /usr/bin/hppi -> /opt/hpnpl//admin/hppi

But try the addqueue command - just to see...did you remove the old jetadmin software prior to installing HPNPL?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
MikeL_4
Super Advisor

Re: Error adding printer with JetDirect

[uxas02] [/] # which hppi
/usr/bin/hppi
[uxas02] [/] # ll /usr/bin/hppi
lrwxr-xr-x 1 root sys 22 May 6 15:41 /usr/bin/hppi -> /opt/hpnpl//admin/hppi
[uxas02] [/] #

Whwn I executed I actually entered:
/opt/hpnpl/admin/hppi

[uxas02] [/] # addqueue -i 9998 -q PRINT1 -h mikeltst
PRINT1 added to spooler.
[uxas02] [/] #
Bill Hassell
Honored Contributor

Re: Error adding printer with JetDirect

I haven't seen a script named: JetDirect from HP. A previous admin or perhaps a 3rd party supplier may have created this script. If you use SAM, it runs hppi (/opt/hpnpl/admin/hppi) but as mentioned, /opt/hpnpl/bin/addqueue is a lot faster. Both produce the same results. Most sysadmins will run addqueue because it is a lot faster for printers that already have their IP, subnet mask and router setup in the LAN card.


Bill Hassell, sysadmin
Geoff Wild
Honored Contributor

Re: Error adding printer with JetDirect

Mike - looks like it added...

Do a:

lpstat -pPRINT1

Try a test print

lp -d PRINT1 -onb -p7 /etc/hosts

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
MikeL_4
Super Advisor

Re: Error adding printer with JetDirect

It worked fine, and we can just use the addqueue command instead of hppi, but it still leaves why hppi didn't work.

thanks
Bill Hassell
Honored Contributor

Re: Error adding printer with JetDirect

Check lpstat -v to see if the us101024 entry is there. If so, the pstatus file is probably corrupted. If you only have a few printers, you can clear up the corruption by deleting all the printers and adding them back again. If the problem printer won't delete, you'll need to do some manual steps in getting rid of it. If there is no printer us101024, then search for any files in the /etc/lp directory with that name and delete them.


Bill Hassell, sysadmin