Server monitoring management method, system and device and storage medium

By using spatial layout views in the lab to monitor and manage servers in real time, the problems of confusing server locations and inconvenience are solved, improving management efficiency and reducing error rates.

CN119576671APending Publication Date: 2025-03-07INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411755637.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-30
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When managing multiple servers in the laboratory, it is easy to have problems such as location chaos, removal and inconvenient management, resulting in staff errors and inefficient management.

Method used

Real-time monitoring and management of the server is achieved by determining the test bench to which it is connected when the server is powered on, and displaying the server parameter information of each test bench in the spatial layout view. The system includes a power-on detection module, a verification module, an update module, a new module and a delete module to ensure the accuracy and consistency of server parameter information.

Benefits of technology

It effectively avoids the problems of server location and inconvenient management, improves the monitoring and management efficiency of servers in the laboratory, and reduces the error rate of staff.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576671A_ABST
    Figure CN119576671A_ABST
Patent Text Reader

Abstract

The invention discloses a server monitoring management method, system and device and a storage medium, and is applied to the technical field of servers, and the method comprises the steps: determining a test bed connected with a server when the server is detected to be powered on; parameter information of the server is collected, and whether the parameter information of the server is shown in the current spatial layout view or not is judged; if yes, parameter information of the server in the spatial layout view is updated; otherwise, newly adding parameter information of the server; and when it is detected that any server is powered off, deleting parameter information of the powered-off server in the spatial layout view after a first duration. By applying the scheme of the invention, through the spatial layout view, the test bed connected with each server and the physical position of the test bed in the space can be intuitively determined, the number condition of the servers connected with each test bed can be determined, and monitoring and management of the servers by workers are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a monitoring and management method, system, equipment and storage medium for a server. Background Art

[0002] In recent years, servers have been applied to various fields such as finance and the Internet. The industry's requirements for servers are getting higher and higher, and the server testing items and sample sizes are becoming larger and larger. Currently, it is usually necessary to test the servers before leaving the factory in the laboratory and monitor the test status of all servers.

[0003] When testing the server, the test management system can be used to effectively manage the test cases of each server in the laboratory and obtain the execution results. However, the work of moving the server after the test is completed, moving the location of the server, and placing the new server in the test bench to start the test, etc., all need to be done manually by the laboratory staff. The staff needs to remember the location of each server in the laboratory and move the server after the test in time. Due to the large number of test benches in the laboratory and the large number of servers to be tested, even if different staff members are usually responsible for the management of servers on the test benches in different areas of the laboratory, there will still be management chaos. For example, if the staff can't remember which test bench the server that needs to be moved after the test is completed is placed on, they need to check each test bench one by one. For another example, if a new server needs to be placed in the test bench, and most of the test benches are currently occupied, the staff needs to walk around to check to determine which test benches can still be placed in the server for testing, and after placing the server in the test bench, the staff also needs to remember the location to avoid forgetting and looking for it later.

[0004] In summary, how to effectively monitor and manage servers so that staff are less likely to make mistakes and improve the convenience of management is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a server monitoring and management method, system, device and storage medium to effectively monitor and manage the server, which is less prone to errors and improves the convenience of management.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a monitoring and management method for a server, comprising:

[0008] When detecting that the server is powered on, determining the test bed to which the server is connected;

[0009] Collecting parameter information of the server, and judging, based on the parameter information, whether the parameter information of the server has been displayed in the current spatial layout view;

[0010] Wherein, in the spatial layout view, all test benches are shown according to their physical positions in the space, and for each test bench, respective parameter information of all servers currently connected to the test bench is shown in an area not exceeding the first distance of the test bench;

[0011] If yes, updating the parameter information of the server in the spatial layout view based on the collected parameter information;

[0012] If not, then adding parameter information of the server in the corresponding position of the spatial layout view;

[0013] When it is detected that any server is powered off, after a first period of time, the parameter information of the powered-off server in the spatial layout view is deleted.

[0014] On the other hand, collecting parameter information of the server and judging, based on the parameter information, whether the parameter information of the server has been displayed in the current spatial layout view includes:

[0015] Collecting parameter information of the server, and using the Internet Protocol address in the collected parameter information as the Internet Protocol address to be compared, and using the identifier in the collected parameter information as the identifier to be compared; wherein the identifiers of different servers are different from each other;

[0016] Determine whether there is an Internet Protocol address that is the same as the Internet Protocol address to be compared in the parameter information of each server shown in the spatial layout view;

[0017] If there is an Internet Protocol address that is the same as the Internet Protocol address to be compared, determining that parameter information of the server has been shown in the current spatial layout view;

[0018] If there is no Internet Protocol address identical to the Internet Protocol address to be compared, determining whether there is an identifier identical to the identifier to be compared in the parameter information of each server shown in the spatial layout view;

[0019] If there is an identifier that is the same as the identifier to be compared, determining that the parameter information of the server has been displayed in the current spatial layout view;

[0020] If there is no identifier identical to the identifier to be compared, it is determined that the parameter information of the server is not shown in the current spatial layout view.

[0021] On the other hand, for each server in the spatial layout view, a corresponding virtual button is set for the server in the spatial layout view to display parameter information of the server in the virtual button; the server monitoring and management method also includes:

[0022] When a click operation of the input device on any virtual key is detected, a baseboard management controller login interface of the server corresponding to the virtual key is automatically popped up.

[0023] On the other hand, it also includes:

[0024] For each server in the spatial layout view, obtaining the power on / off status of the server through the Internet Protocol address in the parameter information of the server;

[0025] Displaying the power on / off status of each server in the spatial layout view;

[0026] The server power on and off states are divided into power on state, power off state, and power off state.

[0027] On the other hand, it also includes:

