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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network time syncronisation in Rls 4.5

Status
Not open for further replies.

DAS1512

Technical User
Jan 19, 2007
36
EU
Hi John,

I have gone through the script you have send and it really worked at thread798-1216430. However,what I have understood is it only works when we try to login to system . Its not an automated process. I have remote sites unmanned how can we implement this So that in daily inter val the script can reset the time to what local PC is at.Please share if we have some script that runs automatically over procomm.

many Thanks
Dipankar
 
If your time is off so much that you have to sync it up daily you can adjust that is LD 2 so it will speed up or slow down. Then you can just check it monthly if needed.

It should not be so fast or so slow that it requires daily adjustments.

JohnThePhoneGuy

"If I can't fix it, it's not broke!
 
instead of doing a dialup and time sync via a script.. turn on network time sync... if you don't have those packages then do tools scripts record to build a script that dials each location, then logs in the does the time adjust... if you don't login to your switch often enough you can tell the script to run once a day..

my switch runs about 3 seconds a day fast on cpu one and about 1 sec slow on cpu 0.. so until i upgraded to fugi ld 2 time adjust was not an option.. now when i log in, at 07:00 every day, the switch is about .5 seconds off...

the best reason for network time sync is symposium reports and scripting

john poole
bellsouth business
columbia,sc
 
here's a script that dial one site, the does the time sync

Code:
proc main
   set txpace 30
   dial Data "Parkridge"
    while $DIALING         
   endwhile

   waitquiet 6
   transmit "xxxxxxx^M"
   waitfor "Command: "
   pause 1
   transmit "7^M"
   waitfor "Which host port? (1,2,^H) "
   pause 1
   transmit "1^M"
  pause 3
   transmit "^M"
   waitfor ">"
   transmit "log johni^M"
   waitfor "PASS?"
   transmit "xxxxx^M"
   waitfor ">"
   call time
;[COLOR=red] additional calls[/color]

endproc

proc time

integer iDay, iMonth, iYear, iMin, iHour, iSec
   string sSend
  
   ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
   
   strfmt sSend "STAD %02d %02d %d %02d %02d %02d" iDay iMonth iYear iHour iMin iSec
   set txpace 20

transmit "ld 2^M"
   waitfor "."
   transmit "TTAD^M"
   waitfor "."
   transmit sSend
   transmit "^M"
   waitfor "."
   mspause 20
   transmit "TTAD^M"
   waitfor "."
   mspause 20
   transmit "****^M"
   pause one
transmit "john^M"

transmit alt H
   
   
   endproc


it pulls the number to dial from the connection directory, this site hits an seb, logs in to that, then logs into the switch, sync;s the time, logs out and hangs up.. where i have the comment; additional calls, just chain your dialin scripts.. each one can do the call time

no one can do a custom script for your site without more information then you need to post, this basic outline should get you started in the right direction...


feel free to use or repost any script i post.. i give them away, then get them back, vastly improved..



john poole
bellsouth business
columbia,sc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top