Bare metal server monitoring method and device, storage medium and electronic device

By obtaining and querying the address resolution table results of the private network ID in the bare metal server, adding up the count and generating alarm information, it solves the problem of resource occupation and monitoring indicators in the existing technology that cannot be reported, and realizes efficient bare metal server monitoring. and fault location.

CN115941437BActive Publication Date: 2024-09-17CHINA CONSTRUCTION BANK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211211480.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2024-09-17
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

In the existing technology, a local monitoring agent or a remote monitoring agent is installed in a bare metal server, which occupies resources, affects the normal use of the server, and makes it impossible to monitor and report operating status monitoring indicators.

Method used

By obtaining the server information of the bare metal server, sending the private network ID to the uplink switch, querying the results of the address resolution table, if they are inconsistent, the count will be incremented by one, and an alarm message will be generated when the threshold is reached. There is no need to install a monitoring agent.

Benefits of technology

It realizes the monitoring of bare metal servers, avoids resource occupation, solves the problem of monitoring and reporting monitoring indicators, shortens fault location time, and improves operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941437B
    Figure CN115941437B
Patent Text Reader

Abstract

The present application provides a bare metal server monitoring method and device, storage medium and electronic device, which obtains the server information of the bare metal server and the query result of the query of its own address resolution table fed back by the upstream switch, so that when the query result does not include the address resolution information, or the query result includes the address resolution information, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the server information, the state counter is counted and added by one, and when the counting result is not less than the preset threshold, the alarm information of the bare metal server is generated and reported. It can be seen that the monitoring of the bare metal server is realized, thereby solving the problem of occupying the resources of the bare metal server and causing the operation end to be unable to monitor and report the monitoring indicators of the bare metal server in the running state in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a bare metal server monitoring method and device, a storage medium, and an electronic device. Background Art

[0002] Bare Metal Server (BMS) is a physical server on the cloud that can be seamlessly integrated with existing cloud computing, network and other services to meet the extreme computing performance requirements of the business, provide high-performance, stable physical computing resources, and can be used with cloud products such as cloud servers (CVM) and private networks (VPC). It integrates the stability of traditional hosting hosts and the advantages of highly elastic resources on the cloud, and can provide users with independent physical resources, secure data sources and stable performance guarantees. Therefore, bare metal servers are widely used in high-performance computing, key databases and other scenarios. Based on this, it is very important to monitor the operating status of bare metal servers.

[0003] In the prior art, bare metal servers are monitored by installing a local monitoring agent or a remote monitoring agent in the bare metal server. However, installing a local monitoring agent or a remote monitoring agent in a bare metal server is not allowed, which not only occupies the resources of the bare metal server, thereby affecting the normal use of the bare metal server, but also makes it impossible for the operator to monitor and report the monitoring indicators of the bare metal server in operation. Summary of the invention

[0004] The present application provides a bare metal server monitoring method and device, a storage medium and an electronic device, aiming to solve the problem that the existing bare metal server monitoring not only occupies the resources of the bare metal server, thereby affecting the normal use of the bare metal server, but also causes the operation end to be unable to monitor and report the monitoring indicators of the bare metal server in operation.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A bare metal server monitoring method, comprising:

[0007] According to a preset time period, obtain the server information of each preset bare metal server; including the management IP and aggregation port of the upstream switch to which the bare metal server belongs, the private network ID of the private network to which the bare metal server belongs, and the virtual network IP of the virtual network to which it belongs;

[0008] For each bare metal server, the private network ID in the target server information is sent to the upstream switch corresponding to the management IP in the target server information, and the query result of the upstream switch based on the private network ID querying its own address resolution table is obtained. If the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the target server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, then the state counter of the bare metal server is counted and incremented by one, and when the current count result of the state counter is not less than a preset threshold, an alarm information of the bare metal server is generated; wherein, the target server information is the server information of the bare metal server;

[0009] Report each alarm information to the public cloud.

[0010] The above method may optionally further include:

[0011] If the query result includes address resolution information corresponding to the private network ID, and the aggregate port in the address resolution information is consistent with the aggregate port in the target server information, and the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information, the status counter of the bare metal server is set to zero.

[0012] In the above method, optionally, the obtaining of server information of each preset bare metal server includes:

[0013] Call the bare metal management service interface to obtain the server information of each preset bare metal server.

[0014] In the above method, optionally, the sending of the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information includes:

[0015] Generate a query instruction based on the private network ID in the target server information;

