目录

简介

Nexus 3000

Nexus 5000/6000

Nexus 7000

Nexus 9000

简介

本文档列出了在TAC案例问题期间/之后从Nexus交换机收集的一组通用命令。

命令列表可以按照列出的方式粘贴到交换机CLI中，而无需进行任何更改。如果未实施相应功能，某些命令可能会出错。这是预期结果，不会引起任何问题。

如果您已主动将show tech附加到TAC案例，则可以忽略以下列表。

Nexus 3000

命令列表可以按照列出的方式粘贴到交换机CLI中，而无需进行任何更改。$(SWITCHNAME)将自动替换为主机名。

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

Nexus 5000/6000

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

Nexus 7000

！从管理VDC和相关VDC收集这些输出。

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

Nexus 9000

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