- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- printer to define
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
07-04-2001 10:41 PM
07-04-2001 10:41 PM
Federico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 12:02 AM
07-05-2001 12:02 AM
Re: printer to define
Assume "ctxprd" is the source server where the printer is already configured, and "ctxnew" is the target server where you are going to replicate the printer.
Use the attached sript :
You can make use of the script in this way --> assume "mhp12" is the printer you want to replicate to "ctxnew" from "ctxprd" , then execute the script
#sh printer.sh mhp12
this will create the printer in your new machine.
Please do not forget to add the host entry (IP address) of teh printer in the /etc/hosts file.
Hope this helps
Cheers !!!
Mathew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 12:12 AM
07-05-2001 12:12 AM
Re: printer to define
Oooopps i did'ntsend u the script..
here is it..mkdir /var/spool/lp/request/$1
rcp -p CTXPRD:/etc/lp/interface/$1 /etc/lp/interface
chown lp:bin /etc/lp/interface/$1
rcp -p CTXPRD:/etc/lp/interface/model.orig/$1 /etc/lp/interface/model.orig
chown lp:bin /etc/lp/interface/model.orig/$1
rcp -p CTXPRD:/etc/lp/member/$1 /etc/lp/member
chown lp:lp /etc/lp/member/$1 /var/spool/lp/request/$1
rcp -p CTXPRD:/var/spool/lp/?status /var/spool/lp
## rcp -p CTXPRD:/etc/hosts /etc
/usr/sbin/lpshut
/usr/sbin/lpsched
--------------------
Thats all
Cheeers !!!
Mathew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 12:32 AM
07-05-2001 12:32 AM
Re: printer to define
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 05:18 PM
07-05-2001 05:18 PM
Re: printer to define
You are right, that gives problem. Anyone else has got some other ideas.
But if we don't copy those ?status files, it doesn't work at all...
Cheers !!!
Mathew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 10:05 PM
07-05-2001 10:05 PM
Re: printer to define
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 10:50 PM
07-05-2001 10:50 PM
SolutionI found a thread which thoroughly explains which files are important to the printer subsystem and why. Here it is: http://aa11.cjb.net/hpux_admin/2000/01/0450.html
Why don't you use the addqueue program which ships with jetadmin? In stead of using several rcp's to transfer a printer configuration you can set up a new printer on a remote system ine one remsh....
Regards,
Vincent