- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to add many network printers on HP-UX 11.23
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
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
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
07-07-2015 09:33 AM
07-07-2015 09:33 AM
Hi
I need to add 200+ network printers to my HP-UX 11.23 server. I sthere any script to do it ?.
TIA
Sri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015 03:07 AM
07-08-2015 03:07 AM
Re: How to add many network printers on HP-UX 11.23
check if you have add queue command on server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015 09:22 AM
07-08-2015 09:22 AM
SolutionHi
Thanks . I added using this script ,In my case my printers are directly connected to server thru network and they are not routed thru any printserver.So ineed to add the printer name and Ip address of them in /etc/hosts.
#!/bin/ksh
###############################################################################
# add_printers Script to add remote, lan attached
###############################################################################
# shut down the print spooler
#############################
/usr/lib/lpshut
#############################
# for each printer listed , ...
#############################
for PRNTR in `cat /root/home/root/printer_list`
do
#LPADMIN="lpadmin -p$PRNTR -v/dev/null -mrmodel -g0 -ocmrcmodel -osmrsmodel -orm$PRNTR"
LPADMIN="lpadmin -p$PRNTR -orm$PRNTR -orp$PRNTR -mrmodel -v/dev/null -ob3 -ocmrcmodel -osmrsmodel"
#############################
# ... do the following
#############################
# 1st - remove it, then add it, using defaults, placing it on NET1
#############################
lpadmin -x$PRNTR
$LPADMIN
#############################
# 2nd - begin accepting requests to it
#############################
/usr/lib/accept $PRNTR
#############################
# 3rd - enable it
#############################
/usr/bin/enable $PRNTR
done
#############################
# after the last printer is added, restart the spooler
#############################
/usr/lib/lpsched
Details of the Command
lpadmin -p$PRNTR -v/dev/null -mrmodel -g0 -ocmrcmodel -osmrsmodel -orm$LOC.holst
ein.com -orp$PRNTR"
where $PRNTR is the name of the print queue and $LOC is the name of the server to which the printer is attached.