Sponsored Content
Full Discussion: Lpstat
Operating Systems HP-UX Lpstat Post 302234698 by draco on Wednesday 10th of September 2008 06:13:07 AM
Old 09-10-2008
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.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

lpstat -t

When you do a lpstat -t it displays all your printers and tty values. Where is the file that stores this information in SCO 5.0.5? Thanks in advance Stufine (2 Replies)
Discussion started by: stufine
2 Replies

2. UNIX for Advanced & Expert Users

lpstat

Hi, I have been using Hp so far and I am a new user to Solaris.. well, in HP Unix, if I type 'lpstat' if gives me the list of printers connected to the network and their status.. but in solaris it only gives the details if there is any job on the queue. I just want to know what is the... (3 Replies)
Discussion started by: sskb
3 Replies

3. SCO

non root user can't use lpstat

I don't know if anyone still looks at this forum or not, but here goes. I've got two identical SCO OpenServer 5.0.7 machines, fully patched and updated. On one the non-root user can do lpstat -p and it will display a list of printers and their status, on the other: $ lpstat -p UX:lpstat: ERROR:... (3 Replies)
Discussion started by: checkpro
3 Replies

4. Shell Programming and Scripting

How to compare result lpstat with hostsfile

Hi there all, I got a long list of printers installed and a longer list of printers in my hosts file. In the hosts file I got a even longer list of printers in the hosts file I got the IP adress of all printers next to the printer name. How can I get a script working to get the printers... (0 Replies)
Discussion started by: draco
0 Replies

5. Shell Programming and Scripting

lpstat throughs warning

Hi Guys, I am geting this message ".status: (WARNING): 0781-102 Invalid printer name: xerox".i m reading printer name from a text file.i try to print the value reading from file is correct xerox. if run lpstat -pxerox -l it works fine but when i try to read from file it throughs warining.please... (1 Reply)
Discussion started by: sagii
1 Replies

6. Shell Programming and Scripting

lpstat

Hi, here is lpstat command with queue name. queue name is not valid but lpstat takes my local queue and shows the following results.is there any way that i can stop it after waring message and dont take local print queue. i would like to print a message that queue is not valid but when lpstat... (4 Replies)
Discussion started by: sagii
4 Replies

7. AIX

lpstat issues

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 (make a copy of the original before) 2. Copy the... (10 Replies)
Discussion started by: imad77
10 Replies

8. Solaris

Need help with lpstat command

Hi lpstat reports me "Failed to contact service for xxxxxx: not-found" lpstat -p test -l printer test unknown state. enabled since Oct 27 12:01 2009. available. Remote Name: XXXXXX Remote Server: sunsrv Failed to contact service for xxxxxx: not-found can someone help... (1 Reply)
Discussion started by: xtreams
1 Replies

9. UNIX for Advanced & Expert Users

lpstat ?

Hi, can somebody tell me what is the difference between `lpstat -s` and `lpstat -v` command. thanks. (3 Replies)
Discussion started by: anandgodse
3 Replies

10. UNIX for Dummies Questions & Answers

Lpstat output in mb?

Hi all, Newbie to the site here and fairly novice to UNIX\LINUX so please bear with me.:) My question is; can the lpstat -t command show the size of the print jobs in mb or gb instead of bytes? They would be much easier to view this way. For more information of what I'm on about; please... (1 Reply)
Discussion started by: Melikins
1 Replies
lpstat(1)							   User Commands							 lpstat(1)

