Fortinet 93 FortiWeb 5.0 Patch 6 Administration Guide
To configure NTP via the CLI
To synchronize with an NTP server, enter the following commands:
config system global
set ntpsync enable
set timezone <timezone_index>
set ntpserver {<server_fqdn> | <server_ipv4>}
end
where:
<timezone_index> is the index number of the time zone in which the FortiWeb
appliance is located (to view the list of valid time zones and their associated index
numbers, enter a question mark)
{<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
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 FortiWeb’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 FortiWeb appliance’s system time and disable the connection to
an NTP server, enter the following commands:
config system global
set ntpsync disable
set timezone <timezone_index>
set dst {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 FortiWeb
appliance is located (to view the list of valid time zones and their associated index
numbers, enter a question mark)
dst {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 FortiWeb 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 FortiWeb 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