Full-link topology generation method and device based on business resource characteristics
By generating a full-link topology to monitor business resources, the problems of high intrusion and low fault positioning efficiency of traditional APM platforms are solved, and more efficient fault positioning and cost reduction are achieved.
Patent Information
- Application Number
- CN202510209701.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-06-27
AI Technical Summary
In computer room management, traditional APM platforms are used for fault locations that are at risk of intruding into business services, have high maintenance costs, and affect the system operation efficiency and have low fault location efficiency.
By obtaining business application information and computer room equipment information, setting business resource characteristics, building business software and hardware resource relationships, and using topology tools to generate a full-link topology, realizing global monitoring of business resources and improving fault positioning efficiency.
Improves fault positioning efficiency, reduces costs, does not require intrusion into business services, and avoids maintenance and performance occupancy issues of the APM platform.
Smart Images

Figure CN120216742A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data center management, and particularly to a full-link topology generation method and device based on service resource characteristics. Background Art
[0002] In computer room management, there are numerous computer room devices and business services, and multiple computer room device resources are shared by different business service systems. When a computer room device fails, it is necessary to locate the fault point. The traditional method is implemented through an APM (Application Performance Management) platform. However, the construction of the APM platform will invade business services to a certain extent, with high platform construction and maintenance costs. Moreover, the APM platform occupies a part of the system performance, affecting the system operation efficiency and having a low fault location efficiency.
[0003] In summary, the technical problems existing in the related art need to be improved. Summary of the Invention
[0004] Embodiments of the present invention provide a full-link topology generation method and device based on service resource characteristics, effectively improving the fault location efficiency and reducing costs.
[0005] On the one hand, embodiments of the present invention provide a full-link topology generation method based on service resource characteristics, including the following steps:
[0006] Obtain service application information and computer room device information;
[0007] Set service resource characteristics according to the service application information and the computer room device information, where the service resource characteristics include the relationship between computer room devices and service applications, service IPs, IP segments, service ports, port ranges, or process signature codes;
[0008] Construct a service software and hardware resource relationship according to the service resource characteristics, where the service software and hardware resource relationship includes the relationship between the service operating system and the service application, the relationship between the service operating system and the server, the relationship between the server and the switch, and the relationship between the server and the storage;
[0009] Update the service software and hardware resource relationship according to the current state of the service operating system, the current state of the service application, the current state of the server, the current state of the network device, and the current state of the storage device;
[0010] Generate a full-link topology using a topology tool according to the service resource characteristics and the service software and hardware resource relationship, where the full-link topology is used for global monitoring of service resources.
[0011] In some embodiments, the setting of service resource characteristics according to the service application information and the computer room device information includes:
[0012] Set the service IP, IP segment, service port, port range, and process signature code corresponding to each service application according to the service application information;
[0013] Set the relationship between the computer room equipment and the service application corresponding to each server device according to the computer room equipment information.
[0014] In some embodiments, constructing the relationship between the service software and hardware resources according to the service resource characteristics includes:
[0015] Construct the relationship between the service operating system and the service application according to the service resource characteristics;
[0016] Construct the relationship between the service operating system and the server according to the service operating system running information;
[0017] Construct the relationship between the server and the network device according to the network device information;
[0018] Construct the relationship between the server and the storage according to the server information.
[0019] In some embodiments, constructing the relationship between the service operating system and the service application according to the service resource characteristics includes:
[0020] Read the current process information of the service operating system through the process command;
[0021] Extract the local port list and the relationship between the ports of other machines connected to the local machine from the current process information;
[0022] Construct the relationship between the service operating system and the service application according to the local port list, the relationship between the ports of other machines connected to the local machine, and the service resource characteristics.
[0023] In some embodiments, constructing the relationship between the service operating system and the server according to the service operating system running information includes:
[0024] Judge the service operating system running environment according to the service operating system running information;
[0025] When the service operating system runs on a physical machine, read the service operating system IP, service operating system serial number, server IP, and server serial number, and construct the relationship between the service operating system and the server according to the service operating system IP, the service operating system serial number, the server IP, and the server serial number;
[0026] When the business operating system runs on a virtualization platform, construct the relationship between the business operating system and the server according to the virtualization platform running information, where the virtualization platform running information is obtained through a preset interface or software development kit.
[0027] In some embodiments, the constructing the relationship between the business operating system and the server according to the virtualization platform running information includes:
[0028] Extract the virtual machine ID from the virtualization platform running information;
[0029] Determine the virtualization host serial number according to the relationship between the virtual machine and the virtualization host and the virtual machine ID;
[0030] Determine the server serial number according to the relationship between the virtualization host and the server and the virtualization host serial number;
[0031] Construct the relationship between the business operating system and the server according to the server serial number.
[0032] In some embodiments, the constructing the relationship between the server and the network device according to the network device information includes:
[0033] Read the network device port from the network device information;
[0034] Read the media access control address of the server;
[0035] Determine the media access control address of the peer device according to the network device port;
[0036] If the media access control address of the peer device is the same as the media access control address of the server, construct the relationship between the server and the network device according to the media access control address of the peer device.
[0037] In some embodiments, the constructing the relationship between the server and the storage according to the server information includes:
[0038] Obtain the worldwide name of the storage device;
[0039] Construct the relationship between the server and the storage according to the worldwide name of the storage device and the server information.
[0040] On the other hand, an embodiment of the present invention provides a full-link topology generation device based on business resource characteristics, including:
[0041] A first module for obtaining business application information and computer room device information;
[0042] A second module, configured to set service resource features according to the service application information and the computer room equipment information, where the service resource features include the relationship between computer room equipment and service applications, service IPs, IP segments, service ports, port ranges, or process signature codes;
[0043] A third module, configured to construct a relationship between service software and hardware resources according to the service resource features, where the relationship between service software and hardware resources includes the relationship between the service operating system and service applications, the relationship between the service operating system and servers, the relationship between servers and switches, and the relationship between servers and storage;
[0044] A fourth module, configured to update the relationship between service software and hardware resources according to the current status of the service operating system, the current status of service applications, the current status of servers, the current status of network devices, and the current status of storage devices;
[0045] A fifth module, configured to generate a full-link topology using a topology tool according to the service resource features and the relationship between service software and hardware resources, where the full-link topology is used to globally monitor service resources.
[0046] On the other hand, an embodiment of the present invention provides a computer device, including:
[0047] At least one processor;
[0048] At least one memory, configured to store at least one program;
[0049] When the at least one program is executed by the at least one processor, the at least one processor implements the method described above.
[0050] The beneficial effects of the present invention are as follows:
[0051] In an embodiment of the present invention, service application information and computer room equipment information are first obtained, service resource features are set according to the service application information and the computer room equipment information, then a relationship between service software and hardware resources is constructed according to the service resource features, and then the relationship between service software and hardware resources is updated according to the current status of the service operating system, the current status of service applications, the current status of servers, the current status of network devices, and the current status of storage devices. Finally, a full-link topology is generated using a topology tool according to the service resource features and the relationship between service software and hardware resources, thereby realizing the generation of the full-link topology to globally monitor service resources using the full-link topology, further improving the fault location efficiency and reducing costs.
[0052] Other features and advantages of the present invention will be described in the subsequent description, and some of them will become obvious from the description or be understood by implementing the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in the description and the drawings. Brief Description of the Drawings
[0053] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0054] Figure 1 It is a flowchart of a full-link topology generation method based on service resource characteristics according to an embodiment of the present invention;
[0055] Figure 2 It is a full-link topology diagram according to an embodiment of the present invention;
[0056] Figure 3 It is a schematic structural diagram of a full-link topology generation device based on service resource characteristics according to an embodiment of the present invention;
[0057] Figure 4 It is a schematic hardware structure diagram of a computer device according to an embodiment of the present invention. Detailed Embodiments
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the following further details the present application in conjunction with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. When the following description involves the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application detailed in the appended claims.
[0059] It can be understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present application, the first information can also be called the second information, and similarly, the second information can also be called the first information. Depending on the context, the words "if", "when" as used herein can be interpreted as "when...", "when...", or "in response to determining".
[0060] The terms "at least one", "multiple", "each", "any one", etc. used in the present application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any one refers to any one of the multiple.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are for the purpose of describing embodiments of this application only and are not intended to limit this application.
[0062] Before elaborating on the embodiments of this application in detail, some nouns and terms involved in the embodiments of this application are first explained, and the nouns and terms involved in the embodiments of this application are subject to the following explanations.
[0063] World Wide Name (WWN) of a storage device: It is a 64-bit hexadecimal number used to uniquely identify a storage device globally. The WWN is assigned by the IEEE to ensure the uniqueness of device identification in the entire storage network.
[0064] APM tool (Application Performance Management, APM): It is a software solution for monitoring, managing, and optimizing the performance of application programs. It helps developers and operation and maintenance teams to monitor the performance metrics of application programs in real time, such as response time, error rate, throughput, etc., as well as various components and services of the application program, including databases, servers, networks, etc.
[0065] MAC address (Media Access Control Address): Literally translated as media access control address, also known as LAN address (LAN Address), MAC address, Ethernet address (Ethernet Address), hardware address (Hardware Address), or physical address (Physical Address). It can be seen that the "MAC address" is actually the adapter address or adapter identifier EUI-48, which is an address used to confirm the location of network devices.
[0066] In the related art, in computer room management, usually there are a large number of computer room devices and business services, and multiple resources are shared by different business systems. When a device fails, it is difficult for operation and maintenance personnel to locate the fault point. The existing business link topologies are all implemented based on the APM platform. The disadvantage of this technology is that the construction of the APM platform will invade business services to a certain extent, occupy a part of the system performance, and there is a risk of affecting business. Maintenance and platform construction require costs, and the fault location efficiency is low.
[0067] In view of this, the embodiments of the present application standardize the business resource characteristics of the computer room software and hardware, utilize the resource relationship of the business software and hardware, automatically identify the full-link topology of business resources, assist in quickly locating the fault points and fault scopes, and improve the fault location efficiency. At the same time, it does not require the intrusion of APM tools, reducing costs.
[0068] The full-link topology generation method based on business resource characteristics provided by the embodiments of the present application relates to the technical field of data center management. The full-link topology generation method based on business resource characteristics provided by the embodiments of the present application can be applied to terminals, can also be applied to servers, or can be software running on terminals or servers. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a vehicle-mounted terminal, etc., but is not limited thereto; the server side can be configured as an independent physical server, can also be configured as a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the full-link topology generation method based on business resource characteristics, etc., but is not limited to the above forms.
[0069] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, small computers, large computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0070] The following specifically explains the embodiments of the present application with reference to the accompanying drawings:
[0071] Figure 1 is an optional flowchart of the full-link topology generation method based on business resource characteristics provided by the embodiments of the present application, Figure 1 The method in may include but is not limited to steps S101 to S105.
[0072] Step S101: Obtain business application information and computer room equipment information;
[0073] Step S102: Set business resource characteristics according to the business application information and computer room equipment information. The business resource characteristics include the relationship between computer room equipment and business applications, business IPs, IP segments, business ports, port ranges, or process signature codes;
[0074] Step S103: Construct the relationship between business software and hardware resources according to the business resource characteristics. The relationship between business software and hardware resources includes the relationship between the business operating system and business applications, the relationship between the business operating system and servers, the relationship between servers and switches, and the relationship between servers and storage;
[0075] Step S104: Update the relationship between business software and hardware resources according to the current status of the business operating system, the current status of business applications, the current status of servers, the current status of network devices, and the current status of storage devices;
[0076] Step S105: Generate a full-link topology using a topology tool according to the business resource characteristics and the relationship between business software and hardware resources. The full-link topology is used for global monitoring of business resources.
[0077] Steps S101 to S105 shown in the embodiments of the present application achieve the generation of a full-link topology to globally monitor business resources using the full-link topology, thereby improving the fault location efficiency and reducing costs.
[0078] In step S101 of some embodiments, the business application information can be obtained through a business database, and the computer room equipment information can be obtained through an equipment database. The business application information and the computer room equipment information can also be obtained through other means, which is not limited thereto.
[0079] In some embodiments, in step S102, setting the business resource characteristics according to the business application information and the computer room equipment information may include, but is not limited to, the following steps:
[0080] Set the business IP, IP segment, business port, port range, and process signature code corresponding to each business application according to the business application information;
[0081] Set the relationship between the computer room equipment and business applications corresponding to each server device according to the computer room equipment information.
[0082] In some embodiments, the service IP, IP segment, service port, port range, and process signature corresponding to each service application may be set according to the service application information. Exemplarily, the service IP, port, and service processes of all service applications may be predefined, and it may be determined which service applications use which service IP, IP segment, service port, port range, and process signature. Then, according to the computer room equipment information, the relationship between the computer room equipment and the service application corresponding to each server device may be set. Exemplarily, all computer room equipment may be pre-classified according to the service application, and it may be determined which resources of the computer room equipment are applied to which service applications, so as to obtain the relationship between the computer room equipment and the service application.
[0083] In some embodiments, in step S103, constructing the relationship between service software and hardware resources according to the service resource characteristics may include, but is not limited to, steps S201 to S204:
[0084] Step S201, constructing the relationship between the service operating system and the service application according to the service resource characteristics;
[0085] Step S202, constructing the relationship between the service operating system and the server according to the service operating system running information;
[0086] Step S203, constructing the relationship between the server and the network device according to the network device information;
[0087] Step S204, constructing the relationship between the server and the storage according to the server information.
[0088] In some embodiments, all service operating systems, service applications, virtualization platforms, and computer room equipment may be included in the management list. The relationship between service software and hardware resources is constructed according to the service resource characteristics. The relationship between the service operating system and the service application may be constructed first according to the service resource characteristics, then the relationship between the service operating system and the server may be constructed according to the service operating system running information, then the relationship between the server and the network device may be constructed according to the network device information, and finally the relationship between the server and the storage may be constructed. Among them, the relationship between service software and hardware resources includes the relationship between the service operating system and the service application, the relationship between the service operating system and the server, the relationship between the server and the switch, and the relationship between the server and the storage.
[0089] In some embodiments, in step S201, constructing the relationship between the service operating system and the service application according to the service resource characteristics includes:
[0090] Reading the current process information of the service operating system through the process command;
[0091] Extracting the local port list and the relationship between the connections of other machines' ports to the local machine from the current process information;
[0092] Construct the relationship between the business operating system and the business application according to the local port list, the relationship between the connections of other machines' ports to the local machine, and the business resource characteristics.
[0093] In some embodiments, the current process information of the business operating system can be read through a process command first, then the local port list and the relationship between the connections of other machines' ports to the local machine can be extracted from the current process information, and then the relationship between the business operating system and the business application can be constructed according to the local port list, the relationship between the connections of other machines' ports to the local machine, and the business resource characteristics. Exemplarily, the current process information of all business operating systems can be read through a process command, and the current process information lists the local port list and the relationship between the connections of other machines' ports to the local machine. The relationship between the business operating system and the business application is constructed through predefined feature information (including business resource characteristics). Moreover, the process command can be executed in the SSH or agent (proxy) manner to obtain the current process information. It can be understood that the Secure Shell (SSH) protocol is a protocol used for secure remote login and other secure network services on an insecure network.
[0094] In some embodiments, in step S202, constructing the relationship between the business operating system and the server according to the business operating system running information includes:
[0095] Judge the business operating system running environment according to the business operating system running information;
[0096] When the business operating system runs on a physical machine, read the business operating system IP, the business operating system serial number, the server IP, and the server serial number, and construct the relationship between the business operating system and the server according to the business operating system IP, the business operating system serial number, the server IP, and the server serial number;
[0097] When the business operating system runs on a virtualization platform, construct the relationship between the business operating system and the server according to the virtualization platform running information, and the virtualization platform running information is obtained through a preset interface or software development kit.
[0098] In some embodiments, the operating environment of the business operating system may be judged according to the running information of the business operating system, where the operating environment of the business operating system includes running on a physical machine or running on a virtualization platform. When the business operating system runs on a physical machine, the IP address of the business operating system, the serial number of the business operating system, the IP address of the server, and the serial number of the server may be read according to the running information of the business operating system, and the relationship between the business operating system and the server may be constructed according to the IP address of the business operating system, the serial number of the business operating system, the IP address of the server, and the serial number of the server. Exemplarily, all the IP addresses of the business operating systems and the serial numbers of the business operating systems may be read, and all the IP addresses of the servers and the serial numbers of the servers may be read. Since the serial number has physical uniqueness, the corresponding server can be uniquely determined according to the serial number. If the business operating system and the server have the same serial number, the association relationship between the two is bound to obtain the relationship between the business operating system and the server. When the business operating system runs on a virtualization platform, the relationship between the business operating system and the server is constructed according to the running information of the virtualization platform, where the running information of the virtualization platform may be obtained through a preset interface API or a software development kit SDK.
[0099] In some embodiments, constructing the relationship between the business operating system and the server according to the running information of the virtualization platform includes:
[0100] Extract the virtual machine ID from the running information of the virtualization platform;
[0101] Determine the virtualization host serial number according to the relationship between the virtual machine and the virtualization host and the virtual machine ID;
[0102] Determine the server serial number according to the relationship between the virtualization host and the server and the virtualization host serial number;
[0103] Construct the relationship between the business operating system and the server according to the server serial number.
[0104] In some embodiments, the virtual machine ID can be extracted from the virtualization platform operation information first, and then the virtualization host serial number can be determined according to the relationship between the virtual machine and the virtualization host and the virtual machine ID. Exemplarily, according to the virtualization platform operation information, all the virtual machine IDs running on the virtualization platform can be read, and the virtualization host serial number can be determined through the virtual machine. The business operating system can be determined to run on which virtual machine through the unique identification ID, and according to the one-to-one relationship between the virtual machine and the virtualization host, it can be determined on which virtualization host the business operating system runs. Then, according to the relationship between the virtualization host and the server and the virtualization host serial number, the server serial number can be determined. Finally, according to the server serial number, the relationship between the business operating system and the server can be constructed. According to the one-to-one relationship between the virtualization host and the server, which server can be determined through the virtualization host serial number, and the relationship between the business operating system and the server can be obtained. Moreover, the virtualization platform information can be obtained in the way of API or SDK. The server information can be read through the BMC method or commands in the server operating system. It can be understood that the BMC (Baseboard Management Controller) method is a method for remote management and monitoring through the management controller on the server motherboard.
[0105] In some embodiments, in step S203, according to the network device information, constructing the relationship between the server and the network device includes:
[0106] Read the network device ports from the network device information;
[0107] Read the media access control address of the server;
[0108] Determine the media access control address of the peer device according to the network device port;
[0109] If the media access control address of the peer device is the same as the media access control address of the server, then construct the relationship between the server and the network device according to the media access control address of the peer device.
[0110] In some embodiments, the network device ports may be first read from the network device information, and the media access control address (MAC address) of the server may be read. Then, according to the network device ports, the media access control address of the peer device may be determined. If the media access control address of the peer device is the same as the media access control address of the server, the relationship between the server and the network device may be constructed according to the media access control address of the peer device. Exemplarily, the ports and MACs (media access control addresses) of all servers may be read. The MAC address can uniquely identify which server it is. At the same time, the ports of all network devices are read from the network device information, and according to the network device ports, the MAC addresses of the peer devices connected to the ports are determined. Among them, the server ports and MACs can be read through BMC or operating system commands. The network device ports can be obtained through the SNMP protocol or through commands of the switch ports. The LLDP protocol of the switch and the server can be enabled to obtain the MAC address of the device connected to the corresponding port through commands. The switch (i.e., the network device) obtains the MAC address of the peer connected device. Since the MAC address is unique, it can uniquely determine which server the peer is connected to. After establishing the relationship between the server and the network device, it can be queried through the port of the switch which server it is connected to, and through the server, it can also be queried which port on which switch it is connected to. It can be understood that SNMP (Simple Network Management Protocol) is a widely used protocol for managing devices in a network environment. It allows network administrators to monitor and manage network devices (such as routers, switches, servers, etc.) through the network. SNMP implements these functions by using a set of standard message formats and encoding rules. LLDP (Link Layer Discovery Protocol) is a method for discovering information about adjacent devices within a local area network. It belongs to the IEEE 802.1AB standard and is widely used for information exchange between switching network devices, such as switches and routers.
[0111] In some embodiments, in step S204, constructing the relationship between the server and the storage according to the server information includes:
[0112] Obtain the worldwide name of the storage device;
[0113] Construct the relationship between the server and the storage according to the worldwide name of the storage device and the server information.
[0114] In some embodiments, the World Wide Name of the storage device can be obtained first, and then, based on the World Wide Name of the storage device and the server information, the relationship between the server and the storage can be constructed. Exemplarily, the WWN (World Wide Name) of the storage device can be used. The WWN is the unique identifier of the storage device. The WWN of the storage device can be queried from the operating system, enabling the association between the server and the storage to obtain the relationship between the server and the storage. The relationship between the server and the storage can also be corresponded through a predefined service classification. More specifically, the storage device can be connected through methods such as API and SNMP. It can be understood that the WWN (World Wide Name) is a globally unique identifier used to identify Fibre Channel (FC) and Fibre Channel over Ethernet (FCoE) devices.
[0115] In some embodiments, in step S104, the relationship between the business software and hardware resources can be updated according to the current state of the business operating system, the current state of the business application, the current state of the server, the current state of the network device, and the current state of the storage device. Exemplarily, due to various reasons such as device relocation and software service changes, the relationship between the business software and hardware resources is variable. It is necessary to periodically read the current state of the business operating system, the current state of the business application, the current state of the server, the current state of the network device, and the current state of the storage device to refresh the topology relationship among the business operating system, the business application, the server, the network device, and the storage device in real time.
[0116] In some embodiments, in step S105, a full-link topology can be generated using a topology tool based on the business resource characteristics and the relationship between the business software and hardware resources, where the full-link topology is used for global monitoring of the business resources. A full-link business relationship network composed of the business operating system, the running business applications, the virtualized resources, the servers, switches, and storage devices in the connection infrastructure devices can be associated according to the standardized business resource characteristics and the relationship between the business resources, and a topology tool can be used to generate the full-link topology. Finally, the resources of the business can be globally monitored using the full-link topology. Exemplarily, the full-link topology is as Figure 2 shown, including ports (port1, port2, port3, port4). When the user finds that the access to Service A fails and a fault occurs, the problem can be queried layer by layer downward. Suppose data loss is found from the business application. According to the full-link topology, query downward through the business operating system and determine whether virtualization exists until the server state, and then, through the full-link topology relationship, query downward through the network device until the storage device, and it is found that a certain disk of the storage device is damaged, resulting in the failure of Service A to access due to the loss of stored data, so that the fault point can be quickly located, and the operation and maintenance engineer can quickly solve the problem, repair the disk or find backup data, and further investigate the affected scope.
[0117] In some embodiments, this embodiment does not require the procurement of any APM platform and does not need to invade and configure services on the business. By standardizing the characteristics of business resources and utilizing the association relationships among the business operating system, business applications, servers, switches, and storage, it automatically identifies and generates the full-link topology of the business and makes effective alarm prompts, greatly improving the efficiency of quickly locating faults.
[0118] The beneficial effects of implementing the embodiments of the present invention include: The embodiments of the present invention first obtain business application information and computer room equipment information, set business resource characteristics according to the business application information and computer room equipment information, then construct the relationship between business software and hardware resources according to the business resource characteristics, and then update the relationship between business software and hardware resources according to the current status of the business operating system, the current status of business applications, the current status of servers, the current status of network devices, and the current status of storage devices. Finally, according to the business resource characteristics and the relationship between business software and hardware resources, a full-link topology is generated using topology tools, thereby realizing the generation of the full-link topology to globally monitor business resources, further improving the fault location efficiency and reducing costs.
[0119] As Figure 3 shown, the embodiments of the present invention also provide a full-link topology generation device based on business resource characteristics, including:
[0120] The first module 801 is used to obtain business application information and computer room equipment information;
[0121] The second module 802 is used to set business resource characteristics according to the business application information and computer room equipment information, and the business resource characteristics include the relationship between computer room equipment and business applications, business IP, IP segment, business port, port range, or process signature;
[0122] The third module 803 is used to construct the relationship between business software and hardware resources according to the business resource characteristics, and the relationship between business software and hardware resources includes the relationship between the business operating system and business applications, the relationship between the business operating system and servers, the relationship between servers and switches, and the relationship between servers and storage;
[0123] The fourth module 804 is used to update the relationship between business software and hardware resources according to the current status of the business operating system, the current status of business applications, the current status of servers, the current status of network devices, and the current status of storage devices;
[0124] The fifth module 805 is used to generate a full-link topology using topology tools according to the business resource characteristics and the relationship between business software and hardware resources, and the full-link topology is used to globally monitor business resources.
[0125] The content in the above method embodiments is applicable to the device embodiments of the present invention. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.
[0126] As Figure 4 shown, an embodiment of the present invention further provides a computer device, including:
[0127] At least one processor 901;
[0128] At least one memory 902 for storing at least one program;
[0129] When the at least one program is executed by the at least one processor, the at least one processor implements Figure 1 the method shown.
[0130] The content in the above method embodiments is applicable to the device embodiments of the present invention. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.
[0131] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings. This does not limit the scope of the rights of the embodiments of the present application. Any modification, equivalent replacement, and improvement made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the rights of the embodiments of the present application.
Claims
1. A full-link topology generation method based on business resource characteristics, characterized in that: The following steps are involved: Obtain business application information and computer room equipment information; According to the business application information and the computer room equipment information, business resource characteristics are set, wherein the business resource characteristics include the relationship between the computer room equipment and the business application, the business IP, IP segment, business port, port range or process feature code; According to the business resource characteristics, construct business software and hardware resource relationships, wherein the business software and hardware resource relationships include relationships between business operating systems and business applications, relationships between business operating systems and servers, relationships between servers and switches, and relationships between servers and storage; Update the business software and hardware resource relationship according to the current state of the business operating system, the current state of the business application, the current state of the server, the current state of the network device and the current state of the storage device; According to the business resource characteristics and the business software and hardware resource relationship, a full-link topology is generated using a topology tool, and the full-link topology is used to perform global monitoring of business resources.
2. The method according to claim 1, characterized in that The setting of service resource characteristics according to the service application information and the computer room equipment information includes: According to the business application information, set the business IP, IP segment, business port, port range and process feature code corresponding to each business application; According to the computer room equipment information, the relationship between the computer room equipment and the business application corresponding to each server device is set.
3. The method according to claim 1, characterized in that The step of constructing a business software and hardware resource relationship according to the business resource characteristics includes: According to the business resource characteristics, a relationship between the business operating system and the business application is established; According to the business operating system operation information, a relationship between the business operating system and the server is established; According to the network device information, a relationship between the server and the network device is established; According to the server information, a relationship between the server and the storage is established.
4. The method according to claim 3, characterized in that The step of constructing a relationship between the business operating system and the business application according to the business resource characteristics includes: Read the current process information of the business operating system through the process command; Extracting the local port list and the relationship between other machine ports connected to the local machine from the current process information; The relationship between the business operating system and the business application is established according to the local port list, the relationship between the other machine ports connected to the local machine, and the business resource characteristics.
5. The method according to claim 3, characterized in that: The step of establishing a relationship between the business operating system and the server according to the business operating system operation information includes: Determining the business operating system operating environment according to the business operating system operating information; When the business operating system runs on a physical machine, the business operating system IP, the business operating system serial number, the server IP and the server serial number are read, and the relationship between the business operating system and the server is established based on the business operating system IP, the business operating system serial number, the server IP and the server serial number; When the business operating system runs on a virtualization platform, a relationship between the business operating system and the server is established based on virtualization platform operation information, and the virtualization platform operation information is obtained through a preset interface or a software development kit.
6. The method according to claim 5, characterized in that The step of constructing the relationship between the service operating system and the server according to the virtualization platform operation information includes: Extracting a virtual machine ID from the virtualization platform operation information; Determine the virtualization host serial number according to the relationship between the virtual machine and the virtualization host and the virtual machine ID; Determine the server serial number according to the relationship between the virtualization host and the server and the virtualization host serial number; According to the server serial number, a relationship between the business operating system and the server is established.
7. The method according to claim 3, characterized in that The step of establishing the relationship between the server and the network device according to the network device information includes: Reading a network device port from the network device information; Read the server's media access control address; Determining a media access control address of a peer device according to the network device port; If the media access control address of the peer device is the same as the media access control address of the server, then the relationship between the server and the network device is established according to the media access control address of the peer device.
8. The method according to claim 3, characterized in that The step of establishing a relationship between the server and the storage according to the server information includes: Get the World Wide Web name of the storage device; According to the World Wide Web name of the storage device and the server information, the relationship between the server and the storage is established.
9. A full-link topology generation device based on business resource characteristics, characterized in that: include: The first module is used to obtain business application information and computer room equipment information; The second module is used to set business resource characteristics according to the business application information and the computer room equipment information, and the business resource characteristics include the relationship between the computer room equipment and the business application, the business IP, IP segment, business port, port range or process feature code; The third module is used to construct a business software and hardware resource relationship according to the business resource characteristics, wherein the business software and hardware resource relationship includes a relationship between a business operating system and a business application, a relationship between a business operating system and a server, a relationship between a server and a switch, and a relationship between a server and a storage; The fourth module is used to update the business software and hardware resource relationship according to the current state of the business operating system, the current state of the business application, the current state of the server, the current state of the network device and the current state of the storage device; The fifth module is used to generate a full-link topology using a topology tool according to the business resource characteristics and the business software and hardware resource relationship, and the full-link topology is used to perform global monitoring of business resources.
10. A computer device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 8.