CMDB Management Method and Device

By connecting CMDB to the process platform, obtaining equipment information and cabinet information, updating attributes and determining deployment plans, the problem that traditional CMDB systems cannot achieve closed-loop management is solved, and the complete process management and data accuracy of power-up and down operations are achieved.

CN115237432BActive Publication Date: 2025-07-25CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210723689.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2025-07-25
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

Traditional CMDB systems are difficult to implement closed-loop management, especially in the process of loading and removing the shelves and powering down, the relationship between configuration items and physical equipment cannot be quickly established, resulting in inaccurate data.

Method used

By connecting CMDB to the process platform, obtaining device information and cabinet information, updating CMDB attributes, and determining the deployment plan of the physical machine based on these attributes, the connection between the physical machine and the equipment is realized, and the closed-loop management of power-on and power-off operations is supported.

Benefits of technology

It realizes closed-loop management of CMDB, ensures data accuracy and consistency, and supports complete process management of power-up and down operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237432B_ABST
    Figure CN115237432B_ABST
Patent Text Reader

Abstract

The present invention provides a CMDB management method and device. The method includes: when the intelligent computer room performs the operation of racking and powering on, connecting the CMDB to the process platform, and obtaining the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform; based on the device information and the cabinet information, updating the CMDB attributes related to the operation of racking and powering on; based on the CMDB attributes, determining the deployment plan of the physical machines in the CMDB when the operation of unracking and powering off is performed; determining each device corresponding to the deployment plan, and associating the physical machines with each device; when the operation of unracking and powering off needs to be performed, based on the association relationship between the physical machines and each of the devices, flowing to the intelligent computer room, performing the operation of unracking and powering off through the intelligent computer room, and clearing the CMDB attributes. By applying the method provided by the present invention, the CMDB can be connected to the process platform to realize the closed-loop management of the CMDB.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and particularly to a CMDB management method and device. Background Art

[0002] CMDB (Configuration Management Database) is a logical database that contains information about the entire life cycle of configuration items and the relationships between configuration items (including physical relationships, real-time communication relationships, non-real-time communication relationships, and dependency relationships).

[0003] Traditional CMDBs only provide single-point configuration item attribute storage and query services, and store relevant attribute data through manual or automatic collection methods, without realizing the closed-loop management of CMDB. To achieve closed-loop management, it is first necessary to make CMDB associated with processes, so that when racking and powering on, corresponding data can be obtained from CMDB and its data can be updated. To implement operations such as racking off or powering off for returning to the warehouse, it is necessary to establish the relationship between configuration items such as applications or platforms and physical devices. The existing technology is to introduce a graph database to establish configuration item relationships. Such architectural transformation takes a long time and it is difficult to quickly complete the closed-loop management of CMDB to make CMDB data more accurate. Summary of the Invention

[0004] In view of this, the present invention provides a CMDB management method. Through this method, CMDB can be connected to a process platform to achieve the closed-loop management of CMDB.

[0005] The present invention also provides a CMDB management device to ensure the implementation and application of the above method in practice.

[0006] A CMDB management method includes:

[0007] When the intelligent computer room performs racking and powering on operations, connect CMDB to the process platform, and obtain the device information of CMDB and the cabinet information of the intelligent computer room through the process platform;

[0008] Based on the device information and the cabinet information, call a preset CMDB interface to update the CMDB attributes of CMDB;

[0009] Based on the CMDB attributes, determine the deployment plan of the physical machines in CMDB when performing racking off and powering off operations. The deployment plan is a first deployment plan or a second deployment plan. The first deployment plan is to directly deploy applications by installing an operating system on the physical machine, and the second deployment plan is to pool the resources of the physical machine;

[0010] Determine the devices corresponding to the deployment plan, and associate the physical machines with each of the devices;

[0011] When it is necessary to perform the operation of removing the device from the rack and powering it off, based on the association relationship between the physical machine and each of the devices, it is transferred to the intelligent computer room, and the operation of removing the device from the rack and powering it off is performed through the intelligent computer room, and the CMDB attributes are cleared.

[0012] In the above method, optionally, the updating the CMDB attributes of the CMDB by calling a preset CMDB interface based on the device information and the cabinet information includes:

[0013] Obtain the cabinet number included in the cabinet information, and determine the target cabinet corresponding to the cabinet number;

[0014] Allocate the CMDB to the target cabinet, and set the U-bit information of the CMDB in the target cabinet;

