Lantronix 2100 manual Configuration Using XML, XML Configuration Record Document Type Definition

Page 14

4:Configuration Using XML

The device server provides an Extensible Markup Language (XML) interface that you can use to configure device server devices. Every configuration setting that can be issued from the device server Web Manager and CLI can be specified using XML.

The device server can import and export configuration settings as an XML document known as an XML Configuration Record (XCR). An XCR can be imported or exported via the CLI, a Web browser, FTP, or the device server filesystem. An XCR can contain many configuration settings or just a few. For example, it might change all of the configurable parameters for a device server, or it may only change the baud rate for a single serial line. Using XCRs is a straightforward and flexible way to manage the configuration of multiple device server devices.

XML Configuration Record Document Type Definition

An XML document type definition (DTD) is a description of the structure and content of an XML document. It verifies that a document is valid. XCRs are exported using the DTD shown in Figure 4-1.

Figure 4-1 DTD for XCRs

<!DOCTYPE configrecord [

<!ELEMENT configrecord (configgroup+)> <!ELEMENT configgroup (configitem+)> <!ELEMENT configitem (value+)> <!ELEMENT value (#PCDATA)>

<!ATTLIST configrecord version CDATA #IMPLIED> <!ATTLIST configgroup name CDATA #IMPLIED> <!ATTLIST configgroup instance CDATA #IMPLIED> <!ATTLIST configitem name CDATA #IMPLIED> <!ATTLIST value name CDATA #IMPLIED>

]>

The device server DTD rules state the following:

The XML document element is a <configrecord> element. This is the root element.

A <configrecord> must have one or more <configgroup> elements and can have a version attribute.

A <configgroup> must have one or more <configitem> elements and can have name and instance attributes.

A <configitem> element must have one or more <value> elements and can have a name attribute.

A <value> element can have only data and can have a name attribute.

The name attribute identifies a group, item, or value. It is always a quoted string.

The instance attribute identifies the specific option, like the serial port number. The “instance” attribute is always a quoted string.

IntelliBox-I/O 2100 Command Reference

14

Image 14
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 millisecondsLine line Disconnect tunnel-disconnect1 level commandsEnable enable level commands Eventtrak 1 config-eventtrak1 level commands Eventtrak 2 config-eventtrak2 level commands Filesystem filesystem 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 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-outputselect1 level commands Output select tunnel-connect-outputselect2 level commandsOutput select tunnel-accept-outputselect2 level commands Output select tunnel-accept-outputselect1 level commands Packing tunnel-packing2 level commandsRoot level commands Packing tunnel-packing1 level commandsQuery port config-queryport 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 severityStep 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 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