How to set up your FortiADC : Setting the system time & date
 
Setting the system time & date
You can either manually set the FortiADC system time or configure the FortiADC appliance to automatically keep its system time correct by synchronizing with a Network Time Protocol (NTP) server.
 
For many features to work, including scheduling, logging, and SSL/TLS-dependent features, the FortiADC system time must be accurate.
To configure the system time via the web UI
1. Go to System > Maintenance > System Time.
The Time Settings dialog appears.
Alternatively, go to System > Status > Dashboard. In the System Information widget, in the System Time row, click Change.
To access this part of the web UI, your administrator's account access profile must have Read-Write permission to items in the Maintenance category. For details, see “Permissions”.
2. From Time Zone, select the time zone where the FortiADC appliance is located.
3. If you want FortiADC to automatically synchronize its clock with an NTP server (recommended), configure these settings:
Setting name
Description
Synchronize with NTP Server
Select this option to automatically synchronize the date and time of the FortiADC appliance’s clock with an NTP server, then configure the Server and Sync Interval fields before you click Save.
 
Server
Type the IP address or domain name of an NTP server or pool, such as pool.ntp.org. To find an NTP server that you can use, go to http://www.ntp.org.
 
Sync Interval
Type how often in minutes the FortiADC appliance should synchronize its time with the NTP server. For example, entering 1440 causes the FortiADC appliance to synchronize its time once a day.
Otherwise, select Set Time, then manually set the current date and time. If you want FortiADC to automatically adjust its own clock when its time zone changes between daylight saving time (DST) and standard time, enable Automatically adjust clock for daylight saving changes.The clock will be initialized with your manually specified time when you click Save.
4. Click Save.
If you manually configured the time, or if you enabled NTP and the NTP query for the current time succeeds, the new clock time should appear in System Time. (If the query reply is slow, you may need to wait a couple of seconds, then click Refresh to update the display in System Time.)
If the NTP query fails, the system clock will continue without adjustment. If FortiADC’s time was 3 hours late, for example, the time will still be 3 hours late. Verify your DNS server IPs, your NTP server IP or name, routing, and that your firewalls or routers do not block or proxy UDP port 123.
To configure NTP via the CLI
To synchronize with an NTP server, enter the following commands:
config system time ntp
set ntpsync enable
set ntpserver {<server_fqdn> | <server_ipv4>}
set syncinterval <minutes_int>
end
where:
{<server_fqdn> | <server_ipv4>} is a choice of either the IP address or fully qualified domain name (FQDN) of the NTP server, such as pool.ntp.org
<minutes_int> is how often in minutes the FortiADC appliance should synchronize its time with the NTP server
If your NTP query succeeds, the new clock time should appear when you enter the command:
get system status
If the NTP query fails, the system clock will continue without adjustment. If FortiADC’s time was 3 hours late, for example, the time will still be 3 hours late. Verify your DNS server IPs, your NTP server IP or name, routing, and that your firewalls or routers do not block or proxy UDP port 123.
To manually set the date and time via the CLI
To manually configure the FortiADC appliance’s system time and disable the connection to an NTP server, enter the following commands:
config system time ntp
set ntpsync disable
end
config system time manual
set zone <timezone_index>
set daylight-saving-time {enable | disable}
end
execute time <time_str>
execute date <date_str>
where:
<timezone_index> is the index number of the time zone in which the FortiADC appliance is located (to view the list of valid time zones and their associated index numbers, enter a question mark)
daylight-saving-time {enable | disable} is a choice between enabling or disabling daylight saving time (DST) clock adjustments
<time_str> is the time for the time zone in which the FortiADC appliance is located according to a 24-hour clock, formatted as hh:mm:ss (hh is the hour, mm is the minute, and ss is the second)
<date_str> is the date for the time zone in which the FortiADC appliance is located, formatted as yyyy-mm-dd (yyyy is the year, mm is the month, and dd is the day)
See also
System Information widget