[0028] For each server in the spatial layout view, obtaining a load status of the server through an Internet Protocol address in the parameter information of the server;

[0029] Displaying the load status of each server in the spatial layout view;

[0030] The load state of the server is divided into a no-load state, a first load state to an Nth load state; N is a preset positive integer.

[0031] On the other hand, it also includes:

[0032] For any server in the spatial layout view, determine through the test management system whether the server is currently executing a test case;

[0033] If yes, determine whether the test case currently executed by the server is a long-term stress test;

[0034] If it is a long-term stress test, then at every second time period, the baseboard management controller log newly added in the most recent second time period is collected through the baseboard management controller of the server;

[0035] For each collected BMC log, obtaining abnormal logs in the BMC log by keyword matching based on a preset blacklist;

[0036] Match the obtained abnormal logs with the whitelist one by one, and filter each abnormal log that successfully matches;

[0037] The abnormal log obtained after filtering is stored in the first storage area, and the preset long-term stress test abnormal response operation is performed;

[0038] If it is not a long-term stress test, obtain the maximum execution time set for the test case;

[0039] If the test case is not executed to completion within the maximum execution time, or the test case is executed to completion within the maximum execution time and the test result is not a successful test, the baseboard management controller log newly added during the execution of the test case is collected and analyzed by the baseboard management controller of the server, and preset processing operations are performed based on the analysis results.

[0040] On the other hand, the preset long-term stress test exception response operations are executed, including:

[0041] Determine whether the abnormal logs in the first storage area are abnormal logs of a preset first type;

[0042] If yes, the alarm information is displayed in a preset display page, and an alarm is sent to the designated terminal device;

[0043] If not, an alarm prompt message is displayed in a preset display page.

[0044] In a second aspect, the present invention provides a monitoring and management system for a server, comprising:

[0045] A server power-on detection module, used to determine the test bench to which the server is connected when detecting that the server is powered on;

[0046] A checking module, used for collecting parameter information of the server, and judging whether the parameter information of the server has been shown in the current spatial layout view based on the parameter information; if so, triggering an updating module, otherwise triggering a adding module;

[0047] Wherein, in the spatial layout view, all test benches are shown according to their physical positions in the space, and for each test bench, respective parameter information of all servers currently connected to the test bench is shown in an area not exceeding the first distance of the test bench;

[0048] The updating module is used to update the parameter information of the server in the spatial layout view based on the collected parameter information;

[0049] The adding module is used to add parameter information of the server at a corresponding position of the space layout view;

[0050] The deleting module is used to delete the parameter information of the powered-off server in the spatial layout view after a first period of time when it is detected that any server is powered-off.

[0051] In a third aspect, the present invention provides a monitoring and management device for a server, comprising:

[0052] Memory for storing computer programs;

[0053] The processor is used to execute the computer program to implement the steps of the server monitoring and management method as described above.

[0054] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the server monitoring and management method as described above are implemented.

[0055] Applying the technical solution provided by the embodiment of the present invention, it is considered that the spatial layout view can be used to display each server in the current space. Specifically, the position of the server in the space depends on the test bench to which the server is connected. Therefore, when it is detected that the server is powered on, it is necessary to determine the test bench to which the server is connected, and in the spatial layout view, all the test benches will be shown according to the physical position of each test bench in the space. Considering that some servers are powered on for the first time, that is, the parameter information of the server is not shown in the current spatial layout view, the parameter information of the server can be added to the corresponding position of the spatial layout view, and the corresponding position refers to the position near the test bench to which the server is connected in the spatial layout view, because in the spatial layout view, for each test bench, it is required to show the respective parameter information of all servers currently connected to the test bench in an area that does not exceed the first distance of the test bench. In other words, the parameter information of the server displayed in the spatial layout view will be placed near the corresponding test bench for easy viewing by the staff. If based on the server's parameter information, it is determined that the server's parameter information has been displayed in the current spatial layout view, it means that the server has been powered on before and its parameter information has not been deleted from the spatial layout view. At this time, in order to avoid errors and ensure that the parameter information of the same server is not displayed in multiple places in the spatial layout view, it is necessary to delete the original parameter information of the server in the spatial layout view, and based on the currently collected parameter information of the server, add the parameter information of the server in the spatial layout view, that is, to update the parameter information of the server in the spatial layout view. When it is detected that any server is powered off, the parameter information of the powered-off server in the spatial layout view can be deleted after the first period of time.

[0056] It can be seen that through the spatial layout view of this implementation method, the test bench to which each server is connected and the physical location of the test bench in the space can be intuitively determined, and the number of servers connected to each test bench can also be intuitively determined. Therefore, when monitoring and managing each server in the laboratory based on the solution of this application, it is less likely for staff to make mistakes, thereby improving the convenience of management. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A flowchart of a server monitoring and management method provided by a specific embodiment of the present invention;

[0059] Figure 2 A schematic diagram of the structure of a monitoring and management system for a server provided in a specific embodiment of the present invention;

[0060] Figure 3 A schematic diagram of the structure of a monitoring and management device for a server provided in a specific embodiment of the present invention;

[0061] Figure 4 The present invention is a schematic diagram of the structure of a computer-readable storage medium. DETAILED DESCRIPTION

[0062] The core of the present invention is to provide a server monitoring and management method, system, device and storage medium. Through the spatial layout view, the test bench to which each server is connected and the physical location of the test bench in the space can be intuitively determined. The number of servers connected to each test bench can also be intuitively determined. Therefore, when monitoring and managing each server in the laboratory based on the application scheme, it is not easy for staff to make mistakes, which improves the convenience of management.

[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0064] Please refer to Figure 1 , Figure 1 The present invention is a flowchart of a server monitoring and management method provided in a specific embodiment of the present invention. The server monitoring and management method may include the following steps:

