1825744 Members
3393 Online
109687 Solutions
New Discussion

Re: Jet Admin

 
SOLVED
Go to solution
mike mcclernon
Occasional Contributor

Jet Admin

When I use JetAdmin to define a network printer, I enter the host id for the queue name. Once I tell it to configure, it adds _1 to the host name to create the queue name. I don't want to add the _1, so how can I stop this from being added?

Thanks
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Jet Admin

I don't know that you can stop the _1 from being added to the printer name. The easiest thing I've found to do is to just modify the printer queue name to take the _1 off.
Andreas Voss
Honored Contributor

Re: Jet Admin

Hi,

jetadmin adds automatically _1 to the queue name.
You can change it by entering the option menu '1) Lp destination (queue) name:'

Regards
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Jet Admin

There is a hack. I assume you are running JetAdmin D.06.20 on HP-UX; if not, the changes will be similar.
1) Locate the file /opt/hpnp/admin/option6hp
and make a backup copy just in case.
2) Edit the file and find the string 'aNAME'.
Locate the line aNAME="`echo $QBASENAME | "$SED" 's/-/_/g'"_"$i".
Precede this line with the following:
aNAME=${QBASENAME}
if [ $i -gt 0 ]
then
original line goes here
followed by fi
3) Locate the enclosing while [ 0 ] statement; the line above should be changed from
i=1
to
i=0.
That's it.
The condition prevents a hang in case more than one queue is being assigned to the same IP node. If a duplicate is found then the default behavior kicks in.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Jet Admin

You can eliminate all the silliness with JetAdmin's _1 naming convention by using the command: addqueue. If you do not have this command then your JetAdmin software is very old. Download the latest version of JetAdmin from:

http://www.hp.com/cposupport/swindexes/hpjetadmin1875_swen.html

The addqueue command has two primary options: -h and -q as in:

addqueue -h hostname -q queuename

Normally, you would make hostname and queuename the same but you can make them different or even use an IP address for the hostname in case your DNS doesn't resolve the printer's name.


Bill Hassell, sysadmin