Tags: import ASI auto EXE mode init start Art ini1.start.py Script.run (): Executes the Run function--2.script.py Run Method--3. Judging mode (Agent/sshsalt)--4. Execute the agent/sshsalt--> in client.py5. Perform the exec_plugin corresponding to the/src/plugins/__init__.py in the respectiveMethod (__AGENT/__SALT/__SSH), __init__.py calls the configuration file in the settings.py, the Exec_plugin () method splits the modules and classes in the settings.py and executes eachplugins/directory of ba
In the operation of the tool, the choice of using the Ansible API to interact with the server, the purpose of using ansible is simple, and the client does not need to install the agent, server installation after the Ansbile, the new machine can be managed.In order to combine the asset management system (CMDB), the method of dynamically acquiring inventory is used, which eliminates the need to configure hosts on the Ansible server, all client IP, accou
Tags: CMDB transport dimensional plane Taiwan cabinet display Zabbix AlarmRecently saw Liu Tians teacher's cabinet display platform, very gorgeous, and there is a large screen display can also reflect the value of operation and maintenance, here is the next I am doing some data of the CMDB platform:CMDB data:Computer room, cabinet, cabinet power supply, cabinet location, machine room contract, contract expi
Tags: base PNG application struct Mat MDA strftime three ways requiredOverviewRecently working on a project: the CMDB (Configuration Management Database) asset acquisition, which involves a Classmethod (class method) approach, is not found. There is also a Staticmethod (static method) method has been unfamiliar, so from the online access to information, strengthen understanding, and then collated as follows: @classmethod: Class methods (methods that r
Tags: password user name development CMDBA simple computer room cabinet CMDB system, based on Django, is for reference only. Welcome to leave a comment below, put forward the amendment.can be realized by adding or deleting. Permissions did not do, many functions have not done, only to do a basic, beginner.The front-end template uses the same inspinia2.5 as the jumpserver, so it looks pretty much the same. Templates can be self-Baidu search.Put it in t
Operation and maintenance Automation route:The development of the CMDB needs to include three parts:
Acquisition of hardware data
Api
Page Management
Execution process: The client of the server collects the hardware data, then sends the hardware information to the API,API responsible for saving the acquired data to the database, and the daemon is responsible for the configuration and presentation of the server information.Acquisi
Tags: python ansible CMDB 资产管理对于任何公司来说都是件非常重要的事情,大家不用cmdb都有点不好意思出来见人了,上了CMDB之后基础就是资产这块,为了不苦逼似的一个个往里边录入,于是用python 结合Ansible 写了个自动收集资产信息,然后拿出自己需要关注的字段,自动insert 到cmdb 数据库里边去。 Our CMDB is open source, and after the front-end customization, the back-end database needs to create t
Tags: bash pen echo script die from simple script MySQL $*#!/bin/bash#author Xiaoweige#todo: IP--> ingredient or ingredient--> IP #todo: Get the IP of the given ingredientfunction Ingredient_ip () {#todo: Get the IP of the ingredient givenMysql-uroot-pengine-e "SELECT * from ipandingredient.ipandingredient where env = ' $ ' and ingredient= '"}#todo: Not sure what's the ingredient isfunction Search_ingredient () {Mysql-uroot-pengine-e "Use ipandingredient; select * from ipandingredient where ingr
", port="Remote Port", username="User name", password="Password") #执行命令, get results into standard input \ out \ Error stream Stdin,stdout,stderr=Ssh.exec_command (cmd) #4. Get command Results result=Stdout.read () #5. Close connection ssh.close ()paramiko Implementing Remote Command Execution (method one: Using user name, password)def SSH (self,cmd): Import Paramiko #1. Create an SSH object ssh=Paramiko. Sshclient () #2Add this sentence do not worry about choosing Yes, will automatically select
need to inherit this method to handle the requested entry - RaiseNotimplementederror ('How you must implement the process') to + classautoagent (autobase): - defprocess (self): theServer_info = Plugins.get_server_info ()#get local basic information *Server_json = Json.dumps (server_info.data)#json.dumps to encode a Python object as a JSON string $ Print('Submit Asset Information:', Server_json)Panax Notoginseng #———————— 01CMDB to get the server basic information ———————— -
5 2. Modify the configuration file/etc/salt/minion6 master:10.211.55.4 # Master's address7 or8 Master:9 -10.211.55.4Ten -10.211.55.5 One random_master:true A
- Id:c2.salt.com # The unique ID that the client displays in Salt-master - 3. Start the Service salt-minion Start - """
-
-Slave 2. Authorization 1 """
2 salt-key-l # View authorized and unauthorized slave
3salt-key-a salve_id # Accept the salve
of the specified ID 4salt-key-r salve_id # denies the sal
; Create localhost completed ..."# shutdown MARIADB towait forSupervisormysqladmin-u root shutdownElseif[[-E ${data_dir}/mysql.sock]]; ThenRM-F ${data_dir}/Mysql.sockfimariadb_new=falseEcho "===> Using An existing volume of MariaDB"fi}run_mariaOkay, now start build imagesTake a look at the local base image:Docker imagesDocker build-t Python-mysql:mariadb-v1.After the build is complete, see imagesDocker imagesTo start the container:Docker run--name python-sql-d-P 3306:3306 python-mysql:mariadb-v
and maintenance, here is the next I am doing some data of the CMDB platform:CMDB data:Computer room, cabinet, cabinet power supply, cabinet location, machine room contract, contract expiry time, contact person in the computer room.Server, CPU, hard disk, whether virtualization, host, RAID type, memory.Asset ID, listed date, bottom shelf record, Server Agent, Agent contact, server to warranty date.IP address, MAC address, line of business, product lin
Operation and maintenance Automation route:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/AB/wKioL1Xrnz6Qp_akAAT8Y3slek0106.jpg "title=" 070731040196924.png "alt=" wkiol1xrnz6qp_akaat8y3slek0106.jpg "/> Today we're going to introduce the basics of operations automation, the CMDB systemThis article is from the "three-stream code farm forward Road" blog, please be sure to keep this source http://caseast.blog.51cto.com/1048719/1691742CMDB
ITSM Tool Planning and designHttp://blog.vsharing.com/xqscool/A946789.htmlCompared to the number of objects in the PPT tube (like training what is also in it), our demand is actually much smaller, but the problem is that the process is still unclear, the responsibility remains unclear.Due to the recent need to solve the related issues in the CMDB, so focus on the next PPT in the corresponding section, the other part of the study slowly.Look at this pp
Tags: error type ECB color CTO problem ADO SGI AnalysisOne day find the host list of the CMDB home page click Error 502Fault:Error troubleshooting steps:1. First check if there is a problem by manual command (there is a port number in the URL, here I manually start the CMDB service no problem)2. Open nginx error log deubg modeView logs (connection denied)
View Uwsgi logs (problems found)Problem found:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.