[0015] Enable a preset agile delivery system to supply resources to the CMDB through the CMDB interface based on the U-bit information and the device information, so that the CMDB updates the CMDB attributes.

[0016] In the above method, optionally, determining the deployment plan of the physical machines in the CMDB when performing the operation of removing the device from the rack and powering it off includes:

[0017] Obtain the attribute data of the CMDB attributes;

[0018] Generate a first interface request corresponding to the first deployment plan and a second interface request corresponding to the second deployment plan based on the attribute data;

[0019] Send the first interface request and the second interface request to the CMDB interface;

[0020] When the CMDB interface responds to the first interface request, determine that the deployment plan of the physical machines in the CMDB when performing the operation of removing the device from the rack and powering it off is the first deployment plan;

[0021] Or,

[0022] When the CMDB interface responds to the second interface request, determine that the deployment plan of the physical machines in the CMDB when performing the operation of removing the device from the rack and powering it off is the second deployment plan.

[0023] In the above method, optionally, determining each device corresponding to the deployment plan and associating the physical machine with each of the devices includes:

[0024] When the deployment plan is the first deployment plan, determine that the devices corresponding to the deployment plan are respectively a physical subsystem, a deployment unit, and an operating system;

[0025] Obtain the first device information corresponding to the physical subsystem, deployment unit, operating system, and physical machine;

[0026] Based on the first device information, establish the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine respectively;

[0027] Based on the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine, establish the association relationship between the physical subsystem and the physical machine.

[0028] For the above method, optionally, the determining the devices corresponding to the deployment plan and associating the physical machine with each of the devices includes:

[0029] When the deployment plan is the second deployment plan, determine that the devices corresponding to the deployment plan are a resource pool, a cloud deployment unit, and a resource pool cluster respectively;

[0030] Obtain the second device information corresponding to the resource pool, cloud deployment unit, resource pool cluster, and physical machine;

[0031] Based on the second device information, establish the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine respectively;

[0032] Based on the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine, establish the association relationship between the resource pool and the physical machine.

[0033] A CMDB management device includes:

[0034] A racking and power-on unit, configured to connect the CMDB to a process platform when the intelligent computer room performs a racking and power-on operation, and obtain the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform;

[0035] An updating unit, configured to call a preset CMDB interface to update the CMDB attributes of the CMDB based on the device information and the cabinet information;

[0036] A determination unit, configured to determine a deployment plan of a physical machine in the CMDB when performing a decommissioning and power-off operation based on the CMDB attributes. The deployment plan is the first deployment plan or the second deployment plan. The first deployment plan is to directly deploy an application by installing an operating system on the physical machine, and the second deployment plan is to pool the resources of the physical machine into a resource pool;

[0037] An association unit, configured to determine each device corresponding to the deployment plan, and associate the physical machine with each device;

[0038] A decommissioning and power-off unit, configured to, when a decommissioning and power-off operation needs to be performed, transfer to the intelligent computer room based on the association relationship between the physical machine and each device, perform the decommissioning and power-off operation through the intelligent computer room, and clear the CMDB attributes.

[0039] For the above device, optionally, the update unit includes:

[0040] A first acquisition subunit, configured to acquire the cabinet number included in the cabinet information, and determine the target cabinet corresponding to the cabinet number;

[0041] A setting subunit, configured to allocate the CMDB to the target cabinet, and set the U-position information of the CMDB in the target cabinet;

[0042] An update subunit, configured to enable a preset agile delivery system to supply resources to the CMDB through the CMDB interface based on the U-position information and the device information, so that the CMDB updates the CMDB attributes.

[0043] For the above device, optionally, the determination unit includes:

[0044] A second acquisition subunit, configured to acquire the attribute data of the CMDB attributes;

[0045] A generation subunit, configured to generate a first interface request corresponding to the first deployment plan and a second interface request corresponding to the second deployment plan based on the attribute data;

[0046] A sending subunit, configured to send the first interface request and the second interface request to the CMDB interface;

[0047] A first determination subunit, configured to determine that the deployment plan of the physical machine in the CMDB when performing a decommissioning and power-off operation is the first deployment plan when the CMDB interface responds to the first interface request;

[0048] Or,

[0049] When the CMDB interface responds to the second interface request, it is determined that the deployment plan of the physical machine in the CMDB during the execution of the off-shelf and power-off operation is the second deployment plan.

[0050] For the above device, optionally, the association unit includes:

[0051] The second determination subunit is configured to, when the deployment plan is the first deployment plan, determine that the respective devices corresponding to the deployment plan are a physical subsystem, a deployment unit, and an operating system;