[0016] The query instruction is sent to the uplink switch corresponding to the management IP in the target server information.

[0017] In the above method, optionally, the server information of the bare metal server also includes a server identifier of the bare metal server, and the generating of the alarm information of the bare metal server includes:

[0018] Based on the server identifier of the bare metal server, alarm information of the bare metal server is generated.

[0019] A bare metal server monitoring device, comprising:

[0020] An acquisition unit, used to acquire server information of each preset bare metal server according to a preset time period; including the management IP and aggregation port of the upstream switch to which the bare metal server belongs, the private network ID of the private network to which the bare metal server belongs, and the virtual network IP of the virtual network to which it belongs;

[0021] A sending unit is used to send the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information for each bare metal server, and obtain the query result of the uplink switch based on the private network ID to query its own address resolution table. If the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the target server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, then the state counter of the bare metal server is counted and incremented by one, and when the current count result of the state counter is not less than a preset threshold, an alarm information of the bare metal server is generated; wherein, the target server information is the server information of the bare metal server;

[0022] The reporting unit is used to report various alarm information to the public cloud.

[0023] The above device may optionally further include:

[0024] A setting unit is used to set the status counter of the bare metal server to zero if the query result includes address resolution information corresponding to the private network ID, and the aggregation port in the address resolution information is consistent with the aggregation port in the target server information, and the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information.

[0025] In the above device, optionally, the acquisition unit is specifically used to:

[0026] Call the bare metal management service interface to obtain the server information of each preset bare metal server.

[0027] A storage medium stores an instruction set, wherein the instruction set, when executed by a processor, implements the bare metal server monitoring method as described above.

[0028] An electronic device, comprising:

[0029] A memory for storing at least one set of instructions;

[0030] The processor is used to execute the instruction set stored in the memory, and implement the bare metal server monitoring method as described above by executing the instruction set.

[0031] Compared with the prior art, this application has the following advantages:

[0032] The present application provides a bare metal server monitoring method and device, storage medium and electronic device, by obtaining the server information of the bare metal server, and sending the private network ID in the server information to the uplink switch to which the bare metal belongs, obtaining the query result of the uplink switch based on the private network ID to query its own address resolution table, if the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the server information, then the status counter of the bare metal server is counted and added by one, and when the current count result of the status counter is not less than the preset threshold, the alarm information of the bare metal server is generated and reported. It can be seen that the present application scheme realizes the monitoring of the bare metal server without installing a local monitoring agent or a remote monitoring agent, and solves the problem of occupying the resources of the bare metal server and causing the operation end to be unable to monitor and report the monitoring indicators of the bare metal server in the running state in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0034] Figure 1 A method flow chart of a bare metal server monitoring method provided in this application;

[0035] Figure 2 Another method flow chart of a bare metal server monitoring method provided by the present application;

[0036] Figure 3 A schematic diagram of the structure of a bare metal server monitoring system provided for this application;

[0037] Figure 4A schematic diagram of the structure of a bare metal server monitoring device provided in this application;

[0038] Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0041] It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0042] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0043] The present application can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, etc.

[0044] For ease of understanding, the relevant terms mentioned in this application are explained here as follows:

[0045] Bare Metal Server (BMS): A physical server on the cloud that can be seamlessly integrated with existing cloud computing, network and other services to meet the business's extreme requirements for computing performance, provide high-performance, stable physical computing resources, and can be used in conjunction with cloud products such as cloud servers (CVM) and private networks (VPC). It integrates the stability of traditional hosting hosts and the high elasticity of cloud resources.

[0046] Standard bare metal: The bare metal server model is a combination of different configurations of bare metal server CPU, memory, hard disk, etc. Standard bare metal is a standardized model package.

[0047] ARP: Address Resolution Protocol, a TCP / IP protocol that obtains the physical MAC address based on the IP address.

[0048] Overlay IP: In the field of network technology, overlay refers to the virtualization technology superimposed on the network architecture. Overlay IP is a virtual network IP built on top of existing network technology.

[0049] The present application embodiment provides a bare metal server monitoring method. The flowchart of the bare metal server monitoring method is as follows: Figure 1 As shown, specifically including:

[0050] S101. Obtain server information of each preset bare metal server according to a preset time period.

[0051] In this embodiment, service information of each preset bare metal server is obtained according to a preset time period, wherein the preset bare metal server is a bare metal server that has been delivered to a tenant, that is, a bare metal server under a local domain.

[0052] Preferably, the time period is 180 seconds. It should be noted that the time period can be adjusted according to demand.