[0065] Step S101: when it is detected that the server is powered on, the test bench to which the server is connected is determined.

[0066] A large number of test benches are usually arranged in the laboratory, and several servers can be placed on each test bench. For example, in one scenario, a single test bench is allowed to place up to 8 servers. When a server is placed on a test bench and the relevant interfaces are connected, it can be detected, which means that the server is connected to the test bench. There can be many specific detection methods. When the server is powered on effectively, the test bench to which the server is connected can be determined. For example, sensors can be set in each power interface of each test bench. For example, when the third power interface of test bench No. 5 is connected to a load, it can be detected by the sensor in the third power interface through voltage detection, current detection, etc., and then the monitoring and management system is notified, so that the monitoring and management system knows that there is currently a server powered on on test bench No. 5, that is, the test bench to which this server is connected is test bench No. 5.

[0067] It should also be noted that when the server is connected to the test bench, in addition to connecting the power supply to the server, it is also necessary to connect the network cable and other lines so that the server can complete the test of each test case and can communicate directly or indirectly with the monitoring management system. The monitoring management system of the present application can communicate with each BMC (Board Management Controller) of the server. The monitoring management system of the present application can usually be implemented by a dedicated device, such as a dedicated host, and the specific content of the spatial layout view displayed in the display device can also be controlled in real time by the monitoring management system.

[0068] Step S102: Collect parameter information of the server, and based on the parameter information, determine whether the parameter information of the server has been displayed in the current space layout view. If yes, execute step S103, if not, execute step S104.

[0069] In the spatial layout view, all test benches are shown according to their physical locations in the space, and for each test bench, parameter information of all servers currently connected to the test bench is shown in an area that does not exceed the first distance of the test bench. The space described in the present application may be a room such as a laboratory for placing servers.

[0070] The space layout view, that is, the panoramic view of the room server, can be displayed on the display device under the control of the monitoring management system. The staff can also operate the mouse / keyboard to zoom in / out the space layout view, for example, operate the mouse to zoom in on a part of the space layout view, which is convenient for the staff to view.

[0071] Judging whether the server parameter information has been displayed in the current spatial layout view is to effectively distinguish the servers. That is to say, for a single server, the parameter information of the server will only be displayed in a single location in the spatial layout view, and will not be displayed in multiple locations. This avoids repeated display of the parameter information of the same server, facilitates the understanding of the staff, and is also conducive to ensuring the one-to-one correspondence between the parameter information of the server in the spatial layout view and the corresponding server.

[0072] For example, server A is a server that is placed in the laboratory for the first time, and it is determined that the test bench to which server A is connected is test bench No. 5. Then, through communication with the BMC of server A, parameter information of server A collected by the BMC can be obtained. The specific content included in the parameter information can be set according to actual needs. For example, in a specific scenario, the parameter information may include server model, SN code, BMC IP address, server status, etc.

[0073] After obtaining the parameter information of server A, it is necessary to determine whether server A already exists in the current spatial layout view based on the parameter information of server A. It is understandable that in this example, since server A is a server that is placed in the laboratory for the first time, the parameter information of server A does not exist in the current spatial layout view, which can trigger the operation of step S104.

[0074] For example, server B has been started and run on test bench No. 8 for a period of time, and the parameter information of server B is already in the spatial layout view. Subsequently, server B is briefly powered off and then powered on again. At this time, it will be determined that server B already exists in the current spatial layout view, and the operation of step S103 can be triggered.

[0075] Step S103: based on the collected parameter information, update the parameter information of the server in the space layout view.

[0076] In the spatial layout view, for each test bench, the parameter information of all servers currently connected to the test bench is displayed in an area that does not exceed the first distance of the test bench. In other words, in the spatial layout view, the parameter information of all servers currently connected to each test bench will be displayed near the test bench, so that the staff can easily and intuitively determine the current server connection status of each test bench in the laboratory.

[0077] In practical applications, considering that a single test bench can be connected to multiple servers at the same time, and in order to ensure that the parameter information of multiple servers connected to the test bench is displayed near the test bench, a display list area for the test bench can usually be set up in advance next to each test bench. The parameter information of one server connected to the test bench can occupy one line in the display list area for display, so that each server connected to the test bench is located next to the test bench in the spatial layout view, that is, it will not exceed the first distance of the test bench, and it is also convenient for the staff to search and check.

[0078] In the above example, server B was started on test bench No. 8 and ran for a period of time, so a row of parameter information of server B can be seen next to test bench No. 8 in the spatial layout view. Subsequently, server B is briefly powered off and then powered on again, and it is determined that server B already exists in the current spatial layout view, so the operation of step S103 is performed. At this time, the parameter information of server B originally in the spatial layout view can be updated based on the currently collected parameter information of server B.

[0079] In addition, it should be noted that in most cases, when the operation of step S103 is triggered, the test bench to which the server is connected does not change, but in a few cases, when the operation of step S103 is triggered, the test bench to which the server is connected changes. Still taking the above-mentioned server B as an example, for example, server B was originally powered on and started on test bench No. 8 and ran for a period of time, and then the staff powered it off and moved it to test bench No. 10 to power it on. Then, when step S103 is triggered at this time, it is necessary not only to update the content of the original parameter information of server B in the spatial layout view based on the latest parameter information of server B, but also to adjust the display position of the parameter information of server B. In this example, the display position of the parameter information of server B is moved from the side of test bench No. 8 to the side of test bench No. 10, because as mentioned above, the present application scheme requires that in the spatial layout view, for each test bench, the respective parameter information of all servers currently connected to the test bench is displayed in an area that does not exceed the first distance of the test bench.

[0080] That is to say, updating the parameter information of the server in the spatial layout view is equivalent to a deletion operation and a addition operation on the spatial layout view. In most cases, since the server location remains unchanged, the addition operation in the update operation does not change the display position of the server parameter information in the spatial layout view.

