之前开发了php+mysql+shell运维监控系统,监控起来很方便,但在运维管理方便还是不能实现,所以最近打算使用python语言编写一套的运维管理系统,可以使用单台或多台机器同时管理与部署等功能,实现类似func、triaquae等管理软件功能。

本软件是参考了triaquae软件的思路(对方软件地址为http://triaquae2.sinaapp.com/),参考对方软件的组方面的部分代码,经过与原作者Alex Li的协商,允许我使用对方部分代码与思路,所以我把此软件进行开源,分享给大家。

下面开始安装与应用测试

一、软件的安装
软件可以到https://github.com/dl528888/auto_op/里面进行下载
1、先解压软件
  1. root@squid:/tmp# tar zxvf auto_op.tar.gz
  2. auto/
  3. auto/auto_op.py
  4. auto/setup.py
  5. auto/install.txt
安装前软件的结构
 
  1. root@squid:/tmp# tree auto
  2. auto
  3. |-- auto_op-software-install-and-function-document.docx         #中文的安装文档
  4. |-- auto_op.py                                              #程序包
  5. |-- install.txt                                             #软件介绍与安装说明
  6. `-- setup.py                                                #部署环境与安装
  7. 0 directories, 4 files
2、进入目录查看安装文档install.txt
  1. root@squid:/tmp# cd auto/
  2. root@squid:/tmp/auto# ll
  3. total 44
  4. drwxr-xr-x 2 root root  4096 Mar 20 23:44 ./
  5. drwxrwxrwt 8 root root  4096 Mar 21 09:56 ../
  6. -rw-r--r-- 1 root root 24774 Mar 20 23:33 auto_op.py
  7. -rw-r--r-- 1 root root   494 Mar 20 23:44 install.txt
  8. -rw-r--r-- 1 root root  3346 Mar 20 22:53 setup.py
  9. root@squid:/tmp/auto# cat install.txt
  10. Version 1.0
  11. Introduction
  12. This software is manage many servers.I refer to TriAquae.TriAquae's author is Alex Li.You can let all your Linux servers(or single server)  doing the same job in the same time,such as send a file,run a script,modify file,excute command and etc.
  13. Install
  14. 1. tar zxvf auto_op.tar.gz
  15. 2. cd auto
  16. 3. python setup.py build --prefix=/installdir/
  17. 4. python setup.py install
  18. 5. /installdir/auto_op.py
  19. Support
  20. If you have some problem , you can send mailto 244979152@qq.com.
3、根据安装文档安装,先指定安装目录
  1. root@squid:/tmp/auto# python setup.py build --prefix=/usr/local/auto_op
  2. Start to check pre-installation environment...................................
  3. direcotry not exsit,creating successful........
  4. If no error printed out , you can run 'python setup.py install' to install the program
4、然后再进行安装
  1. root@squid:/tmp/auto# python setup.py install
  2. Extract files to working directory...
  3. Complete ok
  4. Now you can run /usr/local/auto_op/auto_op.py start manage your network.
5、进入安装目录运行软件
  1. root@squid:/tmp/auto# cd /usr/local/auto_op/
  2. root@squid:/usr/local/auto_op# ll
  3. total 36
  4. drwxr-xr-x  2 root root  4096 Mar 21 10:02 ./
  5. drwxr-xr-x 12 root root  4096 Mar 21 10:02 ../
  6. -rw-r--r--  1 root root 24783 Mar 21 10:02 auto_op.py
  7. root@squid:/usr/local/auto_op# chmod 755 auto_op.py
  8. root@squid:/usr/local/auto_op# ll
  9. total 36
  10. drwxr-xr-x  2 root root  4096 Mar 21 10:02 ./
  11. drwxr-xr-x 12 root root  4096 Mar 21 10:02 ../
  12. -rwxr-xr-x  1 root root 24783 Mar 21 10:02 auto_op.py*
  13. root@squid:/usr/local/auto_op# ./auto_op.py
  14. ------------------------------------Memu list-----------------------------------------------------------
  15. 1. Add new group
  16. 2. Rename group name
  17. 3. Delete group
  18. 4. List group member
  19. 5. List host in the group
  20. 6. Add new server to group
  21. 7. Delete server from group
  22. 8. Command excution on group servers
  23. 9. Command excution on one server
  24. 10. Upload or download on group servers
  25. 11. Upload or download on one server
  26. 12. Quit
  27. --------------------------------Input number of you want to exec command---------------------------------
  28. Author is DengLei
可以看到有很多选项,下面是介绍
  1. 1. Add new group                        #添加新组
  2. 2. Rename group name                    #对组重命名
  3. 3. Delete group                     #删除组
  4. 4. List group member                    #列出已有的组名称与成员数量
  5. 5. List host in the group                   #列出组内的主机ip
  6. 6. Add new server to group              #增加新主机到组里
  7. 7. Delete server from group             #删除组里的主机
  8. 8. Command excution on group servers        #在组内的所有主机统一执行命令
  9. 9. Command excution on one server       #对组内的某个主机执行命令
  10. 10. Upload or download on group servers #对组内的所有主机进行上传与下载文件
  11. 11. Upload or download on one server        #对组内的某个主机进行上传与下载文件
  12. 12. Quit                                #退出
安装后的软件结构
  1. root@squid:/tmp# tree /usr/local/auto_op/
  2. /usr/local/auto_op/
  3. |-- auto_op.py                          #程序包
  4. |-- logs                                #日志目录
  5. |   `-- operation.log                   #操作日志
  6. `-- server_list                         #组目录
  7. `-- test                            #组
  8. 2 directories, 3 files
二、测试
1、选择1进行创建新组
  1. please input you choice:1                           #选择1创建新组
  2. please input new group name:test                        #组名为test
  3. Created group test successful.
  4. Do you want to add new server to Group test [ Y / N ]:y #选择添加新主机到test组里
  5. Input new server IP or Hostname:192.168.101.235     #新主机的ip
  6. Input newser's port:22                              #新主机的端口
  7. Input newser's username:root                        #新主机的用户名
  8. Input newser's password:123456                      #新主机的秘密
  9. New server 192.168.101.235 added successfully.
2、在新创建个one组,然后进行重命名组操作
  1. please input you choice:1                            #选项1是创建新组
  2. please input new group name:one                      #新组名为one
  3. Created group one successful.
  4. Do you want to add new server to Group one [ Y / N ]:n  #不添加主机到组里
  5. ------------------------------------Memu list-----------------------------------------------------------
  6. 1. Add new group
  7. 2. Rename group name
  8. 3. Delete group
  9. 4. List group member
  10. 5. List host in the group
  11. 6. Add new server to group
  12. 7. Delete server from group
  13. 8. Command excution on group servers
  14. 9. Command excution on one server
  15. 10. Upload or download on group servers
  16. 11. Upload or download on one server
  17. 12. Quit
  18. --------------------------------Input number of you want to exec command---------------------------------
  19. Author is DengLei
  20. please input you choice:2                            #选项2是对组重命名
  21. ---------------
  22. Which group name do you want to change?:one          #重命名组为one
  23. New name:first                                   #重命名为first
  24. group name of one changed to first
3、选择4查看本机所有组的状态
  1. please input you choice:4
  2. now there is group is
  3. test[1]
  4. first[0]
可以看到test组有1个成员,first没有成员
4、删除first组
  1. please input you choice:3                                #选项3是删除组
  2. please inupt you want to del group name:first                #输入要删除的组名
  3. first
  4. Are you sure you want to delete groupfirst [ Y / N ]: y         #确认是否删除
  5. Deleted group first
  6. ------------------------------------Memu list-----------------------------------------------------------
  7. 1. Add new group
  8. 2. Rename group name
  9. 3. Delete group
  10. 4. List group member
  11. 5. List host in the group
  12. 6. Add new server to group
  13. 7. Delete server from group
  14. 8. Command excution on group servers
  15. 9. Command excution on one server
  16. 10. Upload or download on group servers
  17. 11. Upload or download on one server
  18. 12. Quit
  19. --------------------------------Input number of you want to exec command---------------------------------
  20. Author is DengLei
  21. please input you choice:4                                #在查看一下当前的所有组
  22. now there is group is
  23. test[1]
5、选择5查看test组里所有的主机
  1. please input you choice:5                                #选项5查看组内的主机
  2. Input Group name which the server is in:test                #输入查看的组名
  3. ------------------------Server List----------------------------
  4. 192.168.101.235                                      #test组内的主机
6、选项6增加新主机到组里
  1. please input you choice:6                               #选项6添加新主机到组
  2. Input Group name which the server is in:test            #选项添加新主机的组
  3. ------------------------Server List----------------------------
  4. 192.168.101.235                                      #组内的所有主机
  5. groupfile is /usr/local/auto_op/server_list/test
  6. Input new server IP or Hostname:192.168.101.236         #新主机的ip
  7. Input newser's port:22                                  #新主机的端口
  8. Input newser's username:root                            #新主机的用户
  9. Input newser's password:123456                       #新主机的密码
  10. New server 192.168.101.236 added successfully.
  11. Keep on adding new server?:[ Y / N ]y                   #是否继续添加新主机
  12. Input new server IP or Hostname:1.1.1.1
  13. Input newser's port:22
  14. Input newser's username:root
  15. Input newser's password:123456
  16. New server 1.1.1.1 added successfully.
  17. Keep on adding new server?:[ Y / N ]n
7、选择7删除主机从组里
  1. please input you choice:7
  2. Input Group name which the server is in:test
  3. ------------------------Server List----------------------------
  4. 192.168.101.235
  5. 192.168.101.236
  6. 1.1.1.1
  7. Notice: All matched IP adresses will be deleted,becare
  8. Input the server IP which you want to delete:1.1.1.1
  9. 1.1.1.1
  10. matched rows: 1
  11. Do you want to delete all the matched rows?(y/n)y
  12. IP 1.1.1.1 has been deleted from group test
  13. Notice: All matched IP adresses will be deleted,becare
  14. Input the server IP which you want to delete:you command is CTRL+C go back
  15. ------------------------------------Memu list-----------------------------------------------------------
  16. 1. Add new group
  17. 2. Rename group name
  18. 3. Delete group
  19. 4. List group member
  20. 5. List host in the group
  21. 6. Add new server to group
  22. 7. Delete server from group
  23. 8. Command excution on group servers
  24. 9. Command excution on one server
  25. 10. Upload or download on group servers
  26. 11. Upload or download on one server
  27. 12. Quit
  28. --------------------------------Input number of you want to exec command---------------------------------
  29. Author is DengLei
  30. please input you choice:5
  31. Input Group name which the server is in:test
  32. ------------------------Server List----------------------------
  33. 192.168.101.235
  34. 192.168.101.236

8、选项8对组内所有主机同时执行命令

  1. please input you choice:8                    #选择8对组内所有主机执行命令
  2. now there is group is                        #列出当前所有的组
  3. test[2]
  4. please input you choice group:test               #输入项执行命令的组
  5. You choice test group
  6. please input you want to select command,Ctrl + C to quit:hostname       #输入执行的命令
  7. -------------------------------
  8. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:21:51
  9. exec result is
  10. linux-cbb3                                                   #执行的结果
  11. 192.168.101.235 exec command ['hostname'] OK!
  12. end time is 2013-03-21 10:21:51
  13. -------------------------------
  14. -------------------------------
  15. start to connect ip 192.168.101.236 port 22 username root  at time 2013-03-21 10:21:51
  16. exec result is
  17. squid
  18. 192.168.101.236 exec command ['hostname'] OK!
  19. end time is 2013-03-21 10:21:52
  20. -------------------------------
  21. please input you want to select command,Ctrl + C to quit:
9、选项9对组内的某个主机执行命令
  1. please input you choice:9                            #选择9
  2. now there is group is
  3. test[2]
  4. Input Group name which the server is in:test                                 #选择test组
  5. ------------------------Server List----------------------------
  6. 192.168.101.235
  7. 192.168.101.236
  8. Please input you want to execute the command of the host name:192.168.101.235   #选择主机
  9. please input you want to select command,Ctrl + C to quit:uptime              #输入命令
  10. -------------------------------
  11. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:23:50
  12. exec result is
  13. 10:25pm  up 152 days 18:02,  1 user,  load average: 0.07, 0.02, 0.00
  14. 192.168.101.235 exec command ['uptime'] OK!
  15. end time is 2013-03-21 10:23:51
  16. -------------------------------
  17. please input you want to select command,Ctrl + C to quit:
10、选项10是对组内进行文件的上传与下载
  1. please input you choice:10
  2. ------------------------------------Memu list-----------------------------------------------------------
  3. 1. Upload file to remote group servers
  4. 2. Download file to remote group server
  5. 3. Quit
  6. --------------------------------Input number of you want to exec command---------------------------------
  7. Author is DengLei
可以看到选项10里有3个选项
1、把本地的文件上传到组内所有主机里
2、从组内的所有主机下载文件到本机
3、退出
我们先进行1项,把本地的文件上传到组内所有主机里
  1. please input you choice:1
  2. now there is group is
  3. test[2]
  4. please input you choice group:test
  5. You choice test group
  6. please input you want to upload localpath file name,Ctrl + C to quit:/tmp/log   #上传本机的文件
  7. please input you want to upload remotepath file name,Ctrl + C to quit:/tmp/test-upload-file-to-group.log        #上传到组内主机的文件名
  8. Are you sure upload file from /tmp/log to /tmp/test-upload-file-to-group.log in the test group y
  9. ------------------------------- #确认是否传输
  10. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:28:46
  11. 192.168.101.235 exec put /tmp/log to /tmp/test-upload-file-to-group.log OK!
  12. end time is 2013-03-21 10:28:47
  13. -------------------------------
  14. -------------------------------
  15. start to connect ip 192.168.101.236 port 22 username root  at time 2013-03-21 10:28:47
  16. 192.168.101.236 exec put /tmp/log to /tmp/test-upload-file-to-group.log OK!
  17. end time is 2013-03-21 10:28:47
  18. -------------------------------
查询的话就是
  1. please input you choice:8
  2. now there is group is
  3. test[2]
  4. please input you choice group:test
  5. You choice test group
  6. please input you want to select command,Ctrl + C to quit:ls -l /tmp/test-upload-file-to-group.log
  7. -------------------------------
  8. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:30:42
  9. exec result is
  10. -rw-r--r-- 1 root root 21 Mar 21 22:30 /tmp/test-upload-file-to-group.log
  11. 192.168.101.235 exec command ['ls -l /tmp/test-upload-file-to-group.log'] OK!
  12. end time is 2013-03-21 10:30:42
  13. -------------------------------
  14. -------------------------------
  15. start to connect ip 192.168.101.236 port 22 username root  at time 2013-03-21 10:30:42
  16. exec result is
  17. -rw-r--r-- 1 root root 21 Mar 21 10:28 /tmp/test-upload-file-to-group.log
  18. 192.168.101.236 exec command ['ls -l /tmp/test-upload-file-to-group.log'] OK!
  19. end time is 2013-03-21 10:30:43
  20. -------------------------------
下面进行选项2,从组内的所有主机下载文件到本机
  1. please input you choice:10
  2. ------------------------------------Memu list-----------------------------------------------------------
  3. 1. Upload file to remote group servers
  4. 2. Download file to remote group server
  5. 3. Quit
  6. --------------------------------Input number of you want to exec command---------------------------------
  7. Author is DengLei
  8. please input you choice:2
  9. now there is group is
  10. test[2]
  11. please input you choice group:test
  12. You choice test group
  13. please input you want to download localpath file name,Ctrl + C to quit:/tmp/test-download-to-group.log
  14. please input you want to download remotepath file name,Ctrl + C to quit:/tmp/test-upload-file-to-group.log
  15. Are you sure download file from /tmp/test-download-to-group.log to /tmp/test-upload-file-to-group.log in the test group y
  16. -------------------------------
  17. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:32:13
  18. 192.168.101.235 exec get /tmp/test-upload-file-to-group.log from /tmp/test-download-to-group.log_192.168.101.235 OK!
  19. end time is 2013-03-21 10:32:13
  20. -------------------------------
  21. -------------------------------
  22. start to connect ip 192.168.101.236 port 22 username root  at time 2013-03-21 10:32:13
  23. 192.168.101.236 exec get /tmp/test-upload-file-to-group.log from /tmp/test-download-to-group.log_192.168.101.236 OK!
  24. end time is 2013-03-21 10:32:14
我这回是把之前上传的/tmp/test-upload-file-to-group.log文件给现在到本地,命名为/tmp/test-download-to-group.log,由于是不同主机把文件传给本机,所以我在文件名后面加上了他们的ip好区分。
下面是查看的结果
  1. please input you choice:8
  2. now there is group is
  3. test[2]
  4. please input you choice group:test
  5. You choice test group
  6. please input you want to select command,Ctrl + C to quit:ls -l /tmp/test-download-to-group.log*
  7. -------------------------------
  8. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:34:22
  9. exec result is
  10. 192.168.101.235 exec command ['ls -l /tmp/test-download-to-group.log*'] OK!
  11. end time is 2013-03-21 10:34:22
  12. -------------------------------
  13. -------------------------------
  14. start to connect ip 192.168.101.236 port 22 username root  at time 2013-03-21 10:34:22
  15. exec result is
  16. -rw-r--r-- 1 root root 21 Mar 21 10:32 /tmp/test-download-to-group.log_192.168.101.235
  17. -rw-r--r-- 1 root root 21 Mar 21 10:32 /tmp/test-download-to-group.log_192.168.101.236
  18. 192.168.101.236 exec command ['ls -l /tmp/test-download-to-group.log*'] OK!
  19. end time is 2013-03-21 10:34:23
  20. -------------------------------
可以看到主机192.168.101.236已经获得了/tmp/test-download-to-group.log_192.168.101.235与/tmp/test-download-to-group.log_192.168.101.236的2个文件
11、选项11是进行组内某主机的上传与下载,也就是单台主机的
  1. please input you choice:11
  2. ------------------------------------Memu list-----------------------------------------------------------
  3. 1. Upload file to remote one server
  4. 2. Download file to remote one server
  5. 3. Quit
  6. --------------------------------Input number of you want to exec command---------------------------------
  7. Author is DengLei
里面也有3个选项
1、从本机上传文件给远程主机
2、从远程主机下载文件给本机
3、退出
现在进行选项1,从本机上传文件给远程主机
  1. please input you choice:1
  2. now there is group is
  3. test[2]
  4. Input Group name which the server is in:test
  5. ------------------------Server List----------------------------
  6. 192.168.101.235
  7. 192.168.101.236
  8. Please input you want to execute the command of the host name:192.168.101.235
  9. please input you want to upload localpath file name,Ctrl + C to quit:/tmp/test-download-to-group.log_192.168.101.236
  10. please input you want to upload remotepath file name,Ctrl + C to quit:/tmp/test-upload-to-host.log
  11. Are you sure upload file from /tmp/test-download-to-group.log_192.168.101.236 to /tmp/test-upload-to-host.log in the 192.168.101.235 host y
  12. -------------------------------
  13. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:38:44
  14. 192.168.101.235 exec put /tmp/test-download-to-group.log_192.168.101.236 to /tmp/test-upload-to-host.log OK!
  15. end time is 2013-03-21 10:38:44
  16. -------------------------------
然后查询
  1. please input you choice:9
  2. now there is group is
  3. test[2]
  4. Input Group name which the server is in:test
  5. ------------------------Server List----------------------------
  6. 192.168.101.235
  7. 192.168.101.236
  8. Please input you want to execute the command of the host name:192.168.101.235
  9. please input you want to select command,Ctrl + C to quit:ls -l /tmp/test-upload-to-host.log
  10. -------------------------------
  11. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:39:59
  12. exec result is
  13. -rw-r--r-- 1 root root 21 Mar 21 22:40 /tmp/test-upload-to-host.log
  14. 192.168.101.235 exec command ['ls -l /tmp/test-upload-to-host.log'] OK!
  15. end time is 2013-03-21 10:40:00
  16. -------------------------------
可以看到文件已经上传到192.168.101.235主机了
现在进行选项2,从远程主机下载文件给本机
  1. please input you choice:11
  2. ------------------------------------Memu list-----------------------------------------------------------
  3. 1. Upload file to remote one server
  4. 2. Download file to remote one server
  5. 3. Quit
  6. --------------------------------Input number of you want to exec command---------------------------------
  7. Author is DengLei
  8. please input you choice:2
  9. now there is group is
  10. test[2]
  11. Input Group name which the server is in:test
  12. ------------------------Server List----------------------------
  13. 192.168.101.235
  14. 192.168.101.236
  15. Please input you want to execute the command of the host name:192.168.101.235
  16. please input you want to download localpath file name,Ctrl + C to quit:/tmp/test-download-to-host.log
  17. please input you want to download remotepath file name,Ctrl + C to quit:/tmp/test-upload-to-host.log
  18. Are you sure download file from /tmp/test-download-to-host.log to /tmp/test-upload-to-host.log in the 192.168.101.235 host y
  19. -------------------------------
  20. start to connect ip 192.168.101.235 port 22 username root  at time 2013-03-21 10:41:04
  21. 192.168.101.235 exec get /tmp/test-upload-to-host.log from /tmp/test-download-to-host.log_192.168.101.235 OK!
  22. end time is 2013-03-21 10:41:04
  23. -------------------------------
进行查看
  1. please input you choice:9
  2. now there is group is
  3. test[2]
  4. Input Group name which the server is in:test
  5. ------------------------Server List----------------------------
  6. 192.168.101.235
  7. 192.168.101.236
  8. Please input you want to execute the command of the host name:192.168.101.236
  9. please input you want to select command,Ctrl + C to quit:ls -l /tmp/test-download-to-host.log_192.168.101.235
  10. -------------------------------
  11. start to connect ip 192.168.101.236 port 22 username root  at time 2013-03-21 10:41:45
  12. exec result is
  13. -rw-r--r-- 1 root root 21 Mar 21 10:41 /tmp/test-download-to-host.log_192.168.101.235
  14. 192.168.101.236 exec command ['ls -l /tmp/test-download-to-host.log_192.168.101.235'] OK!
  15. end time is 2013-03-21 10:41:46
  16. -------------------------------
也传输成功
12、操作日志查看
所有的操作都有存放到日志里,方便查看
  1. root@squid:/tmp# cd /usr/local/auto_op/
  2. root@squid:/usr/local/auto_op# ll
  3. total 44
  4. drwxr-xr-x  4 root root  4096 Mar 21 10:03 ./
  5. drwxr-xr-x 12 root root  4096 Mar 21 10:02 ../
  6. -rwxr-xr-x  1 root root 24783 Mar 21 10:02 auto_op.py*
  7. drwxr-xr-x  2 root root  4096 Mar 21 10:09 logs/
  8. drwxr-xr-x  2 root root  4096 Mar 21 10:19 server_list/
  9. root@squid:/usr/local/auto_op# cd logs/
  10. root@squid:/usr/local/auto_op/logs# ll
  11. total 16
  12. drwxr-xr-x 2 root root 4096 Mar 21 10:09 ./
  13. drwxr-xr-x 4 root root 4096 Mar 21 10:03 ../
  14. -rw-r--r-- 1 root root 5415 Mar 21 10:41 operation.log
  15. root@squid:/usr/local/auto_op/logs# tail -f operation.log
  16. 2013-03-21 10:36:40   show group test server list['192.168.101.235', '192.168.101.236']
  17. 2013-03-21 10:38:44   192.168.101.235 exec put /tmp/test-download-to-group.log_192.168.101.236 to /tmp/test-upload-to-host.log OK!
  18. 2013-03-21 10:39:08   show group test server list['192.168.101.235', '192.168.101.236']
  19. 2013-03-21 10:39:25   192.168.101.235 exec command ['ls -l /tmp/test-download-to-group.log_192.168.101.236'] OK!
  20. 2013-03-21 10:39:50   show group test server list['192.168.101.235', '192.168.101.236']
  21. 2013-03-21 10:40:00   192.168.101.235 exec command ['ls -l /tmp/test-upload-to-host.log'] OK!
  22. 2013-03-21 10:40:38   show group test server list['192.168.101.235', '192.168.101.236']
  23. 2013-03-21 10:41:04   192.168.101.235 exec get /tmp/test-upload-to-host.log from /tmp/test-download-to-host.log_192.168.101.235 OK!
  24. 2013-03-21 10:41:24   show group test server list['192.168.101.235', '192.168.101.236']
  25. 2013-03-21 10:41:46   192.168.101.236 exec command ['ls -l /tmp/test-download-to-host.log_192.168.101.235'] OK!
可以看到之前的操作

现在本软件的所有功能就都实现了,希望各位能多提供建议与问题,也希望各位同仁能一起分享一下自己对运维自动化的经验,多对软件进行开源,谢谢。

转载于:https://blog.51cto.com/dl528888/1159510

运维自动化之基于python语言的文字界面的运维管理软件相关推荐

  1. python运维招聘_利用 Python 爬取了 13966 条运维招聘信息,看看你是否符合招聘信息!...

    本文的文字及图片来源于网络,仅供学习.交流使用,不具有任何商业用途,版权归原作者所有,如有问题请及时联系我们以作处理 以下文章来源于腾讯云 作者:Python进阶者 ( 想要学习Python?Pyth ...

  2. python运维自动化脚本案例-python自动化运维脚本范例

    1.列举当前目录以及所有子目录下的文件,并打印出绝对路径#!/usr/bin/python# coding=utf8import osimport sys if len(sys.argv) < ...

  3. 运维自动化—ansible的使用

    一.ansible的介绍 ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet.chef.func.fabric)的优点,实现了批量系统配置.批量程序部署.批 ...

  4. python和linux运维学哪个--学习Python在Linux运维上的应用应该看哪些书 什么样的学习路线...

    python 元类生成类的方法是什么类型的 首先请一下习惯,python中的类名习惯用大写字母开 我是这样理解的,不一定对,通过type() ,还是实例方法instancemethod 只不过B这个类 ...

  5. 中小型运维团队如何设计运维自动化平台

    前言 我给中小型运维团队的定义是整个团队人数(所有运维工程师 + 运维开发工程师)为 20 人以下,一般这样的团队,能为自动化投入的资源也许就 1.2 个开发人员. BAT 等大公司的 DevOps ...

  6. 高效运维:运维自动化之殇

    简介: 自动化运维到底需要做什么呢?我们做了这么长时间的运维自动化,还有什么是没做的呢?怎样更优雅的实施运维自动化?运维自动化是万能的么?有哪些潜在问题?高效运维社区发起人,开放运维联盟主席萧田国将为 ...

  7. 【有感而发】从中华武术谈运维工程师以及运维自动化http://liuqunying.blog.51cto.com/3984207/1596186...

    从中华武术谈运维工程师以及运维自动化 任何事物都没有完美一说,但是我们可以死磕自己,追求极致... 无论我们现在是搬砖呢,砌墙呢,还是在逗自己混日子,我们需要关注的是自己的方向在哪里,而不是过于在意自 ...

  8. 【有感而发】从中华武术谈运维工程师以及运维自动化

    从中华武术谈运维工程师以及运维自动化 任何事物都没有完美一说,但是我们可以死磕自己,追求极致... 无论我们现在是搬砖呢,砌墙呢,还是在逗自己混日子,我们需要关注的是自己的方向在哪里,而不是过于在意自 ...

  9. 舍本求末的运维自动化技术热潮

    运维自动化是2010年开始炒得很热的一个概念,也让很多工程师.用人单位瞎激动了很久,我也跟风学过puppet和python,求职双方也经常在面试时花大量时间谈运维自动化. 但冷静下来想想,所谓自动化, ...

最新文章

  1. 10g TNS 13541 监听错误 tnsping可以但是conn system/manager@mult1.net 报错
  2. ICS汇编学习笔记——操作数寻址方式
  3. php yanzhengm,ThinkPHP 在使用M方法(不创建模型类)时实现自动验证与自动填充
  4. spring order_Spring @Order批注
  5. (46)Verilog HDL 自动饮料机设计
  6. ucc编译器(词法分析)
  7. HTML中更改hr宽度高度颜色
  8. 医院药品管理系统java sql_医院药品管理系统设计(Netbeans,Myeclipse,MySQL,SQLServer)
  9. Restorator 2007 Build 1729 汉化版
  10. java poi word转html 报错
  11. C语言sar图像几何校正,SAR图像几何校正方法与流程
  12. Action Recognition——Deep Domain Adaptation in Action Space——BMVC2018
  13. 土地购买(bzoj 1597)
  14. 生产计划排产软件能为企业生产管理提供哪些帮助?
  15. VMware虚拟机Ubuntu系统如何连接网络
  16. 基于vue-cli3的vue项目 通过postcss-pxtorem 实现px自动转换成rem
  17. 数组,结构体初始化 {0}
  18. 学习opengl官方指南 01 opengl介绍
  19. [PTA]习题4-2 求幂级数展开的部分和
  20. 大数据存储与备份,迫在眉睫!

热门文章

  1. 【哈利波特】Sherbert Lemon对HP的解读之11
  2. 太极创客ESP8266 - NodeMCU、JSON、MQTT教程(基于Arduino)
  3. 全国计算机等级考试题库二级C操作题100套(第96套)
  4. python 连接mysql_python连接MySQL
  5. stmmac描述符的结构和初始化
  6. uboot2015–启动流程分析 imx6q
  7. html把实线变成虚线,Html5 Canvas 绘制虚线和实线的切换方法
  8. js对象数组转java对象数组对象数组对象数组对象,前台js数组json字符串,后台json转为对象数组的具体实现...
  9. java中线程的6种状态
  10. docker数据持久化数据卷