Operating System - HP-UX
1753797 Members
7326 Online
108799 Solutions
New Discussion юеВ

New minor problem with JetDirect hppi command

 
SOLVED
Go to solution
David Yandry
Frequent Advisor

New minor problem with JetDirect hppi command

Hello,

I have installed the new JetDirect software under 11i and everything works well except for one minor annoying problem. When I use hppi to create a new printer, a "_1" is always appended to the printer name. The old jetadmin command did this as well. Is there a cure for this?

TIA,
David
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: New minor problem with JetDirect hppi command

Hi David:

The simple fix is to not use hppi but to instead create a small script that calls the "addqueue" command. Man addqueue for details. I do remember "fixing" this once for somebody so I may look for that solution as well but I actually prefer addqueue.

Regards, Clay

If it ain't broke, I can fix that.
Mark Greene_1
Honored Contributor

Re: New minor problem with JetDirect hppi command

If you are using hppi from sam or the command line, after you tell it the printer name, you can select the default queue name by entering 1 at the menu, and then change it to whatever you want. For an existing printer, your only option is to delete and recreate.

HTH
mark
the future will be a lot like now, only later
David Yandry
Frequent Advisor

Re: New minor problem with JetDirect hppi command

Thanks Mark,

I should have added that I know I can edit the "suggested" queue name but I would like a fix so that I don't have to edit anything.

TIA,
David
A. Clay Stephenson
Acclaimed Contributor

Re: New minor problem with JetDirect hppi command

Okay David, I flipped through my journals and found the "fix". This was for JetAdmin but it will work for JetDirect as well.

1) cd to /opt/hpnpl/admin
II) cp option6hp optionhp.sav
C) vi option6hp
4)
find these lines:
------------------------------------
i=1
while [ 0 ]
do

# [ Modify by Amit R. Raval to fix the problem of not able to create a
# queue which has "-" in the name on 23rd June 1998.
# aNAME="$QBASENAME"_"$i"
aNAME="`echo "$QBASENAME" | "$SED" 's/-/_/g'`"_"$i"
# ]

if [ -f $INTFDIR/$aNAME ]
then
i=`expr $i + 1`
else
break
fi
done
-------------------------------------
change them to:
-------------------------------------
i=0
while [ 0 ]
do

# [ Modify by Amit R. Raval to fix the problem of not able to create a
# queue which has "-" in the name on 23rd June 1998.
# aNAME="$QBASENAME"_"$i"
aNAME=${QBASENAME}
if [ ${i} -gt 0 ]
then
aNAME="`echo "$QBASENAME" | "$SED" 's/-/_/g'`"_"$i"
fi
# ]

if [ -f $INTFDIR/$aNAME ]
then
i=`expr $i + 1`
else
break
fi
done

--------------------------
V) Save the file.

That should fix you.


If it ain't broke, I can fix that.
David Yandry
Frequent Advisor

Re: New minor problem with JetDirect hppi command

Thanks to both of you. I modified "option6hp" file that Clay indicated and now it works just like I wanted it to.

Thanks,
David