[0053] The server information of the bare metal server includes the management IP and aggregation port of the upstream switch to which the bare metal server belongs, the private network ID of the private network (VPC) to which the bare metal server belongs, and the virtual network IP of the virtual network to which it belongs. The virtual network IP can be represented by the overlay IP.

[0054] The server information of the bare metal server also includes the server identifier of the bare metal server, where the server identifier can be represented by an SN number. It should be noted that the server identifier is used to uniquely identify the bare metal server, and different bare metal servers have different SN numbers.

[0055] Exemplarily, the server information of the bare metal server includes the information shown in Table 1:

[0056] BMS-SN SLA-IP PORT VPCID BMS-IP BMS-SN001 10.1.0.1 12 65562 192.168.2.8 BMS-SN002 10.1.0.1 5 65562 192.168.2.10 BMS-SN003 10.1.0.1 20 65563 172.0.0.11 BMS-SN004 10.1.0.1 22 65563 172.0.0.15 BMS-SN005 10.1.0.2 6 65562 192.168.2.11

[0057] Table 1

[0058] As shown in Table 1, BMS-SN is the SN number of the bare metal server, SLA-IP is the management IP of the upstream switch to which the bare metal server belongs, PORT is the aggregation port of the upstream switch to which the bare metal server belongs, VPCID is the private network ID of the private network to which the bare metal server belongs, and BMS-IP is the bare metal overlay IP, that is, the virtual network IP.

[0059] In this embodiment, the process of obtaining the preset server information of each bare metal server specifically includes: calling the bare metal management and control service interface to obtain the preset server information of each bare metal server.

[0060] In this embodiment, the server information of each preset bare metal server is obtained by calling the bare metal management and control service interface.

[0061] S102: For each bare metal server, the private network ID in the target server information is sent to the uplink switch corresponding to the management IP in the target server information.

[0062] In this embodiment, for each bare metal server, the private network ID in the target server information, that is, the VPCID, is sent to the upstream switch corresponding to the management IP in the target server information to request to query the address resolution information corresponding to the VPCID in the address resolution table in the upstream switch.

[0063] For each bare metal server, the target server information is the server information of the bare metal server.

[0064] See also Figure 2 The process of sending the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information specifically includes the following steps:

[0065] S201. Generate a query instruction based on the private network ID in the target server information.

[0066] In this embodiment, a query instruction is generated based on the private network ID in the target server information, that is, based on the VPCID in the server information of the bare metal server. Specifically, a query instruction is generated based on the VPCID in the server information of the bare metal server through a preset query instruction template, wherein the query instruction template is a manually set template and can be adjusted according to needs.

[0067] For example, if the VPCID is 65562, the query instruction generated is: display arp vpn-instancevpc-65562; if the VPCID is 65563, the query instruction generated is: display arp vpn-instance vpc-65563.

[0068] S202: Send the query instruction to the uplink switch corresponding to the management IP in the target server information.

[0069] In this embodiment, the query instruction is sent to the upstream switch corresponding to the management IP in the target server information. That is to say, based on the management IP in the target server information, the upstream switch to which the bare metal server belongs is located, and the query instruction is sent to the upstream switch to which the bare metal server belongs.

[0070] S103: For each bare metal server, obtain the query result of the upstream switch based on the private network ID to query its own address resolution table.

[0071] In this embodiment, after receiving the query instruction, the uplink switch corresponding to the management IP in the target server information, that is, the uplink switch to which the bare metal server belongs, queries its own address resolution table based on the VPCID in the query instruction and feeds back the query result.

[0072] In this embodiment, for each bare metal server, a query result of querying its own address resolution table based on the private network ID fed back by the upstream switch is obtained.

[0073] It should be noted that if the address resolution information corresponding to the VPCID exists in the address resolution table, the query result fed back by the upstream switch includes the address resolution information; if the address resolution information corresponding to the VPCID does not exist in the address resolution table, the query result fed back by the upstream switch does not include the address resolution information.

[0074] The address resolution information at least includes the aggregation port and the virtual network IP. Optionally, the address resolution result information also includes a MAC address (Mac Address) and a virtual local area network name or a switch interface name (VLAN / VSIname).

[0075] For example, taking the management IP as 10.1.0.1, vpc-65562 as an example, the query results are shown in Table 2:

[0076] IP Address Mac Address VLAN / VSI name Interface 192.168.2.8 48af-32d3-1002 Subnet-105 BAGG12 192.168.2.180 48af-32d3-1018 Subnet-105 BAGG5