[0052] The third acquisition subunit is configured to acquire first device information corresponding to the physical subsystem, the deployment unit, the operating system, and the physical machine;

[0053] The first association subunit is configured to, based on the first device information, respectively establish an association relationship between the physical subsystem and the deployment unit, an association relationship between the deployment unit and the operating system, and an association relationship between the operating system and the physical machine;

[0054] The second association subunit is configured to, based on the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine, establish an association relationship between the physical subsystem and the physical machine.

[0055] For the above device, optionally, the association unit includes:

[0056] The third determination subunit is configured to, when the deployment plan is the second deployment plan, determine that the respective devices corresponding to the deployment plan are a resource pool, a cloud deployment unit, and a resource pool cluster;

[0057] The fourth acquisition subunit is configured to acquire second device information corresponding to the resource pool, the cloud deployment unit, the resource pool cluster, and the physical machine;

[0058] The third association subunit is configured to, based on the second device information, respectively establish an association relationship between the resource pool and the cloud deployment unit, an association relationship between the cloud deployment unit and the resource pool cluster, and an association relationship between the resource pool cluster and the physical machine;

[0059] The fourth association subunit is configured to, based on the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine, establish an association relationship between the resource pool and the physical machine.

[0060] A storage medium, the storage medium includes stored instructions, wherein when the instructions are running, the device where the storage medium is located is controlled to execute the above CMDB management method.

[0061] An electronic device, including a memory, and one or more instructions, wherein one or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the above CMDB management method.

[0062] Compared with the prior art, the present invention has the following advantages:

[0063] The present invention provides a CMDB management method, including: when the intelligent computer room performs the operation of racking and powering on, connecting the CMDB to the process platform, obtaining the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform, and calling a preset CMDB interface to update the CMDB attributes related to the operation of racking and powering on; based on the CMDB attributes, determining the deployment plan of the physical machines in the CMDB when performing the operation of unracking and powering off, the deployment plan being the first deployment plan or the second deployment plan, the first deployment plan being to directly deploy applications after installing an operating system on the physical machines, and the second deployment plan being to pool the resources of the physical machines; determining the respective devices corresponding to the deployment plan, and associating the physical machines with the respective devices; when it is necessary to perform the operation of unracking and powering off, based on the association relationship between the physical machines and the respective devices, flowing to the intelligent computer room, performing the operation of unracking and powering off through the intelligent computer room, and clearing the CMDB attributes. By applying the method provided by the present invention, the CMDB can be connected to the process platform to realize the closed-loop management of the CMDB. Description of the Drawings

[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0065] Figure 1 It is a method flow chart of a CMDB management method provided by an embodiment of the present invention;

[0066] Figure 2 It is another method flow chart of a CMDB management method provided by an embodiment of the present invention;

[0067] Figure 3 It is yet another method flow chart of a CMDB management method provided by an embodiment of the present invention;

[0068] Figure 4 The device structure diagram of a CMDB management device provided by an embodiment of the present invention;

[0069] Figure 5 The schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0070] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0071] In this application, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. The terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0072] The present invention can be used in many general or special computing device environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, and so on.

[0073] An embodiment of the present invention provides a CMDB management method. This method can be applied to a variety of system platforms, and its execution subject can be a computer terminal or the processor of various mobile devices. The method flow chart of the method is as Figure 1 shown, and specifically includes:

[0074] S101: When the intelligent computer room performs the operation of racking and powering on, connect the CMDB access process platform, and obtain the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform.

[0075] In the present invention, the intelligent computer room is a system for implementing racking, powering on, and returning to the warehouse in series with the process platform. When the intelligent computer room performs the racking and powering-on operation, it connects the CMDB to the process platform, thereby initially obtaining device information when executing relevant processes. The device information includes information such as the physical state of the device, device location, physical subsystem, deployment unit, and resource pool. The cabinet information includes information such as the device location of each device in the cabinet. Before the racking and powering-on operation in the intelligent computer room, the CMDB already has the ability to query and update data.

[0076] Among them, the process platform queries the device information and cabinet information of the CMDB by calling the CMDB interface.

[0077] S102: Based on the device information and the cabinet information, call a preset CMDB interface to update the CMDB attributes of the CMDB.

[0078] It should be noted that the CMDB attributes include the host name and IP, etc.

[0079] Specifically, the process of calling a preset CMDB interface to update the CMDB attributes of the CMDB based on the device information and the cabinet information includes:

