Chapter 10 Install and System Administration for FortiOS 5.0 : Using the CLI : Command syntax : Notation
  
Notation
Brackets, braces, and pipes are used to denote valid permutations of the syntax. Constraint notations, such as <address_ipv4>, indicate which data types or string patterns are acceptable value input.
Table 60: Command syntax notation
Convention
Description
Square brackets [ ]
 
A non-required word or series of words. For example:
[verbose {1 | 2 | 3}]
indicates that you may either omit or type both the verbose word and its accompanying option, such as verbose 3.
Angle brackets < >
A word constrained by data type. The angled brackets contain a descriptive name followed by an underscore ( _ ) and suffix that indicates the valid data type. For example, <retries_int>, indicates that you should enter a number of retries, such as 5.
Data types include:
<xxx_name>: A name referring to another part of the configuration, such as policy_A.
<xxx_index>: An index number referring to another part of the configuration, such as 0 for the first static route.
<xxx_pattern>: A regular expression or word with wild cards that matches possible variations, such as *@example.com to match all email addresses ending in @example.com.
<xxx_fqdn>: A fully qualified domain name (FQDN), such as mail.example.com.
<xxx_email>: An email address, such as admin@example.com.
<xxx_ipv4>: An IPv4 address, such as 192.168.1.99.
<xxx_v4mask>: A dotted decimal IPv4 netmask, such as 255.255.255.0.
<xxx_ipv4mask>: A dotted decimal IPv4 address and netmask separated by a space, such as 192.168.1.99 255.255.255.0.
<xxx_ipv4/mask>: A dotted decimal IPv4 address and CIDR-notation netmask separated by a slash, such as 192.168.1.1/24.
<xxx_ipv4range>: A hyphen ( )-delimited inclusive range of IPv4 addresses, such as 192.168.1.1-192.168.1.255.
<xxx_ipv6>: A colon( : )-delimited hexadecimal IPv6 address, such as 3f2e:6a8b:78a3:0d82:1725:6a2f:0370:6234.
<xxx_v6mask>: An IPv6 netmask, such as /96.
<xxx_ipv6mask>: A dotted decimal IPv6 address and netmask separated by a space.
<xxx_str>: A string of characters that is not another data type, such as P@ssw0rd. Strings containing spaces or special characters must be surrounded in quotes or use escape sequences. See “Special characters”.
<xxx_int>: An integer number that is not another data type, such as 15 for the number of minutes.
Curly braces { }
A word or series of words that is constrained to a set of options delimited by either vertical bars or spaces. You must enter at least one of the options, unless the set of options is surrounded by square brackets [ ].
Options delimited by vertical bars |
Mutually exclusive options. For example:
{enable | disable}
indicates that you must enter either enable or disable, but must not enter both.
Options delimited by spaces
Non-mutually exclusive options. For example:
{http https ping snmp ssh telnet}
indicates that you may enter all or a subset of those options, in any order, in a space-delimited list, such as:
ping https ssh
See Also
Terminology
Indentation
Command syntax
Connecting to the CLI
Sub-commands
Permissions
Tips