A network card status monitoring method, device, equipment and medium

By constructing messages based on the MCTP protocol in the server to obtain network card status data, it solves the problem that traditional servers cannot monitor the life of the network card, realizes rapid diagnosis and management of network card status, and improves the competitiveness of server products.

CN116094954BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211190428.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-28
Publication Date
2024-10-15
Estimated Expiration
2042-09-28

AI Technical Summary

Technical Problem

Traditional servers cannot monitor the service life and operating status of the network card based on the MCTP protocol, resulting in users being unable to predict the remaining life of the network card and reducing the competitiveness of server products.

Method used

By constructing a message acquisition request based on the MCTP protocol in the baseboard management controller, it is sent to the target network card device to obtain its status data, and the running time and utilization of the network card are judged through preset rules to diagnose its remaining life.

Benefits of technology

It achieves rapid acquisition of network card related data, diagnoses its remaining life, and improves the management efficiency and competitiveness of server products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116094954B_ABST
    Figure CN116094954B_ABST
Patent Text Reader

Abstract

The present application discloses a network card status monitoring method, device, equipment and medium, and relates to the field of information technology. The method includes: constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to the corresponding target network card device; obtaining a target response message constructed by the target network card device according to the target status data corresponding to the target network card device, and writing the target response message into a log to obtain target log data; obtaining a query command for the target network card device through a preset network card status query interface, and querying the target log data corresponding to the target network card device according to the query command; judging the status of the target network card device according to the target log data and preset rules. Through the above scheme, the relevant data of the network card can be quickly obtained during the network card status monitoring process, and the remaining life of the network card can be diagnosed to improve the competitiveness of server products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a network card status monitoring method, device, equipment and medium. Background Art

[0002] In traditional servers, the baseboard management controller BMC (i.e., Baseboard Management Controller) manages devices through the PCIe (i.e., Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard) or SMBus (i.e., System Management Bus) bus. BMC supports MCTP (i.e., Management Component Transport Protocol) to obtain the manufacturer information, temperature, voltage, health status, etc. of the management device, but it cannot monitor the service life and operating status of the network card based on the MCTP method. Therefore, the user cannot predict the remaining life of the network card based on the log information, thereby reducing the probability of downtime. However, at present, the relevant data of the network card can be obtained according to the MCTP protocol, but the data cannot show the normal operation time and remaining service life of the network card, which is inconvenient for users to manage the network card device. In summary, how to quickly obtain the relevant data of the network card during the network card status monitoring process and diagnose the remaining life of the network card to improve the competitiveness of server products needs to be further solved. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a network card status monitoring method, device, equipment and medium, which can quickly obtain relevant data of the network card during the network card status monitoring process and diagnose the remaining life of the network card to improve the competitiveness of server products. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses a network card status monitoring method, comprising:

[0005] Constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to a corresponding target network card device;

[0006] Obtaining a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and writing the target response message into a log to obtain target log data;

[0007] Obtaining a query command for the target network card device through a preset network card status query interface, and querying target log data corresponding to the target network card device according to the query command;

[0008] The state of the target network card device is judged according to the target log data and preset rules.

[0009] Optionally, before constructing a message acquisition request based on a preset request command character and sending the message acquisition request to a corresponding target network card device, the method further includes:

[0010] Based on the MCTP protocol, the target byte is determined as a preset request command character in the baseboard management controller and the target network card device.

[0011] Optionally, before obtaining a target response message constructed by the target network card device according to the target state data corresponding to the target network card device and writing the target response message into a log to obtain target log data, the method further includes:

[0012] The message acquisition request is parsed to obtain a request command character in the message acquisition request, and then the request command character is compared and verified with a preset request command character in the target network card device.

[0013] Optionally, after parsing the message acquisition request and obtaining the request command character in the message acquisition request, and then comparing and verifying the request command character with a preset request command character in the target network card device, the method further includes:

[0014] If the request command character is successfully compared with the preset request command character in the target network card device, constructing the target response message according to the target state data corresponding to the target network card device;

[0015] If the comparison between the request command character and the preset request command character in the target network card device fails, constructing the target response message is prohibited.

[0016] Optionally, judging the state of the target network card device according to the target log data and a preset rule includes:

[0017] Parsing the target log data to obtain the target status data corresponding to the target network card device;

[0018] The state of the target network card device is judged according to the target state data and preset rules.

