Configuring the switch to download software automatically from a TFTP server using auto-TFTP (CLI)
The
auto-tftp
command lets you configure the switch to download software automatically from a TFTP server.
At switch startup, the auto-TFTP feature automatically downloads a specified software image to the switch from a specified TFTP server and then reboots the switch. To implement the process, you must first reboot the switch using one of the following methods:
Enter the
boot system flash primary
command in the CLI.With the default flash boot image set to primary flash (the default), enter the
boot
or thereload
command, or cycle the power to the switch. (To reset the boot image to primary flash, useboot set-default flash primary
.)
Syntax:
auto-tftp <ip-addr> <filename>
By default, auto-TFTP is disabled. This command configures the switch to automatically download the specified software file from the TFTP server at the specified IP address. The file is downloaded into primary flash memory at switch startup; the switch then automatically reboots from primary flash.
To enable auto-TFTP to copy a software image to primary flash memory, the version number of the downloaded software file (For example, XX_14_01.swi) must be different from the version number currently in the primary flash image.
The current TFTP client status (enabled or disabled) does not affect auto-TFTP operation. (See Enabling TFTP (CLI).)
Completion of the auto-TFTP process may require several minutes while the switch executes the TFTP transfer to primary flash and then reboots again.
The
no
form of the command disables auto-TFTP operation by deleting the
auto-tftp
entry from the startup configuration.
The
no auto-tftp
command does not affect the current TFTP-enabled configuration on the switch. However, entering the
ip ssh filetransfer
command automatically disables both
auto-tftp
and
tftp
operation.