1834089 Members
2479 Online
110063 Solutions
New Discussion

renaming printers in DNS

 
SOLVED
Go to solution
RedLetter
Advisor

renaming printers in DNS

If a print queue is stalled due to renaming a printer in DNS. Can I move the files in /var/spool/lp/request/$printername to another directory, remove the old print queue and create a new queue with the correct node name? If not, what is the best method to do this?
Wondeful, never had it so good...
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: renaming printers in DNS

The first thing you need to do is create your new print queue with the correct name.

Once that is done and working, you can move the printfiles from the old printer to the new with the lpalt command. 'man lpalt' for more information.
RedLetter
Advisor

Re: renaming printers in DNS

Will lpalt work when: If batch jobs had hard coded queue names. I would need to end up with the same queue name and a different node name. I've tested a couple of scenarios, but so far I am still struggling..
Wondeful, never had it so good...
Kellogg Unix Team
Trusted Contributor

Re: renaming printers in DNS

Hi,

If you want to keep the queue name same, then do the following -

1. disable the present queue.
2. Locate a unused print-queue, and disable it.
3. Move the present jobs (lpalt) to this unused print queue.
4. Delete the present queue and recreate it with correct IP address.
5. Move the print jobs back to this queue.

Your print jobs should print now.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)