Setting an Address for the Preferred NTP Server (ntp -d preferredserver)
Function
The ntp -d preferredserver command is used to set an address for the preferred NTP server.
Format
ipmcset -t ntp -d preferredserver -v addr
Parameters
Parameter |
Description |
Value |
---|---|---|
addr |
Specifies the address of the preferred NTP server. |
The value can be any of the following:
NOTE:
The value 0.0.0.0 indicates that the address of the preferred NTP server is deleted. |
Usage Guidelines
Linux and Windows NTP servers are supported.
Example
# Set the preferred NTP server address to dhcp1.com.
iBMC:/->ipmcset -t ntp -d preferredserver -v dhcp1.com
Set NTP preferred server (dhcp1.com) successfully.
# Query NTP information.
iBMC:/->ipmcget -d ntpinfo
Status : enabled
Mode : manual
Preferred Server : dhcp1.com
Alternative Server : fc00::1234
Extra Server : 192.168.2.2
Synchronize : successful
Auth Enable : enabled
Group Key : imported