Mode-based CLI
CLI L2P
Release
7.0
05/2011
3.3
Flow of Operation
45
3.3 Flow of Operation
This section captures the flow of operation for the CLI:
D The operator logs into the CLI session and enters the User Exec mode.
In the User Exec mode the (Hirschmann Product)(exec)> prompt is
displayed on the screen.
The parsing process is initiated whenever the operator types a command and
presses <ENTER>. The command tree is searched for the command of in-
terest. If the command is not found, the output message indicates where the
offending entry begins. For instance, command node A has the command
"show spanning-tree" but the operator attempts to execute the com-
mand "show arpp brief" then the output message would be
(Hirschmann Product)(exec)> show sspanning-tree^.
(Hirschmann Product)%Invalid input detected at '^' mark-
er. If the operator has given an invalid input parameter in the command, then
the message conveys to the operator an invalid input was detected. The lay-
out of the output is depicted below:
(Hirschmann Product)(exec) #show sspanning-tree
^
(Hirschmann Product)Invalid input detected at '^' marker.
Fig. 2: Syntax Error Message
After all the mandatory parameters are entered, any additional parameters
entered are treated as optional parameters. If any of the parameters are not
recognized a syntax error message will be displayed.
D After the command is successfully parsed and validated, the control of
execution goes to the corresponding CLI callback function.