Fortinet black logo

CLI reference

config system time ntp

config system time ntp

Use this command to configure FortiAI to synchronize its system time with a network time protocol (NTP) server.

Accurate system time is required by many features of FortiAI such as log messages and SSL-secured connections.

Syntax

config system time ntp
    set ntpserver {<address_ipv4> | <fqdn_str>}
    set ntpsync {enable | disable}
    set syncinterval <interval_int>
end

Variable

Description

Default

ntpserver {<address_ipv4> | <fqdn_str>}

IP address or FQDN of an NTP server.

You can add a maximum of ten NTP servers. FortiAI uses the first NTP server based on the selection mechanism of the NTP protocol.

To locate a public NTP server, visit http://www.ntp.org/.

pool.ntp.org

ntpsync {enable | disable}

Enable to synchronize FortiAI with an NTP server instead of manually configuring the system time.

enable

syncinterval <interval_int>

The interval in minutes between synchronizations of the system time with the NTP server. The valid range is 1 to 1440.

config system time ntp

Use this command to configure FortiAI to synchronize its system time with a network time protocol (NTP) server.

Accurate system time is required by many features of FortiAI such as log messages and SSL-secured connections.

Syntax

config system time ntp
    set ntpserver {<address_ipv4> | <fqdn_str>}
    set ntpsync {enable | disable}
    set syncinterval <interval_int>
end

Variable

Description

Default

ntpserver {<address_ipv4> | <fqdn_str>}

IP address or FQDN of an NTP server.

You can add a maximum of ten NTP servers. FortiAI uses the first NTP server based on the selection mechanism of the NTP protocol.

To locate a public NTP server, visit http://www.ntp.org/.

pool.ntp.org

ntpsync {enable | disable}

Enable to synchronize FortiAI with an NTP server instead of manually configuring the system time.

enable

syncinterval <interval_int>

The interval in minutes between synchronizations of the system time with the NTP server. The valid range is 1 to 1440.