Syntax:
By default, the
show tech
command displays a single output of switch operating and running-configuration data from several internal switch sources, including:
Example:
show tech command shows sample output from the
show tech
command.To specify the data displayed by the
show tech
command, use thecopy show tech
command.
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.
-
In the
File
field, enter the path and file name in which you want to store theshow tech
output, as shown in Entering a path and filename for saving show tech output. -
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.
-
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.
-
To access the file, open it in Microsoft Word, Notepad, or a similar text editor.
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:
Syntax:
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 lettersa
throughh
.
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 lettersa
throughh
.
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:
: Specifies the IP address of the remote host device.
ip-addr
: Specifies the pathname on the remote host for the configuration file whose contents you want to include in the command output.
remote-file
: Specifies whether the remote host is a DOS-based PC or UNIX workstation.
pc
unix
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
: Specifies the name of a startup configuration file on the USB drive.filename
command-file
: Specifies the name of an ACL command file on the USB drive.acl-filename.txt
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
: Specifies the pathname of a configuration file on the connected device.filename
command-file
: Specifies the pathname of an ACL command file on the connected device.acl-filename.txt
: Specifies whether the connected device is a DOS-based PC or UNIX workstation.
pc
unix