TFTP: Copying a customized command file to a switch (CLI)

Using the copy tftp command with the show-tech option provides the ability to copy a customized command file to the switch. When the show tech custom command is executed, the commands in the custom file are executed instead of the hard-coded list of commands. If no custom file is found, the current hard-coded list is executed. This list contains commands to display data, such as the image stamp, running configuration, boot history, port settings, and so on.

Syntax:


copy tftp show-tech <ipv4 or ipv6 address> <filename>

Copies a customized command file to the switch (see Using the copy tftp show-tech command to upload a customized command file).

Using the copy tftp show-tech command to upload a customized command file

switch(config)# copy tftp show-tech 10.10.10.3 commandfile1

Syntax:


show tech custom

Executes the commands found in a custom file instead of the hard-coded list.

NOTE:

Exit the global config mode (if needed) before executing show tech commands.

You can include show tech commands in the custom file, with the exception of show tech custom. For example, you can include the command show tech all.

If no custom file is found, a message displays stating "No SHOW-TECH file found." (No custom file was uploaded with the copy tftp show-tech command.)

The show tech custom command

switch# show tech custom
No SHOW-TECH file found.