AutoInstall Commands

Use these commands to configure AutoInstall, which automatically updates the image and configuration of the switch.

The AutoInstall feature enables the automatic update of the image and configuration of the switch. This feature enables touchless or low-touch provisioning to simplify switch configuration and imaging.

AutoInstall includes the following support:

  • Downloading an image from TFTP server using DHCP option 125. The image update can result in a downgrade or upgrade of the firmware on the switch.
  • Automatically downloading a configuration file from a TFTP server when the switch is booted with no saved configuration file.
  • Automatically downloading an image from a TFTP server in the following situations:
    • When the switch is booted with no saved configuration found.
    • When the switch is booted with a saved configuration that has AutoInstall enabled.

When the switch boots and no configuration file is found, it attempts to obtain an IP address from a network DHCP server. The response from the DHCP server includes the IP address of the TFTP server where the image and configuration files are located.

After acquiring an IP address and the additional relevant information from the DHCP server, the switch downloads the image file or configuration file from the TFTP server. A downloaded image is automatically installed. A downloaded configuration file is saved to non-volatile memory.

Note: AutoInstall from a TFTP server can run on any IP interface, including the network port, service port, and in-band routing interfaces (if supported). To support AutoInstall, the DHCP client is enabled operationally on the service port, if it exists, or the network port, if there is no service port.

boot autoinstall

M4250

M4350

Use this command to operationally start or stop the AutoInstall process on the switch. The command is non-persistent and is not saved in the startup or running configuration file.

Default stop
Format boot autoinstall {start | stop}
Mode Privileged EXEC

boot host retrycount

M4250

M4350

Use this command to set the number of attempts to download a configuration file from the TFTP server. The number argument is a number in the range 1–3.

Default 3
Format boot host retrycount number
Mode Privileged EXEC

no boot host retrycount

Use this command to set the number of attempts to download a configuration file to the default value.

Format no boot host retrycount
Mode Privileged EXEC

boot host dhcp

M4250

M4350

Use this command to enable AutoInstall on the switch for the next reboot cycle. The command does not change the current behavior of AutoInstall and saves the command to NVRAM.

Default enabled
Format boot host dhcp
Mode Privileged EXEC

no boot host dhcp

Use this command to disable AutoInstall for the next reboot cycle.

Format no boot host dhcp
Mode Privileged EXEC

boot host autosave

M4250

M4350

Use this command to automatically save the downloaded configuration file to the startup-config file on the switch. When autosave is disabled, you must explicitly save the downloaded configuration to non-volatile memory by using the write memory or copy system:running-config nvram:startup-config command. If the switch reboots and the downloaded configuration has not been saved, the AutoInstall process begins, if the feature is enabled.

Default disabled
Format boot host autosave
Mode Privileged EXEC

no boot host autosave

Use this command to disable automatically saving the downloaded configuration on the switch.

Format no boot host autosave
Mode Privileged EXEC

boot host autoreboot

M4250

M4350

Use this command to allow the switch to automatically reboot after successfully downloading an image. When auto reboot is enabled, no administrative action is required to activate the image and reload the switch.

Default enabled
Format boot host autoreboot
Mode Privileged EXEC

no boot host autoreboot

Use this command to prevent the switch from automatically rebooting after the image is downloaded by using the AutoInstall feature.

Format no boot host autoreboot
Mode Privileged EXEC

erase startup-config

M4250

M4350

Use this command to erase the text-based configuration file stored in non-volatile memory. If the switch boots and no startup-config file is found, the AutoInstall process automatically begins.

Format erase startup-config
Mode Privileged EXEC

erase factory-defaults

M4250

M4350

This command erases the text-based factory default file that is stored in non-volatile memory.

Format erase factory-defaults
Mode Privileged EXEC

erase stack-config

M4350

This command erases the stacking configuration file. This configuration file cannot be erased using the clear config command.

Format erase stack-config
Mode Privileged EXEC

show autoinstall

M4250

M4350

This command displays the current status of the AutoInstall process.

Format show autoinstall
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show autoinstall

AutoInstall Mode............................... Stopped
AutoInstall Persistent Mode.................... Disabled
AutoSave Mode.................................. Disabled
AutoReboot Mode................................ Enabled
AutoInstall Retry Count........................ 3