IBM Support

Unable to start xntpd under srcmstr control using the startsrc command

How To


Summary

I can start xntpd by running /usr/sbin/xntpd.
But when I try to start it using startsrc -s xntpd I get a message that it started but lssrc -s xntpd shows that the daemon is inoperative.

Objective

How to start xntpd using startsrc command. 

Environment

AIX

Steps

The most common reason why xntpd will not start under srcmstr but will start by running /usr/sbin/xntpd is because the xntpd entry in the ODM is corrupted. The xntpd entry that is most commonly corrupted in the ODM is the cmdargs entry.
Here is default xntpd entry in the ODM:
# odmget -q subsysname=xntpd SRCsubsys
SRCsubsys:
        subsysname = "xntpd"
        synonym = ""
        cmdargs = ""
        path = "/usr/sbin/xntpd"
        uid = 0
        auditid = 0
        standin = "/dev/console"
        standout = "/dev/console"
        standerr = "/dev/console"
        action = 2
        multi = 0
        contact = 3
        svrkey = 0
        svrmtype = 0
        priority = 20
        signorm = 0
        sigforce = 0
        display = 1
        waittime = 20
        grpname = "tcpip"
If the cmdargs entry has something other than the supported flags (see man page on xntpd) in between the ""  on the cmdargs line it should be removed.
To null out the cmdargs entry:
# chssys -s xntpd -a ""
Another way to query xntpd from the ODM is to use the lssrc command:
# lssrc -Ss xntpd

#subsysname:synonym:cmdargs:path:uid:auditid:standin:standout:standerr:action:multi:contact:svrkey:svrmtype:priority:signorm:sigforce:display:waittime:grpname:
xntpd:::/usr/sbin/xntpd:0:0:/dev/console:/dev/console:/dev/console:-O:-Q:-K:0:0:20:0:0:-d:20:tcpip:
The cmdargs option will be listed between the second and third colon where you see the xntpd entry in the lssrc -Ss xntpd output. To see where the -x option was added to xntpd see further down in this document.

Additional Information

The most commonly used xntpd option is the -x option and it goes on the cmdargs line. (The -x option on xntpd makes small time adjustments). (SLEWING).
To add the -x option to the ODM so that each time xntpd is started the -x option is assigned to xntpd use the chssys command:
# chssys -s xntpd -a "-x"
# lssrc -Ss xntpd
#subsysname:synonym:cmdargs:path:uid:auditid:standin:standout:standerr:action:multi:contact:svrkey:svrmtype:priority:signorm:sigforce:display:waittime:grpname:
xntpd::-x:/usr/sbin/xntpd:0:0:/dev/console:/dev/console:/dev/console:-O:-Q:-K:0:0:20:0:0:-d:20:tcpip:
Or query using odmget:
# odmget -q subsysname=xntpd SRCsubsys
SRCsubsys:
        subsysname = "xntpd"
        synonym = ""
        cmdargs = "-x"
        path = "/usr/sbin/xntpd"
       <.....>
        display = 1
        waittime = 20
        grpname = "tcpip"
To start xntpd after modifying xntpd entry in the ODM:
# ps -ef |grep xntpd
If xntpd is running kill the PID.
# startsrc -s xntpd
# lssrc -s xntpd
Should be active
# ps -ef |grep xntpd
Should show the -x option if it was added to the ODM.
If still unable to start xntpd using startsrc command open a case with AIX Software Support for further assistance.
https://www.ibm.com/mysupport/s/article/User-Administration

Document Location

Worldwide

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"Component":"AIX 6.1;7.1;7.2","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions","Edition":"AIX 6.1;7.1;7.2","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
24 April 2019

UID

ibm10882294