[0019] Optionally, parsing the target log data to obtain the target status data corresponding to the target network card device includes:

[0020] The target log data is parsed to obtain the target network card running time and the current utilization rate of the target network card corresponding to the target network card device.

[0021] Optionally, judging the state of the target network card device according to the target state data and a preset rule includes:

[0022] The remaining service life of the target network card of the target network card device is judged based on preset rules according to the target network card operation time and the current utilization rate of the target network card, so as to complete the status monitoring of the target network card device.

[0023] In a second aspect, the present application discloses a network card status monitoring device, comprising:

[0024] A message acquisition request sending module, used for constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to a corresponding target network card device;

[0025] A response message acquisition module, used for acquiring a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and writing the target response message into a log to obtain target log data;

[0026] A log data query module, used to obtain a query command for the target network card device through a preset network card status query interface, and query the target log data corresponding to the target network card device according to the query command;

[0027] The network card device judgment module is used to judge the state of the target network card device according to the target log data and preset rules.

[0028] In a third aspect, the present application discloses an electronic device, comprising:

[0029] Memory, used to store computer programs;

[0030] The processor is used to execute the computer program to implement the steps of the network card status monitoring method disclosed above.

[0031] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the network card status monitoring method disclosed above are implemented.

[0032] When the present application performs network card status monitoring, a message acquisition request is first constructed based on a preset request command character, and the message acquisition request is sent to the corresponding target network card device, a target response message constructed by the target network card device according to the target status data corresponding to the target network card device is obtained, and the target response message is written into a log to obtain target log data, a query command for the target network card device is obtained through a preset network card status query interface, and the target log data corresponding to the target network card device is queried according to the query command, and finally the status of the target network card device is judged according to the target log data and preset rules. It can be seen that when the present application performs network card status monitoring, it first constructs a message acquisition request based on the preset request command character and sends the message acquisition request to the target network card device to be monitored, further obtains the target response message constructed by the target network card device according to the target status data of the target network card device, and writes the target response message into the log, thereby obtaining the target log data. When the user issues a query command for the target network card device through the preset network card status query interface, and queries the target log data corresponding to the target network card device according to the query command, finally the status of the target network card device is judged according to the target log data and preset rules. It can be seen that when the present application is monitoring the status of the network card, the baseboard management controller realizes the data interaction between the upper-layer application and the device based on the MCTP protocol, and sends a message acquisition request to the target network card device through the preset request command character according to the protocol. The target network card device transmits the relevant data of the target network card device to the baseboard management controller through the response message. The baseboard management controller writes the message data into the log. The user obtains data by collecting the log with one click, and analyzes it according to the corresponding diagnostic rules, and finally obtains the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of the server product. In summary, the present application can quickly obtain the relevant data of the network card during the network card status monitoring process and diagnose the remaining life of the network card to improve the competitiveness of the server product. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0034] Figure 1 A flow chart of a network card status monitoring method provided by this application;

[0035] Figure 2A specific flow chart of a network card status monitoring method provided for this application;

[0036] Figure 3 A schematic diagram of the structure of a network card status monitoring device provided in this application;

[0037] Figure 4 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

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

[0039] In traditional servers, the baseboard management controller BMC manages devices through the PCIe or SMBus bus. BMC supports the MCTP method to obtain the manufacturer information, temperature, voltage, health status, etc. of the management device, but it cannot monitor the service life and operating status of the network card based on the MCTP method. Therefore, the user cannot predict the remaining life of the network card based on the log information, thereby reducing the probability of downtime. However, the relevant data of the network card can be obtained according to the MCTP protocol, but the data cannot show the normal operating time and remaining service life of the network card, which is inconvenient for users to manage the network card device. To this end, the present application provides a network card status monitoring method that can quickly obtain the relevant data of the network card during the network card status monitoring process and diagnose the remaining life of the network card to improve the competitiveness of server products.

[0040] The embodiment of the present invention discloses a method for monitoring the status of a network card. Figure 1 As shown, the method includes:

[0041] Step S11: constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to a corresponding target network card device.

[0042] In this embodiment, before constructing a message acquisition request based on a preset request command character and sending the message acquisition request to the corresponding target network card device, it also includes: determining the target byte as the preset request command character in the baseboard management controller and the target network card device based on the MCTP protocol. Specifically, firstly, based on the MCTP protocol, a preset request command character corresponding to the network card device is added, and the demand is submitted to the equipment manufacturer. Only with the support of the equipment manufacturer can data interaction be performed based on this command word, and based on the MCTP protocol, the target byte is determined as the preset request command character in the baseboard management controller and the target network card device. It can be understood that the preset request command character is stored in the baseboard management controller and the target network card device to facilitate the subsequent sending of the response message through the preset request command character.

