AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  lpstat issues

    Posted Mon August 24, 2009 11:48 AM

    Originally posted by: Imad77


    Hi,
    I tried to migrate a server, I installed AIX on a new server and I
    want to configure the printer queues. I copied all of files from the
    old server where the printer queues are working fine. I followed these
    steps:

    1. copy the /etc/qconfig
    2. Copy the following files:
    /var/spool/lpd/pio/@local/custom/*
    /var/spool/lpd/pio/@local/dev/*
    /var/spool/lpd/pio/@local/ddi/*
    3. change the permissions on the copied files to 664
    chmod 664 filename
    chgrp printq filename
    4. cycle the printer subsystem
    stopsrc -s qdaemon
    startsrc -s qdaemon
    When I check the services, I get this result:
    #lssrc -s qdaemon
    Subsystem Group PID Status
    qdaemon spooler 494536 active
    #lpstat
    Queue Dev Status
    -----

    trav1 hp@lp UNKNOWN
    WHen I check in this directory "ls /var/spool/lpd/stat/", I got this
    result:
    "s.trav1."
    It should be "s.trav1.hp@lptrav", the device name is missing.
    Here is the part of the configuration in /etc/qconfig:
    trav1:
    device = hp@lptrav
    hp@lptrav:
    file = /var/spool/lpd/pio/@local/dev/
    hp@lptrav#hpJetDirect#9100
    header = never
    trailer = never
    access = both
    backend = /usr/lib/lpd/pio/etc/piojetd lptrav 9100
    I can ping lptrav printer. I have this issue for all queues.
    How can I resolve this issue to be able to associate the queue name to
    the device name and how can I get the READY status instead UNKNOWN
    status in lpstat command?
    Thanks,
    Haydar


  • 2.  Re: lpstat issues

    Posted Tue August 25, 2009 01:00 PM

    Originally posted by: alethad


    You haven't updated the ODM yet. I haven't done this in a long time and only remember bits of what I did but it was similar to plan A. But if you google this topic here is how some others have done it. Not knowing what your system configuration is, review it and see if either will work for you. If there is a way you can test it first then you should.

    Plan A http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/aix-printer-migration-53-945834

    Plan B http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/migration-of-printer-queues-between-machines-1543084
    Hope this helps.


  • 3.  Re: lpstat issues

    Posted Tue August 25, 2009 01:57 PM

    Originally posted by: Imad77


    Hi,

    I tried both links and I get the same issue. It cannot link the queues and the devices.