- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Making ptr changes w/out stopping spooler
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
12-07-2001 08:48 AM
12-07-2001 08:48 AM
Making ptr changes w/out stopping spooler
(sapdev):/etc/lp/interface:root# lpstat -v007_f2_laser
device for 007_f2_laser: /dev/null
remote to: text on 165.104.105.38
to the correct IP with no system interuption.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 08:54 AM
12-07-2001 08:54 AM
Re: Making ptr changes w/out stopping spooler
How about using the DNS name instead of the IP address? Then you should not have the issue4.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 08:58 AM
12-07-2001 08:58 AM
Re: Making ptr changes w/out stopping spooler
In all my years as an admin, I've never tried to do this in that it would never have occurred to me to print to an IP address. The best advice I can give is: pick an idle printer and make the change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:02 AM
12-07-2001 09:02 AM
Re: Making ptr changes w/out stopping spooler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:03 AM
12-07-2001 09:03 AM
Re: Making ptr changes w/out stopping spooler
disable the printer
vi the /etc/lp/interface/printer_name file and look for the line PERIPH=ip.address.of.printer and change the IP. Save the file.
enable the printer
Now send a test print and see what happens. I haven't actually tried this, so there are no guarantees that it will actually work.
I personally agree with Clay and JRF that you should be using some sort of name resolution instead of IP addresses. Then if you need to change the IP, you change it in /etc/hosts or DNS, disable and enable the printer and your are going again.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:04 AM
12-07-2001 09:04 AM
Re: Making ptr changes w/out stopping spooler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:09 AM
12-07-2001 09:09 AM
Re: Making ptr changes w/out stopping spooler
My point is whether or not you have to bite this bullet, change to hostnames in lieu of IP addresses. In my case, I use DNS for the hostname resolution. I do not code IP addresses. At the very least, use /etc/hosts (as Clay suggested).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:09 AM
12-07-2001 09:09 AM
Re: Making ptr changes w/out stopping spooler
That line does not exist in the file.
I personally agree with Clay and JRF that you should be using some sort of name resolution instead of IP addresses.
Next time
I meant change the lp files directly without doing an lpshut/lpsched.
What files specifically? This is what I have been trying to do.
Thanks for all your help!
BTW, we are running HPUX11.00...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:11 AM
12-07-2001 09:11 AM
Re: Making ptr changes w/out stopping spooler
I think I will work on some sort of DNS/hosts thing for the future. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:16 AM
12-07-2001 09:16 AM
Re: Making ptr changes w/out stopping spooler
cd to /etc/lp
pick a printer name and do a 'find . -name printer_name' and get the list of files in /etc/lp directory structure.
Then in each file do a 'grep ip.address.of.printer filename' to try to find which file the ip is specified in. Once you find that you can change the IP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:19 AM
12-07-2001 09:19 AM
Re: Making ptr changes w/out stopping spooler
./cinterface/007_f2_laser
./interface/007_f2_laser
./member/007_f2_laser
./sinterface/007_f2_laser
./interface.old/007_f2_laser
(sapdev):/etc/lp:root# find . -name 007_f2_laser -exec grep 165 {} \;
nothing comes back...there is no IP stored in any of those files.
I found the IP address in /var/spool/lp/pstatus but it is a binary file and I don't know how to edit it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:25 AM
12-07-2001 09:25 AM
Re: Making ptr changes w/out stopping spooler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:11 AM
12-07-2001 11:11 AM
Re: Making ptr changes w/out stopping spooler
Thanks everyone for all your help!