Command Line Interface (CLI) 25

History Command The command line interface of the 3Com Router 1.x provides a function similar to DOSKey by automatically saving the history of commands inputted users. Users can check the history of commands saved in the command line to repeat execution. 10 history commands can be saved at the most for each user. The configuration steps are shown in the following two tables.

1Display history command

The following command can be used in all views to display the command recently input:

Table 6 Display history command

Operation

Command

 

 

Display history command

display history-command

 

 

2Check history command

The following keys can be used in all views to check recent commands:

Table 7 Check history command

Operation

Keys

Result

 

 

 

Go to the previous

Ctrl+E (in Windows

If there are earlier inputted commands, fetch the

history command

9x)

previous one. Otherwise, the alarms rings.

 

 

 

Go to the next

Ctrl+R (in Windows

If there are later inputted commands, fetch the

history command

9x)

next one. Otherwise, clear the commands and the

 

 

alarms rings.

 

 

 

Edit Features of The command line of the 3Com Router 1.x provides basic command edit functions Command Line and supports multi-line editing. The maximum length of each command is 256

characters, as shown in the following table:

The following keys can be used in all views to edit commands:

Table 8 Edit function table

Key

Function

 

 

Any key on board

If the edit buffer is not full, insert the character at the cursor and

 

move the cursor to the right.

 

 

Backspace key:

Delete the character to the left of the cursor and move the cursor

BackSpace

back one character. If the cursor gets to the beginning of the

 

command line, the alarm rings.

 

 

Delete key: Delete

Delete the character at the cursor and the alarm rings when the

 

cursor gets to the end of the command line.

 

 

Left cursor key

The cursor moves one character to the left, and the alarm rings when

 

the cursor gets to the beginning of the command line.

 

 

Right cursor key

The cursor moves one character to the right, and the alarm rings

 

when the cursor gets to end of the command line.

 

 

Display Features of

The command line interface of the 3Com Router 1.x provides the following display

Command Line

features:

 

Provide pause function when the information displayed exceeds one screen page,

 

and three options are available for users.

Page 29
Image 29
3Com 10014299 manual Command Line, Three options are available for users, Display Features