- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Migrate Print Queues
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
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
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
тАО01-31-2007 05:13 PM
тАО01-31-2007 05:13 PM
Migrate Print Queues
Most printers are connected using HP Jetdirect on Aix Machines ( LAser printers as well as line printers - dump model)
Is there any scripts/commands which be helpfull for me to migrate the entire print queue
Thanks in advance
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 05:17 PM
тАО01-31-2007 05:17 PM
Re: Migrate Print Queues
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1064849
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2007 11:26 PM
тАО02-01-2007 11:26 PM
Re: Migrate Print Queues
there is a utility named '/opt/hpnpl/bin/transferqueue'. The documentation states:
>>
transferqueue transfers queues from one machine to another
by retaining the configuration options that were set through
Unix JetAdmin/JetDirect Printer Installer Utility. This
script will ONLY transfer queues from HP-UX 10.x/11.x to
HP-UX 10.x/11.x or Solaris 2.x to Solaris 2.x. Transfered
queues will only work in Network Printer Installer for Unix.
<<
It does not explicitly tell us about AIX, but I would try...
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2007 02:10 AM
тАО02-02-2007 02:10 AM
Re: Migrate Print Queues
Steps taken to originally create the queues:
Ran the following script on aix:
printer.name.list >printer.name.list.out
#!/bin/sh
# Display all physical printers
exec 0
do
p=`echo ${line}|awk -F_ '{print $1}'`
ip=`nslookup ${p} |grep 156|grep -v 192.168.1.10 |awk -F: '{print $2}'`
echo ${p} ${ip}
done
192.168.1.10 = your primary dns server on AIX...
Transfered printer.name.list.out to iprprt.
Ran the following script on iprprt:
/opt/hpnpl/queue-admin addqueue
#!/bin/sh
# script to add-delete queues
# Geoff Wild
#
if [ $# -lt 1 -o ( $# -gt 1 -a $# -lt 4 ) ]
then
echo "Usage:"
echo "queue-admin "command""
echo "Example:"
echo "queue-admin addqueue"
echo "queue-admin removequeue"
exit 1
fi
if [ $1 = "addqueue" ] ; then
exec 0
do
p=`echo ${line}|awk '{print $1}'`
echo "adding queue " ${p}
# 9998 is net_genericprinter Modelscript
$1 -i 9998 -h ${p}.pcacorp.net -q ${p}
done
else
lpshut
exec 0
do
p=`echo ${line}|awk '{print $1}'`
echo "removing queue " ${p}
lpadmin -x${p}
done
lpsched
fi
That created all the SAP printers using the Generic Printer Model Script (9998).
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2007 01:50 PM
тАО02-02-2007 01:50 PM
Re: Migrate Print Queues
laser21 12.34.56.78
laser44 23.45.67.89
etc. The AIX system is talking to the HP printers using lpr/lpd protocol and not the preferred HP protocol using port 9100. But there is a very useful program on HP-UX that will create each printer queue from just those two parameters: addqueue. So using awk, you can change the file to read something like this:
addqueue -q laser21 -h 12.34.56.78
addqueue -q laser44 -h 23.45.67.89
Then just run the above as a script on HP-UX and you'll have all your queues built with the advantage of a significantly larger selection of options (see man net_ljx000)
Bill Hassell, sysadmin