[0077] Table 2

[0078] For example, taking the management IP as 10.1.0.2, vpc-65562 as an example, the query results are shown in Table 3:

[0079] IP Address Mac Address VLAN / VSI name Interface 192.168.2.11 48af-32d3-10a2 Subnet-105 BAGG6 192.168.2.18 48af-32d3-10a2 Subnet-105 BAGG6

[0080] Table 3

[0081] The IP Address in Table 2 and Table 3 is the virtual network IP, and the Interface is the aggregated port.

[0082] S104. For each bare metal server, determine whether the query result includes address resolution information corresponding to the private network ID. If not, execute S105. If so, execute S106.

[0083] In this embodiment, for each bare metal server, it is determined whether the query result fed back by the upstream switch to which the bare metal server belongs includes the address resolution information corresponding to the private network ID, that is, it is determined whether the query result includes the address resolution information.

[0084] S105. For each bare metal server, increment the status counter of the bare metal server by one, and execute S109.

[0085] In this embodiment, for each bare metal server, if the query result does not include the address resolution information corresponding to the private network ID, it means that the bare metal server may be in a fault state, and the state counter of the bare metal server is counted and increased by one.

[0086] In this embodiment, for each bare metal server, if the query result includes address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the target server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, it means that the bare metal server may currently be in a fault state, and the status counter of the bare metal server is counted and increased by one.

[0087] Exemplarily, the state counter of the bare metal server is counted plus one, which can be expressed as state[BMS-SN]=state[BMS-SN]+1.

[0088] S106. For each bare metal server, determine whether the aggregation port in the address resolution information is consistent with the aggregation port in the target server information. If not, execute S105. If so, execute S107.

[0089] In this embodiment, for each bare metal server, if the query result includes address resolution information corresponding to the private network ID, it is further determined whether the aggregation port in the address resolution information is consistent with the aggregation port in the target server information, where the target server information is the server information of the bare metal server.

[0090] In this embodiment, if the aggregate port in the address resolution information is inconsistent with the aggregate port in the target server information, step S105 is executed; if the aggregate port in the address resolution information is consistent with the aggregate port in the target server information, step S107 is executed.

[0091] S107. For each bare metal server, determine whether the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information. If not, execute S105. If so, execute S108.

[0092] In this embodiment, for each bare metal server, if the query result includes the address resolution information corresponding to the private network ID, and the aggregation port in the address resolution information is consistent with the aggregation port in the target server information, it is further determined whether the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information. The target server information is the server information of the bare metal server.

[0093] In this embodiment, if the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, step S105 is executed; if the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information, step S108 is executed.

[0094] S108. For each bare metal server, set a status counter of the bare metal server to zero.

[0095] In this embodiment, for each bare metal server, if the query result includes address resolution information corresponding to the private network ID, and the aggregation port in the address resolution information is consistent with the aggregation port in the target server information, and the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information, then it means that the bare metal server is running normally, that is, the bare metal server has not failed, and the status counter of the bare metal server is set to zero.

[0096] Exemplarily, setting the state counter of the bare metal server to a zero value may be represented as state[BMS-SN]=0.

[0097] S109: For each bare metal server, determine whether the current count result of the status counter is less than a preset threshold. If so, terminate directly; if not, execute S110.

[0098] In this embodiment, for each bare metal server, it is determined whether the current count result of the status counter is less than a preset threshold.

[0099] Preferably, the preset threshold is 3, and the preset threshold can be adjusted according to demand.

[0100] In this embodiment, if the current count result of the status counter is less than the preset threshold, the process ends directly; if the current count result of the status counter is not less than the preset threshold, it indicates that the bare metal server fails, and step S110 is executed.

[0101] S110. Generate alarm information of each bare metal server.

[0102] In this embodiment, for each bare metal server, if the current count result of the status counter is not less than a preset threshold, it means that the bare metal server has failed, and alarm information of the bare metal server is generated. Specifically, the alarm information of the bare metal server is generated based on the server identifier of the bare metal server. That is to say, the generated alarm information of the bare metal server carries the server identifier, so that maintenance personnel can quickly locate the failed bare metal server, thereby improving maintenance efficiency.

[0103] It should be noted that this embodiment determines whether the current count result of the status counter is less than the preset threshold. Only when the current count result is not less than the preset threshold, an alarm information for the bare metal server is generated to avoid false alarms caused by scenarios such as bare metal server restart.

