1 Goal is to write replacement SafeQ using cups and samba
3 For now, first goal is to support SafeQ terminal protocol so we can re-use devices not supported
4 by vendor any more. We are also annoyed by SafeQ "feature" which doesn't allow us to use scanning
5 if Xerox runs out of toner. This is arbitrary limitation which cripples this setup for us.
8 ./debian-install.sh # will install required Debian packages
11 We have old Xerox WorkCentre 5225 and 7232 machines (from 2008) and getting active jobs or
12 history is supported by web interface which is scraped and javascript variables inside
15 ./xwc-jobs.pl 10.60.3.35 # list active jobs on Xerox WorkCentre 5225 by scraping web
16 ./xwc-jobs.pl 10.60.3.35 list
18 ./xwc-jobs.pl 10.60.3.35 hist # list completed jobs
20 Script produces tab delimited output, but if you want to format it nicely you can always use
21 SEP enviroment variable to specify sparator and column to format it. This is included in
22 xwc-jobs helper shell script which is useful for interactive use:
24 dpavlin@t42:~/safeq$ ./xwc-jobs 10.60.3.35
25 IP id Job Name Owner Status Type Quantity
26 10.60.3.35 00015c2c - 10.60.3.10 3:User Action 1:Print 0
27 10.60.3.35 00015c2f Test Page root 3:User Action 1:Print 0
28 10.60.3.35 00015c32 - 10.60.3.10 3:User Action 1:Print 0
31 You can delete job using:
33 dpavlin@t42:~/safeq$ curl -XPOST -d OPR=CANCEL -d JOBS=00015c32/ http://10.60.3.35/JOBCTRL.cmd
35 or use d[elete] or c[ancel] aruguments and job id(s):
37 dpavlin@t42:~/safeq$ ./xwc-jobs 10.60.3.35 d 00015c41
38 10.60.3.35 00015c41 CANCEL REQUEST: ACCEPTED
41 When sending jobs via lpr to Xerox using ipp configured in cups we see -T as job name and -U as owner:
43 dpavlin@t42:~/safeq$ ./xwc-jobs
44 IP id Job Name Owner Status Type Quantity
45 10.60.3.35 00015c47 lpr-T lpr-U 3:User Action 1:Print 0
47 When sending jobs directly to printer using rlpr we see different flags:
49 dpavlin@t42:~/safeq$ rlpr -H 10.60.3.35 -U lpr-U -P XWC5225-5KatL -C lpr-C -J lpr-J -T lpr-T /usr/share/doc/printer-driver-foo2zjs/manual.pdf
51 dpavlin@t42:~/safeq$ ./xwc-jobs IP id Job Name Owner Status Type Quantity
52 10.60.3.35 00015c50 lpr-J lpr-U 3:User Action 1:Print 0