Cisco MDS: Clock set:: NTP server/peer configured. Can't set the clock. To set the clock, please remove the ntp server/peer config.
Summary: Receive error trying to change the date using clock set command.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Trying to set clock date/time using clock set command.
Attempting to change the clock date using clock set commands gets an error indicating NTP config is enabled:
NTP feature is disabled, but NTP config is still in running config:
Attempting to change the clock date using clock set commands gets an error indicating NTP config is enabled:
MDS9513(config)# clock set 11:20:00 24 Jun 2019
Clock set:: NTP server/peer configured. Can't set e clocthk.
To set the clock, please remove the ntp server/peer config.
Clock set:: NTP server/peer configured. Can't set e clocthk.
To set the clock, please remove the ntp server/peer config.
NTP feature is disabled, but NTP config is still in running config:
MDS9513(config)# show ntp status
NTP is already disabled
show running-config:
ntp distribute
ntp server 1.6.254.12
ntp server 1.6.255.12
ntp server 1.10.254.12 prefer
ntp server 1.10.255.12
no feature ntp
ntp commit
NTP is already disabled
show running-config:
ntp distribute
ntp server 1.6.254.12
ntp server 1.6.255.12
ntp server 1.10.254.12 prefer
ntp server 1.10.255.12
no feature ntp
ntp commit
Cause
To set clock time/date using the clock set command, all NTP config must be removed first.
Resolution
To set the clock date and time manually, remove NTP config (NTP must be enabled to remove it), then set the clock, and then reapply NTP config.
Current config:
Current config:
show running-config | inc ntp:
ntp distribute
ntp server 1.6.254.12
ntp server 1.6.255.12
ntp server 1.10.254.12 prefer
ntp server 1.10.255.12
no feature ntp
ntp commit
config
ntp distribute
ntp server 1.6.254.12
ntp server 1.6.255.12
ntp server 1.10.254.12 prefer
ntp server 1.10.255.12
no feature ntp
ntp commit
config
- Enable NTP feature (if disabled) and remove config:
config
feature ntp
no ntp distribute
no ntp server 1.6.254.12
no ntp server 1.6.255.12
no ntp server 1.10.254.12 prefer
no ntp server 1.10.255.12
ntp commit
feature ntp
no ntp distribute
no ntp server 1.6.254.12
no ntp server 1.6.255.12
no ntp server 1.10.254.12 prefer
no ntp server 1.10.255.12
ntp commit
- Disable NTP feature:
no feature ntp
- Use the clock set command to set the appropriate date and time:
config
clock set 11:20:00 24 Jun 2019
clock set 11:20:00 24 Jun 2019
- Once clock date time is correct, reconfigure NTP:
config
feature ntp
ntp distribute
ntp server 1.6.254.12
ntp server 1.6.255.12
ntp server 1.10.254.12 prefer
ntp server 1.10.255.12
ntp commit
end copy r s
feature ntp
ntp distribute
ntp server 1.6.254.12
ntp server 1.6.255.12
ntp server 1.10.254.12 prefer
ntp server 1.10.255.12
ntp commit
end copy r s
Additional Information
Note that when using the NTP distribute command, NTP commit will push the NTP config to other switches merged in CFS for NTP. It is not required to use the NTP distribute feature here.
Affected Products
Connectrix MDS-Series FirmwareProducts
Connectrix MDS-Series Firmware, Connectrix MDS-Series HardwareArticle Properties
Article Number: 000060255
Article Type: Solution
Last Modified: 27 May 2024
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.