qosPortType
ZELAX-MIB ·
.1.3.6.1.4.1.7840.2.1.100.11.1.2.1.2
Object
column r/w
Enumeration
the relation between qosPortType and CLI:
1 mls qos cos {<default-cos> };
0 mls qos trust {cos [pass-through-cos] [pass-through-dscp]|dscp [pass-through-cos] [pass-through-dscp]| ip-precedence [pass-through-cos] [pass-through-dscp] |port priority <cos> [pass-through-cos] [pass-through-dscp]} ;
2 mls qos dscp-mutation <dscp-mutation-name>;
3 priority-queue out.
According to the relation,when configurate qos with snmp,first set the qosPortType to the correct value to select CLI,
then set next CLI parameter.Fox example,set qos default cos is 5, first set qosPortType=1 ,then set qosPortCos to 5,
finally setting qosPortStatus to 1, trigger snmp-cache works.
Context
- MIB
- ZELAX-MIB
- OID
.1.3.6.1.4.1.7840.2.1.100.11.1.2.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- qosPortEntry
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 'ZELAX-MIB' -M '/opt/observium/mibs/zelax:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZELAX-MIB::qosPortType'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ZELAX-MIB' -M '/opt/observium/mibs/zelax:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZELAX-MIB::qosPortType.<qosPortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ZELAX-MIB' -M '/opt/observium/mibs/zelax:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ZELAX-MIB::qosPortType'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | trust |
1 | cos |
2 | dscpMutation |
3 | priorityQueueOut |