system time
To set the system time using the Network Time Protocol (NTP) server, use the system time command in global configuration mode. Use the no form of the command to delete the time configuration.
Note |
When you enable and synchronize the system time clock using an NTP server, you must reboot the Cisco Enterprise NFVIS so that the BMC or CIMC date and time get updated with the new hardware clock. |
system time [ timezone zone-subzone] [ ntp [ preferred_server {ipv4-address | host-name}] [ backup_server {ipv4-address | host-name}] | ntp-ipv6 {ipv6-address | host-name}]
no system time {ntp | ntp-ipv6}
Syntax Description
timezone zone-subzone |
Specifies the timezone using zone and subzone. |
ntp |
Specifies the time using the NTP IPv4 server. |
preferred_server |
Specifies the IPv4 preferred server details. |
ipv4-address |
Specifies the IPv4 address. |
hostname |
Specifies the hostname. |
backup_server |
Specifies the IPv4 backup server details. |
ntp-ipv6 |
Specifies the time using the NTP IPv6 server. |
ipv6-address |
Specifies the IPv6 address. |
Command Default
None
Command Modes
Global configuration (config)
Command History
Release | Modification |
---|---|
3.7.1 |
The manual_time parameter is removed and the ntp-ipv6 parameter is added. To set the system time manually, use the system set-manual-time command. |
3.5.1 |
This command was introduced. |
Usage Guidelines
When you set the system time manually using the system set-manual-time command, the NTP is disabled automatically. Similarly, when NTP is enabled, the manual time configuration is automatically disabled.
Examples
The following example shows how to set system time using NTP IPv4 server:
nfvis(config)# system time ntp preferred_server 198.51.100.1 backup_server 203.0.113.1
nfvis(config)# commit
Examples
The following example shows how to set system time using NTP IPv6 server:
nfvis(config)# system time ntp-ipv6 2001:420:30d:201:ffff:ffff:fff4:35
nfvis(config)# commit