[0081] Step S104: Add parameter information of the server at the corresponding position of the space layout view.

[0082] In the example of server A above, since it is the first time that the server is placed in the laboratory and is connected to test bench No. 5, after the parameter information of server A is collected through the BMC, the parameter information of the server can be added at the corresponding position in the spatial layout view. In this example, a new line of display data is added near test bench No. 5 in the spatial layout view, and the data content is the parameter information of server A.

[0083] There are many specific implementation methods for collecting the parameter information of the server and judging whether the parameter information of the server has been displayed in the current spatial layout view based on the parameter information, as long as the server can be effectively distinguished. For example, in a specific implementation of the present invention, step S102 may specifically include:

[0084] Collecting parameter information of the server, and using the Internet Protocol address in the collected parameter information as the Internet Protocol address to be compared, and using the identifier in the collected parameter information as the identifier to be compared; wherein the identifiers of different servers are different from each other;

[0085] Determine whether there is an Internet Protocol address identical to the Internet Protocol address to be compared in the parameter information of each server shown in the spatial layout view;

[0086] If there is an Internet Protocol address that is the same as the Internet Protocol address to be compared, determining that parameter information of the server has been shown in the current spatial layout view;

[0087] If there is no Internet Protocol address identical to the Internet Protocol address to be compared, determining whether there is an identifier identical to the identifier to be compared in the parameter information of each server shown in the spatial layout view;

[0088] If there is an identifier that is the same as the identifier to be compared, determining that the parameter information of the server has been displayed in the current spatial layout view;

[0089] If there is no identifier identical to the identifier to be compared, it is determined that the parameter information of the server is not shown in the current spatial layout view.

[0090] This implementation method takes into account that when a server is powered off briefly and then powered on again, the IP address (Internet Protocol Address) in the parameter information of the server, that is, the BMC IP, usually does not change. Therefore, the BMC IP in the collected parameter information can be used as the Internet Protocol address to be compared. Then, the parameter information of each server shown in the spatial layout view can be traversed to determine whether there is an Internet Protocol address in the parameter information of a certain server that is the same as the Internet Protocol address to be compared. If there is a same, it means that the parameter information of the server still exists in the current spatial layout view, that is, the server exists in the current spatial layout view. In most cases, the server is powered off briefly, so the judgment of step S102 can be completed through the BMC IP. Generally, the comparison of BMCIP is more efficient.

[0091] Furthermore, this implementation takes into account that in a small number of cases, a new BMC IP may be assigned to the server when it is powered on again after being powered off for a long time. Therefore, in order to ensure the reliability of the execution of step S102, in this implementation, when it is determined through traversal that there is no Internet Protocol address that is identical to the Internet Protocol address to be compared, it is further determined whether there is an identifier that is identical to the identifier to be compared in the parameter information of each server shown in the spatial layout view.

[0092] The identifiers of different servers are different, that is, the identifier can be used to uniquely distinguish the servers. For example, the SN code can usually be used as the identifier required by the present application scheme. The SN codes of different servers are different, which can effectively distinguish different servers.

[0093] For example, if a server has been powered off for a long time, and the BMC IP assigned to it when it is powered on again is different from the previous one, the SN code in the collected parameter information is used as the identifier to be compared, and then the parameter information of each server shown in the spatial layout view can be traversed to determine whether the SN code in the parameter information of a server is the same as the identifier to be compared. If there is a same SN code, it means that this is the same server, that is, the parameter information of the server still exists in the current spatial layout view.

[0094] Step S105: when it is detected that any server is powered off, after a first period of time, the parameter information of the powered off server in the space layout view is deleted.

[0095] The value of the first duration can be set according to actual needs. If it is set to 0, it means that when any server is detected to be powered off, the parameter information of the powered-off server in the spatial layout view will be immediately deleted. Of course, in actual applications, in order to allow the parameter information of the server to continue to be displayed for a period of time after the server is powered off so that the staff can determine the location of the server, and in some cases, the server will be powered on again after being powered off, so in most cases, the first duration will be set to a value greater than 0, such as 12 hours, 1 day, etc.

[0096] It should be noted that there is a difference between power off and server shutdown. When the server is shut down, the BMC can still get power from the test bench, that is, the BMC will not shut down. Server power off means that the server is completely powered off, that is, the relevant power cord has been unplugged from the slot and is no longer connected to the test bench.

[0097] When it is detected that any server is powered off, the parameter information of the server will still be retained in the space layout view within the first period of time, and will be deleted after the first period of time.

[0098] In one embodiment of the present invention, for each server in the spatial layout view, a corresponding virtual button is set for the server in the spatial layout view to display parameter information of the server in the virtual button; the server monitoring and management method further includes:

[0099] When a click operation of the input device on any virtual key is detected, a baseboard management controller login interface of the server corresponding to the virtual key is automatically popped up.

[0100] As described above, the parameter information of a server is usually displayed as one line to facilitate viewing by staff. In this implementation, it is further configured as a virtual button, for example, a long virtual button, so that the virtual button has a certain length, thereby effectively displaying the parameter information of a server.

[0101] The virtual button set in this implementation mode allows the staff to click it, and the BMC IP of the server corresponding to the virtual button is pre-associated with the virtual button. When it is detected that the staff has clicked any virtual button through an input device such as a mouse, a new tab can be generated on the browser, and the BMC login interface of the corresponding server can be opened on the new tab, that is, the BMC login interface of the server corresponding to the virtual button is automatically popped up, so that the staff can continue to manage the server in more detail through the BMC login interface.

