Config Command
The BOLT is configured with two main databases; running and candidate.
The config command allows a user to modify and/or remove interface configuration data contained in the candidate-config database. While in config mode, all changes are stored in a candidate-config database. This database mirrors the running-config database and will not affect the current traffic flow. The config changes will not take effect until the commit command is executed. When the commit command is executed, the config changes in the candidate-config database replace the data in the running-config database. The new and old data is also stored, with a timestamp and name, in a rollback folder.
There are three persistent databases used in the BOLT interface operating system:
- Factory database – resident onboard the interface.
- Candidate-config database – temporary storage for configuration changes.
- Running-config database – storage of the operating configuration.
The three database usage will be referred to in various procedures throughout this guide.
This section will discuss the following commands:
- config – allows users to change the database configuration.
- commit – makes config changes to the running-config database.
- rollback – allows users to load a previous database from the Candiate database rollback folder
- clear – config
- exit – returns to the no config command screen.
- no config – deletes all selected database configurations.
Command - config
- From the MDS1-ESUA# command line, input config to access the config mode and press Enter.
MDS1-ESUA# config <enter> MDS1-ESUA(config)#When the system goes into config mode it allows the user to access the candidate-config database to make any changes as needed. The user can configure as much as needed, as the model uses the candidate-config database to temporarily store the data.
Command – commit
- Database1 – candidate-config
- Database2 – running-config
The commit command will replace the current data in running-config database with new data from the candidate-config database.
Example of the use of commit while adding LLDP Profile to a Port.
- From the MDS1-ESUA# command line, input config to access the config mode and press Enter.
- From the MDS1-ESUA<config># command line, input the object to add, tolt interfaces uni config ETH1-1-1-1-1 lldp-profile lldp-enabled and press Enter.
- From the MDS1-ESUA<config-config-ETH1-1-1-1-1># command line, input commit and press Enter.
MDS1-ESUA<config># config-config-ETH1-1-1-1-1 <enter> MDS1-ESUA<config-config-ETH1-1-1-1-1># commit <enter> commit complete MDS1-ESUA<config># |
Commit will commit any changes from the candidate database to the running-config database, which in the example above it removed net3 from the running-config.
Command – clear
To clear the candidate-config database use the clear command.
MDS1-ESUA<config># clear <enter>
MDS1-ESUA<config># _
|
Command – exit
To exit the config mode and return to the non config mode, use the exit command.
MDS1-ESUA<config># exit <enter>
MDS1-ESUA# _
|
Command – no
The no command is the same as delete. When used, it will delete all selected configuration data from the running-config database. After the target data has been selected, the commit command will execute the deletion process.
With a listing of the existing interfaces, the user selects the name of the interface (ex. net) and the object that is to be deleted (ex. net3). The user will enter the active config mode to delete that object. On the config prompt, the user will access the interface. With the interface on the prompt line, the object can be deleted with the no command.
- Command – no
- Module – tolt
- Container – interfaces
- Container – net
- Container – config
- Name – net3
- Command – commit
Example of the use of no while deleting a LAG.
- From the MDS1-ESUA# command line, input config to access the config mode and press Enter.
- From the MDS1-ESUA<config># command line, input the object to delete, no tolt interfaces net config net3 and press Enter.
- From the MDS1-ESUA<config># command line, input commit and press Enter.
MDS1-ESUA<config># no tolt interfaces net config net3 <enter> MDS1-ESUA<config># commit <enter> commit complete MDS1-ESUA<config># _ |