swPortMirrorSourcePort
COMPAQ-L2MGMT-MIB ·
.1.3.6.1.4.1.232.161.3.2.2.2.1.2
Object
This object indicates the number of port to be sniffed. The port number is the sequential (logical) number which is also applied to bridge MIB, etc.
Context
- MIB
- COMPAQ-L2MGMT-MIB
- OID
.1.3.6.1.4.1.232.161.3.2.2.2.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- swPortMirrorCtrlEntry
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 'COMPAQ-L2MGMT-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'COMPAQ-L2MGMT-MIB::swPortMirrorSourcePort'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'COMPAQ-L2MGMT-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'COMPAQ-L2MGMT-MIB::swPortMirrorSourcePort.<swPortMirrorIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'COMPAQ-L2MGMT-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'COMPAQ-L2MGMT-MIB::swPortMirrorSourcePort'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647