2017年8月16日

扫描整个网段的所有,查看主机是否在线

摘要: ma_be.sh get_ip.sh 脚本运行: 在ma_be.sh输入整个网段的统一root密码 chmod +x ma_be.sh ./ma_be.sh 19 #扫描19网段 分割线 获取用户脚本 阅读全文

posted @ 2017-08-16 19:39 losbyday 阅读(3679) 评论(0) 推荐(0) 编辑

ansible执行shell模块和command模块报错| FAILED | rc=127 >> /bin/sh: lsof: command not found和| rc=2 >> [Errno 2] No such file or directory

摘要: 命令: ansible -i hosts_20 st -m shell -a 'service zabbix_agentd star' -K --become ansible -i hosts_20 st -m shell -a 'lsof -i:10050' -K --become 在shell模 阅读全文

posted @ 2017-08-16 19:09 losbyday 阅读(9143) 评论(0) 推荐(0) 编辑

导航