- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX Jetadmin in Batch mode
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
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
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
тАО05-28-2003 04:14 AM
тАО05-28-2003 04:14 AM
I've the problems to generate printer queue on a new HP-UX servers from an existing one with jetadmin. Modelscripts are available /etc/hosts is prepared. Can I use jetadmin 11D621 in batch or script mode ? The steps in illustration attachment should go automatically
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 05:44 AM
тАО05-28-2003 05:44 AM
Re: HP-UX Jetadmin in Batch mode
I think you can't use a file under jetadmin.
But you can prepare a answers file for jetadmin :
File LIST looks like :
IP1:NAME1
IP2:NAME2
...
Then in a script :
# Prepare the file
echo "1" > jetadmin_global
cat LIST | while read LINE
do
IP=`echo $LINE | cut -d: -f1`
NAME=`echo $LINE | cut -d: -f2`
cat <<-% >> jetadmin_global
3
$IP
1
$NAME
5
q
0
y
%
fi
done
echo "q" >> jetadmin_global
echo "q" >> jetadmin_global
# Creation des imprimantes
/opt/hpnp/bin/jetadmin < jetadmin_global > jetadmin_global.log
lpsched
lpstat -a
It should work.
The other way is to save the spooler on the first server :
# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
Transfert the directory /var/sam/lp on the other server :
# tar cf - /var/sam/lp | rexec server2 "tar xvf -"
Then on the server 2, restore the spooler :
# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
Regards,
Fr??d??ric
- Tags:
- lpmgr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 05:45 AM
тАО05-28-2003 05:45 AM
Re: HP-UX Jetadmin in Batch mode
I think you can't use a file under jetadmin.
But you can prepare a answers file for jetadmin :
File LIST looks like :
IP1:NAME1
IP2:NAME2
...
Then in a script :
# Prepare the file
echo "1" > jetadmin_global
cat LIST | while read LINE
do
IP=`echo $LINE | cut -d: -f1`
NAME=`echo $LINE | cut -d: -f2`
cat <<-% >> jetadmin_global
3
$IP
1
$NAME
5
q
0
y
%
fi
done
echo "q" >> jetadmin_global
echo "q" >> jetadmin_global
# Creation des imprimantes
/opt/hpnp/bin/jetadmin < jetadmin_global > jetadmin_global.log
lpsched
lpstat -a
It should work.
The other way is to save the spooler on the first server :
# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
Transfert the directory /var/sam/lp on the other server :
# tar cf - /var/sam/lp | rexec server2 "tar xvf -"
Then on the server 2, restore the spooler :
# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
Regards,
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 05:58 AM
тАО05-29-2003 05:58 AM
Re: HP-UX Jetadmin in Batch mode
JetAdmin and WebJetAdmin are now designed for Windows systms and are dogs on unix.
HPPI works and is easily updated.
The transder_queues command is excellant in maintaining print queues among multiple systems.
Model scripts under the HP-UX approved JetAdmin did NOT always add-in as expected.
I have had no problem with HPPI.
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 06:26 AM
тАО05-29-2003 06:26 AM
Solutionaddqueue
Just create a script with the queuename and the host or IP address as in:
/opt/hpnpl/bin/addqueue -q printqueue_name -h hostname
Repeat as needed. With the (long) obsolete JetAdmin, the path is /opt/hpnp/bin/addqueue. If you need more options, look at multiaddqueue. There are man pages for all the batch commands:
addqueue
multiaddqueue
removequeue
multiremovequeue
transferqueue
Note that with the batch commends, the printer must be turned on and connected to the LAN so it can be queried as to model number. The printer does not have to be online, just powered up.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 02:14 AM
тАО06-02-2003 02:14 AM
Re: HP-UX Jetadmin in Batch mode
many ThanX for this answers, these are exactly the hints
I need I will test, if I have further infos I will come back.
You are TOP ;-)