CLI command branches

Using the CLI

To connect to the CLI using SSH

1Install and start an SSH client.

2Connect to the FortiMail interface that is configured for SSH connections.

3Type a valid administrator name and press Enter.

4Type the password for this administrator and press Enter. The FortiMail model name followed by a # is Displayed.

You have connected to the FortiMail CLI, and you can enter CLI commands.

Connecting to the FortiMail CLI using Telnet

!

1

2

3

4

You can use Telnet to connect to the FortiMail CLI from your internal network or the Internet. Once the FortiMail unit is configured to accept Telnet connections, you can run a Telnet client on your management computer and use this client to connect to the FortiLog CLI.

Caution: Telnet is not a secure access method. SSH should be used to access the FortiLog CLI from the internet or any other unprotected network.

To connect to the CLI using Telnet

Install and start a Telnet client.

Connect to the FortiMail interface that is configured for Telnet connections. Type a valid administrator name and press Enter.

Type the password for this administrator and press Enter.

You have connected to the FortiMail CLI, and you can enter CLI commands.

CLI command branches

The FortiGate command-line interface consists of four command branches:

Use execute to run static commands on the FortiMail unit. Examples include resetting the device, formatting the hard drive, and pinging other devices from the FortiMail unit’s network interfaces.

For a complete execute command list, see “execute” on page 25.

Use get to display system status information. The get command can be used to display the current value of items configured with the set command. For a complete get command list, see “get” on page 49.

Use set to configure the FortiMail unit. All of the configuration allowed in the GUI can also be accomplished using the set command. Some extra options not available in the GUI are also available with the set command.

For a complete set command list, see “set” on page 93.

Use unset to return settings to their default values.

For a complete unset command list, see “unset” on page 353.

 

FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference

24

06-30004-0420-20080814

Page 24
Image 24
Fortinet 3.0 MR4 manual CLI command branches, To connect to the CLI using SSH