[0043] In this embodiment, a message acquisition request is constructed based on a preset request command character, and the message acquisition request is sent to the corresponding target network card device. Specifically, the baseboard management controller constructs a message acquisition request according to the preset request command character, and sends the message acquisition request to the corresponding target network card device. Through the above technical solution, the message acquisition request is sent to the corresponding target network card device, so as to subsequently obtain the target response message constructed by the target network card device according to the target status data corresponding to the target network card device and further write the target response message into the log.

[0044] Step S12: obtaining a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and writing the target response message into a log to obtain target log data.

[0045] In this embodiment, the target response message constructed by the target network card device according to the target state data corresponding to the target network card device is obtained, and the target response message is written into the log to obtain the target log data. Specifically, when the target network card device obtains the message acquisition request, the target response message is constructed according to the target state data corresponding to the target network card device, and the target response message is returned to the baseboard management controller. Further, the baseboard manager obtains the target response message constructed by the target state data of the target network card, and then writes the obtained target response message into the log to obtain the target log data. It can be understood that the administrator updates the firmware to the baseboard manager through the web. After the server is powered on, the baseboard manager interacts with the target network card device in real time and updates the data to the log in time. The target log data includes data corresponding to the target state data of the target network card device, and the real-time target state data of the target network card device can be obtained by parsing the target log data. Through the above technical solution, the target response message is written into the log to obtain the target log data. The baseboard management controller realizes the data interaction between the upper-layer application and the device based on the MCTP protocol. According to the protocol, a message acquisition request is sent to the target network card device through a preset request command character. The target network card device transmits the relevant data of the target network card device to the baseboard management controller through a response message. The baseboard management controller writes the message data into the log, so as to query the status of the target network card device through a preset network card status query interface later.

[0046] Step S13: obtaining a query command for the target network card device through a preset network card status query interface, and querying target log data corresponding to the target network card device according to the query command.

[0047] In this embodiment, a query command for the target network card device is obtained through a preset network card status query interface, and the target log data corresponding to the target network card device is queried according to the query command. Specifically, the user can obtain network card related data by collecting logs with one click, that is, directly obtain the target log data by obtaining the query command for the target network card device through the preset network card status query interface. Through the above technical solution, a query command for the target network card device is obtained through a preset network card status query interface, and the target log data corresponding to the target network card device is queried according to the query command, so as to facilitate the subsequent judgment of the status of the target network card device according to the target log data and preset rules.

[0048] Step S14: judging the status of the target network card device according to the target log data and preset rules.

[0049] In this embodiment, the state of the target network card device is judged according to the target log data and the preset rules. Specifically, the user obtains data by collecting logs with one click, so that the user can analyze according to the corresponding diagnostic rules, and finally obtain the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of server products. Through the above technical scheme, the baseboard management controller realizes the data interaction between the upper-layer application and the device on the basis of the MCTP protocol, sends a message acquisition request to the target network card device through the preset request command character according to the protocol, and the target network card device transmits the relevant data of the target network card device to the baseboard management controller through the response message, and the baseboard management controller writes the message data into the log, and the user obtains data by collecting logs with one click, and analyzes according to the corresponding diagnostic rules, and finally obtains the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of server products.

[0050] It can be seen that when the present embodiment performs network card status monitoring, it first constructs a message acquisition request based on the preset request command character and sends the message acquisition request to the target network card device to be monitored, further obtains the target response message constructed by the target network card device according to the target status data of the target network card device, and writes the target response message into the log, thereby obtaining the target log data. When the user issues a query command for the target network card device through the preset network card status query interface, and queries the target log data corresponding to the target network card device according to the query command, finally the status of the target network card device is judged according to the target log data and preset rules. It can be seen that when the present application is monitoring the status of the network card, the baseboard management controller realizes the data interaction between the upper-layer application and the device based on the MCTP protocol, and sends a message acquisition request to the target network card device through the preset request command character according to the protocol. The target network card device transmits the relevant data of the target network card device to the baseboard management controller through the response message. The baseboard management controller writes the message data into the log. The user obtains data by collecting the log with one click, and analyzes it according to the corresponding diagnostic rules, and finally obtains the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of the server product. In summary, the present application can quickly obtain the relevant data of the network card during the network card status monitoring process and diagnose the remaining life of the network card to improve the competitiveness of the server product.

