![fj.png](/image/default/fj.png)
将该脚本解压缩放在/root,编辑file.txt文件,将待巡检的主机ip地址以及密码写在该文件中。执行sh shellsh.sh file.txt 192.168.56.88 123456
192.168.56.88 代表的是将所有其他节点收集的信息全部回传到该主机上的/tmp/GatherLogDirectory目录。
在执行/root下面的compress.sh脚本,进行压缩回传文件。
![](http://img.blog.itpub.net/blog/attachment/201706/11/30345407_1497195901Z7vq.png?x-oss-process=style/bb)
![](http://img.blog.itpub.net/blog/attachment/201706/11/30345407_14971959469dN2.png?x-oss-process=style/bb)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30345407/viewspace-2140598/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30345407/viewspace-2140598/