Fortinet white logo
Fortinet white logo

EMS CLI Reference

7.4.4

execute date

execute date

retrieves, updates, or synchronizes the host's date

Synopsis

execute date interacts with the host's date settings.

Running the command with no arguments will return the current date.

Running the command and passing a date (of the format YYYY-MM-DD) will attempt to update the host's date to the provided date. If the host is synchronized with a time protocol other than NTP, the date will not be updated. If the date is successfully updated, host synchronization with the network will be disabled.

Passing the synch argument will attempt to synchronize the host's date with the network date.

execute date [synch|YYYY-MM-DD] [flags]

Options

  -h, --help   help for date

See also

execute date

execute date

retrieves, updates, or synchronizes the host's date

Synopsis

execute date interacts with the host's date settings.

Running the command with no arguments will return the current date.

Running the command and passing a date (of the format YYYY-MM-DD) will attempt to update the host's date to the provided date. If the host is synchronized with a time protocol other than NTP, the date will not be updated. If the date is successfully updated, host synchronization with the network will be disabled.

Passing the synch argument will attempt to synchronize the host's date with the network date.

execute date [synch|YYYY-MM-DD] [flags]

Options

  -h, --help   help for date

See also