CN112764874B - Virtual machine server information acquisition method based on CMDB configuration management system - Google Patents

Virtual machine server information acquisition method based on CMDB configuration management system Download PDF

Info

Publication number
CN112764874B
CN112764874B CN202011587985.4A CN202011587985A CN112764874B CN 112764874 B CN112764874 B CN 112764874B CN 202011587985 A CN202011587985 A CN 202011587985A CN 112764874 B CN112764874 B CN 112764874B
Authority
CN
China
Prior art keywords
virtual machine
server
cmdb
information
configuration
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.)
Active
Application number
CN202011587985.4A
Other languages
Chinese (zh)
Other versions
CN112764874A (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

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 virtual machine server information acquisition method based on a CMDB configuration management system, which comprises the following steps: step 1: configuration information extracted from the database; step 2: judging whether the configuration information is in a starting-up running state or not and whether a server in the starting-up state exists in a server list or not according to the extracted configuration information; step 3: temporarily storing the configuration item information meeting the conditions obtained after judgment into a background database of the CMDB; step 4: and supplementing the physical machine position and cluster name of the virtual machine to be completely in a background database of the CMDB through id conversion, and updating the physical machine position and cluster name into a CMDB operating system instance table until the information acquisition of the virtual machine server is completed. Compared with the prior art, the method has the advantages that the CMDB model can automatically acquire the required virtual machine configuration data, the labor cost is saved, the data acquisition efficiency is effectively improved, and the like.

Description

Virtual machine server information acquisition method based on CMDB configuration management system
Technical Field
The invention relates to the technical field of CMDB, in particular to a virtual machine server information acquisition method based on a CMDB configuration management system.
Background
The CMDB (Configuration Management Database configuration management database) is a data base of operation and maintenance of the cloud data center, focuses on managing and storing various configuration information related to all cloud infrastructures, is closely connected with all flows of service support, service delivery and the like, supports the operation of the flows and various operation and maintenance management platforms, and the cloud configuration management database is a structure of an IT architecture, a service and a resource, and is an operation and maintenance management tool of all flows, monitoring, automation and the like, which is based on the IT service, the architecture and the resource in a certain sense. Thus, the cloud configuration management library is at the fundamental core position in the whole IT operation and maintenance environment.
In the whole CMDB operation process, data management is often a difficult link, the data of the CMDB is divided into two major types, namely automatic discovery data and manual input data, and the manual input flow generally needs a management means to improve the data quality and has lower acquisition mode efficiency. Therefore, in the whole process of acquiring the basic data source, 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 provide a virtual machine server information acquisition method based on a CMDB configuration management system, which can efficiently and automatically acquire virtual server configuration information in a production environment, thereby reducing the cost of manually inputting the configuration information, improving the accuracy of the virtual machine server configuration information and taking the virtual machine server configuration information as a core data source.
The aim of the invention can be achieved by the following technical scheme:
a virtual machine server information acquisition method based on a CMDB configuration management system comprises the following steps:
step 1: configuration information extracted from the database;
step 2: judging whether the configuration information is in a starting-up running state or not and whether a server in the starting-up state exists in a server list or not according to the extracted configuration information;
step 3: temporarily storing the configuration item information meeting the conditions obtained after judgment into a background database of the CMDB;
step 4: and supplementing the physical machine position and cluster name of the virtual machine to be completely in a background database of the CMDB through id conversion, and updating the physical machine position and cluster name into a CMDB operating system instance table until the information acquisition of the virtual machine server is completed.
Further, the configuration information in the step 1 is virtual machine information.
Further, the database in the step 1 is a VMware vCenter Server database.
Further, the judging process of whether the configuration information is in the power-on running state in the step 2 specifically includes:
if the virtual machine in the configuration information is judged to be in an operating state, performing subsequent new adding operation;
if the power-off state is judged, the follow-up operation is not carried out.
Further, the judging process of whether the server in the power-on state for the extracted configuration information in the step 2 exists in the server list specifically includes:
if the server ip address in the configuration information exists in the CMDB, updating the information of the host name, the virtual cluster where the host name is located, the physical host and the operating system in the configuration information into the CMDB;
if the server information is judged to be not present, the server information is newly added.
Further, the step 4 includes the following sub-steps:
step 401: in a CMDB background database, a mapping relation is established between a physical equipment list and a server list through physical positions;
step 402: the virtual cluster table and the server list establish a mapping relation through cluster names;
step 403: and supplementing the physical machine position of the virtual machine and the cluster name of the virtual machine to be complete through id conversion, and updating the physical machine position and the cluster name of the virtual machine to the CMDB operating system instance table until the information acquisition of the virtual machine server is completed.
Further, the database of VMware vCenter Server realizes data update by adopting a mode of executing ETL scripts at regular time.
Further, the virtual machine information includes virtual machine IP addresses, virtual machine host names, virtual machine operating systems, virtual machine CPU memory, virtual machine network card numbers, disk numbers, virtual machine host addresses, and virtual machine cluster names.
The invention also provides a terminal device, which comprises a memory, a processor and a computer program stored in the memory and capable of running 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 storing a computer program which when executed by a processor implements the steps of the virtual machine server information collection method based on the CMDB configuration management system.
Compared with the prior art, the invention has the following advantages:
(1) The method for automatically acquiring the configuration information of the virtual machine server based on the CMDB model can enable the CMDB model to automatically acquire the required data, saves the manual import input cost and can effectively improve the data quality.
(2) The method can enable the CMDB model to automatically acquire the required virtual machine configuration data, saves labor cost and can effectively improve data acquisition efficiency.
Drawings
FIG. 1 is a flow chart of a virtual machine server information collection method based on a CMDB configuration management system of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
As shown in FIG. 1, the automatic collection method based on the CMDB configuration management system provided by the invention is that the information in the virtual machine configuration information database is obtained according to a certain rule through the ETL tool, and the configuration variable is automatically added into a data model created by the CMDB, so that the consistency of the configuration information of the configuration management database and the configuration information of the virtual server in the production environment can be maintained, the efficiency of the configuration information management is improved, and compared with the operation of manually inputting the information of the added server, the method and the process provided by the invention can avoid the configuration dyssynchrony between the virtual machine server and the configuration management database.
The technical scheme adopted by the invention for solving the technical problems is to provide a method for acquiring information based on a CMDB virtual machine, which comprises the following steps: s1: the following configuration information is extracted from the database of VMware vCenter Server: virtual machine IP address, virtual machine host name, virtual machine operating system, virtual machine CPU memory, virtual machine network card number, disk number, virtual machine host address, virtual machine cluster name; s2: judging whether the extracted configuration item information is in a first starting operation state or not, if so, performing subsequent new addition operation, and if not, not performing subsequent operation; secondly, if the server in the starting state exists in the existing server list, if the server IP address exists in the CMDB, updating information such as a host name, a virtual cluster where the server IP address exists, a physical host, an operating system and the like into the CMDB, and if the server IP address does not exist, newly adding the server information; s3: temporarily storing configuration item information meeting the conditions into a CMDB background database; s4: in the CMDB background database, a mapping relation is established between a physical device table and a server list through physical positions, a mapping relation is established between a virtual cluster table and the server list through cluster names, and because the physical machine position of the 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 supplemented completely through id conversion and updated into the CMDB operating system instance table.
Further, when the production environment needs to add or delete the virtual machine, dynamic management of the configuration information of the virtual machine can be realized by extracting the configuration information table in the VMware vCenter database, the data can be updated only by executing the ETL script regularly without rearranging the data to be imported into the CMDB, the data management cost of the configuration management database is reduced, and the flexibility of configuration information management is improved.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (7)

1. The virtual machine server information acquisition method based on the CMDB configuration management system is characterized by comprising the following steps:
step 1: extracting configuration information from a virtual machine configuration information database;
step 2: judging whether the configuration information is in a starting-up running state or not and whether a server in the starting-up state exists in a server list or not according to the extracted configuration information, wherein the server list is positioned in a CMDB background database;
step 3: temporarily storing the configuration item information meeting the conditions obtained after judgment into a background database of the CMDB;
step 4: supplementing the physical machine position and cluster name of the virtual machine to be completely in a background database of the CMDB through id conversion, updating the physical machine position and cluster name into a CMDB operation system instance table, and until the information acquisition of the virtual machine server is completed, wherein the step 4 comprises the following sub-steps:
step 401: in a CMDB background database, a mapping relation is established between a physical equipment list and a server list through physical positions;
step 402: the virtual cluster table and the server list establish a mapping relation through cluster names;
step 403: supplementing the physical machine position of the virtual machine and the cluster name of the virtual machine to be complete through id conversion, updating the physical machine position and the cluster name of the virtual machine to a CMDB (code management database) operating system instance table until the information of the virtual machine server is acquired,
the judging process of whether the power-on running state is the power-on running state specifically comprises the following steps:
if the virtual machine in the configuration information is judged to be in an operating state, judging whether a server in a starting state exists in a server list or not;
if the power-off state is judged, the subsequent operation is not performed,
the judging process for judging whether the server in the starting state aiming at the extracted configuration information exists in the server list specifically comprises the following steps:
if the server ip address in the configuration information exists in the CMDB, updating the information of the host name, the virtual cluster where the host name is located, the physical host and the operating system in the configuration information into the CMDB;
if the server information is judged to be not present, the server information is newly added into the CMDB operating system instance table,
the configuration information comprises virtual machine IP addresses, virtual machine host names, virtual machine operating systems, virtual machine CPU memories, virtual machine network card numbers, disk numbers, virtual machine host addresses and virtual machine cluster names.
2. The method for collecting information of a virtual machine server based on a CMDB configuration management system according to claim 1, wherein the configuration information in step 1 is virtual machine information.
3. The method for collecting information of a virtual machine server based on a CMDB configuration management system according to claim 1, wherein the database in the step 1 is a database of VMware vCenter Server.
4. A CMDB configuration management system based virtual machine server information collection method as defined in claim 3, wherein the database of VMware vCenter Server implements data update by executing ETL script at regular time.
5. The method for collecting virtual machine server information based on the CMDB configuration management system according to claim 2, wherein the virtual machine information includes virtual machine IP address, virtual machine host name, virtual machine operating system, virtual machine CPU memory, virtual machine network card number, disk number, virtual machine host address, and virtual machine cluster name.
6. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the CMDB configuration management system based virtual machine server information collection method of any of claims 1 to 5.
7. 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 of any one of claims 1 to 5.
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 CN112764874A (en) 2021-05-07
CN112764874B true 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)

