Table 8: Context-Sensitive Help Example
DescriptionExample Outputs
Displays the command syntax for the clock command
in EXEC mode.
The switch output shows that the set keyword is
required for using the clock command.
switch# clock ?
set HH:MM:SS Current Time
switch# clock
Displays the command syntax for setting the time.
The help output shows that the current time is required
for setting the clock and how to format the time.
switch# clock set ?
WORD HH:MM:SS Current Time
switch# clock set
Adds the current time.
The CLI indicates the command is incomplete.
switch# clock set 13:32:00<CR>
% Incomplete command
switch#
Displays the previous command that you entered.
switch# <Ctrl-P>
switch# clock set 13:32:00
Displays the additional arguments for the clock set
command.
switch# clock set 13:32:00 ?
<1-31> Day of the month
switch# clock set 13:32:00
Displays the additional arguments for the clock set
command.
switch# clock set 13:32:00 18 ?
April Month of the year
August Month of the year
December Month of the year
February Month of the year
January Month of the year
July Month of the year
June Month of the year
March Month of the year
May Month of the year
November Month of the year
October Month of the year
September Month of the year
switch# clock set 13:32:00 18
Adds the date to the clock setting.
The CLI indicates an error with the caret symbol (^)
at 08.
switch# clock set 13:32:00 18 April 08<CR>
% Invalid input detected at '^' marker.
Displays the correct arguments for the year.
switch# clock set 13:32:00 18 April ?
<2000-2030> Enter the year (no
abbreviation)
switch# clock set 13:32:00 18 April
Enters the correct syntax for the clock set command.
switch# clock set 13:32:00 18 April 2008<CR>
switch#
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
OL-30890-01 61
Understanding the Command-Line Interface
Context-Sensitive Help