Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Viewing the Current NTP Configuration

 

To read the current NTP configuration, we use the -r option:

Decoding the fields according to the help, the NTP service is off for this CTP, and the server IP is set to 10.0.0.0 (which is a default bogus IP). As a general rule, you can take the same string that is returned from a read operation, and use it as the basis for a set operation, and it should accept the configuration. And if you can then read it back, you know that it was accepted by syscfg and applied:

So if we want to activate NTP on this CTP to a server IP of 172.25.61.12:

Note that, when I read back the config string, it comes back exactly as configured, which is a good way to verify that the configuration was accepted.

(FYI, The "proc" alias just searches running processes on the CTP, and is used to show that the ntp daemon was not running before, and starts up based on the syscfg command.)

At this point, if you want to keep the configuration, but disable NTP, all you need to do is read the config, set ST1 to ST0, and write it back.

These basic rules apply to many of the syscfg utilities.