- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting the server time
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
Forums
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
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
07-15-2004 12:43 AM
07-15-2004 12:43 AM
Setting the server time
We would like our UNIX server to pick up its time from another server on the network. is this possible and how do I do that?
cheers,
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 12:45 AM
07-15-2004 12:45 AM
Re: Setting the server time
For more info:
man xntpd
http://www.ntp.org/ntpfaq/NTP-a-faq.htm
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 12:45 AM
07-15-2004 12:45 AM
Re: Setting the server time
The simple way is to use SAM to configure NTP (Network Time Protocol).
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 12:51 AM
07-15-2004 12:51 AM
Re: Setting the server time
Yes, you would use NTP (Network Time Protocol).
The other server would be an NTP server & this system a client.
man xntpd for details
You have to set up the server first then configure the NTP client locally using the /etc/ntp.conf file & point it at the server.
Then edit /etc/rc.config.d/netdaemons & set
export XNTPD=1
to autostart NTP at boot.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 01:03 AM
07-15-2004 01:03 AM
Re: Setting the server time
http://www.docs.hp.com/hpux/onlinedocs/B2355-90685/00/00/63-con.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 01:09 AM - last edited on 09-16-2024 02:33 AM by support_s
07-15-2004 01:09 AM - last edited on 09-16-2024 02:33 AM by support_s
Re: Setting the server time
What I am trying to do is get the time from a windows server on our network so tried adding the server using SAM and it cam up with a message about internet connectivity, can i ignore this as the server is on my local network?
Do I need to install some sort of NTP software on the windows server? The document sort of implied this but I am not usre if it is necessary or not?
- Tags:
- iLO_OA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 01:13 AM
07-15-2004 01:13 AM
Re: Setting the server time
http://geodsoft.com/howto/timesync/wininstall.htm
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 02:21 AM
07-15-2004 02:21 AM
Re: Setting the server time
# ps -ef | grep ntp
root 1048 1 0 14:51:30 ? 0:00 /usr/sbin/xntpd
# tail /etc/ntp.conf
#filegen clockstats file clockstats type day enable
#
# Authentication stuff
#
#keys /usr/local/bin/ntp.keys # path for keys file
#trustedkey 3 4 5 6 14 # define trusted keys
#requestkey 15 # key (7) for accessing server variables
#controlkey 15 # key (6) for accessing server variables
#authdelay 0.000159 # authentication delay (SPARC4c/65 SS1+ MD5)
server ssi-tropos1 version 3 minpoll 10 prefer
so I would have assumed it would poll every 10 seconds and get the time from the windows server. but its not.
Looking at /etc/services port 23 on the unix side is reserved for TElnet, would this be why NTP isnt working?
what have i missed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 02:22 AM
07-15-2004 02:22 AM
Re: Setting the server time
time 37/tcp timeserver # Time
time 37/udp timeserver #
what else have I missed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 03:16 AM - last edited on 09-16-2024 02:33 AM by support_s
07-15-2004 03:16 AM - last edited on 09-16-2024 02:33 AM by support_s
Re: Setting the server time
Actually NTP uses port 123/udp
37 is for "homegrown" or application specific time functions. 23 is for good ole telnet.
HTH,
Jeff
- Tags:
- iLO_OA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 03:29 AM
07-15-2004 03:29 AM
Re: Setting the server time
see attached.
It is using SNTP on port 123 and still no joy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 03:50 AM
07-15-2004 03:50 AM
Re: Setting the server time
Couple of things:
You should use ntpq to query the server & check round trip times:
ntpq ntp_server_name
Then you must be within about 14 minutes (999 seconds to be exact) of the server or NTP will not sync up. If you're not then you need to use the date command to get close before starting the NTP client.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:04 AM
07-15-2004 04:04 AM
Re: Setting the server time
Funny enough I was just looking at ntpq. My servers are within a minute of each other.
I did an ntpq ssi-tropos1 and it took me into the ntpq utility. tried a few of the commands but the interesting one is clocklist, it returns:
ntpq> clocklist
ssi-tropos1: timed out, nothing received
***Request timed out
So guess I dont have a connection, why would this be? I can ping ssi-tropos1 from the server ok.
# ping ssi-tropos1
PING ssi-tropos1: 64 byte packets
64 bytes from 192.0.1.113: icmp_seq=0. time=1. ms
64 bytes from 192.0.1.113: icmp_seq=1. time=0. ms
64 bytes from 192.0.1.113: icmp_seq=2. time=0. ms
----ssi-tropos1 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:38 AM - last edited on 09-16-2024 02:33 AM by support_s
07-15-2004 04:38 AM - last edited on 09-16-2024 02:33 AM by support_s
Re: Setting the server time
telnet server_name 123
Although it will be a TCP connection, chances are that if 123/tcp is closed - 123/udp will be as well.
Is there a firewall between these two?
If so is 123/udp open - both directions?
HTH,
Jeff
- Tags:
- HBA_Slot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:41 AM
07-15-2004 04:41 AM
Re: Setting the server time
There is no firewall between them, they are both on a 192.0.1.xxx ip- address on our internal network.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 05:04 AM
07-15-2004 05:04 AM
Re: Setting the server time
You might try setting up another Microslop system as an NTP client & see IF it can get it's time from the other Micro$oft system.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 05:11 AM
07-15-2004 05:11 AM