摘要: #!/bin/bashRx=`ifconfig eno16777736 | grep RX | grep packets | awk '{print $5}'`Tx=`ifconfig eno16777736 | grep TX | grep packets | awk '{print $5}'`s 阅读全文
posted @ 2017-02-20 21:17 海上生明月~ 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 1.模拟linnux登录shell #/bin/bashecho -n "login:" read nameecho -n "password:"read passwdif [ $name = "cht" -a $passwd = "abc" ];thenecho "the host and pas 阅读全文
posted @ 2017-02-20 16:33 海上生明月~ 阅读(2850) 评论(0) 推荐(0) 编辑
摘要: 1、简介SaltStack是一个服务器基础架构集中化管理平台,具备配置管理、远程执行、监控等功能,一般可以理解为简化版的puppet和加强版的func。SaltStack基于Python语言实现,结合轻量级消息队列(ZeroMQ)与Python第三方模块(Pyzmq、PyCrypto、Pyjinji 阅读全文
posted @ 2017-02-20 08:58 海上生明月~ 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: 1、简介 ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。ansible是基于模块工作的,本身没有批量部署的能力。真正具有批量部署的是an 阅读全文
posted @ 2017-02-20 08:56 海上生明月~ 阅读(384) 评论(0) 推荐(0) 编辑