[FTP-Server] local-user aaa [FTP-Server-luser-aaa] password cipher hello

[FTP-Server-luser-aaa] service-type ftp

[FTP-Server-luser-aaa] authorization-attribute work-directory flash:/aaa

Use text editor on the FTP server to edit batch file auto-update.txt. The following is the content of the batch file:

return

startup saved-configuration new-config.cfg boot-loader file soft-version2.bin slot 1 main reboot

2.Configure Device

# Log in to the FTP server (The prompt may vary with servers.)

<Device> ftp 2.2.2.2 Trying 2.2.2.2 ...

Press CTRL+K to abort Connected to 2.2.2.2.

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user User(2.2.2.2:(none)):aaa

331 Give me your password, please Password:

230 Logged in successfully [ftp]

# Download file auto-update.txt on the FTP server.

[ftp] ascii

[ftp] get auto-update.txt

# Download file new-config.cfg on the FTP server.

[ftp]get new-config.cfg

# Download file soft-version2.bin on the FTP server.

[ftp] binary

[ftp] get soft-version2.bin

[ftp] bye <Device>

# Change the extension of file auto-update.txt to .bat.

<Device> rename auto-update.txt auto-update.bat

To ensure correctness of the file, use the more command to view the content of the file.

#Execute the scheduled automatic execution function to enable Device to be automatically upgraded at

3 am.

<Device> system-view [Device] job autoupdate

[Device-job-autoupdate] view system-view

[Device-job-autoupdate] time 1 one-off at 03:00 command execute auto-update.bat

To check if the upgrade is successful after Device reboots, use the display version command.

124