prtdevicerefindex
HP-LASERJET-COMMON-MIB ·
.1.3.6.1.4.1.11.2.3.9.4.2.2.5.3.1.2
Object
scalar mandatory
Integer32
The value of the hrDeviceIndex of the printer device that this
deviceEntry is associated with.
Refer to Standard Printer MIB for more details.
Additional information (mass storage) :
Constant. The index indicates the
hrDeviceIndex for this mass storage device. The value indicates
the hrDeviceIndex for the printer which uses this
mass storage device. Returns <noSuchName> status
if attempting to perform a Get on this OID with no
mass storage device installed.
Context
- MIB
- HP-LASERJET-COMMON-MIB
- OID
.1.3.6.1.4.1.11.2.3.9.4.2.2.5.3.1.2- Type
- scalar
- Access
- readonly
- Status
- mandatory
- Parent
- prtDeviceRefEntry
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HP-LASERJET-COMMON-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-LASERJET-COMMON-MIB::prtdevicerefindex.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HP-LASERJET-COMMON-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HP-LASERJET-COMMON-MIB::prtdevicerefindex'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-63