[0102] It can be seen that since the servers connected to all the test benches in the laboratory are displayed in the spatial layout view, the staff can directly open the BMC login interface of the server corresponding to the virtual button by simply clicking the corresponding virtual button in the spatial layout view, which is very convenient for the staff to manage the servers in the laboratory and realizes quick access.

[0103] In a specific embodiment of the present invention, it may also include:

[0104] For each server in the spatial layout view, obtain the server's power on / off status through the Internet Protocol address in the server's parameter information;

[0105] Display the power on / off status of each server in the space layout view;

[0106] The server power on and off states are divided into power on state, power off state, and power off state.

[0107] This implementation method takes into account that in addition to parameter information such as server model, SN code, BMC IP address, and server status, staff sometimes need to be able to intuitively and conveniently determine the power on / off status of the server. In this implementation method, for each server in the spatial layout view, the BMC of the server can be used through the BMC IP in the parameter information of the server to monitor the power on / off status of the server in real time or periodically, and then display it in the spatial layout view. The power-on state is the state in which the server is powered on and running normally, the power-off state is the state in which the server is turned off but not powered off, and the BMC is not closed at this time, and the power-off state is the state in which the server is completely powered off.

[0108] In actual applications, as described above, the parameter information of the server can be displayed as a virtual button in the spatial layout view, and in order to intuitively display the power on / off status, a virtual light for the power on / off status can be set next to the virtual button. For example, the virtual light is blue when the server is on, yellow when the server is off, and gray when the server is powered off. And as described above, after the first duration of power off of the server, the parameter information of the server in the spatial layout view will be deleted. Therefore, similarly, within the first duration of power off of the server, the virtual light is gray, and after the first duration of power off, the parameter information of the server and the virtual light used to reflect the power on / off status of the server will be deleted. Similarly, the virtual light used to reflect the load status in the later implementation method can also be deleted after the first duration of power off of the server.

[0109] In a specific embodiment of the present invention, it may also include: when it is detected that the power on / off state of any server is in the shutdown state, and the duration of the shutdown state reaches a preset prompt duration threshold, the display format used to display the power on / off state of the server in the spatial layout view is adjusted according to the specified rules. For example, in the above example, when the server is in the shutdown state, the corresponding virtual light in the spatial layout view is yellow, and when the duration of the shutdown state of the server reaches the preset prompt duration threshold, the virtual light can be controlled to be a bright red. For example, the virtual light can be controlled to be yellow and a flashing effect can be achieved by continuously displaying / deleting the virtual light. This implementation method takes into account that the servers in the laboratory need to execute test cases, and long-term shutdown is not normal. For example, it may be caused by the staff forgetting to power off and move the server that has completed the test. In addition, shutdown is different from power off. The parameter information and power on and off status of the server will still be displayed in the space layout view. Therefore, in order to remind the staff to pay attention to this situation, the display form of the power on and off status of the server in the space layout view can be adjusted. The specific adjustment form can be the flashing, highlighting, etc. as mentioned above, so that the staff can easily notice it after the display form is adjusted.

[0110] Furthermore, in a specific embodiment of the present invention, a retrieval function can be added, that is, when a retrieval condition is received, the parameter information of each server in the spatial layout view is traversed, and when it is determined that the parameter information of a certain server meets the retrieval condition, the retrieval result carrying the test bench number to which the server is connected is output, so as to facilitate the staff to quickly find the server.

[0111] In a specific embodiment of the present invention, it may also include:

[0112] For each server in the spatial layout view, obtain the load status of the server through the Internet Protocol address in the parameter information of the server;

[0113] Display the load status of each server in the space layout view;

[0114] The load state of the server is divided into a no-load state, a first load state to an Nth load state; N is a preset positive integer.

[0115] This implementation takes into account that in addition to the server parameter information and power on / off status, staff sometimes need to be able to intuitively and conveniently determine the server load status. In this implementation, for each server in the spatial layout view, the BMC IP in the server parameter information can be used to monitor the server load status in real time or periodically using the server's BMC, and then display it in the spatial layout view. In addition to the no-load state, it can be specifically divided into N different load levels from the 1st load state to the Nth load.

[0116] Similar to the power on and off status, in actual applications, in order to intuitively display the load status, a virtual light reflecting the load status can be set next to the virtual button. For example, when there is no load, the virtual light is almost transparent and not bright. When it is a light load in the first load state, the virtual light is green. When it is a moderate load in the second load state, the virtual light is blue. When it is a heavy load in the third load state, the virtual light is orange.

[0117] In a specific embodiment of the present invention, it may also include:

[0118] For any server in the spatial layout view, the test management system is used to determine whether the server is currently executing a test case.

[0119] If yes, determine whether the test case currently executed by the server is a long-term stress test;

[0120] If it is a long-term stress test, then every second period, the baseboard management controller logs newly added in the most recent second period are collected through the baseboard management controller of the server;

[0121] For each collected BMC log, based on a preset blacklist, abnormal logs in the BMC log are obtained by keyword matching;

[0122] Match the obtained abnormal logs with the whitelist one by one, and filter each abnormal log that successfully matches;

[0123] The abnormal log obtained after filtering is stored in the first storage area, and the preset long-term stress test abnormal response operation is performed;

[0124] If it is not a long-term stress test, get the maximum execution time set for the test case;

[0125] If the test case is not executed within the maximum execution time, or the test case is executed within the maximum execution time and the test result is not a successful test, the baseboard management controller logs newly added during the execution of the test case are collected and analyzed through the baseboard management controller of the server, and the preset processing operations are performed based on the analysis results.

[0126] This implementation method takes into account that servers in the laboratory usually need to execute various automated test cases or manual test cases, and the test management system effectively manages the test cases of each server and obtains the execution results. The test management system obtains the final execution results, but especially for long-term stress testing, the test process is long, for example, sometimes the test may take dozens of hours or even longer, and some abnormal situations will occur in the early stages of the test. It may take a long time for the test management system to determine that the test has failed.

