Cisco Switch Log Collection (show tech-support)
Cisco switch (Catalyst, Nexus series) logs are primarily command output; the show tech-support command contains most diagnostic information. First, enable session logging in terminal software such as PuTTY or SecureCRT, then execute the command.
General collection command
terminal length 0 # Disable pagination.
show tech-support # Comprehensive diagnostic output; this can be lengthy.
show version # Software version and uptime.
show inventory # Component inventory and serial numbers.
show module # Module status.
show interfaces # Interface status and error counters.
show environment # Power supplies, fans and temperature.
show logging # Log buffer.
Catalyst platforms can additionally include show platform.
Nexus 7000 series supplementary commands
Taking Nexus 7010 as an example, for hardware inspection add:
show module uptime
show module fabric
show environment fan
show environment power
show environment temperature
show system redundancy status
Nexus switch
show tech-supportoutput may be very large; it can be directly redirected to flash memory and then retrieved via TFTP/SCP:show tech-support details > bootflash:tech.txt.
HP ProCurve switch
ProCurve switches provide at least the following two commands' output:
show flash
show version