ECS:奧布斯:如何新增或移除 NTP 伺服器
摘要: 本文介紹如何修改 ECS NTP 組態。
本文适用于
本文不适用于
本文并非针对某种特定的产品。
本文并非包含所有产品版本。
说明
重要注意事項:xDoctor 4-8.104.0 及更新版本中已發佈一項新功能。此知識庫 (KB) 現在已搭配 xDoctor 自動化,可快速嘗試新增或移除 NTP 伺服器。如果指令檔無法新增或移除 NTP 伺服器,它會提供其結果的詳細摘要。
如需詳細資訊,請依照文章 ECS ObjectScale:如何執行 KB 自動化指令檔 (Auto Pilot) (可能需要以註冊使用者身分登入 Dell 支援。)
如需詳細資訊,請依照文章 ECS ObjectScale:如何執行 KB 自動化指令檔 (Auto Pilot) (可能需要以註冊使用者身分登入 Dell 支援。)
- 若要尋找 NAN IP,您可以使用警示中識別的 IP 或從
getclusterinfo -i使用此文稿為您的目標。
命令:
# getclusterinfo -i
範例:
admin@ecsnode1:~> getclusterinfo -i
Registered Racks
================
Ip Address epoxy seg mac seg color seg id NAN Hostname
=============== ===== ================= ========== ======= ============
169.xxx.1.1 False 00:00:00:00:00:00 red 1 provo-red.nanlocal
Node private Node Public BMC
Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name
=============== ====== ====== ================= =============== ================= =============== =============== =========
192.xxx.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.101 169.xxx.1.1 provo-red
192.xxx.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.102 169.xxx.1.2 sandy-red
192.xxx.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.103 169.xxx.1.3 orem-red
192.xxx.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.104 169.xxx.1.4 ogden-red
192.xxx.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.105 169.xxx.1.5 layton-red
192.xxx.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.106 169.xxx.1.6 logan-red
192.xxx.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.107 169.xxx.1.7 lehi-red
192.xxx.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.108 169.xxx.1.8 murray-red
Status:
M - Master, S - Slave
E - Epoxy
I - Initializing, U - Updating, A - Active
P - On, O - Off
! - Warning/Error list:
1 -(W) Hostname set to default hostname set by installer
169.xxx.2.1 False 00:00:00:00:00:00 green 2 tucson-green.nanlocal
Node private Node Public BMC
Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name
=============== ====== ====== ================= =============== ================= =============== =============== =========
192.xxx.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.219.101 169.xxx.2.1 provo-green
192.xxx.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.102 169.xxx.2.2 sandy-green
192.xxx.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.103 169.xxx.2.3 orem-rgreen
192.xxx.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.104 169.xxx.2.4 ogden-green
192.xxx.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.105 169.xxx.2.5 layton-green
192.xxx.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.106 169.xxx.2.6 logan-green
192.xxx.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.107 169.xxx.2.7 lehi-green
192.xxx.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.108 169.xxx.2.8 murray-green
Status:
M - Master, S - Slave
E - Epoxy
I - Initializing, U - Updating, A - Active
P - On, O - Off
! - Warning/Error list:
1 -(W) Hostname set to default hostname set by installer
- 使用 xDoctor 4-8.104.0 及更新版本的控制節點執行自動化命令。
注意:
--target-rack 的支持,此指令檔包含在 xDoctor4.8.104.0 版本中,其中包含 3.0 版的 Ansible 自動化指令檔。
命令:
# sudo xdoctor autopilot --kb 273244 --target-rack <rack color>
範例:(此範例適用於機架 1。)
admin@ecsnode1:~> sudo xdoctor autopilot --kb 273244 --target-rack red Using /etc/ansible/ansible.cfg as config file VERSION: 3.0 Playbook tasks: 66 Role tasks: 28 Total tasks: 94 across 1 host(s)
自動化指令檔選項:
- 選取您要做的選項,將 NTP 伺服器新增至組態,或 從組態中移除 NTP 伺服器。
範例:
TASK [Ask user if they want to add or remove an NTP server] ************************************************************************************************************************************************** [Ask user if they want to add or remove an NTP server] ****************************************************************************** Please select one of the following options to add or remove an NTP server: ****************************************************************************** (1) Add an NTP server to the configuration. (2) Remove an NTP server from the configuration. (0) Exit ******************************************************************************
- 變更 NTP 伺服器組態:
-> (1) Add an NTP server IP or FQDN
TASK [Ask for NTP server IP or FQDN if adding] ***************************************************************************************************************************************************************
[Ask for NTP server IP or FQDN if adding]
******************************************************************************
Enter the IP or FQDN of the NTP server:
******************************************************************************
:127.0.0.1
...
TASK [NTP server was successfully added or removed summary] **************************************************************************************************************************************************
ok: [169.xxx.1.6] => {
"msg": [
"*******************************************************************************",
"*******************************************************************************",
"The IP or FQDN address 127.0.0.1 was successfully added to the NTP server list.",
"*******************************************************************************",
"*******************************************************************************"
]
}
- 變更 NTP 伺服器組態:
->(2) Remove an NTP server from the configuration.
TASK [Prompt user to select NTP server to remove] ************************************************************************************************************************************************************
[Prompt user to select NTP server to remove]
******************************************************************************
Enter the letter of the NTP server you want to remove:
******************************************************************************
(a) 127.0.0.1
(b) x.x.x.x
(0) Exit
******************************************************************************
(a)
ok: [169.xxx.1.6] => {
"msg": [
"*******************************************************************************",
"*******************************************************************************",
"127.0.0.1 was successfully removed from the NTP server list.",
"*******************************************************************************",
"*******************************************************************************"
]
}
如何將 IP 新增至 NTP:
若要新增 NTP 伺服器 IP,請執行下列命令一次。對每個 NTP 伺服器重複此命令 (或以空格分隔)。
命令:
# sudo setrackinfo -a NTPServer <NTP_Server_IP>
範例:
# sudo setrackinfo -a NTPServer 10.3.4.5
檢查結果,使用
getrackinfo -r
# getrackinfo -r
Rack Master Info
================
ChassisID = 00:01:02:63:1d:1e
RackID = 1
RackName = red
epoxy = False
Basic Config:
-------------
EcsManagedBmc = no
RackInstallServer = no
Network Config:
---------------
DNSSearch = corp.dell.com dell.com
DNSServer = x.x.x.x y.y.y.y
NTPServer = x.x.x.x
System Config:
--------------
NANDomain = nan
NANNetwork = 169.xxx.0.0/16
NANVlan = 4
PublicVlan = 1
RackFirstNode = 1
RackLastNode = 24
RackNetwork = 192.xxx.xxx.0/24
RackSwitchCommunityName = public
RackVlan = 0
如何從 NTP 組態移除 IP:
使用以下命令移除一或多個 NTP IP:
命令:
# sudo setrackinfo -d NTPServer <NTP_Server_IP>
範例:
# sudo setrackinfo -d NTPServer 10.3.4.5
其他信息
如需 DNS 組態,請參閱文章 ECS:如何新增或移除 DNS 伺服器。
受影响的产品
ECS Appliance产品
ECS, ECS Appliance Gen 3, ECS Appliance Hardware Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption文章属性
文章编号: 000273244
文章类型: How To
上次修改时间: 14 8月 2025
版本: 6
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。