swL2macNotifyInfo
DGS3000-28SC-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.133.5.1.2.100.1.2.1.1
Object
scalar OctetString
This object indicates the information for the device MAC address changes. And the detailed information include:
Operation Code + MAC address + Box ID + Port Number + Zero...
Operation Code: 1, 2
1 means learned a new MAC address
2 means deleted a old MAC address.
Box ID: The switch box ID, for standalone device, it always 1.
Port Number: The port number learned or deleted for the box.
Zero: Used to separate each message(Operate Code + MAC address + Box ID + Port Number).
Context
- MIB
- DGS3000-28SC-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.133.5.1.2.100.1.2.1.1- Type
- scalar
- Access
- readonly
- Status
- current
- Parent
- swl2NotificationBidings
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DGS3000-28SC-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DGS3000-28SC-L2MGMT-MIB::swL2macNotifyInfo.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DGS3000-28SC-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DGS3000-28SC-L2MGMT-MIB::swL2macNotifyInfo'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-1024