[0127] In this regard, the present application scheme takes into account that the monitoring management system of the present application can be connected to the test management system, so that the current test case execution status of each server can be determined through the test management system. If a server is not currently executing a test case, no subsequent operation is required.

[0128] If the test case currently executed by a server is a long-term stress test, it is necessary to collect the newly added BMC logs in the most recent second period through the server's BMC every second period. The specific value of the second period can be set and adjusted as needed, but because it is for a long-term stress test, it is usually in hours, for example, it can be set to 1 hour, 2 hours, etc. Taking 2 hours as an example, the newly added BMC logs in the BMC are obtained from the BMC once every 2 hours.

[0129] Compared with the test conclusions obtained by the test management system, the BMC logs collected each time can reflect the execution status of the server's current long-term stress test in a more timely, accurate and detailed manner. Of course, after each collection of BMC logs, BMC log analysis is required.

[0130] In order to ensure the efficiency of analysis, this implementation adopts the keyword matching method for preliminary screening, that is, for each collected BMC log, based on the preset blacklist, the abnormal log in the BMC log is obtained by keyword matching. For example, if there is "vocabulary A" in the preset blacklist, then after each collection of BMC logs, it can be traversed one by one. Any BMC log carrying "vocabulary A" is in line with the preset blacklist, so the BMC log will be determined to be an abnormal log at this time.

[0131] Based on the preset blacklist, one or more abnormal logs can be obtained. Although the above-mentioned keyword matching method has a high execution efficiency, the obtained abnormal logs will not only include logs that do reflect the server abnormality, but also may include some logs that are actually generated by normal situations, and some suspected abnormal logs. To this end, this implementation method will also match the obtained abnormal logs with the whitelist one by one, and filter each abnormal log that successfully matches. For example, when "restart" is used as a keyword in the blacklist, some normal restart logs will be included in the selected abnormal logs. At this time, some logs that are clearly not problematic can be filtered out from the abnormal logs through whitelist matching, which is conducive to reducing the number of abnormal logs, improving subsequent processing efficiency, and reducing the workload of staff.

[0132] The abnormal log obtained after filtering needs to be stored in the first storage area, and the preset long-time stress test abnormal response operation can be executed. The specific response operation content can be set and adjusted according to actual needs. For example, in a specific embodiment of the present invention, the preset long-time stress test abnormal response operation can include:

[0133] Determine whether the abnormal log in the first storage area is an abnormal log of a preset first type;

[0134] If yes, the alarm information is displayed in the preset display page, and an alarm is sent to the designated terminal device; if no, the alarm prompt information is displayed in the preset display page.

[0135] This implementation method takes into account that the abnormal logs in the first storage area can be classified. If there are abnormal logs belonging to the preset first type, it means that it is a more serious abnormal situation. At this time, not only can the alarm information be displayed in the preset display page, but also the alarm can be sent to the designated terminal device. The designated terminal device can be, for example, the mobile phone, computer, etc. of the staff responsible for the server test, so that the staff can pay attention to the situation in time. If there are no abnormal logs belonging to the preset first type, it means that there is no more serious abnormal situation, or the abnormal logs in the first storage area are only suspected abnormal logs. At this time, only the alarm prompt information is displayed in the preset display page. For example, subsequent staff can uniformly view each alarm prompt information in the entire long-term stress test process through the web page, and can view each abnormal log in the first storage area.

[0136] In addition, long-term stress tests usually set a total execution time. If in actual applications, it is detected that the actual execution time of a server for a long-term stress test has exceeded the total execution time, and the exceeded time has reached the set threshold, an alarm can also be sent to the designated terminal device in the form of SMS, email, etc.

[0137] The above text has described the long-term stress test in detail. For other test cases that are not long-term stress tests, the maximum execution time set for the test case can be obtained. If the test case is not executed within the maximum execution time, or the test case is executed within the maximum execution time, but the test result of the test case obtained by the test management system is not a successful test, for example, the test result is fail or block, both of which are unsuccessful tests. In this implementation, the BMC will also collect the newly added BMC logs during the execution of the test case and then analyze them. There can be many specific analysis methods. For example, the analysis can also be implemented based on the blacklist + whitelist method mentioned above. After obtaining the analysis results, the preset processing operations can be executed. For example, based on the abnormal logs finally determined, operations such as alarms can be performed.

[0138] Applying the technical solution provided by the embodiment of the present invention, it is considered that the spatial layout view can be used to display each server in the current space. Specifically, the position of the server in the space depends on the test bench to which the server is connected. Therefore, when it is detected that the server is powered on, it is necessary to determine the test bench to which the server is connected, and in the spatial layout view, all the test benches will be shown according to the physical position of each test bench in the space. Considering that some servers are powered on for the first time, that is, the parameter information of the server is not shown in the current spatial layout view, the parameter information of the server can be added to the corresponding position of the spatial layout view, and the corresponding position refers to the position near the test bench to which the server is connected in the spatial layout view, because in the spatial layout view, for each test bench, it is required to show the respective parameter information of all servers currently connected to the test bench in an area that does not exceed the first distance of the test bench. In other words, the parameter information of the server displayed in the spatial layout view will be placed near the corresponding test bench for easy viewing by the staff. If based on the server's parameter information, it is determined that the server's parameter information has been displayed in the current spatial layout view, it means that the server has been powered on before and its parameter information has not been deleted from the spatial layout view. At this time, in order to avoid errors and ensure that the parameter information of the same server is not displayed in multiple places in the spatial layout view, it is necessary to delete the original parameter information of the server in the spatial layout view, and based on the currently collected parameter information of the server, add the parameter information of the server in the spatial layout view, that is, to update the parameter information of the server in the spatial layout view. When it is detected that any server is powered off, the parameter information of the powered-off server in the spatial layout view can be deleted after the first period of time.

