01 2014 档案
摘要:1.建立一个ip,端口,用户,密码列表[root@localhost shell-key]# cat arg_list.txt 172.16.56.237 clouds root 22 172.16.56.215172.16.56.53 clouds root 22 172.16.56.215172.16.56.215 clouds root 22 172.16.56.215[root@localhost shell-key]# 2.建立expect交互交脚本:[root@localhost shell-key]# cat expect_run_config.exp #!/usr/bin...
阅读全文
摘要:#!/bin/bash#connect_the_hw_switch#by osx1260@163.com swip=172.16.56.2swport=2081swpasswd='yourswpasswd'swusername=yourswusernametime=$(date +"%F")echo ".............please wating 9s............"echo ".............This is $time..............."/usr/bin/expect -c &
阅读全文

浙公网安备 33010602011771号