[0051] See also Figure 2 As shown, the embodiment of the present invention discloses a specific network card status monitoring method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0052] Step S11: constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to a corresponding target network card device.

[0053] Step S12: parsing the message acquisition request and obtaining the request command character in the message acquisition request, and then comparing and verifying the request command character with the preset request command character in the target network card device.

[0054] In this embodiment, after parsing the message acquisition request and obtaining the request command character in the message acquisition request, and then comparing and verifying the request command character with the preset request command character in the target network card device, it also includes: if the request command character is successfully compared with the preset request command character in the target network card device, constructing the target response message according to the target status data corresponding to the target network card device; if the request command character is failed to be compared with the preset request command character in the target network card device, prohibiting the construction of the target response message.

[0055] Step S13: obtaining a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and writing the target response message into a log to obtain target log data.

[0056] Step S14: obtaining a query command for the target network card device through a preset network card status query interface, and querying target log data corresponding to the target network card device according to the query command.

[0057] Step S15: judging the status of the target network card device according to the target log data and preset rules.

[0058] In this embodiment, the status of the target network card device is judged according to the target log data and preset rules, including: parsing the target log data to obtain the target status data corresponding to the target network card device; judging the status of the target network card device according to the target status data and preset rules.

[0059] In a specific implementation, judging the state of the target network card device according to the target log data and preset rules includes: parsing the target log data to obtain the target network card running time and the current utilization rate of the target network card corresponding to the target network card device. Judging the remaining service life of the target network card of the target network card device based on the preset rules according to the target network card running time and the current utilization rate of the target network card, so as to complete the state monitoring of the target network card device.

[0060] It can be seen that in this embodiment, the message acquisition request is parsed in the target network card device and the request command character in the message acquisition request is obtained, and then the request command character is compared and verified with the preset request command character in the target network card device. When the request command character is successfully compared with the preset request command character in the target network card device, the target response message is constructed according to the target status data corresponding to the target network card device; otherwise, if the request command character is failed to be compared with the preset request command character in the target network card device, it is prohibited to construct the target response message, so as to ensure the security of the target status data corresponding to the target network card device.

[0061] See also Figure 3 As shown, the embodiment of the present application discloses a network card status monitoring device, including:

[0062] A message acquisition request sending module 11 is used to construct a message acquisition request based on a preset request command character, and send the message acquisition request to a corresponding target network card device;

[0063] A response message acquisition module 12 is used to acquire a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and write the target response message into a log to obtain target log data;

[0064] The log data query module 13 is used to obtain a query command for the target network card device through a preset network card status query interface, and query the target log data corresponding to the target network card device according to the query command;

[0065] The network card device determination module 14 is used to determine the state of the target network card device according to the target log data and preset rules.

[0066] In a specific implementation, a message acquisition request is constructed based on a preset request command character by a message acquisition request sending module, and before the message acquisition request is sent to the corresponding target network card device, it also includes: determining the target byte as the preset request command character in the baseboard management controller and the target network card device based on the MCTP protocol. Specifically, firstly, the preset request command character corresponding to the network card device is added based on the MCTP protocol, and the demand is submitted to the equipment manufacturer. The equipment manufacturer needs to support data interaction based on this command word, and the target byte is determined as the preset request command character in the baseboard management controller and the target network card device based on the MCTP protocol. It can be understood that the preset request command character is stored in the baseboard management controller and the target network card device, so as to facilitate the subsequent sending of the response message through the preset request command character. In this embodiment, a message acquisition request is constructed based on the preset request command character, and the message acquisition request is sent to the corresponding target network card device. Specifically, the baseboard management controller constructs a message acquisition request according to the preset request command character, and sends the message acquisition request to the corresponding target network card device. Through the above technical solution, the message acquisition request is sent to the corresponding target network card device, so as to subsequently obtain the target response message constructed by the target network card device according to the target status data corresponding to the target network card device and further write the target response message into the log.

