device-config-token

HP-LASERJET-COMMON-MIB · .1.3.6.1.4.1.11.2.3.9.4.2.1.1.1.28

Object

scalar mandatory r/w OctetString
Provides an advisory locking mechanism for hosts to coordinate
exclusive access to a specific device or subset of device
capabilities. Setting the object to a unique id will only succeed
if the token is currently set to 0. The token is unlocked when it
is set to 0. If the token is set to a any value other than 0, then
token is locked. If the token was set to a unique id (locked),
then an attempt to set (lock) the token will fail. If the token
was set to 0 (unlocked), then an attempt to set (lock) the token
will succeed in locking the token. A get operation on
DEVICE-CONFIG-TOKEN will return its current setting. The device
does not prevent access to any objects. It is assumed that hosts
will be well behaved; respecting this advisory locking mechanism by:  
1) acquiring the lock before changing device config objects, and  
2) releasing the lock when done changing device config objects.
Additional information:
Provides an advisory locking mechanism for hosts to
coordinate exclusive access.  Setting the object to a unique id
will only succeed if the token is currently set to 0.  The token 
is unlocked when it is set to 0. If the token is set to a any
value other than 0, then token is locked.
          
If the token was set to a unique id (locked), then an 
attempt to set (lock) the token will fail.
          
If the token was set to 0 (unlocked), then an attempt to set (lock)
the token will succeed in locking the token.
          
A get operation on CONFIG-TOKEN will return its current setting.
The device does not prevent access to any objects.  It is assumed 
that hosts will be well behaved; respecting this advisory locking 
mechanism by:
1) acquiring the lock before changing CONFIG objects, and
2) releasing the lock when done changing CONFIG objects.

Context

MIB
HP-LASERJET-COMMON-MIB
OID
.1.3.6.1.4.1.11.2.3.9.4.2.1.1.1.28
Type
scalar
Access
readwrite
Status
mandatory
Parent
settings-system

Scalars 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::device-config-token.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::device-config-token'

Syntax

OctetString

Values & Constraints

Enumerated Values
1eValue1