Adding an NTP Service

The
HostConfigManager.dateTimeSystem
property contains a
HostDateTimeSystem
data object. This object allows you to perform NTP and date and time related configuration.
  • Query and update the date and time information by using one of the methods defined in
    HostDateTimeSystem
    .
  • Modify the
    HostDateTimeSystem.dateTimeInfo
    property, which contains a
    HostDateTimeInfo
    object, to set up NTP. The NTP information is stored in the
    HostDateTimeInfo.ntpConfig
    property, which is a
    HostNtpConfig
    object. The
    HostNtpConfig
    objects’s
    server
    property contains a list of time servers, specified by IP address or fully qualified domain name.
    You can start and stop the NTP daemon and retrieve information about it by using the
    HostServiceSystem
    object.