- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting up printers on multiple systems
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
04-04-2001 11:33 AM
04-04-2001 11:33 AM
I am looking for an example script and or suggestions on creating printers on multiple systems at the same time.
I want to create a printer on one server and have that printer propgate to the other server automatically.
Thanks,
Craig A. Sharp
Roush Industries
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 05:34 AM
04-05-2001 05:34 AM
SolutionI've had the same problem when more and more servers were added in my company.
I've attached a script that takes an ip-adres, queuename as parameter (and some optional ones, see script), and then creates the printer on all servers you have included in your script.
regards,
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 06:01 AM
04-05-2001 06:01 AM
Re: Setting up printers on multiple systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 06:02 AM
04-05-2001 06:02 AM
Re: Setting up printers on multiple systems
If your environment is really large (several hundreds of machines), then you might consider using HP Distributed Print Service (aka HPDPS) in DCE extended environment; here is an excerpt of HPDPS Administration Guide (see http://docs.hp.com/hpux/onlinedocs/B2355-90678/B2355-90678.html ):
"HP Distributed Print Service (HPDPS or DPS) is a sophisticated distributed print environment that allows you to give your
users access to a wide variety of printers and printing functions. It also provides you with the ability to effectively and centrally
manage your entire distributed print environment.
[...]
In the DCE Extended Environment, HPDPS objects (such as physical printers and spoolers) created by any member of a DCE
cell are instantly available to the entire cell. For example, if a new physical printer is created within a DCE Extended
Environment server, the name of the new physical printer is visible to every client in the DCE cell, and each client can
immediately issue HPDPS operations for that physical printer. This is possible because the entire cell shares the same
namespace called the DCE Cell Directory Service. This allows for single-point administration as a result of the distributed
namespace."
In my company, we are using this product for several months now, and it works like a charm :o) Unfortunately, DPS in extended environment relies on DCE CDS, which is not free (available from HP under references B3187B and B3188B).
HTH!
Best regards,
Fred.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 07:56 AM
04-05-2001 07:56 AM
Re: Setting up printers on multiple systems
Enjoy,
Jim
#!/usr/bin/ksh
#
# Script to add rprinter queues to all UNIX servers on the network.
# Execute /home/root/addprint.k
# Written by Jim Shirley 9-2-1999
#
echo "Is $1 the queue you want to create on all of the servers? y/n \c"
read entry
case $entry
in
y|Y)
for n in `cat /home/root/rprntservers.list`
do
echo "Status on server $n"
remsh $n /usr/sbin/lpshut
remsh $n /usr/sbin/lpadmin -p$1 -ormMASTER_SERVER -orp$1 -mrmodel -v/dev/null -ocmrcmodel -osmrsmodel
remsh $n /usr/sbin/lpsched
remsh $n /usr/bin/enable $1
remsh $n /usr/sbin/accept $1
done ;;
*)
echo "Use this syntax - /home/root/addprint.k
esac
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 04:54 AM
04-09-2001 04:54 AM