MACsec Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

PDF

Use SNMP commands to access SECY MIB

Want to summarize with AI?

Log in

Overview

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

1.

Walk the entire SECY MIB subtree to enumerate all objects.

Example:

snmpwalk -v2c -c <community_string> <management_IP> 1.0.8802.1.1.3
2.

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>
3.

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
4.

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.