Cisco MDS:时钟设置::NTP 服务器/对等节点已配置。无法设置时钟。要设置时钟,请删除 ntp 服务器/对等配置。
Summary: 尝试使用时钟设置命令更改日期时收到错误。
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
尝试使用 clock set 命令设置时钟日期/时间。
尝试使用时钟设置命令更改时钟日期时出错,指示 NTP 配置已启用:
NTP 功能已禁用,但 NTP 配置仍处于正在运行的配置中:
尝试使用时钟设置命令更改时钟日期时出错,指示 NTP 配置已启用:
MDS9513(config)# clock set 11:20:00 24 Jun 2019
Clock set::NTP 服务器/对等节点已配置。无法设置 e clocthk。
要设置时钟,请删除 ntp 服务器/对等配置。
Clock set::NTP 服务器/对等节点已配置。无法设置 e clocthk。
要设置时钟,请删除 ntp 服务器/对等配置。
NTP 功能已禁用,但 NTP 配置仍处于正在运行的配置中:
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
要使用 clock set 命令设置时钟时间/日期,必须先删除所有 NTP 配置。
Resolution
要手动设置时钟日期和时间,请删除 NTP 配置(必须启用 NTP 才能删除它),然后设置时钟,然后重新应用 NTP 配置。
当前配置:
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
配置时钟设置 11:20:00 2019 年 6 月 24 日
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
当前配置:
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
con fig
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
con fig
- 启用 NTP 功能(如果已禁用)并删除配置:
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
- 禁用 NTP 功能:
无功能 NTP
- 使用 clock set 命令设置适当的日期和时间:
配置时钟设置 11:20:00 2019 年 6 月 24 日
- 时钟日期时间正确后,重新配置 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
Additional Information
请注意,使用 NTP distribute 命令时,NTP 提交会将 NTP 配置推送到 CFS for NTP 中合并的其他交换机。不需要在此处使用 NTP 分发功能。
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.