Generate ELAM reports in both original and simplified formats to analyze packet forwarding information on modular switches.
The Cisco Application Policy Infrastructure Controller (APIC) 4.2(1) release introduces simplified, human-readable ELAM output. Only switch models with EX, FX, or FX2 at the end of the switch name support the simplified output. Use the following procedure for modular switches.
Procedure
-
Run the ELAM tool to collect the packet forwarding information.
The exact commands and parameters depend on your hardware.
-
Run the ereport command to create ELAM reports of the packet forwarding information in the original format and the simplified format.
Example:
module-1(DBG-elam-el6)# ereport
Python available. Continue ELAM decode with LC Pkg
ELAM REPORT
===============================================================
Trigger/Basic Information
===============================================================
ELAM Report File : /tmp/logs/elam_2019-09-04-51m-13h-30s.txt
.
.
.
module-1(DBG-elam-el6)# exit
module-1(DBG-elam)# exit
module-1# exit
apic1-leaf11# cd /tmp/logs
apic1-leaf11# ls | grep elam
elam_2019-09-04-51m-13h-30s.txt
pretty_elam_2019-09-04-51m-13h-30s.txt
apic1-leaf11#
ELAM saves the output files in the /tmp/logs/ directory. In the example, the elam_2019-09-04-51m-13h-30s.txt file is the ELAM report in the original format. The pretty_elam_2019-09-04-51m-13h-30s.txt file is the ELAM report in the simplified format. However, the simplified format file will be empty. You must perform additional steps to get the report in the simplified format.
-
Upload the original format ELAM report to the /bootflash directory on the supervisor.
In the example, this report is the elam_2019-09-04-51m-13h-30s.txt file.
-
Log in to the supervisor as admin.
-
Change the directory to /tmp, or any directory with write privileges for the admin user.
-
Run the decode_elam_parser command on the original format ELAM report.
Example:
# decode_elam_parser /bootflash/elam_2019-09-04-51m-13h-30s.txt
The decode_elam_parser command saves the simplified output file in the current directory.
The system generates both original format and simplified format ELAM reports, with the simplified report available for analysis in the current directory.