Overview
Provides practical examples of SNMP commands, such as snmpwalk and snmpget, that enable network administrators to retrieve and monitor SECY MIB data for MACsec-enabled interfaces.
The following commands enable network administrators to access and query SECY MIB data from a router using SNMP. These examples assume the SNMP community string is set to public and the device management IP address is 10.0.0.1.
Obtaining the MACsec Controlled Port Interface Index
-
To perform an SNMP walk on the entire SECY MIB:
snmpwalk -v2c -c public 10.0.0.1 1.0.8802.1.1.3 -
To query the secyTxSCTable and obtain the TxSCI value for interface Gi0/1/0/0 (where the ifindex for MACsecControlled0/1/0/0 is 18):
snmpget -v2c -c public 10.0.0.1 iso.0.8802.1.1.3.1.1.2.1.1.18
These SNMP query examples help administrators retrieve security-related MIB data for monitoring and management of router interfaces.