[0104] S111. Report each alarm information to the public cloud.

[0105] In this embodiment, based on each alarm information, each alarm information is reported to the public cloud. Specifically, each alarm information is reported to the public cloud through the public cloud basic alarm service.

[0106] The bare metal server monitoring method provided in the embodiment of the present application obtains the server information of the bare metal server, and sends the private network ID in the server information to the uplink switch to which the bare metal belongs, obtains the query result of the uplink switch based on the private network ID to query its own address resolution table, if the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the server information, then the state counter of the bare metal server is counted and added by one, and when the current count result of the state counter is not less than the preset threshold, the alarm information of the bare metal server is generated and reported. It can be seen that the present application scheme realizes the monitoring of the bare metal server without installing a local monitoring agent or a remote monitoring agent, solves the problem of occupying the resources of the bare metal server and causing the operation end to be unable to monitor and report the monitoring indicators of the bare metal server in the running state in the prior art, and at the same time greatly shortens the fault location time in the service failure scenario, and greatly improves the operation and maintenance efficiency.

[0107] See also Figure 3 The embodiment of the present application also provides a bare metal server monitoring system, which specifically includes:

[0108] Bare metal management and control service, public cloud basic alarm service, bare metal service monitoring device and uplink switch.

[0109] Among them, the bare metal management and control service is used to obtain the basic physical information (that is, the server information mentioned above) of the tenant's bare metal equipment (that is, bare metal server).

[0110] Public cloud basic alarm service, used to report alarm information of bare metal servers.

[0111] The upstream switch is used to obtain network layer related information (that is, the address resolution information mentioned above) of the running bare metal server (ie, BMS server).

[0112] The bare metal service monitoring device includes a bare metal monitoring information collection module and a bare metal service status analysis and detection module;

[0113] Bare metal monitoring information collection module, used to collect basic physical information of bare metal devices and network layer related information of running status;

[0114] The bare metal server status analysis and detection module is used to analyze the operating status of the bare metal device according to the set algorithm and report alarm information.

[0115] It should be noted that although the operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.

[0116] It should be understood that the various steps described in the method embodiments disclosed in the present application can be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0117] and Figure 1 Corresponding to the method described above, the embodiment of the present application also provides a bare metal server monitoring device for monitoring Figure 1 The specific implementation of the method is shown in the following diagram: Figure 4 As shown, specifically including:

[0118] The acquisition unit 401 is used to acquire the preset server information of each bare metal server according to a preset time period; including the management IP and aggregation port of the upstream switch to which the bare metal server belongs, the private network ID of the private network to which the bare metal server belongs, and the virtual network IP of the virtual network to which it belongs;

[0119] A sending unit 402 is used to send the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information for each bare metal server, and obtain the query result of the uplink switch based on the private network ID to query its own address resolution table. If the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the target server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, then the state counter of the bare metal server is counted and incremented by one, and when the current count result of the state counter is not less than a preset threshold, an alarm information of the bare metal server is generated; wherein, the target server information is the server information of the bare metal server;

[0120] The reporting unit 403 is used to report each alarm information to the public cloud.

[0121] The bare metal server monitoring device provided in the embodiment of the present application realizes the monitoring of the bare metal server without installing a local monitoring agent or a remote monitoring agent, thereby solving the problems existing in the prior art of occupying the resources of the bare metal server and causing the operation end to be unable to monitor and report the monitoring indicators of the bare metal server in the running state. At the same time, it greatly shortens the fault location time in the service failure scenario and greatly improves the operation and maintenance efficiency.

[0122] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0123] A setting unit is used to set the status counter of the bare metal server to zero if the query result includes address resolution information corresponding to the private network ID, and the aggregation port in the address resolution information is consistent with the aggregation port in the target server information, and the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information.

[0124] In one embodiment of the present application, based on the above solution, the acquisition unit 401 is specifically configured to:

[0125] Call the bare metal management service interface to obtain the server information of each preset bare metal server.

[0126] In one embodiment of the present application, based on the above solution, when the sending unit 402 sends the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information, it is specifically used to:

[0127] Generate a query instruction based on the private network ID in the target server information;

[0128] The query instruction is sent to the uplink switch corresponding to the management IP in the target server information.

[0129] In one embodiment of the present application, based on the above solution, the server information of the bare metal server also includes the server identifier of the bare metal server. When the sending unit 402 generates the alarm information of the bare metal server, it is specifically used to:

[0130] Based on the server identifier of the bare metal server, alarm information of the bare metal server is generated.

