• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Get list of not-completed jobs.
2#
3# Usage:
4#
5#   ./ipptool printer-uri get-jobs.test
6{
7	# The name of the test...
8	NAME "Get pending jobs"
9
10	# The operation to use
11	OPERATION Get-Jobs
12
13	# Attributes, starting in the operation group...
14	GROUP operation-attributes-tag
15	ATTR charset attributes-charset utf-8
16	ATTR language attributes-natural-language en
17	ATTR uri printer-uri $uri
18	ATTR keyword requested-attributes
19	     job-id,job-uri,job-state,job-state-reasons,job-name,job-originating-user-name,job-media-sheets,job-media-sheets-completed,job-impressions,job-impressions-completed
20
21	# What statuses are OK?
22	STATUS successful-ok
23
24	# What attributes to display
25	DISPLAY job-id
26	DISPLAY job-state
27	DISPLAY job-name
28	DISPLAY job-originating-user-name
29	DISPLAY job-impressions
30	DISPLAY job-impressions-completed
31	DISPLAY job-media-sheets
32	DISPLAY job-media-sheets-completed
33}
34