NAME
lpstat - print information about the status of the print service SYNOPSIS
lpstat [-d] [-r] [-R] [-s] [-t] [-a [list]] [-c [list]] [-f [list]] [-o [list]] [-p [list] [-D]] [-S [list]] [-u [login- ID -list]] [-v [list]] [-l level] DESCRIPTION
The lpstat utility displays information about the current status of the LP print service to standard output. If no options are given, lpstat prints the status of all the user's print requests made by lp. See lp(1). Any arguments that are not options are assumed to be request-IDs as returned by lp. The lpstat command prints the status of such requests. options appears in any order and can be repeated and intermixed with other arguments. Some key letters can be followed by an optional list that can be in one of two forms: a list of items separated from one another by a comma, or a list of items separated from one another by spaces enclosed in quotes. For example: example% lpstat -u "user1 user2 user3" Specifying all after any key letter that takes list as an argument causes all information relevant to the key letter to be printed. For example, the command: example% lpstat -o all prints the status of all output requests. The omission of a list following such key letters causes all information relevant to the key letter to be printed. For example, the com- mand: example% lpstat -o prints the status of all output requests. The print client commands locate destination information using the "printers" database in the name service switch. See nsswitch.conf(4), printers(4), and printers.conf(4) for details. OPTIONS
The following options are supported: -a [list] Reports whether print destinations are accepting requests. list is a list of intermixed printer names and class names. If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information. -c [list] Prints name of all classes and their members. list is a list of class names. If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information. -d Prints the default destination for output requests. -f[list] [-l] Prints a verification that the forms in list are recognized by the LP print service. list is a list of forms; the default is all. The -l option lists the form descriptions. If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information. -l [level] specifies the verbosity level for extended reporting of printer or job objects (-o, -p, -r, -u). Without this option, a level of 0 is used, which reports summary information. When no level is specified, a level of 1is used, which provides more information about the object. A level of 2 or more enumerates all of the object's attributes. If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information. -o [list] Prints the status of output requests. list is a list of intermixed printer names, class names, and request-IDs. The key letter -o can be omitted. Specify printer and class names using atomic, URI-style (scheme://endpoint), or POSIX-style (server:destination) names. See printers.conf(4) for more information. -p [list] [-D] Prints the status of printers. list is a list of printer names. If the -D option is given, a brief description is printed for each printer in list. If the -l option is given and the printer is on the local machine, a full descrip- tion of each printer's configuration is returned, including the form mounted, the acceptable content and printer types, a printer description, and the interface used. -r Prints the status of the LP request scheduler. -R Prints a number showing the position of each request in the print queue. -s Prints a status summary, including the status of the LP scheduler, the default destination, a list of printers and their associated devices, a list of the machines sharing print services, a list of all forms currently mounted, and a list of all recognized character sets and print wheels. -S [list] Prints a verification that the character sets or the print wheels specified in list are recognized by the LP print service. Items in list can be character sets or print wheels; the default for the list is all. If the -l option is given, each line is appended by a list of printers that can handle the print wheel or character set. The list also shows whether the print wheel or character set is mounted, or specifies the built-in character set into which it maps. If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information. -t Prints all status information. This includes all the information obtained with the -s option, plus the acceptance and idle/busy status of all printers. -u [login-ID-list] Prints the status of output requests for users. The login-ID-list argument can include any or all of the following constructs: login-ID a user on any system system_name!login-ID a user on system system_name system_name!all all users on system system_name all!login-ID a user on all systems all all users on all systems -v [list] Prints the names of printers and the path names of the devices associated with them or remote system names for net- work printers. list is a list of printer names. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/etc/printers.conf System printer configuration database $HOME/.printers User-configurable printer database ou=printers LDAP version of /etc/printers.conf printers.conf.byname NIS version of /etc/printers.conf printers.org_dir NIS+ version of /etc/printers.conf ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWlp-cmds | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
cancel(1), lp(1), lpq(1B), lpr(1B), lprm(1B), nsswitch.conf(4), printers(4), printers.conf(4), attributes(5), standards(5) NOTES
For remote print queues, the BSD print protocol provides a very limited set of information. The Internet Print Protocol (IPP) is preferred. When IPP is in use, the user is prompted for a passphrase if the remote print service is configured to require authentication. SunOS 5.11 5 Jun 2006 lpstat(1)
All times are GMT -4. The time now is 11:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy