1-6 
with the main attribute in the Flash memory will lose its main attribute. This circumstance also applies to 
the file with the backup attribute in the Flash memory. 
File operations and file attribute operations are independent. For example, if you delete a file with the 
main attribute from the Flash memory, the other files in the flash memory will not possess the main 
attribute. If you download a valid file with the same name as the deleted file to the flash memory, the file 
will possess the main attribute.  
After the Boot ROM of a switch is upgraded, the original default app file has the main attribute.  
Booting with the Startup File 
The device selects the main startup file as the preferred startup file. If the device fails to boot with the 
main startup file, it boots with the backup startup file. 
For the Web file and configuration file, Switch 4210 may provide corresponding default file when 
releasing software versions. When booting, the device selects the startup files based on certain order. 
The device selects Web files in the following steps: 
1)  If the default Web file exists, the device will boot with the default Web file; 
2)  If the default Web file does not exist, but the main Web file exists, the device will boot with the main 
Web file; 
3)  If neither the default Web file nor the main Web file exists, but the backup Web exists, the device 
will boot with the backup Web file; 
4)  If neither of the default Web file, main Web file and backup Web exists, the device considers that no 
Web file exists. 
For the selection of the configuration file when the device boots, refer to the Configuration File 
Management part in this manual. 
Configuring File Attributes 
You can configure and view the main attribute or backup attribute of the startup file used for the next 
startup of a switch, and change the main or backup attribute of the file. 
Perform the configuration listed in 
Table 1-7 in user view. The display commands can be executed in 
any view. 
Table 1-7 Configure file attributes 
To do…  Use the command…  Remarks 
Configure the app file with the 
main attribute for the next 
startup 
boot boot-loader file-url  Optional 
Configure the app file with the 
backup attribute for the next 
startup 
boot boot-loader 
backup-attribute file-url 
Optional 
Configure the Web file and its 
attribute 
boot web-package webfile 
{ backup | main } 
Optional 
Switch the file attributes 
between main and backup 
boot attribute-switch { all | 
app | configuration | web } 
Optional