Families Citing this family (2)

* 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
CN113946592B (en) * 2021-12-21 2022-03-22 湖南天云软件技术有限公司 Configuration management database updating method, device, equipment, medium and program product

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10257289B2 (en) * 2016-11-22 2019-04-09 International Business Machines Corporation Capturing configuration items from hybrid-cloud provisioning data

Patent Citations (4)

* 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
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 (3)

* Cited by examiner, † Cited by third party
Title
"基于云的面向广发银行的虚拟化设计与实现";王尧.;《中国优秀硕士学位论文全文数据库 信息科技辑》;全文 *
史莉雯,杨洋,高波等.."打造云数据中心运维管理的’核心系统’".《金融电子化》.2018,全文. *
连城 ; ."浅析CMDB在云环境中软件系统的应用方式".《科学技术创新》.2018,全文. *

Also Published As

Publication number Publication date
CN112764874A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
CN112764874B (en) Virtual machine server information acquisition method based on CMDB configuration management system
CN111737227B (en) Data modification method and system
JP5518950B2 (en) Virtual machine management system and management method
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN113535262B (en) Proxy node start control method, device, equipment and storage medium
CN115292307A (en) Data synchronization system, method and corresponding computer equipment and storage medium
CN104410511A (en) Server management method and system
CN113992739B (en) Local area network OTA firmware upgrading device, method and system
CN109582680B (en) Business processing method based on new product development, electronic device and readable storage medium
CN109947451B (en) Cluster application file updating method, system, medium and equipment
CN109902067B (en) File processing method and device, storage medium and computer equipment
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer device
CN108763498B (en) User identity identification method and device, electronic equipment and readable storage medium
CN108206933B (en) Video data acquisition method and device based on video cloud storage system
CN111324310A (en) Data reading method and device and computer system
CN111538651A (en) Interface testing method, device, server and storage medium
CN109471869A (en) A kind of method and system that local data base upgrades automatically
CN102902825B (en) A kind of database optimizing method and device
CN111124923B (en) Running state query method and device, server equipment and storage medium
CN112600918B (en) Industrial control edge big data efficient processing method and system based on BS architecture
CN112131846B (en) Method and system for transmitting parameters based on mapping relation, electronic device and storage medium
CN107256163B (en) Method and device for realizing node management
CN110389868B (en) Method and system for optimizing complete machine diagnosis process of server manufacturing factory

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