D
CLI OverviewTelnet Sessions
D-9
Command Line Interface
Navigating the CLI Command Tree
Once the administrator or operator logs in and sees the 
Root> 
prompt, the CLI commands are accessed by navigating up and down 
the CLI command tree. To move from the root through the any of the 
four extended branches, enter the name of the next branch as shown 
in Table D-2.
For example, to use the config.port.name command to configure the 
name for port 4 on the switch, you would enter a series of commands 
similar to the following:
Root> config
Config> port
Config.Port> name 4 "Sam’s Tape Drive"
To back up a level, enter two periods; for example:
Config.Port> ..
Config>
One approach to making the navigation more concise is to jump 
directly to return to the root of the CLI command tree, to avoid 
navigating back up the branch:
Config.Port> root
Root>
Another approach to making the navigation more concise is to use 
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 commands similar to the 
following:
Root> config port name 4 "Sam’s Tape Drive"
Root> maint port beacon 4 true
As shown in this example, use of the complete command syntax 
avoids navigating up and down the levels of the CLI command tree, 
and the prompt stays at the root level. The use of the complete 
command syntax is particularly useful when writing scripts.
When coding a script, remember to code the appropriate character 
sequences (described under Navigation Conventions on page D-5):
Root> config port name 4 "Sam’s Tape Drive"<CR>
Root> maint port beacon 4 true<CR>