28
D-Link DES-3226L Command Line Reference
Flow of Operation
This section describes the flow of operation for the CLI.
1.
Log into the CLI session and enter the User EXEC mode. In the User EXEC mode the $(exec)>
prompt displays on the screen.
You initiate the parsing process when you type a command and press
or unavailable command, the output message indicates where the offending entry begins. For instance,
if you enter
is
$(exec)> show arpp^ brief. $%Invalid input detected at '^' marker
shows you where the invalid input is detected. Figure 2 shows the layout of the output.
Figure 2. Syntax Error Message
After you enter the required parameters, any additional parameters you enter are treated as optional
parameters. If any of the parameters are not recognized, a syntax error message is displayed.
2.
After the command is successfully parsed and validated, the control of execution goes to the corre-
sponding CLI callback function.
3.
For required parameters, the command tree extends until the required parameters make the leaf of
the branch. The callback function is only invoked when all the required parameters are provided.
For optional parameters, the command tree extends until the required parameters and the optional
parameters make the leaf of the branch. However, the callback function is associated with the node
where the required parameters are fetched. The call back function then takes care of the optional
parameters.
4.
Once the control has reached the callback function, the callback function has complete information
about the parameters you enter.
(notice the extra
show arpp brief
(exec) #show arpp brief
^
%Invalid input detected at '^' marker.
<ENTER>
) instead of
p
show arp brief
. If you enter an incorrect
, the output message
. The message