hwDhcpRelayMode
HUAWEI-DHCP-PROXY-MIB ·
.1.3.6.1.4.1.2011.5.18.1.17
Object
scalar r/w
Enumeration
Describes the current DHCP forwarding mode of the system. Options: 1. layer2(3) -indicates L2 mode 2. layer3(1) -indicates L3 mode Default: layer2(3)
Context
- MIB
- HUAWEI-DHCP-PROXY-MIB
- OID
.1.3.6.1.4.1.2011.5.18.1.17- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- hwDhcpMibObject
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 'HUAWEI-DHCP-PROXY-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-DHCP-PROXY-MIB::hwDhcpRelayMode.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-DHCP-PROXY-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-DHCP-PROXY-MIB::hwDhcpRelayMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | layer3 |
3 | layer2 |