error1-code
CLJ8550-MIB ·
.1.3.6.1.4.1.11.2.3.9.4.2.1.1.11.1.2
Object
Contains a device specific error code. Each device POS
should list what errors are logged to the error log and
the meaning of each supported error code value.
Additional information:
Contains a device specific error code. A value
of zero means 'no error'.
The error number is returned in the upper 16 bits.
If it is 68,69,79, or 80, then the sub code is returned
in the lower 16 bits (eg. 68 0019, where the subcode is
already a hexadecimal value).
If the error number is any other number, then the 1st
sub code (XX) will be in bits 15-8 and the 2nd sub
code (YY) will be in bits 7-0 (eg. 55.04.02) where
XX=04 and YY=02).
Example: If the error is 68 001A, then the value
returned will be 4456474.
To break it down: 4456474 = 0x0044001A
The upper 16 bits: 0x0044 = 68
The lower 16 bits: 0x001A = 001A
Which is the error: 68 001A
Example: If the error is 55.04.241, then the error code
will be 3605745.
To break it down: 3605745 = 0x003704F1
The upper 16 bits: 0x0037 = 55
The upper byte of the lower 16 bits: 0x04 = 04
The lower byte of the lower 16 bits: 0xF1 = 241
Which is the error: 55.04.241
ERROR1- is the oldest error in the log. Errors are
added until ERROR50- is reached. If more errors occur,
ERROR1- is replaced by moving all error entries
down one position and adding the newest error as
ERROR50-
Context
- MIB
- CLJ8550-MIB
- OID
.1.3.6.1.4.1.11.2.3.9.4.2.1.1.11.1.2- Type
- scalar
- Access
- readonly
- Status
- optional
- Parent
- error1
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 'CLJ8550-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CLJ8550-MIB::error1-code.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CLJ8550-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CLJ8550-MIB::error1-code'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647