hwLogRetentionSwitch

HUAWEI-SNMP-NOTIFICATION-MIB · .1.3.6.1.4.1.2011.6.30.23.1

Object

scalar r/w Enumeration
Enables or disables the function of automatically
deleting logs within the log retention period:
Options:   
1. enable(1) -indicates that disabling the automatic log deletion function.
2. disable(2)  -indicates that enabling the automatic log deletion function.
The default value is disable(2).

Context

MIB
HUAWEI-SNMP-NOTIFICATION-MIB
OID
.1.3.6.1.4.1.2011.6.30.23.1
Type
scalar
Access
readwrite
Status
current
Parent
hwLogRetention

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

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-SNMP-NOTIFICATION-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-SNMP-NOTIFICATION-MIB::hwLogRetentionSwitch.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-SNMP-NOTIFICATION-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-SNMP-NOTIFICATION-MIB::hwLogRetentionSwitch'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1enable
2disable