logIndex
LOG-MIB ·
.1.3.6.1.4.1.1038.105.5.1.1
Object
column Integer32
A unique value which identify a particular log entry. The index value cannot exced logCapacity and then returns to zero when the number of events exceds the capacity of equipement log table. Its value is : logIndex = <total number of event>%logCapacity. It is mandatory for the equipment to respond to get-next in anti-chronological order (youngest first) no matter to the index value. Get-next(LogEntry.logEntry) is logEntry.logIndex[logLastEvent]
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'LOG-MIB' -M '/opt/observium/mibs/sagemcom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'LOG-MIB::logIndex'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'LOG-MIB' -M '/opt/observium/mibs/sagemcom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'LOG-MIB::logIndex.<logIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'LOG-MIB' -M '/opt/observium/mibs/sagemcom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'LOG-MIB::logIndex'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-2147483647