![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| non root user can't use lpstat | checkpro | SCO | 3 | 09-10-2008 10:47 AM |
| lpstat gives segmentation coredump error | cksriramchandra | SUN Solaris | 8 | 09-17-2007 08:22 AM |
| lpstat | sskb | UNIX for Advanced & Expert Users | 3 | 02-21-2003 10:00 AM |
| lpstat -t | stufine | UNIX for Dummies Questions & Answers | 2 | 08-06-2002 05:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Lpstat
Hi there all..
I got 4 HP ux systems and 4 AIX systems here. when I let LPSTAT make a report in aix with -W I get a really nice report. Example: Queue Dev Status Job Files User PP % Blks Cp Rnk -------------------- -------------- --------- ------ ------------------ ---------- ---- --- ----- --- --- stapr008 hp@150 READY stapr309 hp@150 READY stapr156 hp@150 READY stapr046 hp@150 READY stapr196 hp@150 READY Is there a way to get the same report look from AIX but than in my HP UX systems? So I can make a nice script around it that will work on both the systems? Thanks in advance! |
|
|||||
|
Just in case you believe HPUX are not as good AIX when it comes to printing, this box serves as OLTP and print server and FTP server and.... and it old and works fine (HPUX10.20...)
Code:
mos:/home/vbe $ model;lpstat -p|grep -v fence
9000/800/K580
printer B001_LJ4000 is idle. enabled since Dec 14 12:58
printer B002_LJ4050 is idle. enabled since Dec 14 12:58
printer B003_LJ4050 is idle. enabled since Dec 14 12:58
printer B006A_LJ2300DN is idle. enabled since Dec 14 12:58
printer B006B_LJ2300DN is idle. enabled since Dec 14 12:58
printer B006C_LJ2300DN is idle. enabled since Dec 14 12:58
printer B006_DJ1220C is idle. enabled since Dec 14 12:58
printer B006_LJ4000N now printing B006_LJ4000N-1292. enabled since Dec 14 12:58
printer B007_LJ2200D is idle. enabled since Dec 14 12:58
printer B008_LJ4000N is idle. enabled since Dec 14 12:58
printer B010_LJ2300DN is idle. enabled since Dec 14 12:58
printer B010_LJ4000N is idle. enabled since Dec 14 12:58
printer B019_LJ4100N is idle. enabled since Dec 14 12:58
printer B020_LJ2300DN is idle. enabled since Dec 14 12:58
printer B021_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B022_LJ2300DN is idle. enabled since Dec 14 12:58
printer B023_LJ2300DN is idle. enabled since Dec 14 12:58
printer B024_LJ2300DN is idle. enabled since Dec 14 12:58
printer B025_LJ2300DN is idle. enabled since Dec 14 12:58
printer B026_LJ2300DN is idle. enabled since Dec 14 12:58
printer B028_LJ4000N is idle. enabled since Dec 14 12:58
printer B118_LJ2300DN is idle. enabled since Dec 14 12:58
printer B119_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B120_LJ2200D is idle. enabled since Dec 14 12:58
printer B122_LJ4100N is idle. enabled since Dec 14 12:58
printer B123_LJ2300DN is idle. enabled since Dec 14 12:58
printer B127_LJ2300DN is idle. enabled since Dec 14 12:58
printer B130_DJ1220C is idle. enabled since Dec 14 12:58
printer B131_LJ2300DN is idle. enabled since Dec 14 12:58
printer B132_LJ2300DN is idle. enabled since Dec 14 12:58
printer B135_IS2145 is idle. enabled since Dec 14 12:58
printer B138_DJ2500C is idle. enabled since Dec 14 12:58
printer B139_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B142_LJ4100N is idle. enabled since Dec 14 12:58
printer B143_LJ4050 is idle. enabled since Dec 14 12:58
printer B144_LJ2300DN is idle. enabled since Dec 14 12:58
printer B191_DJ2500C is idle. enabled since Dec 14 12:58
printer B191_LJ4000 is idle. enabled since Dec 14 12:58
printer B192_LJ2300DN is idle. enabled since Dec 14 12:58
printer B193_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B194_LJ4050 is idle. enabled since Dec 14 12:58
printer B194_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B195_LJ4000 is idle. enabled since Dec 14 12:58
printer B195_LJ4100N is idle. enabled since Dec 14 12:58
printer B196_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B197_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B197_LJ4100N is idle. enabled since Dec 14 12:58
printer B214_LJ2300DN is idle. enabled since Dec 14 12:58
printer B214_LJ4100N is idle. enabled since Dec 14 12:58
printer B215_LJ2300DN is idle. enabled since Dec 14 12:58
printer B216_LJ2300DN is idle. enabled since Dec 14 12:58
printer B216_LJ4000N is idle. enabled since Dec 14 12:58
printer B217_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B218_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B219_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B220_LJ4000 is idle. enabled since Dec 14 12:58
printer B221_LJ4100N is idle. enabled since Dec 14 12:58
printer B222_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B223_LJ2300DN is idle. enabled since Dec 14 12:58
printer B226_LJ4000N is idle. enabled since Dec 14 12:58
printer B226_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B227_LJ4000N is idle. enabled since Dec 14 12:58
printer B228_LJ4100DTN is idle. enabled since Dec 14 12:58
printer B230_LJ4100N is idle. enabled since Dec 14 12:58
printer B231_LJ8000 is idle. enabled since Dec 14 12:58
printer B232_LJ4050 is idle. enabled since Dec 14 12:58
printer B233_LJ4050 is idle. enabled since Dec 14 12:58
printer B235_LJ4100N is idle. enabled since Dec 14 12:58
printer B236_LJ4100N is idle. enabled since Dec 14 12:58
printer B237_LJ4050 is idle. enabled since Dec 14 12:58
printer B238_LJ4050 is idle. enabled since Dec 14 12:58
printer B239_LJ2300D is idle. enabled since Dec 14 12:58
printer B244_LJ4050 is idle. enabled since Dec 14 12:58
printer B245_LJ2100 is idle. enabled since Dec 14 12:58
printer B247_LJ2300D is idle. enabled since Dec 14 12:58
printer B247_LJ4000N is idle. enabled since Dec 14 12:58
printer B248_LJ4000N is idle. enabled since Dec 14 12:58
printer B250_LJ4050 is idle. enabled since Dec 14 12:58
printer lpvbe is idle. enabled since Dec 14 12:58
printer xerox1 disabled since Dec 14 13:00 -
reason unknown
printer xerox2 is idle. enabled since Dec 14 12:58
printer xerox3 is idle. enabled since Dec 14 12:58
printer B246_LJ4000N is idle. enabled since Jun 27 10:53
Last edited by jim mcnamara; 09-08-2008 at 06:50 PM.. |
|
||||
|
I do believe HPUX is really good
THe thing is I build a script for a service dest to release print jobs on a AIX system that they can use really easy. But I also want to use the same script on the HPUX. But than I need a report looking like the 1 I get from the command lpstat -W (on AIX) I am running HPUX 11iv1 My reports are same as VBE. And I really cant use that on the same script.. I need to have the printers on the HPUX also be able to get released by the service desk from out of a script with options so they never get logged in a shell it self. |
|
|||||
|
You wont get the same since "ready" in aix = " idle " in hpux...
If you want a unique script you would have to test the OS and send the good command... But if I understand your request, you could do things the other way round: filter on "disabled" ( common to both...) |
|
|||||
|
I just noted your option -W (not w...) I dont have it on all aix 4.X.X... (?). my apologies
And looking through I dont see how you could get the same output... If I understand well you have regularly jobs being blocked on you aix box which require someone to enable the printer again ( if not the spoooler itself) is that so? If so welcome to the club! |
|
||||
|
Ghehhe thanks..
Yea I made a script for the service desk withoud a shell they can use on the AIX servers to disable/enable and remove print jobs.. That works fine now. Just made with some help from here that they can never get in to the shell on that account. But yea how to get the same results on the HPUX (the print thiny that is) And yea all kind of jobs with the printers. If you want a copy of the script let me know and I will post it. I have to warn ya, the visual is dutch written at the moment. But I can change it if you like to english. |
![]() |
| Bookmarks |
| Tags |
| linux commands, unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|