Sponsored Content
Operating Systems Linux NTPD seems to be not syncing !!! Post 95205 by csaha on Monday 9th of January 2006 04:20:04 AM
Old 01-09-2006
Configuring NTP in a Linux box

Can some one help me to get a doc on Configuring NTP in a Linux box
 

5 More Discussions You Might Find Interesting

1. HP-UX

Ntpd

Hello, I'm looking for assitance on setting up network time protocol on my HP-ux boxes. I have edit the .conf file accordingly. And /etc/services. But whenever I try and start the service nothing happens at all. No error message, nothing. I have a SCO box as a time server and I wish... (0 Replies)
Discussion started by: satinet
0 Replies

2. AIX

ntpd version

How to check the ntpd version of AIX 5.3 ? (3 Replies)
Discussion started by: alanlkw
3 Replies

3. Shell Programming and Scripting

Modifying the ntpd deamon script

I need to replace the line daemon ntpd $OPTIONS in the following script with daemon ntpd $OPTIONS 2>&1 > /var/log/ntpd.log & what will happen? The idea of replacing is to capture the output on the console into ntpd.log file. Will this work? ... (1 Reply)
Discussion started by: naive1977
1 Replies

4. Red Hat

ntpd -gq not working

as advised and documented, i'm trying to use the ntpd -gq instead of ntpdate. The result is that clock not set. as below. However ntpdate is working ok and had set the clock correctly this is the ntp.conf file: # cat /etc/ntp.conf logfile /var/log/ntp.log driftfile /var/lib/ntp/drift... (6 Replies)
Discussion started by: ahmad.zuhd
6 Replies

5. Debian

Ntpd slow start

on every boot, ntpd takes long time to start (after moving from dhcp to static ip). is there a way to speed it up? (1 Reply)
Discussion started by: orange47
1 Replies
NTP_GETTIME(3)						     Linux Programmer's Manual						    NTP_GETTIME(3)

NAME
ntp_gettime, ntp_gettimex - get time parameters (NTP daemon interface) SYNOPSIS
#include <sys/timex.h> int ntp_gettime(struct ntptimeval *ntv); int ntp_gettimex(struct ntptimeval *ntv); DESCRIPTION
Both of these APIs return information to the caller via the ntv argument, a structure of the following type: struct ntptimeval { struct timeval time; /* Current time */ long int maxerror; /* Maximum error */ long int esterror; /* Estimated error */ long int tai; /* TAI offset */ /* Further padding bytes allowing for future expansion */ }; The fields of this structure are as follows: time The current time, expressed as a timeval structure: struct timeval { time_t tv_sec; /* Seconds since the Epoch */ suseconds_t tv_usec; /* Microseconds */ }; maxerror Maximum error, in microseconds. This value can be initialized by ntp_adjtime(3), and is increased periodically (on Linux: each sec- ond), but is clamped to an upper limit (the kernel constant NTP_PHASE_MAX, with a value of 16,000). esterror Estimated error, in microseconds. This value can be set via ntp_adjtime(3) to contain an estimate of the difference between the system clock and the true time. This value is not used inside the kernel. tai TAI (Atomic International Time) offset. ntp_gettime() returns an ntptimeval structure in which the time, maxerror, and esterror fields are filled in. ntp_gettimex() performs the same task as ntp_gettime(), but also returns information in the tai field. RETURN VALUE
The return values for ntp_gettime() and ntp_gettimex() are as for adjtimex(2). Given a correct pointer argument, these functions always succeed. VERSIONS
The ntp_gettime() function is available since glibc 2.1. The ntp_gettimex() function is available since glibc 2.12. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +-------------------------------+---------------+---------+ |Interface | Attribute | Value | +-------------------------------+---------------+---------+ |ntp_gettime(), ntp_gettimex() | Thread safety | MT-Safe | +-------------------------------+---------------+---------+ CONFORMING TO
ntp_gettime() is described in the NTP Kernel Application Program Interface. ntp_gettimex() is a GNU extension. SEE ALSO
adjtimex(2) ntp_adjtime(3), time(7) NTP "Kernel Application Program Interface" <http://www.slac.stanford.edu/comp/unix/package/rtems/src/ssrlApps/ntpNanoclock/api.htm> COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 NTP_GETTIME(3)
All times are GMT -4. The time now is 04:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy