
XG1200 User's Guide
16/258
All Rights Reserved, Copyright (C) PFU LIMITED 2005
2.2 Using the CLI
2.2.1 How to Enter Commands
Command Entry Format
Separate each command, subcommand and argument with a single space.
<command> <subcommand> <argument 1> <argument 2> ... (" " indicates a space.)
xg(config)# management-interface ip 192.168.1.10/24 default-gw 192.168.1.150
xg(config)# management-interface dns-server 192.168.1.150
Characters that can be entered:
−
Any letter (A-Z, a-z) and digit (0-9)
−
Space (ASCII code: 0x20)
−
Symbols: !, ". #, $, %, `, ', (, ), _, -, ~, ^, ¥, {, }, :, +, ,, ., @, =, [, ], &, *, ;, /, ?, |, >
Command and option separators are recognized by one or more space characters (ASCII code: 0x20). Enclose a
parameter in quotes if it contains a blank space.
The commands are not case-sensitive. Note that some entries (password, etc.) are case-sensitive.
2.2.2 Context-Sensitive Help
Entering a question mark "?" during command entry displays a list of commands available for each command mode. You can
also get a list of any command's associated keywords and parameters with the context-sensitive help.
A list of commands that are available in the current mode
Entering a question mark "?" at the system prompt displays a list of commands and brief descriptions available for the
current command mode.
xg # ?
Exec commands:
boot-system Select system to restart
clear Reset functions
configure Enter configuration mode
copy Copy from one file to another
date Display or set current date-time
delete Delete local files
dir Display local files
:
(The rest is omitted.)
xg# _
Word help
If you type a question mark "?" in the middle of a command name, the CLI lists possible command completions that
forward-match the letters you have typed. The prompt will show the letters that you typed. You only have to type in the
rest of the letters to complete the command entry.
xg # co?
Exec commands:
configure Enter configuration mode
copy Copy from one file to another
xg# co_
The CLI lists all possible commands that begin with "co".
A list of options that are available in the current entry position
If you type a question mark "?" following a space after typing a command name, the CLI lists the names of commands
that can be entered at the current option position. For option 2 and 3 positions, the CLI also lists options that can be
entered at these positions. The prompt will show the letters that you typed. You only have to type in the rest of the
letters to complete the command entry.
xg# configure ?
terminal Configure from the terminal
xg# configure _
CLI lists possible options that follow the "configure" command.
The <cr> symbol appears in the list to indicate that you can execute the command without entering any subsequent
options. Parameters enclosed in square brackets can be omitted and, therefore, the <cr> symbol does not appear.