4: Configuration Using XML
EDS Device Servers Command Reference
49
The following example exports only the tunnel 1 settings to the file “tunnel_1.xcr” on the
EDS filesystem:
xcr export tunnel_1.xcr “tunnel:1”
The following example exports only tunnel settings for all ports to the file “tunnel_all.xcr”
on the EDS 4100 filesystem.:
xcr export tunnel_all.xcr “tunnel”
The following example imports only the settings for line 4 from a complete XCR named
“factory_config.xcr” on the EDS filesystem:
xcr import factory_config.xcr “line:4”
The following example imports only line settings for all ports from a configuration record
on the EDS 4100 filesystm named “foobar.xcr”:
xcr import foobar.xcr “line”
To import only tunnel port 1 settings and serial line 4 settings from an XML configuration
record named “blah.xcr” that contains these settings (and possibly more), issue the
following command:
xcr import blah.xcr "tunnel:1, line:4"
The following example imports settings for all tunnel ports and all serial line ports (tunnels
1 - 4 and lines 1 - 4 only) from a file named xcr_file:
xcr import xcr_file "tunnel, line"
The following example exports only tunnel port 1 settings, and serial line 4 settings to a
file named tunnel_config_t1_l4.xcr on the EDS 4100 filesystem.
xcr export tunnel_config_t1_l4.xcr "tunnel:1, line:4"
The following example exports settings for all tunnel ports and all serial line ports (tunnels
1 - 4 and lines 1 - 4 only) to the file tunnel_config.xcr on the EDS 4100 filesystem:
xcr export tunnel_config.xcr "tunnel, line"
Note:
If you edit an XCR with Microsoft Word, you will not be able to import the
file, even if you save the document as Plain Text (.txt) or XML Document (.xml)
file.
Including Passwords in the XML File
If you log in to an EDS to which you will be sending an XML configuration file, you do not
need to include passwords in the file, since you are already logged in to the device.
However, if you will be sending an XML configuration file to one or more EDS devices
that are password protected, you can include the appropriate passwords in the XML
configuration file and forego the usual login steps.
The <level passwords> group name is used with the <passwords> item name and
“enable” value to specify the passwords to use if an enable function is password
protected (see page
54
). The password value is clear text; to protect the password and
all other data on that channel, establish an SSH connection to the EDS.