[0139] It can be seen that through the spatial layout view of this implementation method, the test bench to which each server is connected and the physical location of the test bench in the space can be intuitively determined, and the number of servers connected to each test bench can also be intuitively determined. Therefore, when monitoring and managing each server in the laboratory based on the solution of this application, it is less likely for staff to make mistakes, thereby improving the convenience of management.

[0140] Corresponding to the above method embodiment, the embodiment of the present invention further provides a monitoring and management system for a server, which can be referred to in correspondence with the above.

[0141] See also Figure 2 FIG. 1 is a schematic diagram of a server monitoring and management system in the present invention, comprising:

[0142] A server power-on detection module 201, for determining the test bench to which the server is connected when detecting that the server is powered on;

[0143] A checking module 202 is used to collect parameter information of the server and, based on the parameter information, determine whether the parameter information of the server has been displayed in the current spatial layout view; if so, trigger an updating module, otherwise, trigger a adding module;

[0144] Wherein, in the spatial layout view, all test benches are shown according to their physical positions in the space, and for each test bench, respective parameter information of all servers currently connected to the test bench is shown in an area not exceeding the first distance of the test bench;

[0145] The updating module 203 is used to update the parameter information of the server in the spatial layout view based on the collected parameter information;

[0146] The adding module 204 is used to add parameter information of the server at a corresponding position of the spatial layout view;

[0147] The deleting module 205 is configured to delete the parameter information of the powered-off server in the spatial layout view after a first period of time when it is detected that any server is powered-off.

[0148] In a specific implementation of the present invention, the checking module 202 is specifically used for:

[0149] Collecting parameter information of the server, and using the Internet Protocol address in the collected parameter information as the Internet Protocol address to be compared, and using the identifier in the collected parameter information as the identifier to be compared; wherein the identifiers of different servers are different from each other;

[0150] Determine whether there is an Internet Protocol address that is the same as the Internet Protocol address to be compared in the parameter information of each server shown in the spatial layout view;

[0151] If there is an Internet Protocol address that is the same as the Internet Protocol address to be compared, determining that parameter information of the server has been shown in the current spatial layout view;

[0152] If there is no Internet Protocol address identical to the Internet Protocol address to be compared, determining whether there is an identifier identical to the identifier to be compared in the parameter information of each server shown in the spatial layout view;

[0153] If there is an identifier that is the same as the identifier to be compared, determining that the parameter information of the server has been displayed in the current spatial layout view;

[0154] If there is no identifier identical to the identifier to be compared, it is determined that the parameter information of the server is not shown in the current spatial layout view.

[0155] In a specific implementation of the present invention, for each server in the spatial layout view, a corresponding virtual button is set for the server in the spatial layout view to display parameter information of the server in the virtual button; the monitoring and management system of the server also includes a BMC login module for:

[0156] When a click operation of the input device on any virtual key is detected, a baseboard management controller login interface of the server corresponding to the virtual key is automatically popped up.

[0157] In a specific embodiment of the present invention, a power on / off status display module is also included, which is used to:

[0158] For each server in the spatial layout view, obtaining the power on / off status of the server through the Internet Protocol address in the parameter information of the server;

[0159] Displaying the power on / off status of each server in the spatial layout view;

[0160] The server power on and off states are divided into power on state, power off state, and power off state.

[0161] In a specific embodiment of the present invention, a load status display module is also included, which is used to:

[0162] For each server in the spatial layout view, obtaining a load status of the server through an Internet Protocol address in the parameter information of the server;

[0163] Displaying the load status of each server in the spatial layout view;

[0164] The load state of the server is divided into a no-load state, a first load state to an Nth load state; N is a preset positive integer.

[0165] In a specific embodiment of the present invention, it also includes:

[0166] A test management system docking module is used to determine, for any server in the space layout view, whether the server is currently executing a test case through the test management system; if so, determine whether the test case currently executed by the server is a long-term stress test;

[0167] If it is a long-term stress test, triggering a BMC log acquisition module to collect, through the baseboard management controller of the server, baseboard management controller logs newly added within the second time period at every second time period;

[0168] The log analysis module is used to obtain the abnormal logs in the baseboard management controller logs in a keyword matching manner based on the preset blacklist for each collection of the baseboard management controller logs; match the obtained abnormal logs with the whitelist one by one, and filter each abnormal log that successfully matches;

[0169] A response module, used to store the abnormal log obtained after filtering into the first storage area, and execute the preset response operation for the long-term stress test abnormality;

[0170] If it is not a long-term stress test, the automatic test case processing module is triggered to obtain the maximum execution time set for the test case; if the test case is not completed within the maximum execution time, or the test case is completed within the maximum execution time and the test result is not a successful test, the baseboard management controller log newly added during the execution of the test case is collected and analyzed through the baseboard management controller of the server, and the preset processing operation is performed based on the analysis result.

[0171] In a specific embodiment of the present invention, the response module is specifically used for:

[0172] Determine whether the abnormal logs in the first storage area are abnormal logs of a preset first type;

[0173] If yes, the alarm information is displayed in a preset display page, and an alarm is sent to the designated terminal device;

[0174] If not, an alarm prompt message is displayed in a preset display page.

[0175] Corresponding to the above method and system embodiments, the embodiments of the present invention further provide a server monitoring and management device, a computer-readable storage medium, and a computer program product, which can be referred to in correspondence with the above.

[0176] See also Figure 3 As shown, the device may include:

[0177] Memory 301, used for storing computer programs;

[0178] The processor 302 is used to execute a computer program to implement the steps of the server monitoring and management method in any of the above embodiments.