[0080] Obtain the cabinet number included in the cabinet information and determine the target cabinet corresponding to the cabinet number;

[0081] Allocate the CMDB to the target cabinet and set the U-bit information of the CMDB in the target cabinet;

[0082] Enable a preset agile delivery system to perform resource supply for the CMDB through the CMDB interface based on the U-bit information and the device information, so that the CMDB updates the CMDB attributes.

[0083] In the present invention, the agile delivery system will perform resource supply for the racked and powered-on devices. The agile delivery system determines the CMDB interface of the CMDB according to the U-bit information and the device information, and performs resource supply from this interface. At this time, the device has the attributes of the application or platform.

[0084] S103: Based on the CMDB attributes, determine the deployment plan of the physical machines in the CMDB when performing the unracking and powering-off operation.

[0085] Among them, the deployment plan is the first deployment plan or the second deployment plan. The first deployment plan is to directly deploy the application by installing the operating system on the physical machine, and the second deployment plan is to pool the resources of the physical machine.

[0086] It should be noted that directly deploying applications after installing the operating system on a physical machine means directly associating the physical machine to be retired through the physical subsystem; pooling the resources of the physical machine means directly associating the physical machine to be retired through the resource pool.

[0087] S104: Determine each device corresponding to the deployment plan, and associate the physical machine with each device.

[0088] Among them, each device corresponding to the first deployment plan is respectively a physical subsystem, a deployment unit, and a deployment instance. Among them, the deployment instance can be the operating system. Each device corresponding to the second deployment plan is respectively a resource pool, a cloud deployment unit, and a resource pool cluster.

[0089] S105: When it is necessary to perform the operation of taking off the shelf and powering off, based on the association relationship between the physical machine and each device, transfer to the intelligent computer room, perform the operation of taking off the shelf and powering off through the intelligent computer room, and clear the CMDB attributes.

[0090] It should be noted that the physical machine has been associated with each device and has been connected to the process platform. Therefore, when taking off the shelf and powering off (i.e., retiring), the process platform can still obtain and update data from the CMDB, thereby realizing closed-loop management. After finishing the operation of taking off the shelf and powering off, the original CMDB attributes can be cleared, and the CMDB attributes can be reconfigured for the device when it is powered on and put on the shelf next time.

[0091] In the method provided by the embodiment of the present invention, when powering on and putting on the shelf, the CMDB is connected to the process platform, so as to obtain the device information therein and the cabinet information of the intelligent computer room. The CMDB interface is called through the obtained information to update the CMDB attributes of the CMDB. According to the CMDB deployment, determine the deployment plan corresponding to the physical machine in the CMDB, and associate it with the corresponding devices according to the deployment plan. Transfer to the intelligent computer room according to the association relationship between the physical machine and each device, and clear the CMDB attributes after performing the operation of taking off the shelf and powering off through the intelligent computer room.

[0092] By applying the method provided by the embodiment of the present invention, the CMDB can be connected to the process platform. In addition to participating in other processes, the CMDB can also participate in the process of powering on and putting on the shelf and taking off the shelf and powering off, realizing the closed-loop management of the CMDB.

[0093] In the method provided by the embodiment of the present invention, determining the deployment plan of the physical machine in the CMDB when performing the operation of taking off the shelf and powering off based on the CMDB attributes includes:

[0094] Obtain the attribute data of the CMDB attributes;

[0095] Generate a first interface request corresponding to the first deployment plan and a second interface request corresponding to the second deployment plan based on the attribute data;

[0096] Send the first interface request and the second interface request to the CMDB interface;

[0097] When the CMDB interface responds to the first interface request, determine that the deployment plan of the physical machine in the CMDB during the operation of taking off the shelf and powering off is the first deployment plan;

[0098] Or,

[0099] When the CMDB interface responds to the second interface request, determine that the deployment plan of the physical machine in the CMDB during the operation of taking off the shelf and powering off is the second deployment plan.

[0100] It should be noted that different deployment plans are determined according to the responses of different CMDB interfaces. Among them, the interface parameters for sending the first interface request to the CMDB interface are shown in Table 1:

[0101] Table 1

[0102]

[0103]

[0104] The return parameters returned by the CMDB interface after responding to the first interface request are shown in Table 2:

[0105] Table 2

[0106] Parameter Type Description totalRecords integer Total number of query records dataList array Element type: object List of resource objects

