Operating System - HP-UX
1833042 Members
2607 Online
110049 Solutions
New Discussion

Re: jetadmin and HPUX printing

 
SOLVED
Go to solution
Nick D'Angelo
Super Advisor

jetadmin and HPUX printing

All,

I download Jetadmin ver D for HPUX10.20 and it is acting strange to say the least.

I can spool print jobs to lp, they appear to be going to the right printers, lpstat -o, but then they error out and send root an email saying so.

This is a new configuration(server wise) and also I had downloaded ver E previously and I have swremoved that and swinstalled Ver d.

Suggestions?
Always learning
15 REPLIES 15
Sanjay_6
Honored Contributor

Re: jetadmin and HPUX printing

Hi Nick,

Have you tried lpshut and lpsched,

/usr/lib/lpshut
/usr/lib/lpsched

lp -dprinter_name some_file

Hope this helps.

Regds
Nick D'Angelo
Super Advisor

Re: jetadmin and HPUX printing

Tried that many many times (10 or more anyway).

Nickd
Always learning
Craig Rants
Honored Contributor

Re: jetadmin and HPUX printing

Nick,
Have you gone through the diagnostics inside of JetAdmin? There are a few things that you can do inside there which should help you troubleshoot you problem.

Let us know.
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
someone_4
Honored Contributor

Re: jetadmin and HPUX printing

Did you use
/opt/hpnp/bin/jetadmin
to set it up?

Also you are using
HP10d621.SD

Richard
Jim Turner
HPE Pro

Re: jetadmin and HPUX printing

Do yourself a huge favor. Delete anything you just downloaded from HP in the way of JetDirect/JetAdmin for HP-UX. Their "new and improved" network printing software available via the web might be fine for Winblows, but it stinks on UNIX.

cd /tmp
ftp ftp.hp.com


cd /pub/networking/software
ls HP*
bin
hash
get HP10d621.SD
bye

swinstall -s /tmp/HP10d621.SD \*

Now you can run /opt/hpnp/bin/jetadmin to add printers. If there were no problems with your 10.20 box to begin with, everything should work fine with this.

Cheers,
Jim
Nick D'Angelo
Super Advisor

Re: jetadmin and HPUX printing

Interesting.

Thru the diagnostics, I am able to test print.

However, back the prompt, I typed the following:

cat /etc/hosts |lp -efin2 and it produces and email msg with an error 2 on it.
Always learning
Nick D'Angelo
Super Advisor

Re: jetadmin and HPUX printing

Yes I downloaded and swintalled HP10d621.SD.

I have checked to see and the /opt/hpnpl directory (as created by the version E of Jetadmin) is no longer there.

Nickd
Always learning
Craig Rants
Honored Contributor

Re: jetadmin and HPUX printing

As mentioned, setup your printers through jetadmin. Most of the time jetadmin is pretty successful.

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Nick D'Angelo
Super Advisor

Re: jetadmin and HPUX printing

I have removed the three printers that were previously defined and attempted to re-create them using jetadmin and same error no 2 appeared in my email inbox.

Always learning
Darrell Allen
Honored Contributor

Re: jetadmin and HPUX printing

Hi Nick,

Silly question: are you using lp -e or was that a typo? You can print a file by simply doing: lp -dprintername filetoprintname

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Craig Rants
Honored Contributor

Re: jetadmin and HPUX printing

Look at this file to see if you can match your error with a better description.

/usr/include/sys/errno.h
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Bill Hassell
Honored Contributor

Re: jetadmin and HPUX printing

Verify that you can print without the spooler by using hpnpf as in:

/opt/hpnp/bin/hpnpf -x IP-addr -n /etc/profile

Another test is to use hpnpadmin:

/opt/hpnp/bin/hpnpadmin -v IP-addr

If they work OK, the printer and JetAdmin are fine. Look at the spooler:

Error 2 for the spooler means that something in the printer script returned a non-zero code (2 in this case). From the errno definitions, this mean "No such file or directory"

This may have nothing to do with JetAdmin, it may be an install/setup problem with the lp spooler, most likely permissions on spooler directories. Use swverify to check the spooler permissions.


Bill Hassell, sysadmin
Shahul
Esteemed Contributor
Solution

Re: jetadmin and HPUX printing

Hi

I doubt there is something wrong with ur Jet admin configuration or with ur network. I suggest U to follow these steps, This may help U to diagnos ur problem

Configure the Jetadmin printer thru SAM. Come to prompt and check the connectivity.
#ping

Make sure that it is pinging.
#lpstat -t

Make sure that ur scheduler is running, scheduler is accepting the request and particular printer is enabled. If something is not OK here , do this

#lpshut
#rm /var/spool/lp/SCHEDLOCK
#lpsched
#enable
#accept
#lpstat -t

Now U can see everything is OK

#lp -d
#lpstat -t

Check up whether ur job is getting queued or not. If yes checkup printer side whether it is printing or not. If still ur problem not getting solved, I suggest U a shotcut

U remove the existing Jetadmin printer (Network Printer) and configure as a remote printer. Physicallu U don't need to change anything. Kepp printer connected as it is, then
#sam ->Printers and plotters->lp spooler->printers and plotters-action->add printer

Her select remote printer and give Ip address of the printer as remote system name and remote printer name. Come out

#lpstat -t

Make sure that everything is ok
#lp -d

I hope now U will be able to see printer is printing. If this is done, means there is something wrong with ur jetadmin configuration.

Best of luck
Shahul
Nick D'Angelo
Super Advisor

Re: jetadmin and HPUX printing

All, I performed an swverify on the Jetadmin product and it reported a file permissions problem on /sbin/init.d/hpnpd that it should be set with permissions of 664 but was reporting as 554. I changed this as so.

I re-ran swverify on J2559C (jetamdin) and the error was gone.

I deleted my previously defined printers and set them up again and re-submitted print job and still I get an error - 2

Arrgh !!
Always learning
Chris Watson
Super Advisor

Re: jetadmin and HPUX printing

Check your permissions on /etc/resolv.conf. I had this sames error and it turns out that hpnpd requires 600 on resolv.conf. But they don't tell you this!

Additionally, turn on logging in the interface script for the printer.

Regards

Chris
Moving along nicely