运维网's Archiver
论坛
›
Shell/Powershell
› Shell 脚本远程批量执行命令
liuxiaoyun111
发表于 2018-8-27 08:21:25
Shell 脚本远程批量执行命令
#! /usr/bin/expect
set ip_array 192.168.11. ###### 网段前缀
set username root
set timeout 30
#foreach ip {81 82 83 84 86 87 88 89 91 92 93 94 96 97 98 99} { ######IP
for {set ip 21} {$ip
页:
[1]
查看完整版本:
Shell 脚本远程批量执行命令