
158
To use the configuration file on another switch
To manually edit the file
You might download a configuration file from a remote server to the switch for the following reasons:
To restore a previous configuration
To load the configuration copied from another switch
To load the same configuration file on multiple switches
Use a text editor to open a configuration file and view or change its contents.
6.1.4.1.
Editing and Downloading Configuration Files
Each configuration file contains a list of executable CLI commands. The commands must be complete and in a
logical order, as if you were entering them by using the switch CLI.
When you download a startup-config or backup-config file to the switch, the new file replaces the previous
version. To change the running-config file, you execute CLI commands either by typing them into the CLI or
by applying a configuration script with the
script apply
command.
6.1.4.2.
Creating and Applying Configuration Scripts
When you use configuration scripting, keep the following considerations and rules in mind:
The application of scripts is partial if the script fails. For example, if the script executes four of
ten commands and the script fails, the script stops at four, and the final six commands are not
executed.
Scripts cannot be modified or deleted while being applied.
Validation of scripts checks for syntax errors only. It does not validate that the script will run.
The file extension must be
.scr
.
There is no limit on the maximum number of scripts files that can be stored on the switch
within a given storage space limit.
The combined size of all script files on the switch cannot exceed 2048 Kbytes. The zlib
compression technique is applied to script files to decrease script file size.
You can type single-line annotations in the configuration file to improve script readability. The exclamation
point (!) character flags the beginning of a comment. Any line in the file that begins with the “!” character is
recognized as a comment line and ignored by the parser. Do not use a comment character anywhere in a line
that contains a command.
The following example shows annotations within a file (commands are bold):
!Configuration script for mapping lab hosts to IP addresses
!Enter Global Config mode and map host name to address configure
ip host labpc1 192.168.3.56
ip host labpc2 192.168.3.57 ip host labpc3 192.168.3.58 exit
Содержание QuantaMesh QNOS5
Страница 1: ...QuantaMesh Ethernet Switch Configuration Guide QNOS5 NOS Platform ...
Страница 209: ...209 Table 7 8 IPv6 Neighbor Discovery Settings ...
Страница 226: ...226 Table 8 2 L3 Multicast Defaults ...
Страница 254: ...254 Appendix A Term and Acronyms Table 9 5 Terms and Acronyms ...
Страница 255: ...255 Table 9 6 Terms and Acronyms Cont ...
Страница 256: ...256 Table 9 7 Terms and Acronyms Cont ...