摘要: cd /py/AutoClient/bin python3 auto-client.py /usr/local/python3/bin/pip install requests python3 auto-client.py https://www.bejson.com/ { 'os_platform 阅读全文
posted @ 2018-06-29 23:17 颜言 阅读(326) 评论(0) 推荐(0) 编辑
摘要: root 123456 ip addr init 0 root 123456 ip addr root 123456 python3 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel read 阅读全文
posted @ 2018-06-29 20:45 颜言 阅读(332) 评论(0) 推荐(0) 编辑
摘要: https://www.virtualbox.org/wiki/Downloads https://mirrors.aliyun.com/centos/7/isos/x86_64/ http://www.xitongzhijia.net/soft/24315.html http://www.down 阅读全文
posted @ 2018-06-29 20:39 颜言 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1 #settings.py 2 """ 3 Django settings for AutoCmdb project. 4 5 Generated by 'django-admin startproject' using Django 2.0.6. 6 7 For more information 阅读全文
posted @ 2018-06-29 10:14 颜言 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1 #base.py 2 # ————————01CMDB获取服务器基本信息———————— 3 from config import settings #配置文件 4 5 class BasePlugin(object): 6 def __init__(self, hostname=''): 7 阅读全文
posted @ 2018-06-29 10:10 颜言 阅读(648) 评论(0) 推荐(0) 编辑