Situatie
CLI Command: replace
Solutie
replace
Syntax
replace pattern pattern1 with pattern2 <upto n>
Description
Replace identifiers or values in a configuration.
Options
upto n – Number of objects replaced. The value of n controls the total number of objects that are replaced in the configuration (not the total number of times the pattern occurs). Objects at the same hierarchy level (siblings) are replaced first. Multiple occurrences of a pattern within a given object are considered a single replacement. If you do not specify an upto option, all identifiers and values in the configuration that match pattern1 are replaced.
Required Privilege Level
configure—To enter configuration mode, but other required privilege levels depend on where the statement is located in the configuration hierarchy.
Leave A Comment?