Lantronix LX6 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 XPort Pro Lx6 embedded device server 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 using the Tab and Enter keys on the keyboard. 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:

 

Table 3-1 Keyboard Shortcuts

 

 

 

Key Combination

 

Description

Ctrl + a

 

Places cursor at the beginning of a line

 

 

 

Ctrl + b

 

Backspaces one character

 

 

 

Ctrl + d

 

Deletes one character

 

 

 

Ctrl + e

 

Places cursor at the end of the line

 

 

 

Ctrl + f

 

Moves cursor forward one character

 

 

 

Ctrl + k

 

Deletes from the current position to the end of the line

 

 

 

Ctrl + l

 

Redraws the command line

 

 

 

Ctrl + n

 

Displays the next line in the history

 

 

 

Ctrl + p

 

Displays the previous line in the history

 

 

 

Ctrl + u

 

Deletes entire line and places cursor at start of prompt

 

 

 

Ctrl + w

 

Deletes one word back

 

 

 

Ctrl + z

 

Exits the current CLI level

 

 

 

Esc + b

 

Moves cursor back one word

 

 

 

Esc + f

 

Moves 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.

XPort® Pro Lx6 Embedded Device Server Command Reference

11

Image 11
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 addressIf instance Configure config level commandsConnect tunnel-connect1 level commands Host instance Cp email-cp3 level commands Cp email-cp4 level commandsCp output tunnel-connect-cpoutput1 level commands Cp email-cp2 level commandsCp email-cp1 level commands Add cp to group bit Cp output tunnel-accept-cpoutput1 level commandsCpm cpm level commands Add cp to groupDisconnect tunnel-disconnect1 level commands Device device level commandsDiagnostics config-diagnostics 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 Host 1 tunnel-connect-host11 level commands Filesystem filesystem level commandsFtp config-ftp 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/cidrBaud rate bits per second Ip config-ip level commandsLine 1 line1 level commands Name text Gap timer millisecondsLink config-etherneteth0 level commands Modem tunnel-modem1 level commands Log config-diagnostics-log level commandsPacking tunnel-packing1 level commands Smtp config-smtp level commands Root level commandsSerial tunnel-serial1 level commands Host text Syslog config-syslog level commandsTelnet config-cli-telnet level commands 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 listXsr export file group list Xcr import file group listXsr dump group list
Related manuals
Manual 74 pages 16.36 Kb