User manual

1
1-14
E/OS Command Line Interface User Manual
Entering Command Line Interface Commands
Navigation of the
CLI Command Tree
To move from the root through any of the four extended branches,
enter the name of the next branch as shown in Table 1-2, CLI
Command Tree, page 1-5.
For example, to use the
config.port.name command to configure
the name for port 4 on the switch, enter the series of commands as
follows:
Root> config
Config> port
Config.Port> name 4 "Sam’s Tape Drive"
If you want to set the beaconing state of port 4 using the enter the
maint.port.beacon
command, enter the following series of
commands:
Config.Port> ..
Config> ..
Root> maint
Maint> port
Maint.Port> beacon 4 true
Note that you must return all the way to the root of the tree to
transition to another extended branch. When traversing back to the
root, the name of each branch cannot be used. Instead, use the
double-dot command (two periods) to move back towards the root.
Note that only one double-dot command may be entered at a time.
You can use the
root command to jump directly to the root of the CLI
command tree. The previous example, which shows stepping back to
the root with the double-dot command, is simplified as follows:
Config.Port> root
Root> maint
Maint> port
Maint.Port> beacon 4 true
As an easier and simpler method, you can enter the complete
command syntax from the
Root> prompt each time. For example, to
issue the
config.port.name command and then the
maint.port.beacon command, enter the following commands:
Root> config port name 4 "Sam’s Tape Drive"
Root> maint port beacon 4 true
While entering the complete command syntax, the prompt stays at
the root. The use of complete command syntax is particularly useful
when writing scripts.