SecureCRT循环检查设备状态
2013-12-22 11:15
176 查看
1: #$language = "VBScript"
2: #$interface = "1.0"
3:
4: ' This automatically generated script may need to be
5: ' edited in order to work correctly.
6:
7: Sub Main
8:
9: Dim cmd_show_chassis
10: Dim status_up, status_down
11: Dim time_minutes
12:
13: cmd_show_chassis = "show chassis"
14: status_up = "up"
15: status_down = "down"
16: test_data = "01:12"
17:
18: crt.Screen.Synchronous = True
19:
20: Do
21: crt.Screen.Send cmd_show_chassis & vbCr
22: if crt.Screen.WaitForString(status_down, 5) then
23: crt.Screen.Send vbCr
24: crt.Sleep 10000
25: else
26: exit do
27: end if
28: Loop
29:
30: crt.Dialog.MessageBox _
31: "GOOD." & vbcrlf & _
32: "All Cards is UP! Pelase Enjoy it Now...."
33:
34: crt.Screen.Synchronous = False
35: End Sub
36:
相关文章推荐
- SecureCRT循环检查设备状态
- SecureCRT循环检查设备状态
- SecureCRT循环检查设备状态
- Solaris 设备状态检查常用命令
- 检查设备摄像头、指南针、录像、陀螺仪的状态
- 根据状态个数来决定总设备的状态(主要是循环loop)
- ios 检查设备距离与电池状态及判断是否是Retina显示屏
- IBM p系列小型机日常维护及故障排除时常用命令(检查IBM设备状态汇总)
- IOS 特定于设备的开发:检查设备接近度和电池状态
- C#使用ping命令检查设备状态
- 六、日常设备维护检查1. 系统及网络状态的监测
- 多步 OLE DB 操作产生错误。如果可能,请检查每个 OLE DB 状态值。没有工作被完成
- 升级Win10 9926长时间卡在检查更新状态怎么办
- python-门户应用状态检查脚本
- Java代码检查工具PMD,最理想状态是我能 3秒找到你
- Android判断当前的android设备是否处于联网状态
- 怎样检查Android网络连接状态
- Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器的状态。 可以
- 无法向会话状态服务器发出会话状态请求。请确保 ASP.NET State Service (ASP.NET 状态服务)已启动,并且客户端端口与服务器端口相同。如果服务器位于远程计算机上,请检查 HKEY_LOCAL_MACHINE/SYSTEM/Curre
- 跟磊哥学工控-第一课 设备的模式和状态