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

System time - how can I ensure it is always correct?

Status
Not open for further replies.

MPH123

Programmer
Jan 28, 2004
22
0
0
GB
All,

We have a number of sites, where the PBX time 'drifts'.
Is there a way ensuring the system time is always correct, so we don't have to log in to correct the sys time?

Thanks in advance

Jimbo
 
The only way to be sure is to run a automated script that sets the time in the evening.

check in LD 2 for the drift settings on your switch. John Poole has some excellent scripts that run in procomm for this kind of stuff

It's not getting any smarter out there. You have to come to terms with stupidity, and make it work for you.
 
Code:
proc main
   
   
   set txpace 50	
   transmit "****^M"
   waitfor ">"
   transmit "john^M"
   
   transmit "****^M"
   waitfor ">"
   transmit "logi xxxx^M"
   pause 1 
   transmit "xxxxxx^M"
  
   call myproc 
   
   
   
endproc
proc myproc   
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 30
   transmit "****^M"
   waitfor ">"
   
     
   transmit "ld 2^M"
   waitfor "."
   
   transmit "TTAD^M"
   waitfor "."
   transmit sSend
   transmit "^M"
   waitfor "."
   
   pause 2
   transmit "TTAD^M"
  
   pause 2
   transmit "****^M"
 
  endproc

this script sync's the time to your pc.. another way is to adjust time in ld 2, you can speed up or slow down the clock so that it tracks closer to reality

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

Part and Inventory Search

Sponsor

Back
Top