Reference Guide

676 | Simple Network Management Protocol
www.dell.com | support.dell.com
Enable and Disable a Port using SNMP
Fetch Dynamic MAC Entries using SNMP
In Figure 37-22, R1 has one dynamic MAC address, learned off of port GigabitEthernet 1/21, which a
member of the default VLAN, VLAN 1. The SNMP walk returns the values for dot1dTpFdbAddress,
dot1dTpFdbPort, and dot1dTpFdbStatus.
Each object is comprised an OID concatenated with an instance number. In the case of these objects, the
instance number is the decimal equivalent of the MAC address; derive the instance number by converting
each hex pair to its decimal equivalent. For example, the decimal equivalent of E8 is 232, and so the
instance number for MAC address 00:01:e8:06:95:ac is .0.1.232.6.149.172.
The value of dot1dTpFdbPort is the port number of the port off which the system learns the MAC address.
In this case, of GigabitEthernet 1/21, the manager returns the integer 118. The maximum line card port
density on the E-Series is 96 ports, and line card numbering begins with 0; GigabitEthernet 1/21 is the 21st
port on Line Card 1, and 96 + 21 yields 118.
Step Task Command Syntax Command Mode
1 Create an SNMP community on the Dell Networking
system.
snmp-server community
CONFIGURATION
2 From the Dell Networking system, identify the interface
index of the port for which you want to change the admin
status. Or, from the management system, use the
snmpwwalk command to identify the interface index.
show interface
EXEC Privilege
3 Enter the command
snmpset to change the admin status using either the object descriptor or the OID. Choose
integer 1 to change the admin status to Up, or 2 to change the admin status to Down.
snmpset with descriptor:
snmpset -v version -c community agent-ip ifAdminStatus.ifindex i {1 | 2}
snmpset with OID:
snmpset -v version -c community agent-ip .1.3.6.1.2.1.2.2.1.7.ifindex i {1 | 2}
Table 37-6. MIB Objects for Fetching Dynamic MAC Entries in the Forwarding Database
MIB Object OID Description MIB
dot1dTpFdbTable .1.3.6.1.2.1.17.4.3 List the learned unicast MAC addresses on the default VLAN. Q-BRIDGE MIB
dot1qTpFdbTable .1.3.6.1.2.1.17.7.1.2.2 List the learned unicast MAC addresses on non-default VLANs.
dot3aCurAggFdbTable .1.3.6.1.4.1.6027.3.2.1.1.5 List the learned MAC addresses of aggregated links (LAG). F10-LINK-AGGREGATION-MIB