Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
ContentIndex
  
[+] Expand All
[-] Collapse All

Symbols  A  C  D  E  F  H  I  K  L  M  N  O  P  Q  R  S  T  U  W  X

 

Symbols

* in completion list
+ in completion list
+* in completion list
> in completion list
| (pipe) filter for command output
 

A

active configuration
 

C

C Series Controllers    
directories    12
files
C Series controllers    
status
C Series platforms    
version
candidate configuration
CLI    
command hierarchy
command history
command mode
configuration mode    
command completion
commands    12
comparing
entering    12
exiting
hierarchy    123
navigation commands
overview    12
statement description
symbols in statement lists    12
verifying configurations
editing level    12
environment settings
help    12
interface elements
keyboard sequences
messages
modes    
changing    12
overview
operating systems
overview    12
password
prerequisites
privilege levels
prompt strings
tutorial
working directory
command output    
MORE prompt
number of lines
pagination
saving to a file
See also regular expressions
XML format, displaying
commands    
categories
completion    12
configuration mode
filenames in
operational mode
options
types
URLs in
commit and-quit command    12
commit check command
commit command    12
configuration    
backup
changes by multiple users
committing    123
default
deleting statements
displaying current configuration
example
loading    123
local
merge
modifying
replacement    12
rollback
saving
slot
statements.     See configuration statements    
storage
verifying
configuration files    
attributes
overview
preparation to load
set format
text format
XML format
configuration hierarchy
configuration mode     See CLI    
configuration statements    
deleting
overview    12
symbols in statements
configure command
conventions    
notice icons
text
count filter
cursor, moving
customer support    1
contacting JTAC
 

D

delete command    12
directories on C Series Controller
documentation    
comments on
 

E

edit command    12
enable command
environment settings, CLI    1
command completion
editing level
prompt string
screen dimensions    12
terminal language
terminal type
working directory
except filter
exit command    12
 

F

file commands
files    
saving command output to
specifying names in commands
find filter
 

H

help command
history command
history, CLI commands
 

I

identifiers    
inserting in sequential lists
renaming
insert command    12
 

K

keyboard sequences at MORE prompt
 

L

load command
load factory-default command
load merge command
load override command
load replace command
load set command    123
 

M

manuals    
comments on
messages    
CLI
MORE filter
MORE prompt
 

N

notice icons
 

O

online help     See CLI, help    
operational mode
 

P

privilege levels for CLI
prompt strings for CLI
 

Q

quit command
 

R

redrawing screen
regular expressions    
displaying first match
displaying matching output
disregarding nonmatching output
overview
rename command    12
request system halt command
request system reboot
restart command    12
rollback command    12
run command
 

S

save command
screen    
dimensions    12
redrawing
set cli complete-on-space command
set cli directory command    12
set cli language command
set cli level command
set cli password command
set cli prompt command
set cli screen-length command
set cli screen-width command
set cli terminal command
set command    12
show cli authorization command
show cli command
show cli history command
show cli level command
show command
show component command    12
show configuration command
show system information command
SRC CLI    
starting    
C Series platform
SRC components    
disabling
enabling
managing
restarting    12
status
SRC modules    
managing
restarting
SRC software    
rebooting
stopping
statements     See configuration statements, names of individual statements    
support, technical     See technical support    
symbols in statements
 

T

technical support    
contacting JTAC
terminal type
text conventions defined
Text format, XML format, Set format
top command
 

U

up command
URLs in commands
user accounts    
configuration example
 

W

working directory
 

X

XML format, command output in

Replacing Parts of the Configuration

A replace operation searches for replace attributes in the specified file, deletes the existing statements of the same name, if any, and replaces them with the incoming configuration. If there is no existing statement of the same name, the replace operation adds to the configuration the statements marked with the replace attribute. You can also use create, delete, and merge attributes in the file.

If you are performing a replace operation and the file you specify does not contain any replace attributes, the replace operation is effectively equivalent to a merge operation. This type of operation might be useful if you are running automated scripts and cannot know in advance whether the scripts need to perform a replace or a merge operation. The scripts can use the replace operation to cover either case.

You can replace a configuration from files in XML or text format. The examples in this section use files in XML format.

Note: You cannot replace the CLI configurations from a file saved in set format.

You can replace all of the configuration, or the configuration at a specified hierarchy level. For information about loading a configuration at a specified hierarchy level, see Loading a Configuration at a Specified Hierarchy Level.

To replace portions of a configuration:

  1. Make sure that the incoming configuration file has replace attributes in place for each part of the configuration to be replaced.

    See About SRC Configuration Files in XML Format.

  2. In configuration mode, specify the load replace command. For example:

    user@host# load replace newcfg.xml format xml

The following example shows part of the existing configuration, the configuration in the file to be loaded, and the resulting configuration. In the resulting configuration, bold text indicates the configuration that changed.

For an example of a file snippet that shows how to replace a number a values within a hierarchy, see About SRC Configuration Files in XML Format.

Existing configuration:

<configuration>. . .<system>. . .<host-name>myhost</host-name><name-server>192.2.2.10</name-server><name-server>192.2.2.20</name-server><domain-search>mydomain.juniper.net</domain-search><domain-search>juniper.net</domain -search>. . .</system>. . .</configuration>

Configuration in the file to be loaded:

<configuration>. . .<system>. . .<host-name>myhost</host-name>< name-server operation=” replace” >192.2.2.10</name-server><name-server>192.2.2.30</name-server><domain-search>mydomain.juniper.net</domain-search><domain-search>mydomain.juniper.net</domain-search><domain-search>juniper.net</domain -search>. . .</system>. . .</configuration>

Resulting configuration:

<configuration>. . .<system>. . .<host-name>myhost</host-name><name-server>192.2.2.10</name-server><name-server>192.2.2.30</name-server><domain-search>mydomain.juniper.net</domain-search><domain-search>juniper.net</domain -search>. . .</system>. . .</configuration>

Related Documentation

Modified: 2016-05-26