CLI Reference Guide-R04

Table Of Contents
Chapter 4
| System Management Commands
File Management
– 134 –
Example
This example shows the information displayed by the whichboot command. See
the table under the dir command for a description of the file information displayed
by this command.
Console#whichboot
File Name Type Startup Modified Time Size (bytes)
------------------------------ ------- ------- ------------------- ------------
Unit 1:
ecs4120-run-v1.0.2.43.bix OpCode Y 2018-05-02 07:16:54 19215988
startup1.cfg Config Y 2018-04-05 02:33:57 1496
Console#
Automatic Code Upgrade Commands
upgrade opcode auto This command automatically upgrades the current operational code when a new
version is detected on the server indicated by the upgrade opcode path command.
Use the no form of this command to restore the default setting.
Syntax
[no] upgrade opcode auto
Default Setting
Disabled
Command Mode
Global Configuration
Command Usage
This command is used to enable or disable automatic upgrade of the
operational code. When the switch starts up and automatic image upgrade is
enabled by this command, the switch will follow these steps when it boots up:
1. It will search for a new version of the image at the location specified by
upgrade opcode path command. The name for the new image stored on
the TFTP server must be ECS4120-Series.bix. If the switch detects a code
version newer than the one currently in use, it will download the new
image. If two code images are already stored in the switch, the image not
set to start up the system will be overwritten by the new version.
2. After the image has been downloaded, the switch will send a trap message
to log whether or not the upgrade operation was successful.
3. It sets the new version as the startup image.
4. It then restarts the system to start using the new image.