1832978 Members
2947 Online
110048 Solutions
New Discussion

Jetdirect question

 
SOLVED
Go to solution
Manuel G
Frequent Advisor

Jetdirect question

I??ve installed a remote HP laserjet printer on a HP-UX 10.20 system using Jetdirect E.10.18.

I can print a test page from Jetdirect interface program but it doesn??t create the printer on the lp spooler for accesing it via printer name and lp comands.

Any idea?
10 REPLIES 10
Rita C Workman
Honored Contributor

Re: Jetdirect question

Well you might set up this printer using good old JetAdmin software. Make sure your IP is correct (and recommend static IP).
You can download JetAdmin by doing an ftp to:
ftp.hp.com
cd /pub/networking/software
JetAdmin is HP10d621.SD for 10.2
or HP11d621.SD for 11.0


Or maybe you want to set it up as a remote printer using SAM.

Just a couple quick thoughts,
Rita
Steve Steel
Honored Contributor

Re: Jetdirect question

Hi

You need to make sure that the spooler can stop

a)ps -ef|grep lpsch
b)lpshut
c)ps -ef|grep lpsched.

If c output then seek the error

else try to add from the command line with this
command:

# addqueue [ -c class ] [-d] [ -i printerID ] -h hostname -q queuename -p port

expand MANPATH with
export MANPATH=/opt/hpnp/man:$MANPATH

and you have a man page for this command and jetadmin itself.

Also see man hpnpadmin


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Sandip Ghosh
Honored Contributor

Re: Jetdirect question

There is a command hppi on jetdirect Version E.10.18.
#hppi
Go to Spooler Administration.
It will ask for adding the spooler.
Add through your IP add or you can give the host name if it is mentioned in the dns.

Then give the printer model name and the queue name. It will configure the printer for you.

Sandip
Good Luck!!!
Manuel G
Frequent Advisor

Re: Jetdirect question

Rita:

Is there any problem with the E10.18 version?

Steve:

I??ve tried what you suggested and it returns following error code:

istelhp _ root #addqueue -q lj5m -h 192.168.0.55
Could not create the queue
istelhp _ root #echo $?
1
istelhp _ root #

Following addqueue MAN PAGES, return value=1 means " added to the spooler" ??????

Anyway, I can??t see the new printer queue lj5m.

Sandip:

What you suggested were my first steps when I tried to difine the new printer and it didn??t work.

Any more suggestions???
Thanks for your support.
Sandip Ghosh
Honored Contributor

Re: Jetdirect question

Hi,
I think you have already taken care but still to make it sure
Whether the ping is working or not?
From your host whether you can resolve the host name / IP Address?
Then telnet into the printer and check whether the setting of the printers are all right or not.

Just a thought.

Sandip
Good Luck!!!
MANOJ SRIVASTAVA
Honored Contributor

Re: Jetdirect question

Hi Manuel

It looks that the printer name file under /usr/spool/lp/requests is not owned by lp , the best bet is to the delete the curretn printer and recreate it. Also there are several other option in Jetdamin which you can use to debug the problems.


Manoj Srivastava
Manuel G
Frequent Advisor

Re: Jetdirect question

Sandip:

Printer is reachable via ping & telnet and parameters seems to be OK.

I can see the printer from Windows - HP Web JetAdmin and it works well from this S.O. (sorry ;-)).

Manoj:

Printer doesn??t exits yet and we haven??t got any file under /usr/spool/lp/requests, should we create it before using JetAdmin? If we should, How?

Steps we followed from JetAdmin are:

1) Firstable, add "192.168.0.55 lj5m" on /etc/hosts.
2) Enter option 3): Add printer to local spooler.
3) Enter the network printer name or IP address (q - quit): lj5m
4) Change LP destination (queue) name to lj5m (it defaults to lj5m_1).
5) Enter 0 to configure.
6) JetAdmin response is:
The spooler is already not running in the system!
It will not be switched on after the configuration

OK to continue? (y/n/q, default=y)
7) Enter y and it returns following error message:
Addprinter error: can't find /etc/lp/interface/lj5m

I??ve reviewed /etc/lp/interface and don??t have anything under it. We have a empty sub-directory called model.orig

Does this new info. clarify you something?

Thanks.
MANOJ SRIVASTAVA
Honored Contributor

Re: Jetdirect question

Manuel


The steps I genrally follow are as:

1. Jetdamin
2. Option 1 (Configuration)
3. Option 3 ( Add Printer)
4. Give the IP Adress ie 192..168.0.55
5. here genrally it gives u a list of printer models , give the one closest to the one you have got . In olders versions it will just come out .
6. Now out of the 6 options you can chose to make it default , or also change the name of the printer from say 192_1 to any thing .

This should work .

Also in case you have already configure dit in /etc/hosts I dont know how the machine is resolving the name . IP addtress , In case you have further problems then try pinging it by address and name , but the abve solution will work.


Manoj Srivastava
Sanjay_6
Honored Contributor
Solution

Re: Jetdirect question

Hi Mauel,

Make sure your lp spooler is behaving okay. Shutdown the spooler and see if there is another spooler process that is running. If so kill that process and remove FIFO file manually from the lp home directory, i think /usr/spool/lp

/usr/lib/lpshut
ps -ef |grep lpsched

If any lpsched exist kill those processes and then remove FIFO and then restart the scheduler and try,

/usr/lib/lpsched

Hope this helps.

Regds
Manuel G
Frequent Advisor

Re: Jetdirect question

Thanks guys.

Now pinter is spitting out paper from lp commands.

What I had done is manually delete all files associated with a pair of printers configured on the system.

Then I repeated the steps that I detailed last response and all worked well.

Thank you very much.