[0179] The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the server monitoring and management method in any of the above embodiments are implemented.

[0180] See also Figure 4 The computer readable storage medium 50 stores a computer program 51, and when the computer program 51 is executed by the processor, the steps of the monitoring and management method of the server in any of the above embodiments are implemented. The computer readable storage medium 50 mentioned here includes RAM (Random Access Memory), memory, ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), register, hard disk, removable disk, or any other form of storage medium known in the technical field.

[0181] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0182] Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present invention. It should be pointed out that for ordinary technicians in the technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A server monitoring and management method, characterized in that: include: When detecting that the server is powered on, determining the test bed to which the server is connected; Collecting parameter information of the server, and judging, based on the parameter information, whether the parameter information of the server has been displayed in the current spatial layout view; Wherein, in the spatial layout view, all test benches are shown according to their physical positions in the space, and for each test bench, respective parameter information of all servers currently connected to the test bench is shown in an area that does not exceed the first distance of the test bench; If yes, updating the parameter information of the server in the spatial layout view based on the collected parameter information; If not, then adding parameter information of the server in the corresponding position of the spatial layout view; When it is detected that any server is powered off, after a first period of time, the parameter information of the powered-off server in the spatial layout view is deleted.

2. The server monitoring and management method according to claim 1, characterized in that: Collecting parameter information of the server, and judging, based on the parameter information, whether the parameter information of the server has been displayed in the current spatial layout view, includes: Collecting parameter information of the server, and using the Internet Protocol address in the collected parameter information as the Internet Protocol address to be compared, and using the identifier in the collected parameter information as the identifier to be compared; wherein the identifiers of different servers are different from each other; Determine whether there is an Internet Protocol address that is the same as the Internet Protocol address to be compared in the parameter information of each server shown in the spatial layout view; If there is an Internet Protocol address that is the same as the Internet Protocol address to be compared, determining that parameter information of the server has been shown in the current spatial layout view; If there is no Internet Protocol address identical to the Internet Protocol address to be compared, determining whether there is an identifier identical to the identifier to be compared in the parameter information of each server shown in the spatial layout view; If there is an identifier that is the same as the identifier to be compared, determining that the parameter information of the server has been displayed in the current spatial layout view; If there is no identifier identical to the identifier to be compared, it is determined that the parameter information of the server is not shown in the current spatial layout view.

3. The server monitoring and management method according to claim 1, characterized in that: For each server in the spatial layout view, a corresponding virtual button is provided for the server in the spatial layout view, so that parameter information of the server is displayed in the virtual button; The monitoring and management method of the server also includes: When a click operation of the input device on any virtual key is detected, a baseboard management controller login interface of the server corresponding to the virtual key is automatically popped up.

4. The server monitoring and management method according to claim 1, characterized in that: Also includes: For each server in the spatial layout view, obtaining the power on / off status of the server through the Internet Protocol address in the parameter information of the server; Displaying the power on / off status of each server in the spatial layout view; The server power on and off states are divided into power on state, power off state, and power off state.

5. The server monitoring and management method according to claim 1, characterized in that: Also includes: For each server in the spatial layout view, obtaining a load status of the server through an Internet Protocol address in the parameter information of the server; Displaying the load status of each server in the spatial layout view; The load state of the server is divided into a no-load state, a first load state to an Nth load state; N is a preset positive integer.

6. The server monitoring and management method according to any one of claims 1 to 5, characterized in that: Also includes: For any server in the spatial layout view, determine through the test management system whether the server is currently executing a test case; If yes, determine whether the test case currently executed by the server is a long-term stress test; If it is a long-term stress test, then at every second time period, the baseboard management controller log newly added in the most recent second time period is collected through the baseboard management controller of the server; For each collected BMC log, based on a preset blacklist, obtain an abnormal log in the BMC log by keyword matching; Match the obtained abnormal logs with the whitelist one by one, and filter each abnormal log that successfully matches; The abnormal log obtained after filtering is stored in the first storage area, and the preset long-term stress test abnormal response operation is performed; If it is not a long-term stress test, obtain the maximum execution time set for the test case; If the test case is not executed to completion within the maximum execution time, or the test case is executed to completion within the maximum execution time and the test result is not a successful test, the baseboard management controller log newly added during the execution of the test case is collected and analyzed by the baseboard management controller of the server, and preset processing operations are performed based on the analysis results.

7. The server monitoring and management method according to claim 6, characterized in that: Execute the preset long-term stress test exception response operations, including: Determine whether the abnormal logs in the first storage area are abnormal logs of a preset first type; If yes, the alarm information is displayed in a preset display page, and an alarm is sent to the designated terminal device; If not, an alarm prompt message is displayed in a preset display page.

8. A server monitoring and management system, characterized in that: include: A server power-on detection module, used to determine the test bench to which the server is connected when detecting that the server is powered on; A checking module, used for collecting parameter information of the server, and judging, based on the parameter information, whether the parameter information of the server has been displayed in the current spatial layout view; If yes, the update module is triggered, otherwise the new module is triggered; Wherein, in the spatial layout view, all test benches are shown according to their physical positions in the space, and for each test bench, respective parameter information of all servers currently connected to the test bench is shown in an area that does not exceed the first distance of the test bench; The updating module is used to update the parameter information of the server in the spatial layout view based on the collected parameter information; The adding module is used to add parameter information of the server at a corresponding position of the space layout view; The deleting module is used to delete the parameter information of the powered-off server in the spatial layout view after a first period of time when it is detected that any server is powered-off.

9. A monitoring and management device for a server, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the server monitoring and management method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server monitoring and management method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Log processing method and device, electronic equipment and computer readable storage medium

    CN120448283A

  • Log processing method and device, electronic equipment and computer readable storage medium

    CN120448283B