CN112764874A - CMDB configuration management system-based virtual machine server information acquisition method - Google Patents

CMDB configuration management system-based virtual machine server information acquisition method Download PDF

Info

Publication number
CN112764874A
CN112764874A CN202011587985.4A CN202011587985A CN112764874A CN 112764874 A CN112764874 A CN 112764874A CN 202011587985 A CN202011587985 A CN 202011587985A CN 112764874 A CN112764874 A CN 112764874A
Authority
CN
China
Prior art keywords
virtual machine
cmdb
server
information
management system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011587985.4A
Other languages
Chinese (zh)
Other versions
CN112764874B (en
Inventor
严峥涛
张宏豪
陈希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Data Center of China Life Insurance Co Ltd
Original Assignee
Shanghai Data Center of China Life Insurance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Data Center of China Life Insurance Co Ltd filed Critical Shanghai Data Center of China Life Insurance Co Ltd
Priority to CN202011587985.4A priority Critical patent/CN112764874B/en
Publication of CN112764874A publication Critical patent/CN112764874A/en
Application granted granted Critical
Publication of CN112764874B publication Critical patent/CN112764874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a CMDB configuration management system-based virtual machine server information acquisition method, which comprises the following steps: step 1: configuration information extracted from a database; step 2: judging whether the extracted configuration information is in a starting operation state or not and whether a server in the starting state exists in a server list or not; and step 3: temporarily storing the configuration item information meeting the conditions obtained after judgment into a background database of the CMDB; and 4, step 4: and completely supplementing the physical machine position and the cluster name of the virtual machine in a background database of the CMDB through id conversion, and updating the physical machine position and the cluster name into an example table of the CMDB operation system until the information acquisition of the virtual machine server is finished. Compared with the prior art, the method and the device have the advantages that the CMDB model can automatically acquire the required virtual machine configuration data, the labor cost is saved, the data acquisition efficiency can be effectively improved, and the like.

Description

CMDB configuration management system-based virtual machine server information acquisition method
Technical Field
The invention relates to the technical field of CMDB, in particular to a method for acquiring information of a virtual machine server based on a CMDB configuration management system.
Background
The CMDB (Configuration Management Database) is a data base of operation and maintenance of a cloud data center, focuses on managing and storing various Configuration information related to all cloud infrastructure, is closely connected with all processes such as service support, service delivery and the like, supports the operation of processes and various operation and maintenance Management platforms, is a structure for IT architecture, services and resources, and is an operation and maintenance Management tool for all processes, monitoring, automation and the like, and performs information conversion or operation on the basis of the IT architecture, the IT resources in a certain sense. Therefore, the cloud configuration management library is in a fundamental core position in the whole IT operation and maintenance environment.
In the whole CMDB operation process, data management is often a relatively difficult link, data of the CMDB is divided into two categories of automatic discovery data and manual entry data, the manual entry process usually needs management means to improve data quality, and the acquisition mode efficiency is relatively low. Therefore, in the whole basic data source obtaining process, the automatic discovery range is expanded as much as possible, and the cost of configuration management is reduced.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method for acquiring information of a virtual machine server based on a CMDB configuration management system, which can efficiently and automatically acquire the configuration information of the virtual machine server in a production environment, thereby reducing the cost of manually inputting the configuration information, improving the accuracy of the configuration information of the virtual machine server, and taking the configuration information as a core data source.
The purpose of the invention can be realized by the following technical scheme:
a CMDB configuration management system-based virtual machine server information acquisition method comprises the following steps:
step 1: configuration information extracted from a database;
step 2: judging whether the extracted configuration information is in a starting operation state or not and whether a server in the starting state exists in a server list or not;
and step 3: temporarily storing the configuration item information meeting the conditions obtained after judgment into a background database of the CMDB;
and 4, step 4: and completely supplementing the physical machine position and the cluster name of the virtual machine in a background database of the CMDB through id conversion, and updating the physical machine position and the cluster name into an example table of the CMDB operation system until the information acquisition of the virtual machine server is finished.
Further, the configuration information in step 1 is virtual machine information.
Further, the database in the step 1 is a database of a VMware vCenter Server.
Further, the step 2 of determining whether the extracted configuration information is in the power-on running state specifically includes:
if the virtual machine in the configuration information is judged to be in the running state, performing subsequent new adding operation;
if the power-off state is judged, the subsequent operation is not carried out.
Further, the step 2 of determining whether the server in the power-on state for the extracted configuration information already exists in the server list specifically includes:
if the ip address of the server in the configuration information already exists in the CMDB, updating the host name, the virtual cluster, the physical host and the operating system in the configuration information into the CMDB;
if the server information does not exist, the server information is added.
Further, the step 4 comprises the following sub-steps:
step 401: in a CMDB background database, a physical equipment table and a server list establish a mapping relation through a physical position;
step 402: the virtual cluster table and the server list establish a mapping relation through the cluster name;
step 403: and completely supplementing the physical machine position of the virtual machine and the cluster name of the virtual machine through id conversion, and updating the physical machine position and the cluster name of the virtual machine into a CMDB operation system instance table until the information acquisition of the virtual machine server is finished.
Further, the database of the VMware vCenter Server realizes data updating by executing ETL script regularly.
Further, the virtual machine information includes a virtual machine IP address, a virtual machine host name, a virtual machine operating system, a virtual machine CPU memory, a virtual machine network card number, a disk number, a virtual machine host address, and a virtual machine cluster name.
The invention also provides a terminal device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the virtual machine server information acquisition method based on the CMDB configuration management system when executing the computer program.
The invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the virtual machine server information acquisition method based on the CMDB configuration management system.
Compared with the prior art, the invention has the following advantages:
(1) according to the method for automatically acquiring the configuration information of the virtual machine server based on the CMDB model, the CMDB model can automatically acquire required data, the manual input cost is saved, and the data quality can be effectively improved.
(2) The method can enable the CMDB model to automatically acquire the required virtual machine configuration data, save labor cost and effectively improve data acquisition efficiency.
Drawings
Fig. 1 is a flowchart of a method for acquiring information of a virtual machine server based on a CMDB configuration management system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
As shown in fig. 1, the method for automatically acquiring a CMDB-based configuration management system according to the present invention acquires relevant variables from information in a virtual machine configuration information database according to a certain rule through an ETL tool, and automatically adds the configuration variables to a data model created by the CMDB, so that consistency between the configuration information of a configuration management database and a virtual server in a production environment can be maintained, and efficiency of configuration information management can be improved.
The technical scheme adopted by the invention for solving the technical problems is to provide a CMDB-based virtual machine information acquisition method, which comprises the following steps: s1: the following configuration information is extracted from the VMware vCenter Server's database: the method comprises the following steps of (1) obtaining a virtual machine IP address, a virtual machine host name, a virtual machine operating system, a virtual machine CPU memory, the number of virtual machine network cards, the number of disks, a virtual machine host address and a virtual machine cluster name; s2: judging whether the extracted configuration item information is in a starting-up running state or not, if so, performing subsequent new-adding operation, and if not, not performing subsequent operation; secondly, whether the server in the starting state exists in an existing server list or not is judged, if the IP address of the server exists in the CMDB, the information of the host name, the virtual cluster, the physical host, the operating system and the like is updated into the CMDB, and if the IP address of the server does not exist, the information of the server is added; s3: temporarily storing the configuration item information meeting the conditions into a CMDB background database; s4: in a CMDB background database, a physical device list and a server list establish a mapping relation through a physical position, a virtual cluster list and the server list establish a mapping relation through a cluster name, the physical machine position of a virtual machine and the cluster name of the virtual machine are external association tables, mapped id values are stored in the server list, the physical machine position of the virtual machine and the cluster name of the virtual machine are completely supplemented through id conversion, and the mapped id values are updated into a CMDB operating system example table.
Furthermore, when a virtual machine needs to be added or deleted in a production environment, dynamic management of virtual machine configuration information can be realized by extracting a configuration information table in a VMware vCenter database, data does not need to be rearranged and imported into a CMDB, data updating can be realized only by executing an ETL script regularly, the data management cost of a configuration management database is reduced, and the flexibility of configuration information management is improved.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A CMDB configuration management system-based virtual machine server information acquisition method is characterized by comprising the following steps:
step 1: configuration information extracted from a database;
step 2: judging whether the extracted configuration information is in a starting operation state or not and whether a server in the starting state exists in a server list or not;
and step 3: temporarily storing the configuration item information meeting the conditions obtained after judgment into a background database of the CMDB;
and 4, step 4: and completely supplementing the physical machine position and the cluster name of the virtual machine in a background database of the CMDB through id conversion, and updating the physical machine position and the cluster name into an example table of the CMDB operation system until the information acquisition of the virtual machine server is finished.
2. The CMDB configuration management system-based virtual machine server information collection method according to claim 1, wherein the configuration information in step 1 is virtual machine information.
3. The CMDB configuration management system-based virtual machine Server information collection method according to claim 1, wherein the database in step 1 is a database of a VMware vCenter Server.
4. The method for acquiring information of a virtual machine server based on a CMDB configuration management system as claimed in claim 1, wherein the step 2 of determining whether the extracted configuration information is in a boot operation state specifically includes:
if the virtual machine in the configuration information is judged to be in the running state, performing subsequent new adding operation;
if the power-off state is judged, the subsequent operation is not carried out.
5. The method for collecting information on a server of a virtual machine based on a CMDB configuration management system as claimed in claim 4, wherein the step 2 of determining whether the server in the boot state for the extracted configuration information already exists in the server list specifically includes:
if the ip address of the server in the configuration information already exists in the CMDB, updating the host name, the virtual cluster, the physical host and the operating system in the configuration information into the CMDB;
if the server information does not exist, the server information is added.
6. The CMDB configuration management system-based virtual machine server information collection method according to claim 1, wherein the step 4 comprises the following sub-steps:
step 401: in a CMDB background database, a physical equipment table and a server list establish a mapping relation through a physical position;
step 402: the virtual cluster table and the server list establish a mapping relation through the cluster name;
step 403: and completely supplementing the physical machine position of the virtual machine and the cluster name of the virtual machine through id conversion, and updating the physical machine position and the cluster name of the virtual machine into a CMDB operation system instance table until the information acquisition of the virtual machine server is finished.
7. The CMDB configuration management system-based virtual machine Server information collection method of claim 3, wherein the VMware vCenter Server database implements data update by executing ETL script regularly.
8. The CMDB configuration management system-based virtual machine server information collection method of claim 2, wherein the virtual machine information includes a virtual machine IP address, a virtual machine host name, a virtual machine operating system, a virtual machine CPU memory, a virtual machine network card number, a disk number, a virtual machine host address and a virtual machine cluster name.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the CMDB configuration management system-based virtual machine server information collection method according to any one of claims 1 to 8 when executing the computer program.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the CMDB configuration management system based virtual machine server information collection method according to any one of claims 1 to 8.
CN202011587985.4A 2020-12-28 2020-12-28 Virtual machine server information acquisition method based on CMDB configuration management system Active CN112764874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011587985.4A CN112764874B (en) 2020-12-28 2020-12-28 Virtual machine server information acquisition method based on CMDB configuration management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011587985.4A CN112764874B (en) 2020-12-28 2020-12-28 Virtual machine server information acquisition method based on CMDB configuration management system

Publications (2)

Publication Number Publication Date
CN112764874A true CN112764874A (en) 2021-05-07
CN112764874B CN112764874B (en) 2024-03-12

Family

ID=75696710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011587985.4A Active CN112764874B (en) 2020-12-28 2020-12-28 Virtual machine server information acquisition method based on CMDB configuration management system

Country Status (1)

Country Link
CN (1) CN112764874B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254516A (en) * 2021-05-17 2021-08-13 上海中通吉网络技术有限公司 Method for automatically inputting server information
CN113946592A (en) * 2021-12-21 2022-01-18 湖南天云软件技术有限公司 Configuration management database updating method, device, equipment, medium and program product
CN115277385A (en) * 2022-07-01 2022-11-01 浪潮云信息技术股份公司 CMDB automatic configuration method and system of distributed cloud

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761003A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 CMDB-based automatic registration asset system and implementation method thereof
CN106487591A (en) * 2016-10-20 2017-03-08 郑州云海信息技术有限公司 A kind of server automatic get-on carriage statistic device and its system
US20180146049A1 (en) * 2016-11-22 2018-05-24 International Business Machines Corporation Capturing configuration items from hybrid-cloud provisioning data
CN108205569A (en) * 2016-12-19 2018-06-26 中国移动通信集团山西有限公司 For updating the method and apparatus of configuration management database
CN108989385A (en) * 2018-06-05 2018-12-11 陈艳 A kind of implementation method based on Zabbix monitoring collection automatic synchronization CMDB

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761003A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 CMDB-based automatic registration asset system and implementation method thereof
CN106487591A (en) * 2016-10-20 2017-03-08 郑州云海信息技术有限公司 A kind of server automatic get-on carriage statistic device and its system
US20180146049A1 (en) * 2016-11-22 2018-05-24 International Business Machines Corporation Capturing configuration items from hybrid-cloud provisioning data
CN108205569A (en) * 2016-12-19 2018-06-26 中国移动通信集团山西有限公司 For updating the method and apparatus of configuration management database
CN108989385A (en) * 2018-06-05 2018-12-11 陈艳 A kind of implementation method based on Zabbix monitoring collection automatic synchronization CMDB

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ITIL先锋论坛: ""vSphere数据采集器"", Retrieved from the Internet <URL:https://www.itilxf.com/forum-181-1.html?mod=viewthread&tid=140675&extra=&ordertype=1> *
史莉雯, 杨洋, 高波等.: ""打造云数据中心运维管理的’核心系统’"", 《金融电子化》 *
王尧.: ""基于云的面向广发银行的虚拟化设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
连城;: ""浅析CMDB在云环境中软件系统的应用方式"", 《科学技术创新》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254516A (en) * 2021-05-17 2021-08-13 上海中通吉网络技术有限公司 Method for automatically inputting server information
CN113946592A (en) * 2021-12-21 2022-01-18 湖南天云软件技术有限公司 Configuration management database updating method, device, equipment, medium and program product
CN115277385A (en) * 2022-07-01 2022-11-01 浪潮云信息技术股份公司 CMDB automatic configuration method and system of distributed cloud

Also Published As

Publication number Publication date
CN112764874B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN112764874A (en) CMDB configuration management system-based virtual machine server information acquisition method
CN111339171B (en) Data query method, device and equipment
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN112328631A (en) Production fault analysis method and device, electronic equipment and storage medium
CN102752294A (en) Method and system for synchronizing data of multiple terminals on basis of equipment capacity
CN112328592A (en) Data storage method, electronic device and computer readable storage medium
CN112416957A (en) Data increment updating method and device based on data model layer and computer equipment
CN113064895B (en) Incremental updating method, device and system for map
JP2013025814A (en) Virtual machine management system and management method
CN102724301B (en) Cloud database system and method and equipment for reading and writing cloud data
CN112000850A (en) Method, device, system and equipment for data processing
CN111324310A (en) Data reading method and device and computer system
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN109800229B (en) Data access method and related equipment
US20130103724A1 (en) Network and method for managing models
CN111324374B (en) Application program registration method and device based on application performance management system
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer device
CN109902067B (en) File processing method and device, storage medium and computer equipment
CN113676353A (en) Control method and device for equipment, storage medium and electronic device
CN112286777A (en) PC equipment parameter data quality inspection method, system and server
CN109471869A (en) A kind of method and system that local data base upgrades automatically
CN114116544A (en) Method, device and equipment for acquiring slot information and storage medium
CN110597828A (en) Database changing method, device, equipment and storage medium
CN112131846B (en) Method and system for transmitting parameters based on mapping relation, electronic device and storage medium
CN102902825B (en) A kind of database optimizing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant