Using the cli, Cli command syntax – Fortinet FortiMail 3.0 MR4 User Manual
Page 21
Using the CLI
CLI command syntax
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-20080814
21
Using the CLI
This section describes how to connect to and use the FortiMail command line
interface (CLI). You can use CLI commands to view all FortiMail system
information and to change all system configuration settings.
This section contains the following topics:
•
•
•
CLI command syntax
This guide uses the following conventions to describe command syntax.
•
Angle brackets < > to indicate variables.
For example:
set console page
You enter:
set console page 40
The various types of variables include:
indicates an ASCII string.
indicates an integer string that is a decimal number.
indicates a dotted decimal IPv4 address.
indicates a dotted decimal IPv4 netmask.
indicates a dotted decimal IPv4 address followed by a
dotted decimal IPv4 netmask (e.g. 192.168.1.99 255.255.255.0)
indicates a dotted decimal IPv4 address followed by a
CIDR notation IPv4 netmask (e.g. 192.168.1.99/24)
indicates an IPv6 address.
indicates an IPv6 netmask.
indicates an IPv6 address followed by an IPv6 netmask.
•
Vertical bar and braces {|} separate alternative, mutually exclusive required
keywords.
For example:
set system opmode {gateway | server | transparent}
You can enter set system opmode gateway or set system opmode
server
or set system opmode transparent.
•
Square brackets [ ] to indicate that a keyword or variable is optional.
For example: