- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Failed to start XNTPD service
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 05:27 AM
02-14-2012 05:27 AM
Failed to start XNTPD service
Hi,
Unable to start xntpd service after configuring ntp parameters in "/etc/ntp.conf" and "/etc/rc.config.d/netdaemons" file.
# more rc.log | grep xntp
Output from "/sbin/rc2.d/S660xntpd start":
"/sbin/rc2.d/S660xntpd start" SKIPPED
- Tags:
- NTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 06:17 AM
02-14-2012 06:17 AM
Re: Failed to start XNTPD service
Can you please show us, or attach to this thread, the /etc/ntp.conf and /etc/rc.config.d/netdaemons files?
What happens if you run the start script manually?
# /sbin/init.d/xntpd start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 06:27 AM
02-14-2012 06:27 AM
Re: Failed to start XNTPD service
Hi
your ntpd.conf musta have any rong configuration.
/sbin/init.d/xntpd stop
ntpdate ntp_server
/sbin/init.d/xntpd start
ntpq -p ( and see if you have the correct ntp_servers)
If not. Go to /etc/ntp.conf and add the following lines to the end of the file:
server ntp_server
server ntp_slave_server
repeart the processe:
/sbin/init.d/xntpd stop
ntpdate ntp_server
/sbin/init.d/xntpd start
ntpq -p ( and see if you have the correct ntp_servers)
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 09:47 AM
02-14-2012 09:47 AM
Re: Failed to start XNTPD service
> "/sbin/rc2.d/S660xntpd start" SKIPPED
SKIPPED means that the configure script in /etc/rc.config.d has NTP disabled. Edit the file:
/etc/rc.config.d/netdaemons
and change the settings to:
export NTPDATE_SERVER=us.pool.ntp.org export XNTPD=1 export XNTPD_ARGS="-l /var/adm/xntpd.log"
where:
us.pool.ntp.org is the NTP server to use when your server first boots up.
XNTPD=1 will enable NTP service on bootup
XNTPD_ARGS= the -l option is used to put NTP logs in a different log file (not syslog.log)
Warning: do not use ntpdate on a production system, especially one with databases and other time-sensitive applications. ntpdate will 'jump' the time which can cause some transactions to get out of sync. NTP will not sync the time if it is more than 10-12 minutes off. If the time is an hour or two off, DO NOT change the time (using date) until you verify that the $TZ value points to your local timezone. HP-UX always keeps Zulu or UTC time so your local time is translated using the TZ variable.
In your /etc/ntp.conf file, you should have something like this (delete all the comments):
server us.pool.ntp.org server 0.north-america.pool.ntp.org server 1.north-america.pool.ntp.org server 2.north-america.pool.ntp.org fudge 127.127.1.1 stratum 10 driftfile /etc/ntp.drift
The pool servers are ideal as they are a very accurate source for NTP time. If you cannot reach the Internet directly, you can see if your firewall router supplies NTP sync like this:
ntpq -p 1.2.3.4
where 1.2.3.4 is the iP address of your firewall. If ntpq reports that is supplying NTP sync, then use that IP address as your server in ntp.conf.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 09:03 PM
02-14-2012 09:03 PM
Re: Failed to start XNTPD service
Hi,
Thanks for your replies,
ntp.conf contents:
server cc01-dc10.kmc.edu version 3 prefer
server g04-dc12.kmc.edu version 3
peer dbs2.kmc.edu version 3
server 127.127.1.1 stratum 10
authenticate no
statsdir /var/tmp/ntp/
statistics loopstats
filegen loopstats file loopstats type day enable
filegen loopstats file loopstats type day link enable
driftfile /etc/ntp.drift
/etc/rc.config.d/netdaemons:
export NTPDATE_SERVER=cc01-dc10.kmc.edu
export XNTPD=1
export XNTPD_ARGS="-x"
nothing happened after starting the xntpd service
# /sbin/init.d/xntpd start
#
# ps -ef | grep ntp
root 28940 2446 1 07:51:56 pts/0 0:00 grep ntp
# ntpq -p
ntpq: read: Can't assign requested address
Also tried to add two servers into
export NTPDATE_SERVER='cc01-dc10.kmc.edu g04-dc12.kmc.edu'
export XNTPD=1
export XNTPD_ARGS="-x"
# /sbin/init.d/xntpd stop
# /sbin/init.d/xntpd start
# ps -ef | grep ntp
root 29200 2446 0 07:57:09 pts/0 0:00 grep ntp
Failed to start the service from SAM as well, the sam log contains some errors; as follows;
07:58:07 ===== Wed Feb 15 07:58:07 2012 Entering SAM area "NTP (cngdbs1)".
07:58:07 * Performing task "Get current state of authentication
(authenticate yes or no).".
07:58:07 * Executing the following command:
ch_xntp -l authenticate
07:58:07 * Command completed with exit status 0.
07:58:07 * Task: "Get current state of authentication (authenticate yes or
no)." succeeded.
07:58:07 * Performing task "See if the XNTP daemon is running.".
07:58:07 * Executing the following command:
ps -el | grep xntpd
07:58:07 * Command completed with exit status 1.
07:58:07 ERROR The XNTP daemon is not running
07:58:07 * Performing task "List all PEER and SERVER entries in the
ntp.conf file.".
07:58:07 * Executing the following command:
ch_xntp -lx peer && ch_xntp -lx server
07:58:07 * Command completed with exit status 0.
07:58:07 * Task: "List all PEER and SERVER entries in the ntp.conf file."
succeeded.
07:58:19 * Performing task "Start the XNTP daemon.".
07:58:19 * Executing the following command:
. nnc_utils; XNTPD_update_netdaemons 1; export XNTPD=1; \
/sbin/init.d/xntpd start
07:58:19 * Command completed with exit status 2.
07:58:19 ERROR Task: "Start the XNTP daemon." failed. The return code was 2.
Standard error contains "".
07:58:19 ERROR
07:58:28 * Performing task "Get current state of authentication
(authenticate yes or no).".
07:58:28 * Executing the following command:
ch_xntp -l authenticate
07:58:28 * Command completed with exit status 0.
07:58:28 * Task: "Get current state of authentication (authenticate yes or
no)." succeeded.
07:58:28 * Performing task "See if the XNTP daemon is running.".
07:58:28 * Executing the following command:
ps -el | grep xntpd
07:58:28 * Command completed with exit status 1.
07:58:28 ERROR The XNTP daemon is not running
07:58:28 * Performing task "List all PEER and SERVER entries in thentp.conf file.".
07:58:28 * Executing the following command:
ch_xntp -lx peer && ch_xntp -lx server
07:58:28 * Command completed with exit status 0.
07:58:28 * Task: "List all PEER and SERVER entries in the ntp.conf file."succeeded.
07:58:37 * Executing the following command:
/usr/sam/bin/samlog_viewer -Z29276
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 09:45 PM
02-14-2012 09:45 PM
Re: Failed to start XNTPD service
07:58:19 * Executing the following command:
. nnc_utils; XNTPD_update_netdaemons 1; export XNTPD=1; /sbin/init.d/xntpd start
07:58:19 * Command completed with exit status 2.
07:58:19 ERROR Task: "Start the XNTP daemon." failed. The return code was 2.
Standard error contains "".
Hmm. You might try executing this directly as root:
/usr/sbin/xntpd -x; echo $?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 09:56 PM
02-14-2012 09:56 PM
Re: Failed to start XNTPD service
# /usr/sbin/xntpd -x; echo $?
0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 10:04 PM
02-14-2012 10:04 PM
Re: Failed to start XNTPD service
>It returns 0.
So did it demonize itself? Is another copy still running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 10:40 PM
02-14-2012 10:40 PM
Re: Failed to start XNTPD service
have the following files;
/etc # ll ntp*
-r--r--r-- 1 bin bin 19163 Feb 14 16:10 ntp.conf
-rw-r--r-- 1 root sys 0 Feb 14 13:59 ntp.drift
-rw-r--r-- 1 root sys 61 Feb 14 16:03 ntp.keys
/etc # ll rc.config.d/netd*
-rw-r--r-- 1 root sys 2202 Feb 15 07:58 rc.config.d/netdaemons
-rw-r--r-- 1 root sys 2202 Feb 15 07:55 rc.config.d/netdaemons.old
-r--r--r-- 1 root sys 2156 Feb 14 14:01 rc.config.d/netdaemons_org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2012 11:16 PM
02-14-2012 11:16 PM
Re: Failed to start XNTPD service
>which copy you are talking about?
The copy(fork) of the xntpd process. What does ps(1) show?