[0107] It should also be noted that the difference between the interface parameters in the second interface request and the interface parameters in the first interface request is that the fixed value of the parameter "srcClzCode" in the interface parameters of the second interface request is "ComputerPool". The return parameters returned by the CMDB interface in response to the second interface request are the same as those of the first interface request.

[0108] Based on the method provided in the above embodiments, there are specifically the following two deployment plans for the physical machines in the CMDB:

[0109] On the one hand, when receiving the response of the CMDB interface to the first interface request, execute the process as Figure 2 shown, which may specifically include:

[0110] S201: When the deployment plan is the first deployment plan, determine that the respective devices corresponding to the deployment plan are the physical subsystem, the deployment unit, and the operating system.

[0111] S202: Obtain the first device information corresponding to the physical subsystem, the deployment unit, the operating system, and the physical machine.

[0112] Among them, the first device information includes physical subsystems, deployment units, operating systems, and physical machine system numbers, IDs, serial numbers, etc.

[0113] S203: Based on the first device information, establish the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine respectively.

[0114] It should be noted that the physical subsystem and the deployment unit have the same attribute of physical subsystem number, the deployment unit and the operating system have the same attribute of deployment unit ID, and the operating system and the physical machine have the same attributes of serial number and host name. According to the information such as numbers, IDs, serial numbers, and host names of the same attributes, each device is associated according to the same attributes.

[0115] S204: Based on the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine, establish the association relationship between the physical subsystem and the physical machine.

[0116] It should be noted that after the physical subsystem, deployment unit, operating system, and physical machine are associated in sequence, the physical subsystem and the physical machine are associated.

[0117] In the present invention, when establishing a relationship, corresponding attribute data needs to be obtained from the relationship. The relationship from the physical subsystem to the physical machine needs to include information such as physical subsystem name, deployment unit name, host name, physical machine location, management IP, etc.; for information such as physical subsystem number, deployment unit ID serial number, and host name, users can only fill in part of the information on the process platform. The process platform calls the CMDB interface to determine all corresponding devices. After determining the devices, the process can flow to the intelligent computer room for the return operation. After the return in the intelligent computer room, the relevant positions and status information of the corresponding devices are directly updated, such as clearing the cabinet code and installation U position, setting the physical status bit to inventory, etc., to achieve full-process management of CMDB.

[0118] On the other hand, when the CMDB interface responds to the second interface request, execute the process as Figure 3 shown, which may specifically include:

[0119] S301: When the deployment plan is the second deployment plan, determine that the devices included in the deployment plan are respectively a resource pool, a cloud deployment unit, and a resource pool cluster.

[0120] S302: Obtain the second device information corresponding to the resource pool, cloud deployment unit, resource pool cluster, and physical machine.

[0121] S303: Based on the second device information, establish the association relationships between the resource pool and the cloud deployment unit, between the cloud deployment unit and the resource pool cluster, and between the resource pool cluster and the physical machine respectively.

[0122] It should be noted that the resource pool and the cloud deployment unit have the same attribute resource pool ID, the cloud deployment unit and the resource pool cluster have the same attribute cloud deployment unit ID, and the resource pool cluster and the physical machine have the same attribute cluster ID. Each device is associated according to the same ID.

[0123] S304: Based on the association relationships between the resource pool and the cloud deployment unit, between the cloud deployment unit and the resource pool cluster, and between the resource pool cluster and the physical machine, establish the association relationship between the resource pool and the physical machine.

[0124] It should be noted that after the resource pool, the cloud deployment unit, the resource pool cluster, and the physical machine are associated in sequence, then the resource pool and the physical machine are associated.

[0125] Similar to the above S204, for the information such as the resource pool ID, the unit ID, and the cluster ID, the user can fill in only part of the information on the process platform. The process platform calls the CMDB interface to determine all corresponding devices. After the user determines the devices, the process can flow to the intelligent computer room for the return operation. After the return in the intelligent computer room, the relevant location and status information of the corresponding devices is directly updated, such as clearing the cabinet code and the installed U position, setting the physical status to inventory, etc., to realize the full-process management of CMDB.

[0126] The specific implementation processes and their derivative methods of the above various embodiments are all within the protection scope of the present invention.

[0127] Corresponding to Figure 1 the method described above, an embodiment of the present invention further provides a CMDB management device for Figure 1 the specific implementation of the method in. The CMDB management device provided by the embodiment of the present invention can be applied to a computer terminal or various mobile devices. Its structural schematic diagram is as Figure 4 shown, and specifically includes:

