The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This document lists the generic set of commands to collect from the Nexus switches during/after an issue for TAC cases.
The command list can be pasted to the switch cli exactly as listed without any changes. Certain commands may error out if the corresponding features are not implemented. This is expected outcome and will not cause any issues.
If you have proactively attached a show tech to the TAC case then you can ignore the below list.
The command list can be pasted to the switch cli exactly as listed without any changes. $(SWITCHNAME) will be automatically replaced with the hostname.
echo 'show clock' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show clock >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show inventory' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show inventory >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show version' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show version >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show module >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show run' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show run >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show logging log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show logging log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show log nvram' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show log nvram >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show accounting log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show accounting log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cdp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show cdp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show lldp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show lldp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show copp status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show copp status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show policy-map interface control-plane' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show policy-map interface control-plane >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show hardware rate-limiter' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show hardware rate-limiter >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show system reset-reason' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show system reset-reason >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show span summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show span summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vpc' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vpc >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show int status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show int status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show port-channel summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show port-channel summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip int bri vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip int bri vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cores' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show cores >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show diagnostic result mod all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show diagnostic result mod all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip route vrf all summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip route vrf all summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show mac address-table count' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show mac address-table count >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vlan summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vlan summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module internal exceptionlog' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show module internal exceptionlog >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes cpu history' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes cpu history >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes memory sort' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes memory sort >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show interface counters errors' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show interface counters errors >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show fex' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show fex >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show license usage' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show license usage >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip eigrp neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip eigrp neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip ospf neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip ospf neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip bgp vpnv4 vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip bgp vpnv4 vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'dir logflash:' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; dir logflash: >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
!zip the file
gzip $(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show clock' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show clock >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show inventory' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show inventory >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show version' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show version >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show module >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show run' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show run >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show logging log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show logging log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show log nvram' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show log nvram >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show accounting log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show accounting log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cdp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show cdp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show lldp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show lldp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show copp status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show copp status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show policy-map interface control-plane' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show policy-map interface control-plane >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show hardware rate-limiter' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show hardware rate-limiter >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show system reset-reason' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show system reset-reason >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show span summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show span summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vpc' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vpc >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show int status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show int status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show port-channel summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show port-channel summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip int bri vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip int bri vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cores' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show cores >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show diagnostic result mod all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show diagnostic result mod all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip route vrf all summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip route vrf all summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show mac address-table count' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show mac address-table count >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vlan summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vlan summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module internal exceptionlog' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show module internal exceptionlog >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes cpu history' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes cpu history >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes memory sort' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes memory sort >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show interface counters errors' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show interface counters errors >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show fex' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show fex >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show license usage' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show license usage >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip eigrp neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip eigrp neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip ospf neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip ospf neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip bgp vpnv4 vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip bgp vpnv4 vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'dir logflash:' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; dir logflash: >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
!zip the file
gzip $(SWITCHNAME)_cmds_for_tac_case.txt
!COLLECT THESE OUTPUTS FROM THE ADMIN VDC AND THE VDC IN QUESTION.
echo 'show clock' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show clock >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show inventory' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show inventory >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show version' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show version >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show module >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show run' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show run >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show logging log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show logging log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show log nvram' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show log nvram >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show accounting log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show accounting log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cdp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show cdp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show lldp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show lldp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show copp status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show copp status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show policy-map interface control-plane' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show policy-map interface control-plane >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show hardware rate-limiter' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show hardware rate-limiter >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show system reset-reason' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show system reset-reason >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show span summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show span summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vpc' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vpc >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show int status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show int status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show port-channel summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show port-channel summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip int bri vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip int bri vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cores' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show cores >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show diagnostic result mod all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show diagnostic result mod all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip route vrf all summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip route vrf all summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show mac address-table count' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show mac address-table count >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vlan summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vlan summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module internal exceptionlog' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show module internal exceptionlog >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes cpu history' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes cpu history >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes memory sort' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes memory sort >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show interface counters errors' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show interface counters errors >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show fex' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show fex >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show license usage' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show license usage >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip eigrp neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip eigrp neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip ospf neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip ospf neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip bgp vpnv4 vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip bgp vpnv4 vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'dir logflash:' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; dir logflash: >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vdc' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vdc >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
!zip the file
gzip $(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show clock' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show clock >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show inventory' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show inventory >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show version' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show version >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show module >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show run' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show run >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show logging log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show logging log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show log nvram' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show log nvram >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show accounting log' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show accounting log >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cdp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show cdp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show lldp nei' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show lldp nei >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show copp status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show copp status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show policy-map interface control-plane' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show policy-map interface control-plane >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show hardware rate-limiter' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show hardware rate-limiter >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show system reset-reason' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show system reset-reason >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show span summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show span summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vpc' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vpc >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show int status' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show int status >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show port-channel summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show port-channel summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip int bri vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip int bri vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show cores' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show cores >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show diagnostic result mod all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show diagnostic result mod all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip route vrf all summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip route vrf all summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show mac address-table count' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show mac address-table count >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show vlan summary' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show vlan summary >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show module internal exceptionlog' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show module internal exceptionlog >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes cpu history' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes cpu history >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show processes memory sort' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show processes memory sort >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show interface counters errors' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show interface counters errors >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show fex' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show fex >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show license usage' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; Show license usage >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip eigrp neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip eigrp neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip ospf neighbor vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip ospf neighbor vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'show ip bgp vpnv4 vrf all' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; show ip bgp vpnv4 vrf all >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
echo 'dir logflash:' >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt ; dir logflash: >> bootflash:$(SWITCHNAME)_cmds_for_tac_case.txt
!zip the file
gzip $(SWITCHNAME)_cmds_for_tac_case.txt