snSwPortVlanId
HP-SN-SWITCH-GROUP-MIB ·
.1.3.6.1.4.1.11.2.3.7.11.12.1.3.3.1.1.50
Object
column r/w
Integer32
The ID of a VLAN of which this port is a member. Port must be untagged. For tagged port which belongs to multiple VLANs, this object return 0 which is an invalid VLAN ID value.
Context
- MIB
- HP-SN-SWITCH-GROUP-MIB
- OID
.1.3.6.1.4.1.11.2.3.7.11.12.1.3.3.1.1.50- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- snSwPortInfoEntry
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 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-SN-SWITCH-GROUP-MIB::snSwPortVlanId'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-SN-SWITCH-GROUP-MIB::snSwPortVlanId.<snSwPortInfoPortNum>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HP-SN-SWITCH-GROUP-MIB::snSwPortVlanId'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-4095