Lantronix 900-558 manual Using Keyboard Shortcuts and CLI, Understanding the CLI Level Hierarchy

Page 11

3: Command Line Interface

Using Keyboard Shortcuts and CLI

One useful shortcut built into Evolution OS™ is that the complete text of a command does not have to be entered to issue a command. Typing just enough characters to uniquely identify a command, then hitting enter, can be used as a short cut for a command. For example, at the enable level, "sh" can be used for the "show" command.

Tab Completion is also available. Typing the first few characters of a command, then hitting the <tab> key displays the first command that begins with those characters. Hitting the <tab> key again displays the next command that begins with the original characters typed. You can press <Enter> to execute the command or you can backspace to edit any parameters.

The following key combinations are allowed when configuring the device server using the CLI:

Ctrl + a: place cursor at the beginning of a line

Ctrl + b: backspace one character

Ctrl + d: delete one character

Ctrl + e: place cursor at the end of the line

Ctrl + f: move cursor forward one character

Ctrl + k: delete from the current position to the end of the line

Ctrl + l: redraw the command line

Ctrl + n: display the next line in the history

Ctrl + p: display the previous line in the history

Ctrl + u: delete entire line and place cursor at start of prompt

Ctrl + w: delete one word back

Ctrl + z: a shortcut for the exit command

Esc + b: move cursor back one word

Esc + f: move cursor forward one word

Understanding the CLI Level Hierarchy

The CLI hierarchy is a series of levels. Arranging commands in a hierarchy of levels provides a way to organize and group similar commands, provide different levels of security, and reduce the complexity and number commands and options presented to a user at one time.

When you start a command line session, you begin at the login level. This level can be password protected and provides access to high level status, a few diagnostic commands, and the enable level. Further device information and configuration are accessed via the enable level.

The enable level can also be password protected and is the gateway to full configuration and management of the device server. There are commands for gathering and effecting all elements of device status and configuration, as well as commands that take you to additional levels. For instance, tunnel specific status and configuration is found under the "tunnel" level, and network specific status and configuration commands are found under the "configuration" level.

An overview of the levels in the XPort Pro is presented in Figure 3-1.

XPort Pro Command Reference

11

Image 11
Contents Command Reference Copyright and Trademark Commands and Levels Table of ContentsCommand Line Interface Configuration Using XMLCLI Level Hierarchy List of FiguresList of Tables Conventions Chapter SummariesDocument Description Additional Documentation XML 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 Login 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 GroupsRandom URI Cidr Configuration Using XML Configuration Using XML Configuration Using XML Cidr Configuration Using XML Configuration Using XML Unknown Aes encrypt key Aes decrypt key Host mode Configuration Using XML XML Status Record Groups and Items 9XSR Groups and Items Configuration 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 Commands and Levels Commands and Levels Accept tunnel-accept1 level commands Commands and LevelsMode tunneling Client ssh-client level commands Arp config-arp level commandsCli config-cli level commands Configure config level commands Figured Connect tunnel-connect1 level commandsHost instance Cp email-cp1 level commands Cp email-cp4 level commandsCp email-cp3 level commands Cp email-cp2 level commandsCp output tunnel-accept-cpoutput1 level commands Cp output tunnel-connect-cpoutput1 level commandsDevice device level commands Cpm cpm level commandsDisconnect tunnel-disconnect1 level commands Diagnostics config-diagnostics level commandsEmail 1 email1 level commands Dns dns level commandsTo text Email 2 email2 level commandsCommands and Levels Email 3 email3 level commands Email 4 email4 level commands Enable enable level commands Filesystem filesystem level commands Host 1 tunnel-connect-host11 level commands Ftp config-ftp level commandsPort number Host 1 config-host1 level commandsName text Host 10 tunnel-connect-host110 level commandsHost 10 config-host10 level commands Host 11 tunnel-connect-host111 level commands Host 11 config-host11 level commands Host 12 tunnel-connect-host112 level commands Host 12 config-host12 level commands Host 13 tunnel-connect-host113 level commands Host 13 config-host13 level commands Host 14 tunnel-connect-host114 level commands Host 14 config-host14 level commands Host 15 tunnel-connect-host115 level commands Host 15 config-host15 level commands Host 16 tunnel-connect-host116 level commands Host 16 config-host16 level commands Host 2 tunnel-connect-host12 level commands Host 2 config-host2 level commands Host 3 tunnel-connect-host13 level commands Host 3 config-host3 level commands Host 4 tunnel-connect-host14 level commands Host 4 config-host4 level commands Host 5 tunnel-connect-host15 level commands Host 5 config-host5 level commands Host 6 tunnel-connect-host16 level commands Host 6 config-host6 level commands Host 7 tunnel-connect-host17 level commands Host 8 tunnel-connect-host18 level commands Host 7 config-host7 level commandsCommands and Levels Host 9 tunnel-connect-host19 level commands Host 8 config-host8 level commandsCommands and Levels Auth uri realm Host 9 config-host9 level commandsHttp config-http level commands Auth user uri user password Icmp config-icmp level commands Mtu bytes If 1 config-ifeth0 level commandsIp config-ip level commands Ip address ip address/cidrLine 1 line1 level commands Ip filter config-filter level commandsGap timer milliseconds XPort Pro Command Reference 103 Kill line Link config-etherneteth0 level commandsLog config-diagnostics-log level commands Lpd lpd level commandsLpd 1 config-lpd1 level commands Test print number of lines Modbus modbus level commandsModem tunnel-modem1 level commands Packing tunnel-packing1 level commands Local ip ip address/cidr Password tunnel-accept-password1 level commandsPpp 1 ppp1 level commands Peer ip ip address Query port config-queryport level commandsRoot level commands Rss config-rss level commandsAuthorized user username password Rss modbus-rss level commandsSerial tunnel-serial1 level commands Server ssh-server level commandsSnmp config-snmp level commands Smtp config-smtp level commandsSsl ssl level commands Ssh ssh level commandsSsh config-cli-ssh level commands Host text Syslog config-syslog level commandsTcp config-tcp level commands Terminal 1 config-terminal1 level commands Telnet config-cli-telnet level commandsTerminal network config-terminalnetwork level commands Tftp config-tftp level commands Tunnel 1 tunnel1 level commands Traps config-snmp-traps level commandsSecret xcr export file group list Udp config-udp level commandsVip config-vip level commands Xml xml level commandsXsr dump group list Xcr dump group listXcr export file group list Xcr import file group list