swSecondaryVlanType
PRIVATE-VLAN-MIB ·
.1.3.6.1.4.1.171.12.69.3.2.1.2
Object
An isolated VLAN is a secondary VLAN whose distinctive
characteristic is that all hosts connected to its ports are isolated at Layer 2.
A private VLAN has only one isolated VLAN. If the swPrivateVlanIsolatedVlanIndex
has a value of zero, this indicates there are no associated isolated VLANs in the private
VLAN domain. Otherwise, it is the associated isolated VLAN ID.
A community VLAN is a secondary VLAN that is associated with a
group of ports that connects to a certain 'community' of end devices with mutual
trust relationships. There can be multiple distinct community VLANs in a
private VLAN domain.
Context
- MIB
- PRIVATE-VLAN-MIB
- OID
.1.3.6.1.4.1.171.12.69.3.2.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- swSecondaryVlanEntry
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 'PRIVATE-VLAN-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PRIVATE-VLAN-MIB::swSecondaryVlanType'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PRIVATE-VLAN-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PRIVATE-VLAN-MIB::swSecondaryVlanType.<swPrivateVlanId>.<swSecondaryVlanId>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PRIVATE-VLAN-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PRIVATE-VLAN-MIB::swSecondaryVlanType'
Syntax
- Source
- SecondaryVlanType
- Base type
Enumeration
Values & Constraints
Type Values
1 | isolated |
2 | community |