- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where are IP/hostname of Printers on HP-UX stored?...
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
03-02-2012 11:38 AM
03-02-2012 11:38 AM
Where are IP/hostname of Printers on HP-UX stored? (Change Printer Queue IP/Hostname )
Is there an alternative to the following procedur of changing a Print Queue Definiton's IP address?
lpshut
lpadmin (delete and recreate with new IP/hostname)
lpsched
Is there not a file we can simply edit? Where are the IPs and Hostnames stored?
Our servers typically average over 3,000 printer definitions.... and we need to change a number of these..
- Tags:
- lpadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2012 12:13 PM - edited 03-02-2012 12:17 PM
03-02-2012 12:13 PM - edited 03-02-2012 12:17 PM
Re: Where are IP/hostname of Printers on HP-UX stored? (Change Printer Queue IP/Hostname )
Were all of these printers setup using lpadmin or were they setup using the JetDirect (hppi) utility? With JetDirect printers, the IP address (or hostname) is stored in the generic interface script for each printer in /etc/lp/interface. For lpadmin printers, the information is buried in the /var/spool/lp/pstatus file which is binary and cannot be edited. You can view the file with: vis /var/spool/lp/pstatus. So you'll have to script the changes using lpadmin (delete and then re-add).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2012 12:26 PM
03-02-2012 12:26 PM
Re: Where are IP/hostname of Printers on HP-UX stored? (Change Printer Queue IP/Hostname)
> So you'll have to script the changes using lpadmin (delete and then re-add).
Hopefully save the 3000 lpadmin commands for next time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2012 08:09 PM
03-04-2012 08:09 PM
Re: Where are IP/hostname of Printers on HP-UX stored? (Change Printer Queue IP/Hostname)
All of the printers were lpadmin configured -- regardless if they were Jetdirect interfacd (HP) or not. All our printers are "dumb" - they print / stream "print files" -- Postscript mainly or PCL encoded Text files. We've Lexmarks and Xerox/Phasers and HPs -- and we never used the native "print software" bundled with the printers.
I guess we've no choice but to script this one --- automation is not the problem, the issue is we have a very short window to do these printer changes.
Oh well - maybe set up a central print server next time. (or it's likely a bad'der idea?).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2012 11:49 PM
03-04-2012 11:49 PM
Re: Where are IP/hostname of Printers on HP-UX stored? (Change Printer Queue IP/Hostname)
>All of the printers were lpadmin configured
Next time, save those commands.
>I guess we've no choice but to script this one --- automation is not the problem
But automation is the solution. We use a NIS group with the tuple to add remote printers.