Server state detection method, device and equipment and readable storage medium
By sending IPMI commands to the server and executing Ping instructions, comprehensively judging the server's power-on status status, the problems of poor real-time and insufficient reliability of server status monitoring in the prior art are solved, and server status detection with high accuracy and high real-time are achieved.
Patent Information
- Application Number
- CN202411686543.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-18
AI Technical Summary
The existing server status monitoring methods have poor real-time performance, low degree of automation, insufficient reliability and security problems, and cannot realize real-time monitoring of server status, resulting in delayed problem discovery and response, increasing management costs.
By sending IPMI commands to the managed server to obtain the power-on status of the machine, and performing Ping instructions on the IPv4 and IPv6 addresses respectively, comprehensively judging the power-on status of the server, improving the accuracy and real-timeness of state detection.
Improve the accuracy and real-timeness of server status detection, simplify management operations, and enhance the reliability and security of the system.
Smart Images

Figure CN119645758A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a server status detection method, device, equipment and readable storage medium. Background Art
[0002] In today's era of rapid development of information technology, data center and server management have become the core part of enterprise operations. The stability, reliability and security of the server are directly related to the security of enterprise data and business continuity. Therefore, it is particularly important to monitor and manage the online status of the server in real time. However, the monitoring and management of server status still faces some challenges and limitations.
[0003] One server status monitoring method relies on physical inspection and remote login. Physical inspection usually requires the administrator to go to the server location in person and observe the status indicator of the server or server cabinet to determine whether the server is powered on. This method is not only inefficient, but also cannot achieve remote monitoring, and it is even more impractical for servers distributed in different geographical locations. In addition, physical inspection cannot detect problems in time when there is a server failure or network failure.
[0004] Remote login is to log in to the server through protocols such as SSH, check the system's operating status to determine whether the server is turned on. Although this method can achieve remote monitoring, it also has limitations. First, it relies on the server's network connection and the normal operation of the operating system. If the server is down or there is a problem with the network, remote login cannot be performed. Secondly, remote login requires a server response, which may lead to misjudgment when the server load is high or the response is slow. Finally, remote login requires manual operation and cannot achieve automated monitoring, which increases management costs and time consumption.
[0005] The above solutions have shortcomings: poor real-time performance, unable to achieve real-time monitoring of server status, resulting in delayed problem discovery and response; low degree of automation, reliance on manual operation, unable to achieve automated monitoring, increased management costs; insufficient reliability, unable to accurately judge server status in the event of network failure or server failure; security issues, reliance on network connection and operating system status, posing security risks; low management efficiency, requiring a large amount of human resources for physical inspection or remote login operations, which is inefficient. Summary of the invention
[0006] In view of this, the present specification provides a server status detection method, device, electronic device, and readable storage medium to improve at least one of the above technical problems.
[0007] The specific technical solutions are as follows:
[0008] The present specification provides a server status detection method, which is applied to a remote server management device. The method includes: sending a specified IPMI command to a managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command; executing Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judging the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively; obtaining and feedbacking the server power status according to the machine power-on status of the managed server and the power-on status of the managed server.
[0009] As a technical solution, the specified IPMI command is sent to the managed server, and the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command, including: using the ipmitool command to connect to the managed server through the specified protocol, host name, user name and password, executing the chassis status command to obtain the actual power-on status of the machine, confirming whether the actual power-on status of the current machine meets expectations based on the label information recorded in the pre-stored configuration table, and feeding back the confirmation result.
[0010] As a technical solution, the pre-stored configuration table is downloaded and stored by a crawler tool according to a preset website.
[0011] As a technical solution, the method executes Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judges the power status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both connected, then the managed server is recorded as being in the powered-on state; if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both unconnected, then it is judged that the managed server is in the unpowered state.
[0012] As a technical solution, executing Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judging the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, includes:
[0013] If the execution results of two groups of Ping commands for the IPv4 address and the IPv6 address are that one group is unreachable and the other group is reachable, it is fed back that the IPv4 address and the IPv6 address do not match.
[0014] The present specification also provides a server status detection device, which is applied to a remote server management device, and the device includes: a first module, which is used to send a specified IPMI command to a managed server, and the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command; a second module, which is used to execute Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judge the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively; a third module, which is used to obtain and feedback the server power status according to the power-on status of the machine of the managed server and the power-on status of the managed server.
[0015] As a technical solution, the specified IPMI command is sent to the managed server, and the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command, including: using the ipmitool command to connect to the managed server through the specified protocol, host name, user name and password, executing the chassis status command to obtain the actual power-on status of the machine, confirming whether the actual power-on status of the current machine meets expectations based on the label information recorded in the pre-stored configuration table, and feeding back the confirmation result.
[0016] As a technical solution, the pre-stored configuration table is downloaded and stored by a crawler tool according to a preset website.
[0017] As a technical solution, the method executes Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judges the power status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both connected, then the managed server is recorded as being in the powered-on state; if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both unconnected, then it is judged that the managed server is in the unpowered state.
[0018] As a technical solution, the method executes Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judges the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are one group is unconnected and the other group is connected, then feedback is given that the IPv4 address and the IPv6 address do not match.
[0019] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned server status detection method.
[0020] This specification also provides a readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned server status detection method.
[0021] The above technical solution provided in this specification brings at least the following beneficial effects:
[0022] By sending IPMI commands to the managed server to obtain the power-on status of the machine and executing Ping commands on the IPv4 and IPv6 addresses respectively, the power-on status of the server can be comprehensively judged, which improves the accuracy and real-time performance of status detection, simplifies management operations, and enhances the reliability and security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.
[0024] Figure 1 is a flow chart of a server status detection method in one implementation of this specification;
[0025] Figure 2 is a structural diagram of a server status detection device in one implementation mode of this specification;
[0026] Figure 3 It is a hardware structure diagram of an electronic device in one implementation mode of this specification.
[0027] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION
[0028] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, rather than limiting this specification. The singular forms of "a", "said" and "the" used in this specification and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0029] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".
[0030] With the popularization of emerging technologies such as cloud computing and big data, the scale of data centers continues to expand, and the demand for server management has also been upgraded. In order to cope with this change, the industry has begun to explore more intelligent and automated server status monitoring solutions. Among them, technologies based on hardware management modules (HDM), IP addresses (including IPv4 and IPv6), and intelligent platform management interfaces (IPMI) have gradually become research hotspots. These technologies can not only provide remote access capabilities, but also support more sophisticated power management functions, such as remote power on / off, restart, etc., greatly improving the operation and maintenance efficiency of data centers.
[0031] However, even in these more advanced technologies, there are still some problems that need to be solved. For example, how to notify the administrator in time when the IP address changes to ensure the continued effectiveness of the monitoring system, and how to ensure compatibility and stability in different network environments. The existence of these problems limits the application scope and effect of existing technologies, and new solutions are urgently needed to overcome these obstacles.
[0032] In view of the above situation, this specification proposes a server status detection method, device, equipment and readable storage medium, aiming to fully utilize the advantages of HDM, IPv4, IPv6 and IPMI technologies to build a comprehensive and efficient server status monitoring system.
[0033] The specific technical solution is described below.
[0034] In one embodiment, the present specification provides a server status detection method, which is applied to a remote server management device, and the method includes: sending a specified IPMI command to a managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command; executing Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judging the power-on status of the managed server according to the execution results of two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively; obtaining and feedbacking the server power status according to the power-on status of the machine of the managed server and the power-on status of the managed server.
[0035] Specifically, Figure 1 , including the following steps:
[0036] Step S11, sending a specified IPMI command to the managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command.
[0037] The remote server management device will send one or more specified IPMI commands to the managed server. IPMI is an intelligent platform management interface that allows the server to provide feedback on the health and status of the server through hardware-level monitoring and management interfaces when the operating system is not started or unavailable. These commands can include but are not limited to querying the server's power status, temperature, fan speed and other key hardware parameters.
[0038] Suppose the administrator wants to check whether the server is powered on, he can send a chassis status command through the remote management device. After receiving this command, the server will feedback the current status of its machine, such as "power on" or "power off". If the server feedback "power on", it means that the server is powered on.
[0039] Step S12, executing Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judging the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively.
[0040] After obtaining the feedback of the IPMI command, the remote server management device will further verify the network connectivity of the server by executing the Ping command. The Ping command is a network diagnostic tool used to test the reachability of the network connection. In this step, the management device will send Ping commands to the IPv4 address and IPv6 address of the server respectively.
[0041] Assume that the server's IPv4 address is 192.168.1.100 and its IPv6 address is 2001:0db8:85a3:0000:0000:8a2e:0370:7334. The management device will send Ping requests to these two addresses respectively. If the Ping request succeeds, it indicates that the server's network interface is active and the server is powered on. If the Ping request fails, it may indicate that the server is not powered on or there is a problem with the network interface.
[0042] Step S13, acquiring and feeding back the server power supply status according to the power-on status of the machine of the managed server and the power-on status of the managed server.
[0043] Based on the first two steps, the remote server management device will combine the feedback from the IPMI command and the results of the Ping command to determine the power status of the server. This step is the key to the entire detection method because it provides a comprehensive perspective to evaluate the status of the server.
[0044] Suppose the IPMI command feedback shows that the server has been powered on, but the Ping command shows that the IPv4 address has no response and the IPv6 address has a response. In this case, the management device can infer that the server may have been powered on, but there may be a problem with the IPv4 network configuration. Based on this information, the management device will generate a status report and feedback to the administrator via email, SMS or other notification methods. The administrator can take appropriate maintenance measures based on this report, such as checking the network configuration, restarting the server or contacting technical support.
[0045] In one embodiment, an IPMI tool is used to connect to a managed server through a specified protocol, host name, user name, and password. The IPMI tool is a standard interface for managing and monitoring the hardware status of a computer system. The power-on status of the server is obtained through IPMI commands. These commands can return a series of status information, including power status, fan status, temperature, etc. Focus on the power status part. Use the IPMI tool to connect to the server and enter the corresponding host name, user name, and password. Then, execute the command to obtain the power-on status of the server. If the return result shows System Power: on, it means that the server is currently powered on.
[0046] Obtain the IPv4 and IPv6 addresses of the managed server through network configuration or DNS resolution. Execute the Ping command on the IPv4 and IPv6 addresses respectively to test their connectivity. The Ping command is used to check whether the network connection is smooth. If both the IPv4 and IPv6 addresses can be pinged, it is assumed that the server is powered on. If both addresses cannot be pinged, it is assumed that the server is not powered on. If only the IPv6 address can be pinged, it indicates that there may be a problem with the IPv4 address setting, and feedback is given to the maintenance personnel.
[0047] Assume that the IPv4 address of the server to be monitored is 192.168.1.100, and the IPv6 address is 2001:db8::1. Execute the Ping command on these two addresses to test their connectivity. If both addresses can be pinged successfully, it means that the server is powered on. If both addresses cannot be pinged, it means that the server is not powered on. If only the IPv6 address can be pinged, prompt the maintenance personnel to check the settings of the IPv4 address.
[0048] Comprehensively judge the power status of the server. Feedback the final judged server power status to the administrator. Feedback can be provided through log records, email notifications, or graphical interface displays.
[0049] In one embodiment, the sending of a specified IPMI command to the managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command, includes: using the ipmitool command to connect to the managed server through the specified protocol, host name, user name and password, executing the chassis status command to obtain the actual power-on status of the machine, confirming whether the actual power-on status of the current machine meets expectations based on the label information recorded in the pre-stored configuration table, and feeding back the confirmation result.
[0050] In one embodiment, the pre-stored configuration table is downloaded and stored by a crawler tool according to a preset website.
[0051] In one embodiment, the Ping instructions are respectively executed to the IPv4 address and IPv6 address of the managed server, and the power-on status of the managed server is judged according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both connected, then the managed server is recorded as being in the powered-on status; if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both unconnected, then the managed server is judged to be in the unpowered status.
[0052] In one embodiment, the method executes Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judges the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are one group is unconnected and one group is connected, then feedback is given that the IPv4 address and the IPv6 address do not match.
[0053] In one embodiment, crawler technology is used to download various online documents. In order to realize the use of crawler technology to download online documents to a local path, the URL or identifier of the online document is determined, and a Python framework such as Requests is used to send an HTTP request, parse the page structure of the online document, and extract the download link, download the online document and save it to a locally specified path.
[0054] Use the ipmitool command to connect to the server using the specified protocol, host name, user name, and password, and execute the ipmitool-I connect_type-H hostname-U username-P password chassis status command to obtain the actual power-on status of the machine. Compare the actual power-on status of the machine with the results of the custom labels such as "Whether it is possible to power off at night" in the table. If they are consistent, feedback is given for reliable results; if they are inconsistent, perform corresponding operations and feedback the results.
[0055] Use IPv4 and IPv6 addresses to determine the server power-on status and output the detection log. Obtain IPv4 and IPv6 addresses through IP addresses, and use the Ping command to test the connectivity of the two addresses respectively. If both IPv4 and IPv6 addresses can be pinged, proceed to the next step to determine the server power-on status. If both addresses cannot be pinged, record the results and provide feedback, and it is considered that the current server is not powered on. If only the IPv6 address can be pinged, feedback is provided that the current IPv4 address setting is inconsistent with the table, and feedback is provided to the table maintenance personnel.
[0056] In one embodiment, Figure 2 This specification also provides a server status detection device, which is applied to a remote server management device, and the device includes: a first module, which is used to send a specified IPMI command to a managed server, and the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command; a second module, which is used to execute Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judge the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively; a third module, which is used to obtain and feedback the server power status according to the power-on status of the machine of the managed server and the power-on status of the managed server.
[0057] In one embodiment, the sending of a specified IPMI command to the managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command, includes: using the ipmitool command to connect to the managed server through the specified protocol, host name, user name and password, executing the chassis status command to obtain the actual power-on status of the machine, confirming whether the actual power-on status of the current machine meets expectations based on the label information recorded in the pre-stored configuration table, and feeding back the confirmation result.
[0058] In one embodiment, the pre-stored configuration table is downloaded and stored by a crawler tool according to a preset website.
[0059] In one embodiment, the Ping instructions are respectively executed to the IPv4 address and IPv6 address of the managed server, and the power-on status of the managed server is judged according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both connected, then the managed server is recorded as being in the powered-on status; if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are both unconnected, then the managed server is judged to be in the unpowered status.
[0060] In one embodiment, the method executes Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judges the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, including: if the execution results of the two groups of Ping instructions of the IPv4 address and the IPv6 address are one group is unconnected and one group is connected, then feedback is given that the IPv4 address and the IPv6 address do not match.
[0061] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.
[0062] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned server status detection method. From a hardware level, the hardware architecture diagram can be seen in Figure 3 shown.
[0063] In one embodiment, the present specification provides a readable storage medium, wherein the readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned server status detection method.
[0064] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0065] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0066] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0067] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0068] This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0069] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0072] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A server status detection method, characterized in that: Applied to a remote server management device, the method comprises: Sending a specified IPMI command to the managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command; Execute Ping commands to the IPv4 address and IPv6 address of the managed server respectively, and judge the power-on status of the managed server according to the execution results of the two groups of Ping commands corresponding to the IPv4 address and the IPv6 address respectively; According to the power-on status of the machine of the managed server and the power-on status of the managed server, the server power status is obtained and fed back.
2. The method according to claim 1, characterized in that The sending of a specified IPMI command to the managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command, includes: Use the ipmitool command to connect to the managed server using the specified protocol, host name, user name, and password, and execute the chassis status command to obtain the actual power-on status of the machine. Confirm whether the actual power-on status of the current machine meets expectations based on the label information recorded in the pre-stored configuration table, and feedback the confirmation result.
3. The method according to claim 2, characterized in that The pre-stored configuration table is downloaded and stored by a crawler tool according to a preset website.
4. The method according to claim 1, characterized in that: The method of executing Ping instructions to the IPv4 address and the IPv6 address of the managed server respectively, and judging the power-on state of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, comprises: If the results of the two sets of Ping commands for the IPv4 address and the IPv6 address are both connected, the managed server is recorded as being powered on; If the execution results of the two sets of Ping commands for the IPv4 address and the IPv6 address are both unreachable, it is determined that the managed server is in an unpowered state.
5. The method according to claim 4, characterized in that The method of executing Ping instructions to the IPv4 address and the IPv6 address of the managed server respectively, and judging the power-on state of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, comprises: If the execution results of two groups of Ping commands for the IPv4 address and the IPv6 address are that one group is unreachable and the other group is reachable, it is fed back that the IPv4 address and the IPv6 address do not match.
6. A server status detection device, characterized in that: Applied to a remote server management device, the device comprises: The first module is used to send a specified IPMI command to the managed server, and the IPMI command is used to make the managed server feedback the power-on status of the machine according to the IPMI command; The second module is used to execute Ping instructions to the IPv4 address and IPv6 address of the managed server respectively, and judge the power-on status of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively; The third module is used to obtain and feedback the server power supply status according to the power-on status of the machine of the managed server and the power-on status of the managed server.
7. The device according to claim 6, characterized in that The sending of a specified IPMI command to the managed server, wherein the IPMI command is used to enable the managed server to feedback the power-on status of the machine according to the IPMI command, includes: Use the ipmitool command to connect to the managed server using the specified protocol, host name, user name, and password, and execute the chassis status command to obtain the actual power-on status of the machine. Confirm whether the actual power-on status of the current machine meets expectations based on the label information recorded in the pre-stored configuration table, and feedback the confirmation result.
8. The device according to claim 7, characterized in that The pre-stored configuration table is downloaded and stored by a crawler tool according to a preset website.
9. The device according to claim 6, characterized in that The method of executing Ping instructions to the IPv4 address and the IPv6 address of the managed server respectively, and judging the power-on state of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, comprises: If the results of the two sets of Ping commands for the IPv4 address and the IPv6 address are both connected, the managed server is recorded as being powered on; If the execution results of the two sets of Ping commands for the IPv4 address and the IPv6 address are both unreachable, it is determined that the managed server is in an unpowered state.
10. The device according to claim 9, characterized in that The method of executing Ping instructions to the IPv4 address and the IPv6 address of the managed server respectively, and judging the power-on state of the managed server according to the execution results of the two groups of Ping instructions corresponding to the IPv4 address and the IPv6 address respectively, comprises: If the execution results of two groups of Ping commands for the IPv4 address and the IPv6 address are that one group is unreachable and the other group is reachable, it is fed back that the IPv4 address and the IPv6 address do not match.
11. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any method described in claims 1-5.
12. A readable storage medium, characterized in that: The readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement any one of the methods of claims 1-5.