[0128] The on-shelf and power-on unit 401 is used to connect the CMDB to the process platform when the intelligent computer room performs the on-shelf and power-on operation, and obtain the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform;

[0129] The update unit 402 is used to call a preset CMDB interface to update the CMDB attributes of the CMDB based on the device information and the cabinet information.

[0130] A determination unit 403, configured to determine, based on the CMDB attributes, a deployment plan of a physical machine in the CMDB when performing a decommissioning and power-off operation, where the deployment plan is a first deployment plan or a second deployment plan, the first deployment plan is to directly deploy an application by installing an operating system on the physical machine, and the second deployment plan is to pool the resources of the physical machine;

[0131] An association unit 404, configured to determine each device corresponding to the deployment plan, and associate the physical machine with each device;

[0132] A decommissioning and power-off unit 405, configured to, when a decommissioning and power-off operation needs to be performed, based on the association relationship between the physical machine and each device, transfer to the intelligent computer room, perform the decommissioning and power-off operation through the intelligent computer room, and clear the CMDB attributes.

[0133] In the device provided by the embodiment of the present invention, when powering on and racking, the CMDB is connected to the process platform, so as to obtain the device information therein and the cabinet information of the intelligent computer room. The CMDB interface is called through the obtained information to update the CMDB attributes of the CMDB. According to the CMDB deployment, a deployment plan corresponding to the physical machine in the CMDB is determined, and the physical machine is associated with each corresponding device according to the deployment plan. According to the association relationship between the physical machine and each device, transfer to the intelligent computer room, and clear the CMDB attributes after performing the decommissioning and power-off operation through the intelligent computer room.

[0134] By applying the device provided by the embodiment of the present invention, the CMDB can be connected to the process platform, and the CMDB can participate in the process of powering on and racking in addition to participating in other processes, realizing the closed-loop management of the CMDB.

[0135] In the device provided by the embodiment of the present invention, the update unit 402 includes:

[0136] A first acquisition subunit, configured to acquire the cabinet number included in the cabinet information, and determine a target cabinet corresponding to the cabinet number;

[0137] A setting subunit, configured to allocate the CMDB to the target cabinet, and set the U-position information of the CMDB in the target cabinet;

[0138] An update subunit, configured to enable a preset agile delivery system to perform resource supply on the CMDB through the CMDB interface based on the U-position information and the device information, so that the CMDB updates the CMDB attributes.

[0139] In the device provided by the embodiment of the present invention, the determination unit 403 includes:

[0140] A second acquisition subunit, configured to acquire the attribute data of the CMDB attribute;

[0141] A generation subunit, configured to generate a first interface request corresponding to the first deployment plan and a second interface request corresponding to the second deployment plan based on the attribute data;

[0142] A sending subunit, configured to send the first interface request and the second interface request to the CMDB interface;

[0143] A first determination subunit, when the CMDB interface responds to the first interface request, determines that the deployment plan of the physical machine in the CMDB during the execution of the off-shelf and power-off operation is the first deployment plan;

[0144] Or,

[0145] When the CMDB interface responds to the second interface request, determines that the deployment plan of the physical machine in the CMDB during the execution of the off-shelf and power-off operation is the second deployment plan.

[0146] In the device provided by the embodiment of the present invention, the association unit 404 includes:

[0147] A second determination subunit, configured to, when the deployment plan is the first deployment plan, determine that the respective devices corresponding to the deployment plan are a physical subsystem, a deployment unit, and an operating system;

[0148] A third acquisition subunit, configured to acquire first device information corresponding to the physical subsystem, the deployment unit, the operating system, and the physical machine;

[0149] A first association subunit, configured to respectively establish an association relationship between the physical subsystem and the deployment unit, an association relationship between the deployment unit and the operating system, and an association relationship between the operating system and the physical machine based on the first device information;

[0150] A second association subunit, configured to establish an association relationship between the physical subsystem and the physical machine based on the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine.

[0151] In the device provided by the embodiment of the present invention, the association unit 404 includes:

[0152] A third determination subunit, configured to, when the deployment plan is the second deployment plan, determine that the respective devices corresponding to the deployment plan are a resource pool, a cloud deployment unit, and a resource pool cluster;

[0153] A fourth acquisition subunit, configured to acquire second device information corresponding to the resource pool, the cloud deployment unit, the resource pool cluster, and the physical machine;

[0154] A third association subunit, configured to respectively establish an association relationship between the resource pool and the cloud deployment unit, an association relationship between the cloud deployment unit and the resource pool cluster, and an association relationship between the resource pool cluster and the physical machine based on the second device information;

