cancel-job

HP-Color-LaserJet-4500-MIB · .1.3.6.1.4.1.11.2.3.9.4.2.1.1.6.1.2

Object

scalar optional r/w Integer32
Cancels the print job whose ID matches the value written
to the CANCEL-JOB object.  The host first learns the job
ID using the CURRENT-JOB-PARSING-ID command.  If the
printer has completely processed the job, the printer
responds with <badValue>.  If the
value of the CURRENT-JOB-PARSING-ID is smaller than the
value written to the CANCEL-JOB object, then the printer
responds with <badValue>.  When
read, returns the value of the last job ID what was
canceled, or -1 to indicate no job has been canceled.
Additional information:
If the value written matches the ID of a job that is
currently being canceled (for any reason),
the printer responds with <noError>.  
LaserJet 4500 uses job ID's in the range of 0..32767.
Because the ID number can wrap to zero,
CURRENT-JOB-PARSING-ID may be smaller than the value
written to this object; when this occurs, no error
will result as long as the ID is for a currently
processing job.

Context

MIB
HP-Color-LaserJet-4500-MIB
OID
.1.3.6.1.4.1.11.2.3.9.4.2.1.1.6.1.2
Type
scalar
Access
readwrite
Status
optional
Parent
settings-job

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HP-Color-LaserJet-4500-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-Color-LaserJet-4500-MIB::cancel-job.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HP-Color-LaserJet-4500-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HP-Color-LaserJet-4500-MIB::cancel-job'

Syntax

Integer32

Values & Constraints

Object Constraints
range: 0-32767