4: Configuration Using XML
PremierWave® XC Intelligent Gateway Command Reference
19
Any white space requires the list of groups to be quoted.
Only the named groups get imported, even if the XCR contains additional XCR groups.
The following syntax can be used to export configurations to a file on the intelligent gateway's file
system:
xcr export <file>
xcr export <file> <groups and/or group:instances>
The same guidelines above regarding importing configurations also apply to exporting
configurations. If no groups are specified, then the export command will export all configuration
settings to the file. If instances are specified after the groups, only those group instances are
written. If no instance is specified, all instances of that group are written.
Exporting
The following example exports only the accept mode tunneling settings for line 1 to the file
"tunnel_1.xcr" on the intelligent gateway filesystem:
xcr export tunnel_1.xcr "tunnel accept:1"
The following example exports only the connectmode tunneling settings for all ports to the file
"tunnel_all.xcr" on the PremierWave XC filesystem:
xcr export tunnel_all.xcr "tunnel connect"
The following example imports only the settings for line2 from an XCR named "factory_config.xcr"
on the intelligent gateway filesystem. If "factory_config.xcr" has other configuration settings, they
are ignored:
xcr import factory_config.xcr "line:2"
The following example imports only line settings for all ports from a configuration record on the
PremierWave XC filesystem named "foobar.xcr":
xcr import foobar.xcr "
line
"
To import only disconnect mode tunnel settings for port 1 and all serial line tunnel settings for port
2 from an XML configuration record named "production.xcr" that contains these settings (and
possibly more), issue the following command:
xcr import production.xcr "tunnel disconnect:1"
The following example imports all tunneling settings and line settings for all serial ports from a file
named xcr_file:
xcr import xcr_file "tunnel accept, tunnel connect, tunnel
disconnect, tunnel modem, tunnel packing, tunnel serial, tunnel
start, tunnel stop, line"
The following example exports only accept mode tunneling settings on serial port 1, and line
settings on serial port 2 to a file named tunnel_config_t1_l2.xcr on the intelligent gateway
filesystem.
xcr export tunnel_config_t1_l2.xcr "tunnel accept:1, line:2"
The following example exports connect mode tunneling and line settings for all ports to the file
tunnel_config.xcr on the PremierWave XC filesystem:
xcr export tunnel_config.xcr "tunnel, line"