atswitchPortState
ATSWTCH2-MIB ·
.1.3.6.1.4.1.207.8.10.3.1.1.7
Object
column mandatory
r/w
Enumeration
This attribute allows an administrative request to disable or enable communications on this port.It also responds with the status of the port .Except enabled(1) and disabled(2), all values are read-only status.
Context
- MIB
- ATSWTCH2-MIB
- OID
.1.3.6.1.4.1.207.8.10.3.1.1.7- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- atswitchPortEntry
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 'ATSWTCH2-MIB' -M '/opt/observium/mibs/allied-old:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ATSWTCH2-MIB::atswitchPortState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ATSWTCH2-MIB' -M '/opt/observium/mibs/allied-old:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ATSWTCH2-MIB::atswitchPortState.<atswitchPortNumber>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ATSWTCH2-MIB' -M '/opt/observium/mibs/allied-old:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ATSWTCH2-MIB::atswitchPortState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enabled |
2 | disabled |
3 | blocking |
4 | listening |
5 | learning |