El conjunto de documentos para este producto aspira al uso de un lenguaje no discriminatorio. A los fines de esta documentación, "no discriminatorio" se refiere al lenguaje que no implica discriminación por motivos de edad, discapacidad, género, identidad de raza, identidad étnica, orientación sexual, nivel socioeconómico e interseccionalidad. Puede haber excepciones en la documentación debido al lenguaje que se encuentra ya en las interfaces de usuario del software del producto, el lenguaje utilizado en función de la documentación de la RFP o el lenguaje utilizado por un producto de terceros al que se hace referencia. Obtenga más información sobre cómo Cisco utiliza el lenguaje inclusivo.
Cisco ha traducido este documento combinando la traducción automática y los recursos humanos a fin de ofrecer a nuestros usuarios en todo el mundo contenido en su propio idioma. Tenga en cuenta que incluso la mejor traducción automática podría no ser tan precisa como la proporcionada por un traductor profesional. Cisco Systems, Inc. no asume ninguna responsabilidad por la precisión de estas traducciones y recomienda remitirse siempre al documento original escrito en inglés (insertar vínculo URL).
Este documento enumera el conjunto genérico de comandos para recolectar de los switches Nexus durante/después de un problema para casos TAC.
La lista de comandos se puede pegar en el cli del switch exactamente como se muestra sin ningún cambio. Ciertos comandos pueden saltar por error si no se implementan las funciones correspondientes. Esto es un resultado esperado y no causará problemas.
Si ha adjuntado de forma proactiva un show tech al caso TAC, puede ignorar la siguiente lista.
La lista de comandos se puede pegar en el cli del switch exactamente como se muestra sin ningún cambio. $(SWITCHNAME) se reemplazará automáticamente por el nombre de host.
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
!RECOPILE ESTAS SALIDAS DEL VDC DE ADMINISTRACIÓN Y DEL VDC EN CUESTIÓN.
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