agentPortSecurityMACAddressAdd
PORTSECURITY-PRIVATE-MIB ·
.1.3.6.1.4.1.7244.2.20.1.2.1.8
Object
This MIB variable accepts a VLAN id and MAC address to be added to the list of statically locked MAC addresses on a port. The VLAN id and MAC address combination would be entered in a particular fashion like :- 2 a0:b0:c0:d1:e2:a1(the vlan-id and MAC address separated by a blank-space).
Context
- MIB
- PORTSECURITY-PRIVATE-MIB
- OID
.1.3.6.1.4.1.7244.2.20.1.2.1.8- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- agentPortSecurityEntry
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 'PORTSECURITY-PRIVATE-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PORTSECURITY-PRIVATE-MIB::agentPortSecurityMACAddressAdd'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PORTSECURITY-PRIVATE-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PORTSECURITY-PRIVATE-MIB::agentPortSecurityMACAddressAdd.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PORTSECURITY-PRIVATE-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PORTSECURITY-PRIVATE-MIB::agentPortSecurityMACAddressAdd'
Syntax
- Source
- RFC1213-MIBDisplayString
- Base type
OctetString
Values & Constraints
No enumerated values or constraints recorded.