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.
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
Specify to enable user to use
the customized password to
enter the BOOT menu
startup bootrom-access
enable
Optional
By default, the user is enabled
to use the customized
password to enter the BOOT
menu.
Display the information about
the app file used as the startup
file
display boot-loader [ unit
unit-id ]
Display information about the
Web file used by the device
display web package
Optional
Available in any view