[0131] An embodiment of the present application further provides a storage medium storing an instruction set, wherein when the instruction set is executed, the bare metal server monitoring method disclosed in any of the above embodiments is executed.

[0132] The present application also provides an electronic device, whose structural diagram is as follows: Figure 5As shown, it specifically includes a memory 501 for storing at least one set of instruction sets; a processor 502 for executing the instruction set stored in the memory, and implementing the bare metal server monitoring method disclosed in any of the above embodiments by executing the instruction set.

[0133] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0134] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope disclosed in the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0135] The above description is only a preferred embodiment disclosed in this application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the disclosure of this application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the disclosure of this application (but not limited to) to form a technical solution.

Claims

1. A bare metal server monitoring method, characterized in that: include: Obtain server information of each preset bare metal server according to a preset time period; Including the management IP and aggregation port of the upstream switch to which the bare metal server belongs, the private network ID of the private network to which the bare metal server belongs, and the virtual network IP of the virtual network to which it belongs; The obtaining of the preset server information of each bare metal server includes: calling a bare metal management and control service interface to obtain the preset server information of each bare metal server; For each bare metal server, the private network ID in the target server information is sent to the upstream switch corresponding to the management IP in the target server information, and the query result of the upstream switch based on the private network ID querying its own address resolution table is obtained. If the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the target server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, then the state counter of the bare metal server is counted and incremented by one, and when the current count result of the state counter is not less than a preset threshold, an alarm information of the bare metal server is generated; wherein, the target server information is the server information of the bare metal server; Report each alarm information to the public cloud; If the query result includes address resolution information corresponding to the private network ID, and the aggregate port in the address resolution information is consistent with the aggregate port in the target server information, and the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information, the status counter of the bare metal server is set to zero.

2. The method according to claim 1, characterized in that: The step of sending the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information includes: Generate a query instruction based on the private network ID in the target server information; The query instruction is sent to the uplink switch corresponding to the management IP in the target server information.

3. The method according to claim 1, characterized in that The server information of the bare metal server also includes a server identifier of the bare metal server, and the generating of the alarm information of the bare metal server includes: Based on the server identifier of the bare metal server, alarm information of the bare metal server is generated.

4. A bare metal server monitoring device, characterized in that: include: An acquisition unit, used to acquire server information of each preset bare metal server according to a preset time period; Including the management IP and aggregation port of the upstream switch to which the bare metal server belongs, the private network ID of the private network to which the bare metal server belongs, and the virtual network IP of the virtual network to which it belongs; The acquisition unit is specifically used to: call the bare metal management and control service interface to obtain the server information of each preset bare metal server; A sending unit is used to send the private network ID in the target server information to the uplink switch corresponding to the management IP in the target server information for each bare metal server, and obtain the query result of the uplink switch based on the private network ID to query its own address resolution table. If the query result does not include the address resolution information corresponding to the private network ID, or the query result includes the address resolution information corresponding to the private network ID, but the aggregation port in the address resolution information is inconsistent with the aggregation port in the target server information, or the virtual network IP in the address resolution information is inconsistent with the virtual network IP in the target server information, then the state counter of the bare metal server is counted and incremented by one, and when the current count result of the state counter is not less than a preset threshold, an alarm information of the bare metal server is generated; wherein, the target server information is the server information of the bare metal server; Reporting unit, used to report various alarm information to the public cloud; A setting unit is used to set the status counter of the bare metal server to zero if the query result includes address resolution information corresponding to the private network ID, and the aggregation port in the address resolution information is consistent with the aggregation port in the target server information, and the virtual network IP in the address resolution information is consistent with the virtual network IP in the target server information.

5. A storage medium, characterized in that: The storage medium stores an instruction set, wherein the instruction set, when executed by the processor, implements the bare metal server monitoring method according to any one of claims 1 to 3.

6. An electronic device, characterized in that: include: A memory for storing at least one set of instructions; A processor is used to execute an instruction set stored in the memory, and implement the bare metal server monitoring method as described in any one of claims 1 to 3 by executing the instruction set.

Citation Information

Patent Citations

  • Network communication method and device based on cloud server and electronic device

    CN112104490A

  • Virtual network configuration method and system of bare metal server and intelligent network card

    CN114070723A

  • Communication system, virtual machine server, virtual network management apparatus, network control method, and program

    US20150263954A1

  • Server hardware state monitoring method and apparatus, electronic device, and medium

    WO2022134352A1