[0067] In a specific implementation, the target response message constructed by the target network card device according to the target state data corresponding to the target network card device is obtained through the response message acquisition module, and the target response message is written into the log to obtain the target log data. Specifically, when the target network card device obtains the message acquisition request, the target response message is constructed according to the target state data corresponding to the target network card device, and the target response message is returned to the baseboard management controller. Further, the baseboard manager obtains the target response message constructed by the target state data of the target network card, and then writes the obtained target response message into the log to obtain the target log data. It can be understood that the administrator updates the firmware to the baseboard manager through the web. After the server is powered on, the baseboard manager interacts with the target network card device in real time and updates the data to the log in time. The target log data includes data corresponding to the target state data of the target network card device, and the real-time target state data of the target network card device can be obtained by parsing the target log data. Through the above technical solution, the target response message is written into the log to obtain the target log data. The baseboard management controller realizes the data interaction between the upper-layer application and the device based on the MCTP protocol. According to the protocol, a message acquisition request is sent to the target network card device through a preset request command character. The target network card device transmits the relevant data of the target network card device to the baseboard management controller through a response message. The baseboard management controller writes the message data into the log, so as to query the status of the target network card device through a preset network card status query interface later.

[0068] In a specific implementation, through the log data query module, a query command for the target network card device is obtained through a preset network card status query interface, and the target log data corresponding to the target network card device is queried according to the query command. Specifically, the user can obtain network card related data by collecting logs with one click, that is, directly obtain the target log data by obtaining the query command for the target network card device through the preset network card status query interface. Through the above technical solution, a query command for the target network card device is obtained through the preset network card status query interface, and the target log data corresponding to the target network card device is queried according to the query command, so as to facilitate the subsequent judgment of the status of the target network card device according to the target log data and preset rules.

[0069] In a specific implementation, the state of the target network card device is judged according to the target log data and preset rules through the network card device judgment module. Specifically, the user obtains data by collecting logs with one click, so that the user can analyze according to the corresponding diagnostic rules, and finally obtain the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of server products. Through the above technical solution, the baseboard management controller realizes the data interaction between the upper-layer application and the device on the basis of the MCTP protocol, sends a message acquisition request to the target network card device through the preset request command character according to the protocol, and the target network card device transmits the relevant data of the target network card device to the baseboard management controller through the response message, and the baseboard management controller writes the message data into the log, and the user obtains data by collecting logs with one click, and analyzes according to the corresponding diagnostic rules, and finally obtains the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of server products.

[0070] It can be seen that when the present embodiment performs network card status monitoring, it first constructs a message acquisition request based on the preset request command character and sends the message acquisition request to the target network card device to be monitored, further obtains the target response message constructed by the target network card device according to the target status data of the target network card device, and writes the target response message into the log, thereby obtaining the target log data. When the user issues a query command for the target network card device through the preset network card status query interface, and queries the target log data corresponding to the target network card device according to the query command, finally the status of the target network card device is judged according to the target log data and preset rules. It can be seen that when the present application is monitoring the status of the network card, the baseboard management controller realizes the data interaction between the upper-layer application and the device based on the MCTP protocol, and sends a message acquisition request to the target network card device through the preset request command character according to the protocol. The target network card device transmits the relevant data of the target network card device to the baseboard management controller through the response message. The baseboard management controller writes the message data into the log. The user obtains data by collecting the log with one click, and analyzes it according to the corresponding diagnostic rules, and finally obtains the normal operation time, remaining life and current utilization rate of the network card, thereby facilitating the user to manage the network card device and improve the competitiveness of the server product. In summary, the present application can quickly obtain the relevant data of the network card during the network card status monitoring process and diagnose the remaining life of the network card to improve the competitiveness of the server product.

[0071] In some specific embodiments, the network card status monitoring device further includes:

[0072] The character determination module is used to determine the target byte as a preset request command character in the baseboard management controller and the target network card device based on the MCTP protocol.

[0073] In some specific embodiments, the network card status monitoring device further includes:

[0074] The character verification module is used to parse the message acquisition request and obtain the request command character in the message acquisition request, and then compare and verify the request command character with the preset request command character in the target network card device.

[0075] In some specific embodiments, the network card status monitoring device further includes:

[0076] A response message construction module, configured to construct the target response message according to the target state data corresponding to the target network card device if the request command character is successfully compared with the preset request command character in the target network card device;

[0077] The response message prohibition construction module is used to prohibit the construction of the target response message if the request command character fails to be compared with the preset request command character in the target network card device.

[0078] In some specific embodiments, the network card device determination module 14 specifically includes:

[0079] A data parsing unit, used for parsing the target log data to obtain the target status data corresponding to the target network card device;

[0080] The state judgment unit is used to judge the state of the target network card device according to the target state data and preset rules.

[0081] In some specific embodiments, the data parsing unit is specifically used to: parse the target log data to obtain the target network card running time and the current utilization rate of the target network card corresponding to the target network card device.

[0082] In some specific embodiments, the status judgment unit is specifically used to: judge the remaining service life of the target network card of the target network card device based on preset rules according to the target network card operation time and the current utilization rate of the target network card, so as to complete the status monitoring of the target network card device.

[0083] Figure 4An electronic device 20 provided in an embodiment of the present application is shown. The electronic device 20 may further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the network card status monitoring method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may be specifically an electronic computer.

[0084] In this embodiment, the power supply 23 is used to provide voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0085] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0086] The operating system 221 is used to manage and control the hardware devices on the electronic device 20, and the computer program 222 may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the network card status monitoring method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.

[0087] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed network card status monitoring method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0088] Finally, it should 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 sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0089] The above is a detailed introduction to a network card status monitoring method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A network card status monitoring method, characterized in that: include: Constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to a corresponding target network card device; Obtaining a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and writing the target response message into a log to obtain target log data; Obtaining a query command for the target network card device through a preset network card status query interface, and querying target log data corresponding to the target network card device according to the query command; Judging the status of the target network card device according to the target log data and preset rules; The step of judging the state of the target network card device according to the target log data and preset rules includes: Parsing the target log data to obtain the target status data corresponding to the target network card device; Determining the state of the target network card device according to the target state data and preset rules; The step of parsing the target log data to obtain the target status data corresponding to the target network card device includes: Parsing the target log data to obtain the target network card running time and the current utilization rate of the target network card corresponding to the target network card device; The step of judging the state of the target network card device according to the target state data and a preset rule includes: The remaining service life of the target network card of the target network card device is judged based on preset rules according to the target network card operation time and the current utilization rate of the target network card, so as to complete the status monitoring of the target network card device.

2. The network card status monitoring method according to claim 1, characterized in that: Before constructing a message acquisition request based on a preset request command character and sending the message acquisition request to a corresponding target network card device, the method further includes: Based on the MCTP protocol, the target byte is determined as a preset request command character in the baseboard management controller and the target network card device.

3. The network card status monitoring method according to claim 1, characterized in that: Before obtaining the target response message constructed by the target network card device according to the target state data corresponding to the target network card device and writing the target response message into the log to obtain the target log data, the method further includes: The message acquisition request is parsed to obtain a request command character in the message acquisition request, and then the request command character is compared and verified with a preset request command character in the target network card device.

4. The network card status monitoring method according to claim 3, characterized in that: After parsing the message acquisition request and obtaining the request command character in the message acquisition request, and then comparing and verifying the request command character with the preset request command character in the target network card device, the method further includes: If the request command character is successfully compared with the preset request command character in the target network card device, constructing the target response message according to the target state data corresponding to the target network card device; If the comparison between the request command character and the preset request command character in the target network card device fails, constructing the target response message is prohibited.

5. A network card status monitoring device, characterized in that: include: A message acquisition request sending module, used for constructing a message acquisition request based on a preset request command character, and sending the message acquisition request to a corresponding target network card device; A response message acquisition module, used for acquiring a target response message constructed by the target network card device according to the target state data corresponding to the target network card device, and writing the target response message into a log to obtain target log data; A log data query module, used to obtain a query command for the target network card device through a preset network card status query interface, and query the target log data corresponding to the target network card device according to the query command; A network card device judgment module, used to judge the state of the target network card device according to the target log data and preset rules; Wherein, the network card device determination module is specifically used for: Parsing the target log data to obtain the target status data corresponding to the target network card device; Determining the state of the target network card device according to the target state data and preset rules; The step of parsing the target log data to obtain the target status data corresponding to the target network card device specifically includes: Parsing the target log data to obtain the target network card running time and the current utilization rate of the target network card corresponding to the target network card device; The step of judging the state of the target network card device according to the target state data and a preset rule specifically includes: The remaining service life of the target network card of the target network card device is judged based on preset rules according to the target network card operation time and the current utilization rate of the target network card, so as to complete the status monitoring of the target network card device.

6. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the network card status monitoring method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the network card status monitoring method as described in any one of claims 1 to 4 are implemented.