Ju
ne
20
18
392 Legrand PDU User Guide
Retrieving Previous Commands
If you would like to retrieve any command that was previously typed in the same connection session, press
the Up arrow ( ) on the keyboard several times until the desired command is displayed.
Automatically Completing a Command
A CLI command always consists of several words. You can easily enter a command by typing first word(s) or
letter(s) and then pressing Tab or Ctrl+i instead of typing the whole command word by word.
To have a command completed automatically:
1. Type initial letters or words of the desired command. Make sure the letters or words you typed are
unique so that the CLI can identify the command you want.
2. Press Tab or Ctrl+i until the complete command appears.
3. If there are more than one possible commands, a list of these commands is displayed. Then type the full
command.
Examples:
Example 1 (only one possible command):
a. Type the first word and the first letter of the second word of the "
reset factorydefaults
"
command -- that is,
reset f
.
b. Then press Tab or Ctrl+i to complete the second word.
Example 2 (only one possible command):
a. Type the first word and initial letters of the second word of the "
security
enforceHttpsForWebAccess
" command -- that is,
security enf
.
b. Then press Tab or Ctrl+i to complete the second word.
Example 3 (more than one possible commands):
a. Type only the first two words of the "
network ipv4 gateway xxx.xxx.xxx.xxx
" command -- that
is,
network ipv4.
b. Then press Tab or Ctrl+i one or two times, a list of possible commands displays as shown below.
gateway
interface
staticRoutes
c. Type the full command "
network ipv4 gateway xxx.xxx.xxx.xxx
", according to the onscreen
command list.
Logging out of CLI
After completing your tasks using the CLI, always log out of the CLI to prevent others from accessing the
CLI.
To log out of the CLI:
1. Ensure you have entered administrator mode and the # prompt is displayed.
2. Type
exit
and press Enter.