CLI Usage
Basic System Configuration Guide 43
Configuration Rollback
The Configuration Rollback feature provides the ability to undo configuration and reverts 
back to previous router configuration states while minimizing impacts to services.
This feature gives the operator better control and visibility over the router configurations and 
reduces operational risk while increasing flexibility and providing powerful recovery options. 
Configuration Rollback is useful in cases where configuration changes are made but the 
operator later decides to not keep the changes (for example, experimentation or when 
problems are identified in the configuration during actual network operation).
:map keys 
new_seq 
Mapping. This lets you map a key or a sequence of keys to another key 
or a sequence of keys. 
:q Quit vi. If there have been changes made, the editor will issue a 
warning message. 
:q! Quit vi without saving changes. 
:s/pattern/
to_pattern/
options
Substitute. This substitutes the specified pattern with the string in the 
to_pattern. Without options, it only substitutes the first occurrence of 
the pattern. If a 'g' is specified, then all occurrences are substituted. For 
example, the command :1,$s/Alcatel/Alcatel-Lucent/g substitutes all 
occurrences of Alcatel to Alcatel-Lucent. 
:set [all]  Sets some customizing options to vi and EX. The :set all command 
gives all the possible options.
:una string  Removes the abbreviation previously defined by :ab. 
:unm keys Removes the remove mapping defined by :map. 
:vi filename  Starts editing a new file. If changes have not been saved, the editor will 
give you a warning. 
:w Write out the current file. 
:w filename Write the buffer to the filename specified. 
:w >> filename Append the contents of the buffer to the filename. 
:wq Write the buffer and quit. 
Table 20: EX commands  (Continued)
vi Command Description  (Continued)