[0155] A fourth association subunit, configured to establish an association relationship between the resource pool and the physical machine based on the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine.

[0156] For the specific working processes of each unit and subunit in the CMDB management device disclosed in the embodiments of the present invention above, reference may be made to the corresponding content in the CMDB management method disclosed in the above embodiments of the present invention, and details are not described herein again.

[0157] The embodiments of the present invention further provide a storage medium, where the storage medium includes stored instructions, and when the instructions run, the device where the storage medium is located is controlled to execute the above CMDB management method.

[0158] The embodiments of the present invention further provide an electronic device, and its structural schematic diagram is as Figure 5 shown, specifically including a memory 501 and one or more instructions 502, where one or more instructions 502 are stored in the memory 501 and are configured to be executed by one or more processors 503 to perform the following operations by the one or more instructions 502:

[0159] When the intelligent computer room performs the operation of racking and powering on, connect the CMDB access process platform, and obtain the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform;

[0160] Based on the device information and the cabinet information, call a preset CMDB interface to update the CMDB attributes of the CMDB;

[0161] Based on the CMDB attributes, determine the deployment plan of the physical machines in the CMDB when performing the operation of unracking and powering off, where the deployment plan is a first deployment plan or a second deployment plan, the first deployment plan is to directly deploy applications by installing an operating system on the physical machines, and the second deployment plan is to pool the resources of the physical machines;

[0162] Determine each device corresponding to the deployment plan, and associate the physical machines with each of the devices;

[0163] When the operation of removing the device from the rack and powering it off is required, based on the association relationship between the physical machine and each of the devices, it is transferred to the intelligent computer room, and the operation of removing the device from the rack and powering it off is performed through the intelligent computer room, and the CMDB attributes are cleared.

[0164] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0165] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two.

[0166] To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0167] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A CMDB management method, characterized in that, Including: When the intelligent computer room performs the operation of racking and powering on, connect the CMDB access process platform, and obtain the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform; Based on the device information and the cabinet information, call a preset CMDB interface to update the CMDB attributes of the CMDB; Based on the CMDB attributes, determine the deployment plan of the physical machines in the CMDB when performing the operation of unracking and powering off. The deployment plan is the first deployment plan or the second deployment plan. The first deployment plan is to directly deploy applications after installing the operating system on the physical machines, and the second deployment plan is to pool the resources of the physical machines; Determine each device corresponding to the deployment plan, and associate the physical machines with each device; When it is necessary to perform the operation of unracking and powering off, based on the association relationship between the physical machines and each device, transfer to the intelligent computer room, perform the operation of unracking and powering off through the intelligent computer room, and clear the CMDB attributes; Among them, the step of calling a preset CMDB interface to update the CMDB attributes based on the device information and the cabinet information includes: Obtain the cabinet number included in the cabinet information, and determine the target cabinet corresponding to the cabinet number; Allocate the CMDB to the target cabinet, and set the U-bit information of the CMDB in the target cabinet; Enable a preset agile delivery system to supply resources to the CMDB through the CMDB interface based on the U-bit information and the device information, so that the CMDB updates the CMDB attributes; Among them, the step of determining the deployment plan of the physical machines in the CMDB when performing the operation of unracking and powering off based on the CMDB attributes includes: Obtain the attribute data of the CMDB attributes; Generate a first interface request corresponding to the first deployment plan and a second interface request corresponding to the second deployment plan based on the attribute data; Send the first interface request and the second interface request to the CMDB interface; When the CMDB interface responds to the first interface request, determine that the deployment plan of the physical machines in the CMDB when performing the operation of unracking and powering off is the first deployment plan; Or, When the CMDB interface responds to the second interface request, determine that the deployment plan of the physical machines in the CMDB when performing the operation of unracking and powering off is the second deployment plan.

2. The method according to claim 1, wherein The step of determining each device corresponding to the deployment plan and associating the physical machines with each device includes: When the deployment plan is the first deployment plan, determine that each device corresponding to the deployment plan is a physical subsystem, a deployment unit, and an operating system respectively; Obtain the first device information corresponding to the physical subsystem, the deployment unit, the operating system, and the physical machines; Based on the first device information, establish an association relationship between the physical subsystem and the deployment unit, an association relationship between the deployment unit and the operating system, and an association relationship between the operating system and the physical machines respectively; Establish the association relationship between the physical subsystem and the physical machine based on the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine.

