The TAC-PAC (tac-pac snapshot logs) command collects comprehensive diagnostic information from an NX-OS switch. This is commonly requested by Cisco TAC for troubleshooting.
$(SWITCHNAME) → the hostname of your switch.
$(TIMESTAMP) → automatically replaced with date and time.
File is stored in bootflash: by default.
After generation, confirm the file using:
Example output:
So the log file is located at:
By default, the SCP feature may be disabled. To enable:
Verify:
Use scp:
Example:
Use scp with the -O option (forces legacy SCP mode, required for NX-OS):
This saves the file in the current directory.