09-09-2003
Thank you, I was looking more for being able to sync the time to an outside source such as ntp.ucsd.edu
What do you think about the following?
#
# /etc/inet/ntp.server
#
# An example file that could be copied over to /etc/inet/ntp.conf and # edited; it provides a configuration template for a server that # listens to an external hardware clock, synchronizes the local clock, # and announces itself on the NTP multicast net. #
# This is the external clock device. The following devices are # recognized by xntpd 3-5.93e: #
# XType Device RefID Description
# -------------------------------------------------------
# 1 local LCL Undisciplined Local Clock
# 2 trak GPS TRAK 8820 GPS Receiver
# 3 pst WWV PSTI/Traconex WWV/WWVH Receiver
# 4 wwvb WWVB Spectracom WWVB Receiver
# 5 true TRUE TrueTime GPS/GOES Receivers
# 6 irig IRIG IRIG Audio Decoder
# 7 chu CHU Scratchbuilt CHU Receiver
# 8 parse ---- Generic Reference Clock Driver
# 9 mx4200 GPS Magnavox MX4200 GPS Receiver
# 10 as2201 GPS Austron 2201A GPS Receiver
# 11 arbiter GPS Arbiter 1088A/B GPS Receiver
# 12 tpro IRIG KSI/Odetics TPRO/S IRIG Interface
# 13 leitch ATOM Leitch CSD 5300 Master Clock Controller
# 15 * * TrueTime GPS/TM-TMD Receiver
# 17 datum DATM Datum Precision Time System
# 18 acts ACTS NIST Automated Computer Time Service
# 19 heath WWV Heath WWV/WWVH Receiver
# 20 nmea GPS Generic NMEA GPS Receiver
# 22 atom PPS PPS Clock Discipline
# 23 ptb TPTB PTB Automated Computer Time Service
# 24 usno USNO USNO Modem Time Service
# 25 * * TrueTime generic receivers
# 26 hpgps GPS Hewlett Packard 58503A GPS Receiver
# 27 arc MSFa Arcron MSF Receiver
#
# * All TrueTime receivers are now supported by one driver, type 5.
# Types 15 and 25 will be retained only for a limited time and may
# be reassigned in future.
#
# Some of the devices benefit from "fudge" factors. See the xntpd # documentation.
##############
#Network server settings
##############
restrict 127.0.0.1
restrict 192.168.45.0 mask 255.255.255.0 notrust nomodify notrap restrict 192.168.42.0 mask 255.255.255.0 notrust nomodify notrap
#####################
#Timeservers to ask
####################
server ntp.ucsd.edu # Stratum 2 timeserver
# Either a peer or server. Replace "XType" with a value from the # table above. server 127.127.1.0
fudge 127.127.1.0 stratum 0
broadcast 224.0.1.1 ttl 4
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0
root@xray /etc/inet [9]
10 More Discussions You Might Find Interesting
1. Linux
what command must i use to change time ? (4 Replies)
Discussion started by: Sirius
4 Replies
2. UNIX for Dummies Questions & Answers
I have already updated the DST change but my system time is about 10 minutes off. How do i set the time in the AIX 5.3?
Thanks
Dave (1 Reply)
Discussion started by: rocker40
1 Replies
3. UNIX for Advanced & Expert Users
CAN ANY PLESE TEL ME,HOW CAN I FETCH TIME FROM SOME EXTERNAL SOURCE (eg. NETWORK TIME SERVER S 200) ON UNIX PLATFORM,PROVIDED TIME IS COMING FROM SOME IP "X".WHAT CODE SHOULD I RUN IN STARTUP (2 Replies)
Discussion started by: pesty
2 Replies
4. Solaris
The time of our Solaris server now is slowly more 20 seconds.
How can we change it ? (3 Replies)
Discussion started by: anhtt
3 Replies
5. AIX
Hi all
We are currently using AIX 5.3, we reuquire to change the time according to the daylight saving scenario. We are using the internal clock and are not synced with ntp server. Can any one please tell me how to do that without effecting the processes running on the servers? (2 Replies)
Discussion started by: masquerer
2 Replies
6. Shell Programming and Scripting
Hi
I want to match time hr:mm and change to mm:hr
please let me know how to do that in perl (2 Replies)
Discussion started by: lakshmikant
2 Replies
7. Shell Programming and Scripting
Hi all,
I have this source file source.txt :
hdrEthernetSwitch1IPAddress 112.13.9.34
hdrEthernetSwitch2IPAddress 112.13.8.245
noOfRevASLAvailable 8000
noOfRevASLInUse 122
maxDOSPayload 7777
pcmdEvdoRUM Enabled
pcmdEvdoFlow Enabled
And I have this datafile to be modified :
... (5 Replies)
Discussion started by: luna_soleil
5 Replies
8. UNIX for Dummies Questions & Answers
Hey everyone!
I am trying to configure iptables/netfilter so that all traffic coming from a certain port (8001) has its source ip re-written as a different ip. Can this be done?
Basically its a possible workaround for another issue I'm having with a multihomed server. SNMP data is coming in on... (3 Replies)
Discussion started by: msarro
3 Replies
9. Debian
Hi all,
I want change the time settings from EST to IST by using command line in Debian os. but it is not taken. Can any body show me the how to change the time settings by using command line.
Thanks, (1 Reply)
Discussion started by: mastansaheb
1 Replies
10. IP Networking
Hi,
Environment:
Linux: Ubuntu 12.04
I am connected to internet using static ip. This means my internet provider Pacenet has assigned me static ip. Now, whenever I am trying to change source ip for tcp/ip (ip4) using iptables firewall, I am unable to access internet at all.
Can anybody... (4 Replies)
Discussion started by: ashv
4 Replies
LEARN ABOUT X11R4
dmxchangedesktopattributes
DMXChangeDesktopAttributes(3X) DMXChangeDesktopAttributes(3X)
NAME
DMXChangeDesktopAttributes - change global bounding box
SYNOPSIS
#include <X11/extensions/dmxext.h>
int DMXChangeDesktopAttributes(Display *dpy,
unsigned int mask,
DMXDesktopAttributes *attr);
DESCRIPTION
DMXChangeDesktopAttributes() resizes the bounding box of the whole screen when using the Xinerama extension. Otherwise, it has no effect
on the screen layout. An attribute mask is placed in mask and the attributes to change are placed in attr.
The values that are used to compute mask are as follows:
DMXDesktopWidth
DMXDesktopHeight
DMXDesktopShiftX
DMXDesktopShiftY
The DMXDesktopAttributes structure is:
typedef struct {
unsigned int width;
unsigned int height;
int shiftX;
int shiftY;
} DMXDesktopAttributes;
width and height specify the new width and height for the bounding box. shiftX and shiftY specify where the Xinerama origin will be
placed with respect to the origin of the new bounding box. This allows the left and upper edges of the bounding box to be changed without
changing the visual position of the windows on the desktop. If width or height is not specified, the current values will be used. If
shiftX or shiftY is not specified, 0 will be used.
All coordinants are in the global DMX coordinant system. If Xinerama is not active, an error will be generated.
RETURN VALUE
DMXChangeDesktopAttributes() will return 0 on success, DmxBadXinerama if Xinerama is not active, DmxBadValue if the size of the bounding
box is too large, and DmxBadReply if there was a protocol error.
DMXChangeDesktopAttributes() can generate BadLength (if the request is malformed, which should never happen when using this library inter-
face), and BadValue (if any values are out of range).
SEE ALSO
DMXGetDesktopAttributes(3X), DMX(3X), Xdmx(1)
X Version 11 libdmx 1.0.2 DMXChangeDesktopAttributes(3X)