Lantronix 2100 manual Best Practices, Importing

Page 18

4: Configuration Using XML

settings specified. This can be done on any level, including the root. Special tags in the XML allow for providing root and enable level passwords so that this can also be done at the password prompt.

Web browser—Web Manager can be used to import and export an XCR to the device server file system. It can also be used to import an XCR from an external source such as your local hard drive.

FTP—The device server FTP server can export and import XCRs when an FTP get or put command on the filename intellibox_io.xcr is requested. On export (FTP get of intellibox_io.xcr), the FTP server obtains the current XCR from Evolution OS™ and sends it as a file. On import (FTP put of intellibox_io.xcr), the FTP server processes the file by sending it directly to the XML engine. In both cases the device server filesystem is not accessed. The file intellibox_io.xcr is not read from or written to the file system. See FTP in the IntelliBox-I/O 2100 User Guide.

Best Practices

You can import or export an entire XCR, or just a portion of it, by specifying the group name and/or group instances. In the examples below, import and export operations are performed from the CLI on the local filesystem and require a XCR on the local filesystem. The Web Manager provides the same functionality.

Caution: Using Microsoft Word to edit and save an XCR will change the format of the file and make it incompatible with Evolution OS. This is true even if the file is saved as Plain Text (.txt) or an XML Document (.xml). Notepad, a third party text editor, or a specialized XML editor should be used instead.

Importing

The following syntax can be used to import configurations from a file:

xcr import <file>

xcr import <file> <groups and/or group:instances>

The first line imports all groups specified in the XML config record named in <file>. Any filename is valid, and the file name and extension are not important.

Caution: The filename intellibox_io.xcr is not acceptable, because performing a FTP get on that name produces the current configuration and does not perform an FTP from the filesystem. Also, the filename intellibox_io.xsr is not acceptable, because performing an FTP get on that name produces the current status and does not get anything from the filesystem.

In the second line:

Instance follows group with a colon (see the third example on the next page).

Multiple groups are separated with a comma.

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.

IntelliBox-I/O 2100 Command Reference

18

Image 18
Contents IntelliBox-I/O 2100 Command Reference Copyright and Trademark Date Rev CommentsConfiguration Using XML Table of ContentsCommand Line Interface Commands and LevelsList of Figures CLI Level HierarchyList of Tables Chapter Summary Chapter SummariesConventions Convention DescriptionAdditional Documentation Document DescriptionOverview XML Architecture and Device ControlConfiguration Using Telnet Configuration Using Serial PortsCommand Line Interface Navigating the CLI HierarchyUsing Keyboard Shortcuts and CLI Understanding the CLI Level HierarchyCLI Level Hierarchy Enable Level Commands Configuration Using XML XML Configuration Record Document Type DefinitionQuick Tour of XML Syntax DeclarationRecord, Group, Item, and Value Tags XML Group ExampleImporting and Exporting an XML Configuration File XML Example of Multiple ItemsBest Practices ImportingExporting XML Configuration Groups XCR 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 XML Status Record Groups and Items Group Name Item Name Value Name Valid ValuesConfiguration 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 Commands and Levels Accept tunnel-accept2 level commandsAccept tunnel-accept1 level commands Commands and Levels Arp config-arp level commands Chem 1 chem1 level commandsTo email addresses Chem 2 chem2 level commandsReplyto email address Trigger xio1/xio2 high/lowChem 3 chem3 level commands Chem 4 chem4 level commands Cli config-cli level commands Configure config level commandsIf instance Connect tunnel-connect2 level commandsHost number Lpd lineConnect mode any character Connect tunnel-connect1 level commands Device device level commands Disconnect tunnel-disconnect2 level commands Timeout millisecondsDisconnect tunnel-disconnect1 level commands Enable enable level commandsLine line Eventtrak 1 config-eventtrak1 level commands Eventtrak 2 config-eventtrak2 level commands Filesystem filesystem level commandsFile host port Touch file Create a file CLI sessionThis host is Http config-http level commands Auth user uri user passwordAuth uri realm Icmp config-icmp level commands If 1 config-ifeth0 level commandsPort number Ip filter config-filter level commands Io io level commandsIp config-ip level commands Ip address ip address/cidrRemove ip address subnet mask Line 1 line1 level commandsAdd ip address subnet mask Baud rate bits per secondLine 2 line2 level commands Commands and Levels Link config-etherneteth0 level commands Lpd lpd level commandsShow line Lpd 1 config-lpd1 level commandsKill line Test print number of linesLpd 2 config-lpd2 level commands Match 1 config-eventtrak-match2.1 level commandsMatch 1 config-eventtrak-match1.1 level commands Match 2 config-eventtrak-match2.2 level commands Match 2 config-eventtrak-match1.2 level commandsMatch 3 config-eventtrak-match2.3 level commands Match 3 config-eventtrak-match1.3 level commandsModbus modbus level commands Modem tunnel-modem2 level commandsModem tunnel-modem1 level commands Output select tunnel-connect-outputselect2 level commands Output select tunnel-accept-outputselect2 level commandsOutput select tunnel-connect-outputselect1 level commands Output select tunnel-accept-outputselect1 level commands Packing tunnel-packing2 level commandsPacking tunnel-packing1 level commands Query port config-queryport level commandsRoot level commands Serial tunnel-serial1 level commands Rss config-rss level commandsSerial tunnel-serial2 level commands Snmp config-snmp level commandsSsh ssh level commands Host user user password public public Host user user passwordHost user user password public Ssl ssl level commandsTask 1 config-eventtrak-task2.1 level commands Level severityTask 1 config-eventtrak-task1.1 level commands Task 2 config-eventtrak-task2.2 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 Tcp config-tcp level commands Terminal 1 config-terminal1 level commandsTerminal 2 config-terminal2 level commands Terminal network config-terminalnetwork level commandsTftp config-tftp level commands Tunnel 1 tunnel1 level commandsTunnel 2 tunnel2 level commands Udp config-udp level commands
Related manuals
Manual 79 pages 2.62 Kb