читать дальше »
'job-settable-attributes-supported': [u'copies',
u'finishings',
u'job-hold-until',
u'job-name',
u'job-priority',
u'media',
u'media-col',
u'multiple-document-handling',
u'number-up',
u'output-bin',
u'output-mode',
u'orientation-requested',
u'page-ranges',
u'print-quality',
u'printer-resolution',
u'sides'],
'job-sheets-default': (u'none', u'none'),
'job-sheets-supported': [u'none',
u'classified',
u'confidential',
u'secret',
u'standard',
u'topsecret',
u'unclassified'],
'marker-change-time': 0,
'media-bottom-margin-supported': [423, 546],
'media-col-supported': [u'media-bottom-margin',
u'media-left-margin',
u'media-right-margin',
u'media-size',
u'media-source',
u'media-top-margin',
u'media-type'],
'media-default': u'iso_a4_210x297mm',
'media-left-margin-supported': [423, 635],
'media-right-margin-supported': [423, 635],
'media-source-supported': [u'auto',
u'manual'],
'media-supported': [u'iso_a6_105x148mm',
u'iso_a5_148x210mm',
u'jpn_hagaki_100x148mm',
u'om_double-postcard_148.16x200.02mm',
u'om_jb5_182.11x257.04mm',
u'na_executive_7.25x10.5in',
u'om_16k195x270_195.08x269.87mm',
u'om_16k184x260_184.15x259.99mm',
u'oe_16k197x273_7.75x10.75in',
u'na_letter_8.5x11in',
u'iso_a4_210x297mm',
u'oe_flsa_8.5x13in',
u'na_legal_8.5x14in',
u'na_monarch_3.875x7.5in',
u'iso_dl_110x220mm',
u'na_number-10_4.125x9.5in',
u'iso_c5_162x229mm',
u'om_env-b5_176.03x250.11mm',
u'custom_min_3x5in',
u'custom_max_17x36in'],
'media-top-margin-supported': [423, 546],
'media-type-supported': [u'stationery'],
'multiple-document-handling-supported': [u'separate-documents-uncollated-copies',
u'separate-documents-collated-copies'],
'multiple-document-jobs-supported': True,
'multiple-operation-time-out': 300,
'natural-language-configured': u'ru-ru',
'notify-attributes-supported': [u'printer-state-change-time',
u'notify-lease-expiration-time',
u'notify-subscriber-user-name'],
'notify-events-default': [u'job-completed'],
'notify-events-supported': [u'job-completed',
u'job-config-changed',
u'job-created',
u'job-progress',
u'job-state-changed',
u'job-stopped',
u'printer-added',
u'printer-changed',
u'printer-config-changed',
u'printer-deleted',
u'printer-finishings-changed',
u'printer-media-changed',
u'printer-modified',
u'printer-restarted',
u'printer-shutdown',
u'printer-state-changed',
u'printer-stopped',
u'server-audit',
u'server-restarted',
u'server-started',
u'server-stopped'],
'notify-lease-duration-default': 86400,
'notify-lease-duration-supported': (0,
2147483647),
'notify-max-events-supported': [100],
'notify-pull-method-supported': [u'ippget'],
'notify-schemes-supported': [u'dbus',
u'mailto',
u'rss'],
'number-up-default': 1,
'number-up-supported': [1, 2, 4, 6, 9, 16],
'operations-supported': [2,
4,
5,
6,
8,
9,
10,
11,
12,
13,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
34,
35,
37,
38,
16385,
16386,
16387,
16388,
16389,
16390,
16391,
16392,
16393,
16394,
16395,
16396,
16397,
16398,
16399,
16423],
'orientation-requested-default': None,
'orientation-requested-supported': [3,
4,
5,
6],
'output-bin-default': u'face-down',
'output-bin-supported': [u'face-down'],
'output-mode-default': u'color',
'output-mode-supported': [u'monochrome',
u'color'],
'page-ranges-supported': True,
'pages-per-minute': 1,
'pages-per-minute-color': 1,
'pdl-override-supported': [u'attempted'],
'port-monitor': u'none',
'port-monitor-supported': [u'none'],
'print-quality-default': 4,
'print-quality-supported': [3, 4],
'printer-commands': u'none',
'printer-current-time': '(IPP_TAG_DATE)',
'printer-error-policy': u'stop-printer',
'printer-error-policy-supported': [u'abort-job',
u'retry-current-job',
u'retry-job',
u'stop-printer'],
'printer-icons': u'http://localhost:631/icons/HP_LaserJet_Professional_M1212nf_MFP.png',
'printer-info': u'HP_LaserJet_Professional_M1212nf_MFP',
'printer-is-accepting-jobs': True,
'printer-is-shared': True,
'printer-location': u'',
'printer-make-and-model': u'HP LaserJet Professional m1212nf MFP, hpcups 3.11.5, requires proprietary plugin',
'printer-more-info': u'http://localhost:631/printers/HP_LaserJet_Professional_M1212nf_MFP',
'printer-name': u'HP_LaserJet_Professional_M1212nf_MFP',
'printer-op-policy': u'default',
'printer-op-policy-supported': [u'authenticated',
u'default'],
'printer-resolution-default': (300, 300, 3),
'printer-resolution-supported': [(300,
300,
3)],
'printer-settable-attributes-supported': [u'printer-info',
u'printer-location'],
'printer-state': 3,
'printer-state-change-time': 1315058871,
'printer-state-message': u'ready to print',
'printer-state-reasons': [u'none'],
'printer-type': 167948,
'printer-up-time': 1315058882,
'printer-uri-supported': [u'ipp://localhost:631/printers/HP_LaserJet_Professional_M1212nf_MFP'],
'queued-job-count': 1,
'server-is-sharing-printers': True,
'sides-default': u'one-sided',
'sides-supported': [u'one-sided'],
'uri-authentication-supported': [u'requesting-user-name'],
'uri-security-supported': [u'none']}}
Page 4 (Check PPD sanity):
{'cups_printer_ppd_defaults': {u'General': {u'ColorModel': u'Gray',
u'InputSlot': u'Auto',
u'MediaType': u'Plain',
u'OutputMode': u'Normal',
u'PageRegion': u'A4',
u'PageSize': u'A4'}},
'cups_printer_ppd_valid': True,
'missing_pkgs_and_exes': ([], [])}
Page 5 (Local or remote?):
{'printer_is_remote': False}
Page 6 (Printer state reasons):
{'printer-state-message': u'ready to print',
'printer-state-reasons': [u'none']}
Page 7 (Error log checkpoint):
{'cups_server_settings': {'BrowseLocalProtocols': 'CUPS dnssd',
'DefaultAuthType': 'Basic',
'Group': 'lp',
'MaxLogSize': '2000000',
'SystemGroup': 'lpadmin root',
'User': 'lp',
'_debug_logging': '0',
'_remote_admin': '1',
'_remote_any': '0',
'_remote_printers': '1',
'_share_printers': '1',
'_user_cancel_any': '0'},
'error_log_checkpoint': 247623L,
'error_log_debug_logging_set': True}
Page 8 (Print test page):
{'test_page_attempted': '03/\xd0\xa1\xd0\xb5\xd0\xbd/2011:17:09:59 +0000',
'test_page_job_id': [14],
'test_page_job_status': [(True,
14,
'HP_LaserJet_Professional_M1212nf_MFP',
'Test Page',
'\xd0\x9e\xd1\x81\xd1\x82\xd0\xb0\xd0\xbd\xd0\xbe\xd0\xb2\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xbe',
{'attributes-charset': u'utf-8',
'attributes-natural-language': u'ru-ru',
'document-count': 1,
'document-format': u'application/vnd.cups-banner',
'job-hold-until': u'no-hold',
'job-id': 14,
'job-k-octets': 1,
'job-media-progress': 0,
'job-media-sheets-completed': 1,
'job-more-info': u'ipp://localhost:631/jobs/14',
'job-name': u'Test Page',
'job-originating-host-name': u'localhost',
'job-originating-user-name': u'second',
'job-preserved': True,
'job-printer-state-message': u'/usr/lib/cups/filter/hpcups failed',
'job-printer-state-reasons': [u'none'],
'job-printer-up-time': 1315059021,
'job-printer-uri': u'ipp://localhost.localdomain:631/printers/HP_LaserJet_Professional_M1212nf_MFP',
'job-priority': 50,
'job-sheets': [u'none', u'none'],
'job-state': 6,
'job-state-reasons': u'job-stopped',
'job-uri': u'ipp://localhost:631/jobs/14',
'job-uuid': u'urn:uuid:a812a50a-2788-382f-5263-7c19890953e8',
'printer-uri': u'ipp://localhost/printers/HP_LaserJet_Professional_M1212nf_MFP',
'time-at-completed': None,
'time-at-creation': 1315058999,
'time-at-processing': 1315058999})],
'test_page_successful': False}
Page 9 (Error log fetch):
{'error_log': ['D [03/Sep/2011:17:09:55 +0300] cupsdSetBusyState: Dirty files',
'D [03/Sep/2011:17:09:55 +0300] cupsdReadClient: 10 POST / HTTP/1.1',
'D [03/Sep/2011:17:09:55 +0300] cupsdSetBusyState: Active clients and dirty files',
'D [03/Sep/2011:17:09:55 +0300] cupsdAuthorize: No authentication data provided.',
'D [03/Sep/2011:17:09:55 +0300] cupsdReadClient: 10 1.1 Get-Jobs 1',
'D [03/Sep/2011:17:09:55 +0300] Get-Jobs ipp://localhost/printers/',
'D [03/Sep/2011:17:09:55 +0300] [Job 13] Loading attributes...',
'D [03/Sep/2011:17:09:55 +0300] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost',
'D [03/Sep/2011:17:09:55 +0300] cupsdSetBusyState: Dirty files',
'D [03/Sep/2011:17:09:55 +0300] cupsdReadClient: 10 POST / HTTP/1.1',
'D [03/Sep/2011:17:09:55 +0300] cupsdSetBusyState: Active clients and dirty files',
'D [03/Sep/2011:17:09:55 +0300] cupsdAuthorize: No authentication data provided.',
'D [03/Sep/2011:17:09:55 +0300] cupsdReadClient: 10 1.1 Get-Jobs 1',
'D [03/Sep/2011:17:09:55 +0300] Get-Jobs ipp://localhost/printers/',
'D [03/Sep/2011:17:09:55 +0300] [Job 1] Loading attributes...',
'D [03/Sep/2011:17:09:55 +0300] [Job 9] Loading attributes...',
'D [03/Sep/2011:17:09:55 +0300] [Job 10] Loading attributes...',
'D [03/Sep/2011:17:09:55 +0300] [Job 11] Loading attributes...',
'D [03/Sep/2011:17:09:55 +0300] [Job 12] Loading attributes...',
'D [03/Sep/2011:17:09:55 +0300] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost',
'D [03/Sep/2011:17:09:55 +0300] cupsdSetBusyState: Dirty files',
'D [03/Sep/2011:17:09:55 +0300] cupsdReadClient: 10 POST / HTTP/1.1',
'D [03/Sep/2011:17:09:55 +0300] cupsdSetBusyState: Active clients and dirty files',
'D [03/Sep/2011:17:09:55 +0300] cupsdAuthorize: No authentication data provided.',
'D [03/Sep/2011:17:09:55 +0300] cupsdReadClient: 10 1.1 Create-Printer-Subscription 1',
'D [03/Sep/2011:17:09:55 +0300] Create-Printer-Subscription /',
'D [03/Sep/2011:17:09:55 +0300] cupsdCreateSubscription(con=0xb907ad60(10), uri="/")',
'D [03/Sep/2011:17:09:55 +0300] pullmethod="ippget"',
'D [03/Sep/2011:17:09:55 +0300] notify-lease-duration=86400',
'D [03/Sep/2011:17:09:55 +0300] notify-time-interval=0',
'D [03/Sep/2011:17:09:55 +0300] cupsdAddSubscription(mask=17800, dest=(nil)(), job=(nil)(0), uri="(null)")',
'D [03/Sep/2011:17:09:55 +0300] Added subscription 9 for server',
'D [03/Sep/2011:17:09:55 +0300] cupsdMarkDirty(-----S)',