hwVlanIfDhcpsSubOptCode
HUAWEI-VLAN-MIB ·
.1.3.6.1.4.1.2011.5.6.1.2.1.27
Object
column r/w
Integer32
Indicates the sub-option code of DHCP server. Setting the node, this node must match with hwVlanIfDhcpsOptType. When the value is 0, it means setting option. When the value is not 0, it means setting sub-option. The rules ara as follow: 1.subOptCode == 0, optType can choose all the types. 2.subOptCode == 1, optType must be hex. 3.subOptCode == 2, optType must be ipAddress. 4.subOptCode == 3, optType must be ascii. 5.subOptCode == 4, optType must be cipher.
Context
- MIB
- HUAWEI-VLAN-MIB
- OID
.1.3.6.1.4.1.2011.5.6.1.2.1.27- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwVlanInterfaceEntry
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 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-VLAN-MIB::hwVlanIfDhcpsSubOptCode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-VLAN-MIB::hwVlanIfDhcpsSubOptCode.<hwVlanInterfaceID>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-VLAN-MIB::hwVlanIfDhcpsSubOptCode'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-254