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!

Adjust Time

Status
Not open for further replies.

abntelecom

Vendor
Jan 19, 2006
125
US
Every month, I have to adjust the time on our opt81c. It's always 2 minutes advance. I know there's a way to adjust the time. Can anyone please tell me the command?


TIA
 
LD 2 : STAD ( set time and date ), format is day, month, year, hour, minute.
 
here's a short script that i use as a call proc with my login script.. if your running procomm this syncs the switch to the pc your logged in on//

Code:
proc main
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 "****^M"
   pause 1
 transmit "john^M"
 pause 1
   transmit "logi USERNAME^M"
  
  ;script stops while you enter your password
  
   
   waitfor ">" forever
   
   transmit "ld 2^M"
   waitfor "."
   transmit "TTAD^M"
   waitfor "."
   transmit sSend
   transmit "^M"
   waitfor "."
   mspause 20
   transmit "TTAD^M"
   waitfor "."
   mspause 20
   transmit "****^M"
   
   
   
   endproc

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

Part and Inventory Search

Sponsor

Back
Top