Sub Main
Dim cnt
Dim delay
Dim time
Dim atttime
atttime = 20
delay = 3000
time = 50
cnt_time=3
crt.screen.Send " " & chr(13)
crt.screen.WaitForString"Username:"
crt.screen.Send "admin" & chr(13)
crt.screen.WaitForString"Password:"
crt.screen.Send "admin" & chr(13)
crt.screen.WaitForString">"
crt.screen.Send "enable" & chr(13)
crt.screen.WaitForString"(pri)>"
crt.screen.Send "config terminal" & chr(13)
crt.screen.WaitForString"(config)>"
crt.screen.Send "show date" & chr(13)
If(crt.screen.WaitForString("weew:",5)<>flase)Then
crt.screen.Send "time_bug"& chr(13)
else
crt.screen.Send "no bug"& chr(13)
End If
End Sub
原文地址:https://www.cnblogs.com/classics/p/9747151.html
时间: 2024-11-13 06:52:24