Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Thursday, September 4, 2014

Printer commands + HPUX

Printer commands:

First check whether addqueue command is available on system or not?

# swlist | grep JetDirect


     addqueue: method of creating queues for printers connected with HP                              JetDirect interface cards.


usages: addqueue [-c class] [-d] [-i printerID] -q queuename -h hostname [-p             port] [-s] [-r on/off] [-t on/off] [-b on/off] [-L                    PS/PCL/HPGL/HPGL2/AUTO] [-P 1/2/3] [-T 1/2/3] [-m banner papersize] [-D      on/off]

  #addqueue -q {kirprint}  -h {printer IP}  -i 9998

********************************

Here printer name is "kirprint"


1) #/usr/sbin/lpstat –tkirprint


  This will show the printer status and the queued jobs for this printer

2) #/usr/sbin/lpstat -okirprint

  This will give you the list of jobs queued for the printer


3) #banner TEST |lp -p 7 -d
kirprint|lpstat -okirprint


  Use this command to give test print,where
  p-- priority..here 7 has highest while 0 has lowest priority
  d-- destination printer name


4) #lpshut


   It will shutdown the lp spooler.


5) #lpsched


    It starts the lp spooler.The activity of the process is recorded in /var/adm/lp/log.


/var/spool/lp LP spooler system parent directory. All information about the
setup and printing queues is located here.


/var/spool/lp/request Destination queues. This is where all lp requests are queued. It usually contains a subdirectory for each printer configured
on the system.

6) After creating printer check the printer status by:

#lpstat -p{printer name}


Thanks...
Kiran Jadhav

**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment