This is a discussion on AIX 4.3.3 and changed hostname in printer queue? within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, I have had a problem for a long time now and now I decided to get a solution ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I have had a problem for a long time now and now I decided to get a solution for it. I have an IBM RS/6000 server with AIX 4.3.3 and have something like 20-30 printer queues on the server, most of them are queues on normal workstations, using niprint on the workstation end. The problem is that sometimes the hostname or ip-address changes on the workstations, and I can't figure out how to change the print queue settings to work with the new address or hostname. The only solution so far have been to delete the queue and create it again with the new settings. (That's a pain in the a** because some printers uses settings that I haven't managed to find out, and after the delete operation it's really difficult to get the settings right so the printer will work again.) Now I have read in this newsgroup that it should work like this: edit queue in /etc/qconfig to right settings, start smit to digest the new settings and everything should work just fine. But not for me. I've tried to restart qdaemon and everything, but to no use, it just won't work. When using lpstat -aqueuename it displays the status as unknown and if I use enable queuename it goes ok, but lpstat displays the same thing again. Then I did rename the spool file or something in /var/spool/lpd/stat to the new name, and now it displays that the device is down, but wont enable it. (And I also noticed that inside the "spool" file is the old hostname still, so this surely wasn't the right way to do this! Now I would like to receive an very thorough "guide" how to do this right, so I don't have to delete the queues and recreate them. Thanks in advance, Marko Hausalo |
| |||
| "Marko Hausalo" <marko.hausalo@nic.fi> wrote in message news:CxFmc.834$EI.209@reader1.news.jippii.net... > using niprint on the workstation end. The problem is that sometimes the hostname > or ip-address changes on the workstations, and I can't figure out how to change > the print queue settings to work with the new address or hostname. The only > solution so far have been to delete the queue and create it again with the > new settings. (That's a pain in the a** because some printers uses settings that Edit /etc/qconfig. Change the hostname on the "backend =" line ONLY. Don't change the name of the queue or queue device. Then run "enq -d" to rebuild qconfig.bin OR stopsrc -cs qdaemon ; startsrc -s qdaemon > Now I have read in this newsgroup that it should work like this: > edit queue in /etc/qconfig to right settings, start smit to digest the new > settings I don't believe starting smit doesn't run piodigest. Best regards, Paul |
| |||
| LAIX Software Consulting wrote: > Edit /etc/qconfig. Change the hostname on the "backend =" line ONLY. > Don't change the name of the queue or queue device. Then run "enq > -d" to rebuild qconfig.bin OR stopsrc -cs qdaemon ; startsrc -s > qdaemon Hi! I don't have any hostname or ip-address on the backend line. Here I copy what I have in the /etc/qconfig file. This is what I started from: marjalj5: device = @marjap up = TRUE host = marjap s_statfilter = /usr/lib/lpd/aixshort l_statfilter = /usr/lib/lpd/aixlong rq = marjalj5 @marjap: backend = /usr/lib/lpd/rembak Here is how I edited it: marjalj5: device = @marjap-dt up = TRUE host = marjap-dt s_statfilter = /usr/lib/lpd/aixshort l_statfilter = /usr/lib/lpd/aixlong rq = marjalj5 @marjap-dt: backend = /usr/lib/lpd/rembak Should I just change the "host =" line? That sounds right, doesn't it? Maybe I'll give it a try! Regards, Marko |
| ||||
| On Fri, 7 May 2004 17:36:05 +0300, "Marko Hausalo" <marko.hausalo@nic.fi> wrote: >This is what I started from: >marjalj5: > device = @marjap > up = TRUE > host = marjap > s_statfilter = /usr/lib/lpd/aixshort > l_statfilter = /usr/lib/lpd/aixlong > rq = marjalj5 >@marjap: > backend = /usr/lib/lpd/rembak > >Here is how I edited it: >marjalj5: > device = @marjap-dt > up = TRUE > host = marjap-dt > s_statfilter = /usr/lib/lpd/aixshort > l_statfilter = /usr/lib/lpd/aixlong > rq = marjalj5 >@marjap-dt: > backend = /usr/lib/lpd/rembak > >Should I just change the "host =" line? That sounds right, doesn't it? >Maybe I'll give it a try! Marko Yes, just change the host line. This will work. Steven |