Use o script TCL para monitorar o teste de ativação e desativação CA do equipamento

Documentos de referência

继电器控制 CX80 Moba Ksend 继电器控制CX80AC电源,系统上电保持3分钟 CX80上电1分30秒后ping通设备 SSH建链,并发送查询eth设备状态命令,执行一次查询后COUNT计数 继电器上电状态倒计时结束 CX80下电,无法ping通 等待下一次CX80可以ping通状态 继电器控制 CX80 Moba Ksend

## TCL脚本
 for {set i 1} {$i<=500} {incr i} {
after 2000
tsend "r"
after 2000
tsend "novastar" 
after 2000
tsend "date"
after 2000
tsend "ifconfig -a"
after 2000
tsend "ethtool eth0"
after 2000
tsend "Count=$i"
after 2000
tsend "exit"
after 168000
}

Acho que você gosta

Origin blog.csdn.net/GoldenRolan/article/details/112590544
Recomendado
Clasificación