Fortinet MR1 Switch User Manual


 
46
4 Command Line Interface Structure
and Mode-based CLI
The Command Line Interface (CLI) syntax, conventions, and terminology are described in
this section. Each CLI command is illustrated using the structure outlined below.
4.1 CLI Command Format
Commands are followed by values, parameters, or both.
Example 1
IP address <ipaddr> <netmask> [<gateway>]
Ip address is the command name.
<ipaddr> <netmask> are the required values for the command.
[<gateway>] is the optional value for the command.
Example 2
snmp-server host <loc>
snmp-server location is the command name.
<loc> is the required parameter for the command.
Example 3
clear vlan
clear vlan is the command name.
Command
The text in bold, non-italic font must be typed exactly as shown.
4.2 CLI Mode-based Topology
Parameters
Parameters are order dependent.
The text in bold italics should be replaced with a name or number. To use spaces as part of a
name parameter, enclose it in double quotes like this: "System Name with Spaces".
Parameters may be mandatory values, optional values, choices, or a combination.
– <parameter>. The <> angle brackets indicate that a mandatory parameter must be entered
in place of the brackets and text inside them.
– [parameter]. The [] square brackets indicate that an optional parameter may be entered in
place of the brackets and text inside them.
– choice1 | choice2. The | indicates that only one of the parameters should be entered.