--- title: "Setting the date and time using the CLI" slug: "setting-the-date-and-time-using-the-cli" tags: ["File Protect (FX)", "Product Usage"] updated: 2026-09-08T22:56:48Z published: 2026-09-08T22:56:48Z canonical: "docs.trellix.com/setting-the-date-and-time-using-the-cli" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Setting the date and time using the CLI Use the CLI commands in this topic to set the time zone on your File Protect appliance. ### Important NTP synchronization is set by default and must be disabled before you can manually configure the date and time. For information about disabling NTP, see [NTP server configuration](/docs/ntp-server-configuration-5). Prerequisites - Admin access To set the date and time: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. (Optional) Use the `clock set <HH>:<MM> <YYYY>/<MM>/<DD>` command to specify the time and date. For example, the following command sets the time and date to 2:00 p.m. on July 21, 2014: ``` hostname (config) # clock set 14:00 2014/07/21 ``` 3. Use the `clock timezone <timezone>` command to specify the time zone. For example, both of the following commands set the time zone to Pacific Standard Time: ``` hostname (config) # clock timezone UTC-offset UTC+8 ``` ``` hostname (config) # clock timezone America North United_States Pacific ``` ### Note The time zone is for display purposes and should match other security device settings. 4. To restore the default time zone: ``` hostname (config) # no clock timezone ``` 5. View the configured time and date settings: ``` hostname (config) # show clock ``` 6. Save your changes. ``` hostname (config) # write memory ``` ### Examples - Time and date using the North America Central Daylight time zone: ``` hostname > show clock Time:        16:39:35 Date:        2014/06/25 Time zone:   America North United_States Central             (US/Central) UFC offset: -0500 (UTC minus 5 hours) ``` - Time and date settings using the default time zone: ``` hostname > show clock Time:         21:40:37 Date:         2014/06/25 Time zone:    UTC              (Etc/UTC) UTC offset:   same as UTC ``` :