Lantronix 2100 manual Exporting

Page 19

4: Configuration Using XML

The following syntax can be used to export configurations to a file on the device server’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 device server filesystem:

xcr export tunnel_1.xcr “tunnel accept:1”

The following example exports only the connect mode tunneling settings for all ports to the file “tunnel_all.xcr” on the device server filesystem:

xcr export tunnel_all.xcr “tunnel connect”

The following example imports only the settings for line 2 from a XCR named “factory_config.xcr” on the device server 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 device server filesystem named “foobar.xcr”:

xcr import foobar.xcr “line”

To import only disconnect mode tunneling settings for port 1 and serial line 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, line:2"

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 device server 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 device server filesystem:

xcr export tunnel_config.xcr "tunnel, line"

Passwords in the XML File

If you log in to a device server to which you will be pasting an XCR, you do not need to include passwords in the file, because you are already logged into the device. However, if you send an XCR to one or more devices that are password protected, you can include the appropriate passwords in the XCR and skip the login steps.

IntelliBox-I/O 2100 Command Reference

19

Image 19
Contents IntelliBox-I/O 2100 Command Reference Date Rev Comments Copyright and TrademarkCommands and Levels Table of ContentsCommand Line Interface Configuration Using XMLCLI Level Hierarchy List of FiguresList of Tables Convention Description Chapter SummariesConventions Chapter SummaryDocument Description Additional DocumentationXML Architecture and Device Control OverviewConfiguration Using Serial Ports Configuration Using TelnetNavigating the CLI Hierarchy Command Line InterfaceUnderstanding the CLI Level Hierarchy Using Keyboard Shortcuts and CLICLI Level Hierarchy Enable Level Commands XML Configuration Record Document Type Definition Configuration Using XMLDeclaration Quick Tour of XML SyntaxXML Group Example Record, Group, Item, and Value TagsXML Example of Multiple Items Importing and Exporting an XML Configuration FileImporting Best PracticesExporting XCR Groups XML Configuration GroupsConfiguration Using XML None Event trak Step Name URI Configuration Using XML Cidr Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML Unknown Configuration Using XML Configuration Using XML Group Name Item Name Value Name Valid Values XML Status Record Groups and ItemsConfiguration Using XML Configuration Using XML Configuration Using XML Arpa Configuration Using XML UDP Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML Commands and Levels Accept tunnel-accept2 level commands Commands and LevelsAccept tunnel-accept1 level commands Commands and Levels Chem 1 chem1 level commands Arp config-arp level commandsTrigger xio1/xio2 high/low Chem 2 chem2 level commandsReplyto email address To email addressesChem 3 chem3 level commands Chem 4 chem4 level commands Configure config level commands Cli config-cli level commandsLpd line Connect tunnel-connect2 level commandsHost number If instanceConnect mode any character Connect tunnel-connect1 level commands Device device level commands Timeout milliseconds Disconnect tunnel-disconnect2 level commandsEnable enable level commands Disconnect tunnel-disconnect1 level commandsLine line Eventtrak 1 config-eventtrak1 level commands Filesystem filesystem level commands Eventtrak 2 config-eventtrak2 level commandsCLI session File host port Touch file Create a fileThis host is Auth user uri user password Http config-http level commandsAuth uri realm If 1 config-ifeth0 level commands Icmp config-icmp level commandsPort number Ip address ip address/cidr Io io level commandsIp config-ip level commands Ip filter config-filter level commandsBaud rate bits per second Line 1 line1 level commandsAdd ip address subnet mask Remove ip address subnet maskLine 2 line2 level commands Commands and Levels Lpd lpd level commands Link config-etherneteth0 level commandsTest print number of lines Lpd 1 config-lpd1 level commandsKill line Show lineMatch 1 config-eventtrak-match2.1 level commands Lpd 2 config-lpd2 level commandsMatch 1 config-eventtrak-match1.1 level commands Match 2 config-eventtrak-match1.2 level commands Match 2 config-eventtrak-match2.2 level commandsMatch 3 config-eventtrak-match1.3 level commands Match 3 config-eventtrak-match2.3 level commandsModem tunnel-modem2 level commands Modbus modbus level commandsModem tunnel-modem1 level commands Output select tunnel-accept-outputselect2 level commands Output select tunnel-connect-outputselect2 level commandsOutput select tunnel-connect-outputselect1 level commands Packing tunnel-packing2 level commands Output select tunnel-accept-outputselect1 level commandsQuery port config-queryport level commands Packing tunnel-packing1 level commandsRoot level commands Snmp config-snmp level commands Rss config-rss level commandsSerial tunnel-serial2 level commands Serial tunnel-serial1 level commandsSsh ssh level commands Ssl ssl level commands Host user user passwordHost user user password public Host user user password public publicLevel severity Task 1 config-eventtrak-task2.1 level commandsTask 2 config-eventtrak-task2.2 level commands Task 1 config-eventtrak-task1.1 level commandsStep letter Task 2 config-eventtrak-task1.2 level commands Task 3 config-eventtrak-task2.3 level commands Task 3 config-eventtrak-task1.3 level commands Terminal 1 config-terminal1 level commands Tcp config-tcp level commandsTerminal network config-terminalnetwork level commands Terminal 2 config-terminal2 level commandsTunnel 1 tunnel1 level commands Tftp config-tftp level commandsTunnel 2 tunnel2 level commands Udp config-udp level commands
Related manuals
Manual 79 pages 2.62 Kb