Lantronix 2100 Importing and Exporting an XML Configuration File, XML Example of Multiple Items

Page 17

4: Configuration Using XML

Figure 4-5 XML Example of Multiple Items

<?xml version=”1.0” standalone=”yes”?> <configgroup name = “email” instance = “1”>

<configitem name = “to”> <value>john.doe@somewhere.com></value>

</configitem>

<configitem name = “from”> <value>evolution@intellibox.com></value>

</configitem>

</configgroup>

Figure 4-6 XML Example with Multiple Groups

<?xml version=”1.0” standalone=”yes”?> <configgroup name = "ftp server">

<configitem name = "state"> <value>enable</value>

</configitem>

<configitem name = "admin username"> <value>admin</value>

</configitem>

<configitem name = "admin password">

<value><!-- configured and ignored --></value> </configitem>

</configgroup>

<configgroup name = "tftp server"> <configitem name = "state">

<value>enable</value>

</configitem>

<configitem name = "allow file creation"> <value>disable</value>

</configitem>

</configgroup>

Importing and Exporting an XML Configuration File

An XCR can be imported or exported using the following methods:

Filesystem—XCRs can be saved to the device server file system and imported or accessed as needed. See Best Practices or the Filesystem Browser section in the IntelliBox-I/O 2100 User Guide.

CLI—XCRs can be imported (captured) or exported (dumped) directly to a Telnet, SSH, or serial line CLI session. Capturing an XCR can be started by pasting a valid XCR directly into the CLI prompt. Evolution OS immediately processes the configuration record, changing any

IntelliBox-I/O 2100 Command Reference

17

Image 17
Contents IntelliBox-I/O 2100 Command Reference Date Rev Comments Copyright and TrademarkCommand Line Interface Table of ContentsConfiguration Using XML Commands and LevelsCLI Level Hierarchy List of FiguresList of Tables Conventions Chapter SummariesChapter Summary Convention DescriptionDocument 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 commandsReplyto email address Chem 2 chem2 level commandsTo email addresses Trigger xio1/xio2 high/lowChem 3 chem3 level commands Chem 4 chem4 level commands Configure config level commands Cli config-cli level commandsHost number Connect tunnel-connect2 level commandsIf instance Lpd lineConnect mode any character Connect tunnel-connect1 level commands Device device level commands Timeout milliseconds Disconnect tunnel-disconnect2 level commandsLine line Disconnect tunnel-disconnect1 level commandsEnable enable level commands Eventtrak 1 config-eventtrak1 level commands Filesystem filesystem level commands Eventtrak 2 config-eventtrak2 level commandsThis host is File host port Touch file Create a fileCLI session Auth uri realm Http config-http level commandsAuth user uri user password Port number Icmp config-icmp level commandsIf 1 config-ifeth0 level commands Ip config-ip level commands Io io level commandsIp filter config-filter level commands Ip address ip address/cidrAdd ip address subnet mask Line 1 line1 level commandsRemove ip address subnet mask Baud rate bits per secondLine 2 line2 level commands Commands and Levels Lpd lpd level commands Link config-etherneteth0 level commandsKill line Lpd 1 config-lpd1 level commandsShow line Test print number of linesMatch 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-connect-outputselect1 level commands Output select tunnel-connect-outputselect2 level commandsOutput select tunnel-accept-outputselect2 level commands Packing tunnel-packing2 level commands Output select tunnel-accept-outputselect1 level commandsRoot level commands Packing tunnel-packing1 level commandsQuery port config-queryport level commands Serial tunnel-serial2 level commands Rss config-rss level commandsSerial tunnel-serial1 level commands Snmp config-snmp level commandsSsh ssh level commands Host user user password public Host user user passwordHost user user password public public Ssl ssl level commandsLevel severity Task 1 config-eventtrak-task2.1 level commandsStep letter Task 1 config-eventtrak-task1.1 level commandsTask 2 config-eventtrak-task2.2 level commands 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