hwTrapSourceType
HUAWEI-SNMPTrap-MIB ·
.1.3.6.1.4.1.2011.6.3.14.2
Object
scalar r/w
Enumeration
The type of the source interface of sending trap.
Options:
1. auto(1) -auto type. If it is set to auto(1), the information about the trap source interface
previously set in the system is cleared.
2. meth(2) -meth type.
3. vlanif(3)-vlanif type.
If it is set to meth(2) or vlanif(3), you also need to set hwInterfaceNumber,
in order to complete the information of the source interface of sending trap.
If the specified trap source interface does not exist, setting the trap source interface fails.
Context
- MIB
- HUAWEI-SNMPTrap-MIB
- OID
.1.3.6.1.4.1.2011.6.3.14.2- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- hwSNMPTrapCommunity
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-SNMPTrap-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-SNMPTrap-MIB::hwTrapSourceType.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-SNMPTrap-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-SNMPTrap-MIB::hwTrapSourceType'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | auto |
2 | meth |
3 | vlanif |