Retreive SECY MIB data for MACsec interfaces by using SNMP commands.
Retrieve SECY MIB information from a device using SNMP commands.
You need to query SECY MIB data for MACsec interfaces on a device with SNMP enabled.
Before you begin
Ensure you have the correct SNMP community string, management IP address, and interface ifIndex.
Follow these steps to retrieve SECY MIB data:
Procedure
-
Walk the entire SECY MIB subtree to enumerate all objects.
Example:
snmpwalk -v2c -c <community_string> <management_IP> 1.0.8802.1.1.3
-
Query the TxSCI value for a specific interface using its ifIndex:
Example:
snmpget -v2c -c <community_string> <management_IP> iso.0.8802.1.1.3.1.1.2.1.1.<ifIndex>
-
Find the ifIndex of the MACsec controlled port by performing an SNMP walk on the IfMib:
Example:
snmpwalk -v2c -c <community_string> <management_IP> 1.3.6.1.2.1.31.1.1.1.1
-
Alternatively, use the show snmp interface command to display SNMP interface information:
You will obtain SECY MIB data and the interface index needed for targeted SNMP queries.