【发布时间】:2015-11-21 00:55:30
【问题描述】:
如何使用 Robot Framework 来运行多个 ssh 进程?全部到集群上的不同节点。我已经使用了一个 for 循环,或者在流程库中使用 start process 关键字来为我需要的每个节点启动一个。我需要检查每个节点上的 OpenSSH_ 版本。
我对机器人框架很陌生。
@{nodes} Create List 1 2 3 4 5 6 7 8
:FOR ${node} IN @{nodes}
\ Open Connection ${node}
\ Enable SSH Logging ${output}
\ Run Keyword And Ignore Error Login user pass
\ Log all output:${output}
\ File Should not be empty ${output}
\ ${version}= Grep File ${output} OpenSSH_
\ Should contain ${version} OpenSSH_6.9
\ Close Connection
【问题讨论】:
标签: ssh process nodes robotframework