Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time in Aix 4.3.3

Status
Not open for further replies.

biondo68

Technical User
Jul 4, 2003
103
IT
bye,

how to configure a time ?
i have 5 risc , i hope that risc have the same time and date and syncronize a time in the world..

regards

biondo68
 
Hi biond068

One need to use NTP protocol and here I can give a small script which I used in my company

First determine the time server(master) and u can synchronize all othe risc servers with that master risc server In the example shown below.First you can set master time matching with global time(whatever)

#!/bin/ksh
#script title:timeset.ksh
#date 7-17-03
#This script synchronizes the different times of rest of the nodes with master time server.so that a common time for
all servers

TIMESERVER=masternode
for TIMESTAMP in node1 node2 node3 node4 node5
do
rsh $TIMESTAMP /bin/su -root -c
echo "SYNCHRONIZING THE TIME OF NODE:$TIMESTAMP with $TIMESERVER ..."
setclock $TIMSERVER
done
echo "The script execution completed $0 "
#End of the script

step 2: Now u can verify the time stamp on all nodes by using
#date



















sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
hi,

thanks a lot SUSHVEER and SWTBEER ..



bye




biondo68
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top