Lantronix 2100 manual Record, Group, Item, and Value Tags, XML Group Example

Page 16

4: Configuration Using XML

Record, Group, Item, and Value Tags

A <configgroup> is a logical grouping of configuration parameters and must contain one or more <configitem> elements. It must have a name attribute and may have an instance attribute.

A <configitem> is a specific grouping of configuration parameters relevant to its parent group. An item takes the name attribute and must contain one or more value elements. For example, the line group might have parameters such as baud rate, data bits, and parity.

A value may specify the value of a configuration parameter. It may contain the name attribute. In this example, a value of 9600 might be specified for baud rate; 7 may be specified for data bits, and even may be specified for parity.

A name attribute identifies the group, item, or value. It is always quoted (as are all XML attributes). For example, a group that contains serial port parameters has the name “line”.

An instance attribute identifies which of several instances is being addressed. It is always quoted. For example, the serial port name (in the line configgroup) has the instance “1” to indicate serial port 1 or “2” to specify serial port 2.

The following figures show examples of XML configuration records and the use of the <configrecord>, <configgroup>, <configitem>, and <value> XML elements.

Figure 4-3 XML Group Example

<?xml version=”1.0” standalone=”yes”?> <configrecord>

<configgroup name = “serial command mode” instance = “1”> <configitem name = “mode”>

<value>disable</value>

</configitem>

</configgroup>

</configrecord>

Figure 4-4 XML Example of Multiple Named Values

<?xml version=”1.0” standalone=”yes”?> <configgroup name = “ssh server”

<configitem name = “host rsa keys”> <value name = “public key”></value> <value name = “private key”></value>

</configitem>

</configgroup>

IntelliBox-I/O 2100 Command Reference

16

Image 16
Contents IntelliBox-I/O 2100 Command Reference Copyright and Trademark Date Rev CommentsTable of Contents Command Line InterfaceConfiguration Using XML Commands and LevelsList of Figures CLI Level HierarchyList of Tables Chapter Summaries ConventionsChapter Summary 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 commandsChem 2 chem2 level commands Replyto email addressTo email addresses Trigger xio1/xio2 high/lowChem 3 chem3 level commands Chem 4 chem4 level commands Cli config-cli level commands Configure config level commandsConnect tunnel-connect2 level commands Host numberIf instance Lpd lineConnect mode any character Connect tunnel-connect1 level commands Device device level commands Disconnect tunnel-disconnect2 level commands Timeout millisecondsEnable enable level commands Disconnect tunnel-disconnect1 level commandsLine line Eventtrak 1 config-eventtrak1 level commands Eventtrak 2 config-eventtrak2 level commands Filesystem filesystem 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 Io io level commands Ip config-ip level commandsIp filter config-filter level commands Ip address ip address/cidrLine 1 line1 level commands Add ip address subnet maskRemove ip address subnet mask Baud rate bits per secondLine 2 line2 level commands Commands and Levels Link config-etherneteth0 level commands Lpd lpd level commandsLpd 1 config-lpd1 level commands Kill lineShow 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-accept-outputselect2 level commands Output select tunnel-connect-outputselect2 level commandsOutput select tunnel-connect-outputselect1 level commands Output select tunnel-accept-outputselect1 level commands Packing tunnel-packing2 level commandsQuery port config-queryport level commands Packing tunnel-packing1 level commandsRoot level commands Rss config-rss level commands Serial tunnel-serial2 level commandsSerial tunnel-serial1 level commands Snmp config-snmp level commandsSsh ssh level commands Host user user password Host user user password publicHost user user password public public Ssl ssl level commandsTask 1 config-eventtrak-task2.1 level commands Level severityTask 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 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