Unix Technical Forum

AIX 4.3.3 and changed hostname in printer queue?

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 10:29 PM
Marko Hausalo
 
Posts: n/a
Default AIX 4.3.3 and changed hostname in printer queue?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 10:30 PM
LAIX Software Consulting
 
Posts: n/a
Default Re: AIX 4.3.3 and changed hostname in printer queue?


"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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 10:30 PM
Marko Hausalo
 
Posts: n/a
Default Re: AIX 4.3.3 and changed hostname in printer queue?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 10:31 PM
Steven Langdale
 
Posts: n/a
Default Re: AIX 4.3.3 and changed hostname in printer queue?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com