Fortinet black logo

CLI Reference

ntp

ntp

Use this command to configure automatic time setting using a network time protocol (NTP) server.

Syntax

config system ntp

set status {enable | disable}

set sync_interval <string>

config ntpserver

edit <id>

set ntpv3 {enable | disable}

set authentication {enable | disable}

set key <passwd>

set key-id <integer>

set server <string>

end

end

Variable

Description

status {enable | disable}

Enable/disable NTP time setting (default = disable).

sync_interval <string>

Enter how often the FortiAnalyzer unit synchronizes its time with the NTP server, in minutes (1 - 1440, default = 60).

Variables for config ntpserver subcommand:

<id>

Time server ID.

ntpv3 {enable | disable}

Enable/disable NTPv3 (default = disable).

authentication {enable | disable}

Enable/disable MD5 authentication (default = disable).

key <passwd>

The authentication key (character limit = 63).

key-id <integer>

The key ID for authentication (default = 0).

server <string>

Enter the IPv4 or IPv6 address, or fully qualified domain name of the NTP server.

ntp

ntp

Use this command to configure automatic time setting using a network time protocol (NTP) server.

Syntax

config system ntp

set status {enable | disable}

set sync_interval <string>

config ntpserver

edit <id>

set ntpv3 {enable | disable}

set authentication {enable | disable}

set key <passwd>

set key-id <integer>

set server <string>

end

end

Variable

Description

status {enable | disable}

Enable/disable NTP time setting (default = disable).

sync_interval <string>

Enter how often the FortiAnalyzer unit synchronizes its time with the NTP server, in minutes (1 - 1440, default = 60).

Variables for config ntpserver subcommand:

<id>

Time server ID.

ntpv3 {enable | disable}

Enable/disable NTPv3 (default = disable).

authentication {enable | disable}

Enable/disable MD5 authentication (default = disable).

key <passwd>

The authentication key (character limit = 63).

key-id <integer>

The key ID for authentication (default = 0).

server <string>

Enter the IPv4 or IPv6 address, or fully qualified domain name of the NTP server.