Lantronix LX6 manual Record, Group, Item, and Value Tags, XML Example of Multiple Named Values

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 Example

<configgroup name="arp"> <configitem name="arp delete">

<value name="ip address"/> </configitem>

Figure 4-4 XML Example of Multiple Named Values

<configgroup name="cp group" instance="Line1_Modem_Ctl_In"> <configitem name="cp" instance="3">

<value name="bit">0</value> <value name="type">input</value> <value name="assert low">enable</value>

</configitem>

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

</configitem>

</configgroup> <configrecord version="0.1.0.0T0">

<configgroup name="host" instance="3"> <configitem name="name">

<value/>

</configitem>

<configitem name="protocol"> <value>Telnet</value>

</configitem>

<configitem name="ssh username">

XPort® Pro Lx6 Embedded Device Server Command Reference

16

Image 16
Contents Embedded Device Server Command Reference Copyright and Trademark Table of Contents List of Figures List of Tables Chapter Summaries ConventionsDeviceInstaller Online Help Additional DocumentationOverview XML Architecture and Device ControlConfiguration Using Telnet Configuration Using the Serial PortCommand 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 Example of Multiple Named ValuesXML Example of Multiple Items Importing and Exporting an XML Configuration File Best PracticesImporting XML Configuration Groups XCR GroupsConfiguration Using XML Icmp Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML URI XML Status Record Groups and Items XSR Group and ItemsConfiguration Using XML Configuration Using XML LISTEN, Synrecvd Configuration Using XML Status Configuration Using XML Group Name Item Name Configuration Using XML Configuration Using XML Commands and Levels Commands and Levels Accept tunnel-accept1 level commandsFlushes the serial data buffer upon establishing an accept Arp config-arp level commands Cli config-cli level commandsAdd IP address MAC address Remove ip IP addressConnect tunnel-connect1 level commands Configure config level commandsIf instance Host instance Cp email-cp4 level commands Cp email-cp3 level commandsCp email-cp1 level commands Cp email-cp2 level commandsCp output tunnel-connect-cpoutput1 level commands Cp output tunnel-accept-cpoutput1 level commands Cpm cpm level commandsAdd cp to group Add cp to group bitDiagnostics config-diagnostics level commands Device device level commandsDisconnect tunnel-disconnect1 level commands Timeout milliseconds Discovery config-discovery level commandsDns dns level commands Lookup hostoripEmail 1 email1 level commands Cc textEmail number From textEmail 2 email2 level commands To textEmail 3 email3 level commands Email 4 email4 level commands Commands and Levels Enable enable level commands Ftp config-ftp level commands Filesystem filesystem level commandsHost 1 tunnel-connect-host11 level commands Port number Host 10 tunnel-connect-host110 level commands Host 11 tunnel-connect-host111 level commands Host 12 tunnel-connect-host112 level commands Host 13 tunnel-connect-host113 level commands Host 14 tunnel-connect-host114 level commands Host 15 tunnel-connect-host115 level commands Tunneling Show Shows the current configuration Show history Host 16 tunnel-connect-host116 level commands Host 2 tunnel-connect-host12 level commands Host 3 tunnel-connect-host13 level commands Host 4 tunnel-connect-host14 level commands Host 5 tunnel-connect-host15 level commands Host 6 tunnel-connect-host16 level commands Commands and Levels Host 7 tunnel-connect-host17 level commands Host 8 tunnel-connect-host18 level commands Host 9 tunnel-connect-host19 level commands Http config-http level commands Icmp config-icmp level commands Icmpv6 config-icmpv6 level commands If 1 config-ifeth0 level commandsIp address ip address/cidr Ipv6 address ip address/prefixlengthLine 1 line1 level commands Ip config-ip level commandsBaud rate bits per second Gap timer milliseconds Name textLink config-etherneteth0 level commands Log config-diagnostics-log level commands Modem tunnel-modem1 level commandsPacking tunnel-packing1 level commands Serial tunnel-serial1 level commands Root level commandsSmtp config-smtp level commands Telnet config-cli-telnet level commands Syslog config-syslog level commandsHost text Terminal 1 config-terminal1 level commands Terminal network config-terminalnetwork level commands Tunnel 1 tunnel1 level commands Xml xml level commandsSecret xcr export file group list Xcr dump group listXsr dump group list Xcr import file group listXsr export file group list
Related manuals
Manual 74 pages 16.36 Kb