Lantronix LX6 manual Quick Tour of XML Syntax, Declaration

Page 15

4: Configuration Using XML

Note:

The name for each <configgroup> (specified with the name attribute) is the group name listed in the Web Manager XCR groups or with the "xcr list" CLI command. See the XPort Pro Lx6 Embedded Device Server User Guide for more information about the XCR groups.

An empty or missing <value> element in each present <configgroup> clears the setting to its default.

Quick Tour of XML Syntax

Declaration

The first line, <?xml version="1.0" standalone="yes"?>, is called the XML declaration. It is required and indicates the XML version in use (normally version 1.0). The remainder of the file consists of nested XML elements, some of which have attributes and content.

Element Start and End Tags

An element typically consists of two tags: a start tag and an end tag that surrounds text and other elements (element content). The start tag consists of a name surrounded by angle brackets, for example <configrecord>. The end tag consists of the same name surrounded by angle brackets, but with a forward slash preceding the name, for example </configrecord>. The element content can also contain other "child" elements.

Element Attributes

The XML element attributes that are name-value pairs included in the start tag after the element name. The values must always be quoted, using single or double quotes. Each attribute name should appear only once in an element.

Figure 4-2shows an XML example which consists of a declaration (first line), nested elements with attributes and content.

Figure 4-2 XML Example

<statusgroup name="arp"> <statusitem name="arp entry">

<value name="ip address">172.19.39.17</value> <value name="mac address">00:30:48:5B:6A:A6</value> <value name="type">dynamic</value>

<value name="interface">eth0</value> </statusitem>

XPort® Pro Lx6 Embedded Device Server Command Reference

15

Image 15
Contents Embedded Device Server Command Reference Copyright and Trademark Table of Contents List of Figures List of Tables Conventions Chapter SummariesAdditional Documentation DeviceInstaller Online HelpXML Architecture and Device Control OverviewConfiguration Using the Serial Port 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 Example of Multiple Named Values Record, Group, Item, and Value TagsXML Example of Multiple Items Best Practices Importing and Exporting an XML Configuration FileImporting XCR Groups XML Configuration GroupsConfiguration Using XML Icmp Configuration Using XML Configuration Using XML Configuration Using XML Configuration Using XML URI XSR Group and Items XML Status Record Groups 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 Accept tunnel-accept1 level commands Commands and LevelsFlushes the serial data buffer upon establishing an accept Remove ip IP address Arp config-arp level commandsCli config-cli level commands Add IP address MAC addressConfigure config level commands Connect tunnel-connect1 level commandsIf instance Host instance Cp email-cp3 level commands Cp email-cp4 level commandsCp email-cp2 level commands Cp email-cp1 level commandsCp output tunnel-connect-cpoutput1 level commands Add cp to group bit Cp output tunnel-accept-cpoutput1 level commandsCpm cpm level commands Add cp to groupDevice device level commands Diagnostics config-diagnostics level commandsDisconnect tunnel-disconnect1 level commands Lookup hostorip Timeout millisecondsDiscovery config-discovery level commands Dns dns level commandsFrom text Email 1 email1 level commandsCc text Email numberTo text Email 2 email2 level commandsEmail 3 email3 level commands Email 4 email4 level commands Commands and Levels Enable enable level commands Filesystem filesystem level commands Ftp config-ftp 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 Ipv6 address ip address/prefixlength Icmpv6 config-icmpv6 level commandsIf 1 config-ifeth0 level commands Ip address ip address/cidrIp config-ip level commands Line 1 line1 level commandsBaud rate bits per second Name text Gap timer millisecondsLink config-etherneteth0 level commands Modem tunnel-modem1 level commands Log config-diagnostics-log level commandsPacking tunnel-packing1 level commands Root level commands Serial tunnel-serial1 level commandsSmtp config-smtp level commands Syslog config-syslog level commands Telnet config-cli-telnet level commandsHost text Terminal 1 config-terminal1 level commands Terminal network config-terminalnetwork level commands Xcr dump group list Tunnel 1 tunnel1 level commandsXml xml level commands Secret xcr export file group listXcr import file group list Xsr dump group listXsr export file group list
Related manuals
Manual 74 pages 16.36 Kb