3. The method according to claim 1, wherein Determine each device corresponding to the deployment plan and associate the physical machine with each device, including: When the deployment plan is the second deployment plan, determine that each device corresponding to the deployment plan is a resource pool, a cloud deployment unit, and a resource pool cluster respectively; Obtain the second device information corresponding to the resource pool, the cloud deployment unit, the resource pool cluster, and the physical machine; Based on the second device information, establish the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine respectively; Based on the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine, establish the association relationship between the resource pool and the physical machine.

4. A CMDB management device, characterized in that, Including: The racking and power-on unit is used to connect the CMDB to the process platform when the intelligent computer room performs the racking and power-on operation, and obtain the device information of the CMDB and the cabinet information of the intelligent computer room through the process platform; The update unit is used to update the CMDB attributes of the CMDB by calling a preset CMDB interface based on the device information and the cabinet information; The determination unit is used to determine the deployment plan of the physical machine in the CMDB when performing the unracking and power-off operation based on the CMDB attributes. The deployment plan is the first deployment plan or the second deployment plan. The first deployment plan is to directly deploy applications after installing the operating system on the physical machine, and the second deployment plan is to pool the resources of the physical machine; The association unit is used to determine each device corresponding to the deployment plan and associate the physical machine with each device; The unracking and power-off unit is used to, when the unracking and power-off operation needs to be performed, transfer to the intelligent computer room based on the association relationship between the physical machine and each device, perform the unracking and power-off operation through the intelligent computer room, and clear the CMDB attributes; Among them, the update unit includes: The first acquisition subunit is used to acquire the cabinet number included in the cabinet information and determine the target cabinet corresponding to the cabinet number; The setting subunit is used to allocate the CMDB to the target cabinet and set the U-bit information of the CMDB in the target cabinet; The update subunit is used to enable a preset agile delivery system to supply resources to the CMDB through the CMDB interface based on the U-bit information and the device information, so that the CMDB updates the CMDB attributes; Among them, the determination unit includes: The second acquisition subunit is used to acquire the attribute data of the CMDB attributes; A generating subunit, configured to generate a first interface request corresponding to the first deployment plan and a second interface request corresponding to the second deployment plan based on the attribute data; A sending subunit, configured to send the first interface request and the second interface request to the CMDB interface; A first determining subunit, configured to determine that the deployment plan of the physical machine in the CMDB is the first deployment plan when the CMDB interface responds to the first interface request during the execution of the off-shelf and power-off operation; Or, When the CMDB interface responds to the second interface request, determine that the deployment plan of the physical machine in the CMDB is the second deployment plan during the execution of the off-shelf and power-off operation.

5. The device according to claim 4, characterized in that, The association unit includes: A second determining subunit, configured to determine that the respective devices corresponding to the deployment plan are a physical subsystem, a deployment unit, and an operating system when the deployment plan is the first deployment plan; A third obtaining subunit, configured to obtain first device information corresponding to the physical subsystem, the deployment unit, the operating system, and the physical machine; A first association subunit, configured to respectively establish an association relationship between the physical subsystem and the deployment unit, an association relationship between the deployment unit and the operating system, and an association relationship between the operating system and the physical machine based on the first device information; A second association subunit, configured to establish an association relationship between the physical subsystem and the physical machine based on the association relationship between the physical subsystem and the deployment unit, the association relationship between the deployment unit and the operating system, and the association relationship between the operating system and the physical machine.

6. The device according to claim 4, characterized in that The association unit includes: A third determining subunit, configured to determine that the respective devices corresponding to the deployment plan are a resource pool, a cloud deployment unit, and a resource pool cluster when the deployment plan is the second deployment plan; A fourth obtaining subunit, configured to obtain second device information corresponding to the resource pool, the cloud deployment unit, the resource pool cluster, and the physical machine; A third association subunit, configured to respectively establish an association relationship between the resource pool and the cloud deployment unit, an association relationship between the cloud deployment unit and the resource pool cluster, and an association relationship between the resource pool cluster and the physical machine based on the second device information; A fourth association subunit, configured to establish an association relationship between the resource pool and the physical machine based on the association relationship between the resource pool and the cloud deployment unit, the association relationship between the cloud deployment unit and the resource pool cluster, and the association relationship between the resource pool cluster and the physical machine.

Citation Information

Patent Citations

  • System deployment method and device, electronic equipment and storage medium

    CN114090021A

  • Integrated intelligent operation and maintenance control method, system and operation and maintenance platform

    CN114548833A