- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: JetAdmin Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 04:38 AM
09-06-2007 04:38 AM
wea re on pa-risc 11.11 and want to upgrade our JetAdmin, D.06.21 to E.10.24 prior to conversion to Itanium servers. Does anyone see any proble with that?
TIA,
Chuck Ciesinski
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 04:53 AM
09-06-2007 04:53 AM
Re: JetAdmin Question
The only gotcha's are highly customized interface files which might require some manual editing but if you run the out of the box interface files (or only slightly customized versions of the same) then tranferqueue will do all the heavy lifting for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 09:00 AM
09-06-2007 09:00 AM
Re: JetAdmin Question
Once you have installed the HPPI software, delete and re-add each printer (printer must be connected) using the removequeue and addqueue commands:
removequeue -q myprint23
addqueue -q myprint23 -h 12.34.56.78
That way, the generic network script will be correct and the individual printer scripts will be up to date. NOTE: if you made changes to model.orig scripts, you'll need to make the same changes to the new scripts. Since the majority of changes to printer scripts are usually banner options and duplex defaults, the modifyqueue command can do this for you (man modifyqueue).
The old jetadmin never supported any new printers after 1999 and has known Y2K bugs. Model scripts for new printers can be downloaded and added to HPPI but the generic net_ljx000 script handles virtually all HP PCL printers. HPPI will choose the printer script automatically if the printer can be contacted.
Note that I prefer IP address over hostname for printers. The complexities of maintaining dependable DNS entries for printers has been consistently painful so I just bypass the whole mess with IP's. And in case a printer moves, the above 2 commands will get it back again (no SAM needed).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2007 03:55 AM
09-07-2007 03:55 AM
Re: JetAdmin Question
The correct way of doing it would be to follow the advices you've got.
We had a huge number of printers defined on our servers before and I had to do a "workaround" to get them fast up and running...
What I saw was that more or less everything was identical... except for the fact that the /opt/hpnp was "changed" to /opt/hpnpl
So - I created a link...
ln -s /opt/hpnpl /opt/hpnp
And - an alias for the old jetadmin command
alias jetadmin='hppi'
That might save you some work.... though it's a workaround and not according to the standard.
We have later removed all printing on the HP-UX and rather use some small Linux boxes do the spooling for us.
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2007 05:58 AM
09-07-2007 05:58 AM
Re: JetAdmin Question
Unfortunately true.
(/)#cd /opt/hpnp/bin
(/opt/hpnp/bin)#./jetadmin
*************************************************
* MAIN MENU *
* HP JetAdmin Utility for UNIX (Rev. D.06.21) *
*************************************************
1) Configuration (super-user only):
- configure printer, add printer to spooler
We are using an older version, which works well with SAP, where we have device names and associated IP addresses. Downloaded the new version Pete and Clay recommended and prepariong to test on an rx6600.
Chuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2007 06:46 AM
09-07-2007 06:46 AM
Re: JetAdmin Question
The new version works great. One caveat. All your old model scripts point to the old /opt/hpnpn/. The newer software is changed to /opt/hpnpl. Simply create a link from /opt/hpnpn to /opt/hpnpl and all the old model scripts will work.
Did this many years ago when JetAdmin went away.
Another option would be to update all the model script with the newer ones but then you will have to go back in and modify or awk in the proper PERIPH= and PORT=
Try the 1st option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2007 12:03 PM
09-07-2007 12:03 PM
Re: JetAdmin Question
#!/usr/bin/sh
# Find all JetDirect printer names and IP addresses
# and create remove and add scripts in /tmp
set -u
QTY=0
JETDIR="/opt/hpnpl/bin"
LPDIR="/etc/lp/interface"
RMPRN="/tmp/rmprn.sh"
ADDPRN="/tmp/addprn.sh"
umask 022
echo "# Remove JetDirect printers script" > $RMPRN
echo "# Add JetDirect printers script" > $ADDPRN
lpshut
for PRN in $(grep ^PERIPH= $LPDIR/*)
do
QUEUE=$(basename $(echo $PRN | cut -d: -f1))
IP=$(echo $PRN | cut -d= -f2)
echo "$JETDIR/removequeue -q $QUEUE" >> $RMPRN
echo "$JETDIR/addqueue -q $QUEUE -h $IP" >> $ADDPRN
let QTY=$QTY+1
done
chmod 755 $RMPRN $ADDPRN
echo "# $QTY JetDirect printers found"
echo "# $QTY JetDirect printers found" >> $RMPRN
echo "# $QTY JetDirect printers found" >> $ADDPRN
The results of this script generator will be 2 new scripts ready to run. The first is /tmp/rmprn.sh and running it will remove all the JetDirect printers (even though they were added by jetadmin). Then run /tmp/addprn.sh which puts them all back with their new scripts. You can run modifyqueue for selected printers to change options. Or you can modify the generator above to add the options: -t off -r off -b off.
Bill Hassell, sysadmin