- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change printer destinations?
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-06-2003 05:41 AM
тАО05-06-2003 05:41 AM
I thought I could do this with lpadmin:
lpadmin -pPRINTER1 -ormPRINTHOST
and although it succeeded (or did not report an error), SAM still says my printer is on xx.xx.xx.xx, not on PRINTHOST.
How can I do this without having to delete and reenter all the printers using SAM?
So this is really an lpadmin question, I think, unless there is a file I can edit.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 05:48 AM
тАО05-06-2003 05:48 AM
Re: Change printer destinations?
/var/spool/lp/interface/
Each one has the line;
PERIPH=
Simply modify it, stop and start lp and youre done. Easy to do with a script if you have tons of printers (use sed).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 05:54 AM
тАО05-06-2003 05:54 AM
Re: Change printer destinations?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 06:13 AM
тАО05-06-2003 06:13 AM
Re: Change printer destinations?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 10:52 AM
тАО05-06-2003 10:52 AM
SolutionI. SAM -> Printers and Plotters -> LP Spooler -> Save / Restore Spooler Configuration -> Actions -> Save Spooler Configuration
2. Exit SAM
C. cd /var/sam/lp
edit the file, lpinfo, and make any changes to the remote printer lines that you like and save the file.
IV. SAM -> Printers and Plotters -> LP Spooler -> Save / Restore Spooler Configuration -> Actions -> Restore Spooler Configuration
----------------------------
The actual lp data is stored in /var/spool/lp/pstatus but it's a binary file so that editing would require C or Perl.