hwNatSessionProtocol
HUAWEI-NAT-EXT-MIB ·
.1.3.6.1.4.1.2011.5.25.226.2.14.2.1.5
Object
column NATProtocolType
Index:the protocol of the nat session.
Context
- MIB
- HUAWEI-NAT-EXT-MIB
- OID
.1.3.6.1.4.1.2011.5.25.226.2.14.2.1.5- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwNatSessionEntry
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-NAT-EXT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-NAT-EXT-MIB::hwNatSessionProtocol'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-NAT-EXT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-NAT-EXT-MIB::hwNatSessionProtocol.<hwNatSessionSrcLocalAddr>.<hwNatSessionDstLocalAddr>.<hwNatSessionSrcLocalPort>.<hwNatSessionDstLocalPort>.<hwNatSessionProtocol>.<hwNatSessionSrcVPN>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-NAT-EXT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-NAT-EXT-MIB::hwNatSessionProtocol'
Syntax
- Source
- NATProtocolType
- Base type
Enumeration
Values & Constraints
Type Values
1 | other |
2 | icmp |
3 | udp |
4 | tcp |