pssh

http://man.linuxde.net/pssh

保存每台服务器运行的结果: 

# pssh -h IP.txt -i -o /tmp/pssh/ uptime 

[1] 11:19:47 [SUCCESS] Feb.mars.he 11:19:55 up 4 days, 16:31, 2 users, load average: 0.02, 0.03, 0.00 

[2] 11:19:47 [SUCCESS] Jan.mars.he 11:19:56 up 3 days, 23:30, 0 users, load average: 0.01, 0.00, 0.00 

[3] 11:19:47 [SUCCESS] Mar.mars.he 11:19:56 up 4 days, 16:30, 1 user, load average: 0.00, 0.00, 0.00 

我们来看一下/tmp/pssh/下的文件及其内容 

# ll /tmp/pssh/ 

总用量 12 -rw-r--r--. 1 root root 70 12月 1 11:19 Feb.mars.he -rw-r--r--. 1 root root 70 12月 1 11:19 Jan.mars.he -rw-r--r--. 1 root root 69 12月 1 11:19 Mar.mars.he # cat /tmp/pssh/* 11:19:55 up 4 days, 16:31, 2 users, load average: 0.02, 0.03, 0.00 11:19:56 up 3 days, 23:30, 0 users, load average: 0.01, 0.00, 0.00 11:19:56 up 4 days, 16:30, 1 user, load average: 0.00, 0.00, 0.00

    A+
发布日期:2017年06月03日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: