Viewing a summary of switch operational data

Syntax:

show tech

By default, the show tech command displays a single output of switch operating and running-configuration data from several internal switch sources, including:

  • Image stamp (software version data)

  • Running configuration

  • Event Log listing

  • Boot history

  • Port settings

  • Status and counters—port status

  • IP routes

  • Status and counters—VLAN information

  • GVRP support

  • Load balancing (trunk and LACP)

Example:

show tech command shows sample output from the show tech command.

show tech command

show tech command

To specify the data displayed by the show tech command, use the copy show tech command.

Saving show tech command output to a text file

When you enter the show tech command, a summary of switch operational data is sent to your terminal emulator. You can use your terminal emulator's text capture features to save the show tech data to a text file for viewing, printing, or sending to an associate to diagnose a problem.

For example, if your terminal emulator is the Hyperterminal application available with Microsoft® Windows® software, you can copy the show tech output to a file and then use either Microsoft Word or Notepad to display the data. (In this case, Microsoft Word provides the data in an easier-to-read format.)

The following example uses the Microsoft Windows terminal emulator. If you are using a different terminal emulator application, see the documentation provided with the application.

  1. In Hyperterminal, click on TransferCapture Text…

    Capture Text window of the Hyperterminal application

    Capture Text window of the Hyperterminal application
  2. In the File field, enter the path and file name in which you want to store the show tech output, as shown in Entering a path and filename for saving show tech output.

    Entering a path and filename for saving show tech output

    Entering a path and filename for saving show tech output
  3. Click [Start] to create and open the text file.

  4. From the global configuration context, enter the show tech command:

    HP Switch# show tech
    

    The show tech command output is copied into the text file and displayed on the terminal emulator screen. When the command output stops and displays the following, press the Space bar to display and copy more information.

    -- MORE --
    

    The CLI prompt appears when the command output finishes.

  5. Click on

    Transfer | Capture Text | Stop

    in HyperTerminal to stop copying data and save the text file.

    If you do not stop HyperTerminal from copying command output into the text file, additional unwanted data can be copied from the HyperTerminal screen.

  6. To access the file, open it in Microsoft Word, Notepad, or a similar text editor.

Customizing show tech command output

Use the copy show tech command to customize the detailed switch information displayed with the show tech command to suit your troubleshooting needs.

To customize the information displayed with the show tech command:

  1. Determine the information that you want to gather to troubleshoot a problem in switch operation.

  2. Enter the copy show tech command to specify the data files that contain the information you want to view.

Syntax:

copy source show-tech

Specifies the operational and configuration data from one or more source files to be displayed by the show tech command. Enter the command once for each data file that you want to include in the display.

Default: Displays data from all source files, where source can be any one of the following values:

command-output "command "

Includes the output of a specified command in show-tech command output.

Enter the command name between double-quotation marks, for example, copy "show system" show-tech.

crash-data [ slot-id | master ]

:

Includes the crash data from all management and interface modules in show tech command output.

To limit the amount of crash data displayed, specify an installed module or management modules, where:

  • slot-id: Includes the crash data from an installed module. Valid slot IDs are the letters a through h.

  • master: Includes the crash data from both management modules.

crash-log [ slot-id | master ]

:

Includes the crash logs from all management and interface modules in show tech command output.

To limit the amount of crash-log data displayed, specify an installed module or management modules, where:

slot-id: Includes the crash log from an installed module. Valid slot IDs are the letters a through h.

master: Includes the crash log from both management modules.

event-log

Copies the contents of the Event Log to show tech command output.

running-config

Includes the contents of the running configuration file in show tech command output

startup-config

Includes the contents of the startup configuration file in show tech command output.

tftp config startup-config | running-config ip-addr remote-file [ pc | unix ]

Downloads the contents of a configuration file from a remote host to show tech command output, where:

ip-addr: Specifies the IP address of the remote host device.

remote-file: Specifies the pathname on the remote host for the configuration file whose contents you want to include in the command output.

pcunix: Specifies whether the remote host is a DOS-based PC or UNIX workstation.

usb config startup-config filename | command-file acl-filename.txt

Copies the contents of a configuration file or ACL command file from a USB flash drive to show tech command output, where:

startup-config filename : Specifies the name of a startup configuration file on the USB drive.

command-file acl-filename.txt : Specifies the name of an ACL command file on the USB drive.

xmodem config startup-config | config filename | command-file acl-filename.txt [ pc | unix ]

Copies the contents of a configuration file or ACL command file from a serially connected PC or UNIX workstation to show tech command output, where:

startup-config: Specifies the name of the startup configuration file on the connected device.

config filename : Specifies the pathname of a configuration file on the connected device.

command-file acl-filename.txt : Specifies the pathname of an ACL command file on the connected device.

pcunix: Specifies whether the connected device is a DOS-based PC or UNIX workstation.