CMDB Management System for the National Day holiday (I), cmdb for the National Day holiday
Server
The views code is transferred to plugins/_ init __to create a plug-in management PluginManager class.
Disk information plug-in pluggable
Add, delete, and update operations
Verification:
Nic inform
This is a creation in
Article, where the information may have evolved or changed.
The CMDB publishing platform is a release management platform for Ezbuy, which includes the release of Go, Windows Serices Publishing, IIS Publishing, Memcache management, SVN management, asset information
=data[' host_name '] server.os_kernel=data[' Os_kernel ']server.cpu_model=data[' CPU '] server.cpu_count=data[' Cpu_count ']server.cpu_cores =data[' cpu_cores ']server.mem=data[' mem '] server.disk=data[' Disk ']NBsp;server.status=trueserver.max_open_files= Get_ulimit (SERVER.IN_IP) server.uptime=get_uptime (SERVER.IN_IP) server.save () #set_service_port (server) # set up service port information response.write (Json.dumps (U ' success ')) returnresponseThe service and port information on the 1
=data[' host_name '] server.os_kernel=data[' Os_kernel ']server.cpu_model=data[' CPU '] server.cpu_count=data[' Cpu_count ']server.cpu_cores =data[' cpu_cores ']server.mem=data[' mem '] server.disk=data[' Disk ']NBsp;server.status=trueserver.max_open_files= Get_ulimit (SERVER.IN_IP) server.uptime=get_uptime (SERVER.IN_IP) server.save () #set_service_port (server) # set up service port information response.write (Json.dumps (U ' success ')) returnresponseThe service and port information on the 1
Tags: Each device create slave use ASD. exe tab PARAMIKOperation and maintenance Automation projectReduce human intervention and reduce personnel costs-Asset Management-Operation ManagementCMDB-Operational Automation Fundamentals-Asset Management, automated collection, API interface, visual managementLoading system, Server environment, bitstream upload Code, real-time monitoring serverFirst, the method of c
and cloud platforms.4, stand-alone virtual machine host, divided into hypervisor. All VMS are partitioned into virtual machine. Create different business scenarios for different business platforms: Configure the virtual machine and physical machine resource pools used in different business scenarios:Data importIf you have a large number of machines or virtual machines that need to be added to Itop, you can use table import methods, such as bulk import of virtual machines: 1. Select a template
('http://www.cnblogs.com/wupeiqi/articles/6192986.html')>>> ret.text# renders the entire page, which is equivalent to a stringThe second way: with the implementation of SSH, with the central control machine to collect assets, the middle part is the central control machineMany operations tools are packaged in Python-based Paramiko modules, such as Fabric,ansible,saltstack, and the latest ansible is implemented in another wayThird Way: Rely on third-party tools Fabric,ansible,saltstackTake Saltst
'): # No processing when there's no error happend Data_set = {' asset_id ': self.asset_obj.id, ' Nam E ': Nic_item.get (' name '), ' SN ': nic_item.get (' sn '), ' macaddress ': NI C_item.get (' macaddress '), ' IPAddress ': Nic_item.get (' IPAddress '), ' B Onding ': nic_item.get (' bonding '), ' This network card is bound, is the client detection, my server side just detects this field ' ' Model ': nic_item.get (' Mo Del '), ' netmask ': Nic_item.get (' netmask '),} obj = Models. NIC (**data_
=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 the #用ssh连接远程主机时, the first connection will be prompted whether to continue the remote connection, choose Yes Ssh.set_missing_host_key_policy (Paramiko. Autoaddpolicy ()) #3. Get the private key Pri
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 salve
of the specified ID5salt-key-d salve_id #
Salve6"" "
7
8 Master with the specified ID
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
650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/89/DB/wKioL1ggE2ny9XGUAADzBOnP6ko566.jpg "style=" height : auto;vertical-align:middle;border:0px; "title=" 0.jpg "alt=" Wkiol1gge2ny9xguaadzbonp6ko566.jpg "/>As the core of IT management, CMDB has gradually become a hotspot in the implementation of system management projects. In many cases, the deep appli
CMDB What is it? While operations and prosperity are flourishing, fragmentation issues arise, and everyone wants to integrate the operations platform, but it often backfired.A CMDB is like the core of a person's brain, a library of information that stores information that coordinates the body's complete variety of complex movements.in my Heart CMDB. Fragmentation
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.