University Systems --> LPCR - Print Accounts --> --> LPCR Information for Staff --> Print status with qstat -->

Print status with qstat

qstat [-alsv] [-q queue]


Description

See also the qstat man page.

Use qstat to print out the status of mdqs queues.

What is it used for?

Qstat is useful for figuring out whether a user's job is in the queue. It's also useful for discovering why/if jobs are taking a long time to print (e.g. the queue may be very long, or a very large job might be printing out).

qstat may give the first indication that something is wrong with a printer (e.g. a queue might have an abnormally long waiting list, which prompts you to use hpstat to check the status of the printer).

Option descriptions/example outputs

default behavior

If you call qstat with no options listed it will give the status for the queues on the spooler for the printer that is listed in the environment variable $PRINTER. Qstat looks at $PRINTER to determine which spooler to connect to. If $PRINTER is not set it tries to connect to the local host.

prompt:~% unsetenv PRINTER
prompt:~% setenv PRINTER hornbake
prompt:~% qstat
Active Devices:
pg2-hp2         mdqs.14262    

Queued Requests:
cville          mdqs.13267      Held
hornbake        mdqs.14227      Delayed
hornbake        mdqs.14241      Delayed
hornbake        mdqs.14244      Delayed
pg2             mdqs.14259      Delayed
pg2             mdqs.14262    

Delayed Requests:

-l

use the -l option to print out lengthy information

prompt:~% qstat -l
Dev/Que   Request    User              File           Pri Size Submitted
Active Devices:
hornbake-hp2 mdqs.14241 mac01ugli@mac01ug wam.umd.edu 8   64  89k Jan  5 13:55

Queued Requests:
cville    mdqs.13267 sheilah@neobank.u test            64   1k  Held
hornbake  mdqs.14227 mac01ugli@mac01ug wam.umd.edu 8   64  89k  Delayed Jan  5 13:46
hornbake  mdqs.14241 mac01ugli@mac01ug wam.umd.edu 8   64  89k Jan  5 13:55
hornbake  mdqs.14244 mac01ugli@mac01ug wam.umd.edu 8   64  89k  Delayed Jan  5 13:56

Delayed Requests:
prompt:~%

-q queue

Use the -q option to list queued requests for the specified queue.

prompt:~% qstat -q hornbake

Queued Requests:
hornbake        mdqs.14227      Delayed
hornbake        mdqs.14241      Delayed
hornbake        mdqs.14244    

Delayed Requests:
prompt:~%

Details

What does each section of the output represent?

Active Devices

This section of the output lists all jobs currently being printed

Queued Requests

This section lists all jobs currently held in queue

Job descriptions

Default listing

the short job listing

hornbake        mdqs.14227

lists the

queue the job is in, and gives the process id (pid) of the job. It also lists whether the job is being held or delayed.

long listing

the long job listing

hornbake  mdqs.14241 mac01ugli@mac01ug wam.umd.edu 8   64  89k Jan  5 13:55

lists the queue, pid, user, priority number (usually 64), size, and a timestamp. It also lists whether the job is held or delayed.

The user field changes according to platform and lab configuration. On unix machines the user will be the login id of the user and the machine name that the user submitted the job from. On most Macs and PC's the user will be the lab number of the machine. On PC's with an old lab configuration, the user field is not used.

How do I:
How are we doing? Comments on this page?
Office of Information Technology
Office of Information Technology Help Desk Web Site University of Maryland Web Site Office of Information Technology Web Site