Fortinet white logo
Fortinet white logo

CLI Reference

config system time ntp

config system time ntp

Use this command to manage the connection to an NTP server.

Before you begin:

  • You must have read-write permission for system settings.

Syntax

config system time ntp

set ntpsync {enable|disable}

set ntpserver <string>

set syncinterval <integer>

end

ntpsync

Enable/disable use of NTP.

ntpserver

Specify the IP address or domain name of an NTP server or pool, such as pool.ntp.org.

To find an NTP server, go to http://www.ntp.org.

syncinterval

Specify how often the system synchronizes its time with the NTP server. The default is 60 minutes. The valid range is 1-1440.

Example

FortiADC-VM # get system time ntp

ntpsync : disable

FortiADC-VM # config system time ntp

FortiADC-VM (ntp) # set ntpsync enable

FortiADC-VM (ntp) # end

FortiADC-VM # get system time ntp

ntpsync : enable

ntpserver : pool.ntp.org

syncinterval : 60

config system time ntp

config system time ntp

Use this command to manage the connection to an NTP server.

Before you begin:

  • You must have read-write permission for system settings.

Syntax

config system time ntp

set ntpsync {enable|disable}

set ntpserver <string>

set syncinterval <integer>

end

ntpsync

Enable/disable use of NTP.

ntpserver

Specify the IP address or domain name of an NTP server or pool, such as pool.ntp.org.

To find an NTP server, go to http://www.ntp.org.

syncinterval

Specify how often the system synchronizes its time with the NTP server. The default is 60 minutes. The valid range is 1-1440.

Example

FortiADC-VM # get system time ntp

ntpsync : disable

FortiADC-VM # config system time ntp

FortiADC-VM (ntp) # set ntpsync enable

FortiADC-VM (ntp) # end

FortiADC-VM # get system time ntp

ntpsync : enable

ntpserver : pool.ntp.org

syncinterval : 60