上一页 1 2 3 4 5 6 7 ··· 19 下一页
摘要: 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 颜言 阅读(331) 评论(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 颜言 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 1 #__init__.py 2 # ————————05CMDB采集硬件数据的插件———————— 3 from config import settings 4 import importlib 5 # ————————05CMDB采集硬件数据的插件———————— 6 7 # ———————— 阅读全文
posted @ 2018-06-26 19:48 颜言 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 1 # client.py 2 # ————————01CMDB获取服务器基本信息———————— 3 from src import plugins #__init__.py 4 from lib.serialize import Json #转成字符串或者模式 5 6 # ————————02C 阅读全文
posted @ 2018-06-25 23:55 颜言 阅读(463) 评论(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-24 18:47 颜言 阅读(615) 评论(0) 推荐(0) 编辑
摘要: AutoCmdb 1 # urls.py 2 """AutoCmdb URL Configuration 3 4 The `urlpatterns` list routes URLs to views. For more information please see: 5 https://docs. 阅读全文
posted @ 2018-06-23 22:24 颜言 阅读(837) 评论(0) 推荐(0) 编辑
摘要: AutoClient 1 #settings.py 2 # ————————01CMDB获取服务器基本信息———————— 3 import os 4 5 BASEDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))##当 阅读全文
posted @ 2018-06-23 20:34 颜言 阅读(1917) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 19 下一页