Thanks for the scripts which work great. Another problem that I have is that, If I combine the script above with a Tracker 2700 logon script I cannot compile the script together.
Indiviually they work great. Any Ideas
***********************************************************
;Recorded script. Editing may be required.
proc main
transmit "user^M"
waitfor "password: "
transmit "password^M"
waitfor " Select one of the above options: "
transmit "1^M"
waitfor "ONNECT 19200 ( Escape sequence ~@ ) ^M^J"
transmit "^M"
waitfor ">"
transmit "logi ******^M"
waitfor "PASS?"
transmit "password^M"
endproc
;Set date and time plus check DST.
;===============================================================
; Works best if you have NTP enabled on this PC.
proc main
integer iDay, iMonth, iYear, iMin, iHour, iSec, TimeDelta
string DMYHMS
TimeDelta=6 ; Approx delay in script....
set txpace 75
Transmit "****^M"
waitfor ">"
transmit "LD 2^M"
waitfor "."
termwrites "System time before adjusting:`n`r"
pause 2
transmit "TTAD^M"
waitfor "."
; Calculate date and time string.
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
; Adjust for delay in script.
iSec=iSEc+TimeDelta
if iSec>60 ; Seconds must not be greater that 60.
iSec=iSec-60
iMin=iMin+1
if iMin>60 ; Minutes must not be greater that 60.
iMin=iMin-60
iHour=iHour+1
endif
endif
; Put the parts together.
strfmt DMYHMS "STAD %02d %02d %d %02d %02d %02d^M" iDay iMonth iYear iHour iMin iSec
; and send it to the switch
transmit DMYHMS
waitfor "."
pause 6
termwrites "System time after adjusting:`n`r"
pause 1
transmit "TTAD^M"
waitfor "."
pause 1
termwrites "This is the current DST settings: `n`r"
pause 1
transmit "TDST^M"
waitfor "."
pause 1
transmit "****^M"
endproc
***********************************************************