CN114840263A - Network card management method, device, equipment and storage medium - Google Patents

Network card management method, device, equipment and storage medium Download PDF

Info

Publication number
CN114840263A
CN114840263A CN202210606091.8A CN202210606091A CN114840263A CN 114840263 A CN114840263 A CN 114840263A CN 202210606091 A CN202210606091 A CN 202210606091A CN 114840263 A CN114840263 A CN 114840263A
Authority
CN
China
Prior art keywords
network card
card information
information
state
latest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210606091.8A
Other languages
Chinese (zh)
Other versions
CN114840263B (en
Inventor
林玉兵
靳先奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210606091.8A priority Critical patent/CN114840263B/en
Publication of CN114840263A publication Critical patent/CN114840263A/en
Application granted granted Critical
Publication of CN114840263B publication Critical patent/CN114840263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a network card management method, a device, equipment and a storage medium, which relate to the technical field of computers and comprise the following steps: setting the state of the target function of the network card through a network card control page on the substrate management controller to obtain the current target function state; generating corresponding first network card information based on the current target function state and storing the first network card information to a preset memory; sending the first network card information to a basic input and output system so as to compare second network card information acquired in advance in a mode of traversing the network card at the starting-up stage with the first network card information and determine latest network card information; and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function in the latest network card information on a network card control page. According to the method and the device, the target function state of the network card is set on the network card control page, the corresponding network card is found and displayed by comparing the network card information and selecting the latest network card information, the network card is managed independently, and the performance of the network card is improved.

Description

Network card management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a network card management method, apparatus, device, and storage medium.
Background
With the increasing demand of clients on servers, the demand for out-of-band Management functions of network cards of the servers is higher and higher, wherein SR-IOV (Single Root I/O Virtualization) functions of the network cards are particularly prominent, but current BMC (Baseboard Management Controller) out-of-band Management can only achieve total on or total off of SR-IOV functions of all the network cards, and a client has no way to individually turn on or off SR-IOV functions of a certain network card, so that the Virtualization performance of the network cards cannot be fully utilized, and a certain trouble is caused in the aspect of using the network cards by the client.
Disclosure of Invention
In view of this, the present invention provides a network card management method, apparatus, device and storage medium, which can implement individual management of a network card and improve the performance of the network card. The specific scheme is as follows:
in a first aspect, the present application discloses a network card management method applied to a baseboard management controller, including:
setting the state of the target function of the network card through a network card control page on the substrate management controller to obtain the current target function state;
generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory;
sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information;
and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
Optionally, the generating of the first network card information corresponding to the network card based on the current target function state includes:
generating first network card information corresponding to the network card based on the current target function state, the network card bus, the network card identification number and the first timestamp; the network card identification number comprises a manufacturer identification number and an equipment identification number.
Optionally, the sending the first network card information in the preset memory to a basic input/output system, so that the basic input/output system compares second network card information obtained in advance in a manner of traversing a network card at a startup stage with the received first network card information, and determines latest network card information, including:
and sending the first network card information to a basic input and output system through a preset channel, so that the basic input and output system acquires second network card information in a mode of traversing a network card in a starting-up stage in advance, compares the second network card information with the received first network card information, and determines network card information corresponding to a second timestamp in the second network card information and a timestamp with more updated information in the first timestamp as the latest network card information if the comparison result is not completely the same.
Optionally, the matching of the corresponding target network card by using the latest network card information includes:
and if the second network card information is completely the same as the first network card information, directly utilizing the corresponding target network card matched with the network card identification number by the network card bus in the first network card information.
Optionally, if the comparison result is not completely the same, after determining the network card information corresponding to the second timestamp in the second network card information and the newer timestamp in the first timestamp as the latest network card information, the method further includes:
if the comparison result is that the network card information is not identical and the second network card information is the latest network card information, receiving the second network card information sent by the basic input and output system;
updating the first network card information by utilizing the second network card information;
correspondingly, the matching of the latest network card information with a corresponding target network card and the displaying of the state of the target function of the target network card on the network card control page as the state of the target function in the latest network card information include:
and matching the corresponding target network card by using the second network card information, and displaying the state of the target function of the target network card as the state of the target function in the second network card information on the network card control page.
Optionally, if the comparison result is that the information is not completely the same, determining the network card information corresponding to the second timestamp in the second network card information and the newer timestamp in the first timestamp as the latest network card information, further comprising:
and if the comparison result is that the network card buses are not identical and the first network card information is the latest network card information, directly utilizing the corresponding target network card which is matched with the network card identification number and in the first network card information.
Optionally, the sending the first network card information in the preset memory to a basic input/output system, so that the basic input/output system compares second network card information obtained in advance in a manner of traversing a network card at a startup stage with the received first network card information, and after determining latest network card information, the method further includes:
and sending the first network card information to the basic input and output system so that the basic input and output system compares second network card information acquired by the basic input and output system with the first network card information to determine latest network card information, and setting the corresponding target network card by using the latest network card information.
In a second aspect, the present application discloses a network card management device, which is applied to a baseboard management controller, and includes:
the state setting module is used for setting the state of the target function of the network card through a network card control page on the substrate management controller so as to obtain the current target function state;
the information generation module is used for generating first network card information corresponding to the network card based on the current target function state and storing the first network card information to a preset memory;
the information sending module is used for sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information which is acquired in advance in a mode of traversing a network card at a starting-up stage with the received first network card information, and determines latest network card information;
the network card matching module is used for matching the corresponding target network card by using the latest network card information;
and the state display module is used for displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the network card management method as disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the network card management method as disclosed above.
As can be seen, the present application provides a network card management method, including: setting the state of the target function of the network card through a network card control page on the substrate management controller to obtain the current target function state; generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory; sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information; and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page. Therefore, according to the method and the device, the function of the network card is set on the network card control page, then the corresponding network card information is generated, the two pieces of network card information are compared to obtain the latest network card information, the corresponding network card is found through the latest network card information, and the set function of the corresponding network card is displayed on the network card control page, so that the network card is managed independently, and the performance of the network card is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a network card management method disclosed in the present application;
fig. 2 is a flowchart of a specific network card management method disclosed in the present application;
fig. 3 is a flowchart of a specific network card management method disclosed in the present application;
FIG. 4 is a schematic diagram of an interaction message disclosed herein;
fig. 5 is a schematic structural diagram of a network card management device provided in the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, with the increasing demand of clients on a server, the demand of out-of-band management functions of a server network card is higher and higher, wherein SR-IOV functions of the network card are particularly outstanding, but the current BMC out-of-band management can only realize total on or total off of SR-IOV functions of all network cards, and a client has no way to independently open or close SR-IOV functions of a certain network card, so that the virtualization performance of the network card cannot be fully utilized, and certain trouble is caused in the aspect of using the network card by the client. Therefore, the network card management method is provided, the network card can be independently managed, and the performance of the network card is improved.
The embodiment of the invention discloses a network card management method, which is applied to a substrate management controller and is shown in figure 1, and the method comprises the following steps:
step S11: and setting the state of the target function of the network card through a network card control page on the baseboard management controller to obtain the current target function state.
In this embodiment, the state of the target function of the network card is set through the network card control page on the baseboard management controller, so as to obtain the current target function state. It can be understood that the baseboard management controller generates a network card control page, i.e. bmc web, which supports setting the target function state of the network card. The user can directly access the network card control page on the baseboard management controller, then select one or more network cards on the network card control page according to the actual situation, set the target function of the selected network card on the network card control page, and obtain the current target function state after the setting is completed.
The target function setting is normally an SR-IOV state, and can also be applied to other function states. And the target function state of the network card on the network card control page is usually a default closed state, and as can be understood, the target function state can be correspondingly controlled through the target function state control switch of each network card, so that if a user wants to open the target function state of a certain network card, the user can directly click the target function state control switch, and the target function state of the network card can be changed.
Step S12: and generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory.
In this embodiment, after the target function state is obtained, first network card information corresponding to the network card is generated based on the current target function state, and the first network card information is stored in a preset memory. It can be understood that, after the baseboard management controller determines that the user has modified the target function state of the network card, first network card information is generated according to the modified current target function state and the network card information corresponding to the network card with the modified target function state, that is, the first network card information is generated by the baseboard management controller, and the generated first network card information is stored in the preset memory. For example, the first network card information is stored in an EEPROM (Electrically Erasable Programmable Read-Only Memory) of the board management controller.
Step S13: and sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information.
In this embodiment, after the first network card information is stored in a preset memory, the first network card information in the preset memory is sent to a Basic Input Output System (bios), so that the bios compares second network card information, which is obtained in advance in a manner of traversing a network card at a power-on stage, with the received first network card information, and determines latest network card information. And after the latest network card information is determined in the basic input and output system, setting the corresponding target network card by using the latest network card information. It can be understood that a user may set a target function state of the network card on the baseboard management controller, or set a target function state of the network card on the basic input/output system, so that there may be a case where first network card information on the baseboard management controller is different from second network card information on the basic input/output system, at this time, time information in the first network card information and the second network card information needs to be compared, and then latest network card information is determined.
Step S14: and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
In this embodiment, after the latest network card information is determined, the latest network card information is used to match a corresponding target network card, and the state of the target function of the target network card is displayed as the state of the target function in the latest network card information on the network card control page. It can be understood that, if the second network card information of the basic input/output system is the latest network card information, the baseboard management controller matches the corresponding target network card by using the second network card information; and if the first network card information of the baseboard management controller is the latest network card information, the baseboard management controller matches the corresponding target network card by using the first network card information. And after the corresponding target network card is matched, displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page. It should be noted that the baseboard management controller matches the corresponding target network card with the network card identification number by using the network card bus in the network card information.
As can be seen, the present application provides a network card management method, including: setting the state of the target function of the network card through a network card control page on the substrate management controller to obtain the current target function state; generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory; sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information; and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page. Therefore, according to the method and the device, the function of the network card is set on the network card control page, the corresponding network card information is generated, the two pieces of network card information are compared to obtain the latest network card information, the corresponding network card is found through the latest network card information, and the set function of the corresponding network card is displayed on the network card control page, so that the network card is managed independently, and the performance of the network card is improved.
Referring to fig. 2, an embodiment of the present invention discloses a network card management method, and the embodiment further describes and optimizes the technical solution in comparison with the previous embodiment.
Step S21: and setting the state of the target function of the network card through a network card control page on the baseboard management controller to obtain the current target function state.
Step S22: and generating first network card information corresponding to the network card based on the current target function state, the network card bus, the network card identification number and the first timestamp.
In this embodiment, after the current target function state is obtained, first network card information corresponding to the network card is generated based on the current target function state, the network card bus, the network card identification number, and the first timestamp. It can be understood that the network card bus (bus) may change according to actual situations, i.e. the network card bus is not a fixed bus; the network card identification number (ID) comprises four pieces of ID information, wherein a manufacturer ID (manufacturer identification number) and a device ID (device identification number) are necessary information; the first timestamp is time information of a target function state set by the network card. It should be noted that the network card identification number is not changed, and the unique network card can be determined by the manufacturer identification number and the device identification number.
Step S23: and sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information.
In this embodiment, the first network card information is sent to the basic input/output system through a preset channel, so that the basic input/output system obtains second network card information in a manner of traversing a network card in advance at a startup stage, and then compares the second network card information with the received first network card information. It should be noted that, the information interaction between the bios and the bmc is implemented through a preset channel. For example, the preset channel may be a KCS channel, and may also be another suitable channel.
It can be understood that, after the server is powered on each time, the bios traverses (or polls) all the network cards to obtain the corresponding second network card information. And when the system of the server is restarted, the basic input and output system can automatically acquire the first network card information in the memory of the baseboard management controller through the preset channel. The information type contained in the first network card information is the same as the information type contained in the second network card information, that is, the second network card information contains the current target function state, the network card bus, the network card identification number and the second timestamp.
Step S24: and if the second network card information is completely the same as the first network card information, directly utilizing the corresponding target network card matched with the network card identification number by the network card bus in the first network card information.
In this embodiment, after the basic input/output system compares second network card information obtained in advance in a mode of traversing a network card at a startup stage with the received first network card information, if the second network card information is completely the same as the first network card information, a corresponding target network card is matched between the network card bus in the first network card information and the network card identification number. It can be understood that, if the content in the first network card information is the same as the content in the second network card information, it indicates that the network card information in the baseboard management controller and the basic input/output system are the latest information, and at this time, a target network card corresponding to the matching of the network card bus in the first network card information and the network card identification number is used between the baseboard management controllers.
Step S25: and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
In this embodiment, after the network card bus in the first network card information is used to match the corresponding target network card with the network card identification number, the state of the target function of the target network card is displayed on the network card control page as the state of the target function in the latest network card information. It can be understood that, at this time, the state of the target function displayed on the network card control page is the same as the state of the target function in the first network card information.
For details of the step S21, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
As can be seen, in the embodiment of the present application, the state of the target function of the network card is set through the network card control page on the baseboard management controller, so as to obtain the current target function state; generating first network card information corresponding to the network card based on the current target function state, the network card bus, the network card identification number and the first timestamp; sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information; if the second network card information is identical to the first network card information, directly utilizing the corresponding target network card matched with the network card identification number by the network card bus in the first network card information; and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page, thereby realizing the independent management of the network card and improving the performance of the network card.
Referring to fig. 3, an embodiment of the present invention discloses a network card management method, and the embodiment further describes and optimizes the technical solution in comparison with the previous embodiment.
Step S31: and setting the state of the target function of the network card through a network card control page on the baseboard management controller to obtain the current target function state.
Step S32: and generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory.
Step S33: and sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information.
In this embodiment, the first network card information in the preset memory is sent to the basic input/output system, so that the basic input/output system compares a second timestamp in second network card information obtained in advance in a mode of traversing a network card at a startup stage with the received first timestamp of the first network card information, and determines latest network card information from the network card information with more updated timestamp information (i.e., with a larger timestamp). And if the comparison result is that the network card buses are not identical and the first network card information is the latest network card information, directly utilizing the corresponding target network card which is matched with the network card identification number and in the first network card information. It should be noted that, when the first network card information is the latest network card information, the bios updates its own network card information by using the received first network card information, that is, updates the second network card information by using the first network card information.
It can be understood that the information exchanged between the baseboard management controller and the bios is shown in fig. 4, in which U8 SR-IOV Status represents SR-IOV state of the network card, U8 Nic Bus represents the network card Bus, U16 Vendor ID represents Vendor ID, U16 Device ID represents Device ID, and U32TimeStamp represents TimeStamp.
Step S34: and if the comparison result is that the second network card information is not identical and the second network card information is the latest network card information, receiving the second network card information sent by the basic input and output system.
In this embodiment, if the comparison result is that the second network card information is not identical and the second network card information is the latest network card information, the second network card information sent by the basic input and output system is received. It can be understood that, when the second timestamp is newer than the first timestamp, the second network card information is the latest network card information, and at this time, the bios sends the second network card information to the bmc through a preset channel (e.g., KCS channel).
Step S35: and updating the first network card information by utilizing the second network card information.
In this embodiment, after receiving the second network card information sent by the basic input/output system, the baseboard management controller updates the first network card information by using the second network card information.
It can be understood that, if the first network card information is not completely the same as the second network card information, no matter which of the first network card information and the second network card information is the latest network card information, the historical network card information is updated by using the latest network card information, that is, the first network card information and the second network card information are the same and latest network card information.
Step S36: and matching the corresponding target network card by using the second network card information, and displaying the state of the target function of the target network card as the state of the target function in the second network card information on the network card control page.
In this embodiment, after the first network card information is updated by using the second network card information, the corresponding target network card is matched by using the second network card information, and the state of the target function of the target network card is displayed as the state of the target function in the second network card information on the network card control page. It can be understood that the state of the target function of the target network card finally displayed on the network card control page (e.g., bmc web) is the state of the target function of the latest network card information.
For the details of the steps S31 and S32, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
As can be seen, in the embodiment of the present application, the state of the target function of the network card is set through the network card control page on the baseboard management controller, so as to obtain the current target function state; generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory; sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information; if the comparison result is that the network card information is not identical and the second network card information is the latest network card information, receiving the second network card information sent by the basic input and output system; updating the first network card information by utilizing the second network card information; and matching the corresponding target network card by using the second network card information, and displaying the state of the target function of the target network card as the state of the target function in the second network card information on the network card control page, thereby realizing the independent management of the network card and improving the performance of the network card.
Referring to fig. 5, an embodiment of the present application further discloses a network card management apparatus correspondingly, which is applied to a baseboard management controller, and includes:
the state setting module 11 is configured to set a state of a target function of the network card through a network card control page on the baseboard management controller, so as to obtain a current target function state;
the information generating module 12 is configured to generate first network card information corresponding to the network card based on the current target function state, and store the first network card information in a preset memory;
the information sending module 13 is configured to send the first network card information in the preset memory to a basic input/output system, so that the basic input/output system compares second network card information obtained in advance in a manner of traversing a network card at a startup stage with the received first network card information, and determines latest network card information;
the network card matching module 14 is configured to match the corresponding target network card with the latest network card information;
and the state display module 15 is configured to display the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
As can be seen, the present application includes: setting the state of the target function of the network card through a network card control page on the substrate management controller to obtain the current target function state; generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory; sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information; and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page. Therefore, according to the method and the device, the function of the network card is set on the network card control page, then the corresponding network card information is generated, the two pieces of network card information are compared to obtain the latest network card information, the corresponding network card is found through the latest network card information, and the set function of the corresponding network card is displayed on the network card control page, so that the network card is managed independently, and the performance of the network card is improved.
In some specific embodiments, the state setting module 11 specifically includes:
and the state setting unit is used for setting the state of the target function of the network card through a network card control page on the substrate management controller so as to obtain the current target function state.
In some specific embodiments, the information generating module 12 specifically includes:
the information generating unit is used for generating first network card information corresponding to the network card based on the current target function state, the network card bus, the network card identification number and the first timestamp; the network card identification number comprises a manufacturer identification number and an equipment identification number;
and the information storage unit is used for storing the first network card information to a preset memory.
In some specific embodiments, the information sending module 13 specifically includes:
an information sending unit, configured to send the first network card information to the basic input/output system through a preset channel, so that after the basic input/output system obtains second network card information in a manner of traversing a network card in a booting stage in advance, the second network card information is compared with the received first network card information, and if a comparison result is not completely the same, network card information corresponding to a timestamp in the second network card information, which is newer than that in the first timestamp, is determined to be latest network card information;
the network card setting unit is used for sending the first network card information to the basic input and output system so that the basic input and output system can compare second network card information acquired by the basic input and output system with the first network card information to determine latest network card information, and setting the corresponding target network card by using the latest network card information;
a second network card information receiving unit, configured to receive the second network card information sent by the basic input/output system if the comparison result is that the second network card information is not identical and the second network card information is the latest network card information;
and the updating unit is used for updating the first network card information by utilizing the second network card information.
In some specific embodiments, the network card matching module 14 specifically includes:
the first matching unit is used for directly matching the corresponding target network card with the network card identification number by using the network card bus in the first network card information if the second network card information is completely the same as the first network card information;
the second matching unit is used for directly matching the corresponding target network card with the network card identification number by using the network card bus in the first network card information if the comparison result is that the first network card information is not completely the same and the first network card information is the latest network card information;
and the third matching unit is used for matching the corresponding target network card by using the second network card information if the comparison result is that the target network card information is not completely the same and the second network card information is the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the second network card information on the network card control page.
In some specific embodiments, the status display module 15 specifically includes:
and the state display unit is used for displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
Further, the embodiment of the application also provides electronic equipment. FIG. 6 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically 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 configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the network card management method disclosed in any one of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working 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 an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, Netware, Unix, Linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the network card management method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, an embodiment of the present application further discloses a storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the steps of the network card management method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The network card management method, apparatus, device and storage medium provided by the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A network card management method is applied to a baseboard management controller and comprises the following steps:
setting the state of the target function of the network card through a network card control page on the substrate management controller to obtain the current target function state;
generating first network card information corresponding to the network card based on the current target function state, and storing the first network card information to a preset memory;
sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information acquired in advance in a network card traversing mode at a starting-up stage with the received first network card information, and determines latest network card information;
and matching the corresponding target network card by using the latest network card information, and displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
2. The network card management method of claim 1, wherein the generating first network card information corresponding to the network card based on the current target function state comprises:
generating first network card information corresponding to the network card based on the current target function state, the network card bus, the network card identification number and the first timestamp; the network card identification number comprises a manufacturer identification number and an equipment identification number.
3. The network card management method according to claim 2, wherein the sending the first network card information in the preset memory to a basic input/output system, so that the basic input/output system compares second network card information obtained in advance in a mode of traversing a network card at a boot stage with the received first network card information, and determines latest network card information, includes:
and sending the first network card information to a basic input and output system through a preset channel, so that the basic input and output system acquires second network card information in a mode of traversing a network card in a starting-up stage in advance, compares the second network card information with the received first network card information, and determines network card information corresponding to a second timestamp in the second network card information and a timestamp with more updated information in the first timestamp as the latest network card information if the comparison result is not completely the same.
4. The network card management method of claim 3, wherein the matching of the corresponding target network card with the latest network card information comprises:
and if the second network card information is completely the same as the first network card information, directly utilizing the corresponding target network card matched with the network card identification number by the network card bus in the first network card information.
5. The network card management method according to claim 4, wherein if the comparison result is that the comparison result is not completely the same, after determining the network card information corresponding to the timestamp of the second timestamp in the second network card information and the timestamp of the first timestamp, which is newer than the information, as the latest network card information, the method further comprises:
if the comparison result is that the network card information is not identical and the second network card information is the latest network card information, receiving the second network card information sent by the basic input and output system;
updating the first network card information by utilizing the second network card information;
correspondingly, the matching of the latest network card information with a corresponding target network card and the displaying of the state of the target function of the target network card on the network card control page as the state of the target function in the latest network card information include:
and matching the corresponding target network card by using the second network card information, and displaying the state of the target function of the target network card as the state of the target function in the second network card information on the network card control page.
6. The network card management method according to claim 4, wherein if the comparison result is that the comparison result is not completely the same, after determining the network card information corresponding to the timestamp of the second timestamp in the second network card information and the timestamp of the first timestamp, which is newer than the information, as the latest network card information, the method further comprises:
and if the comparison result is that the network card buses are not identical and the first network card information is the latest network card information, directly utilizing the corresponding target network card which is matched with the network card identification number and in the first network card information.
7. The network card management method according to any one of claims 1 to 6, wherein the sending the first network card information in the preset memory to a basic input/output system, so that the basic input/output system compares second network card information obtained in advance in a boot stage by traversing a network card with the received first network card information, and after determining latest network card information, further comprises:
and sending the first network card information to the basic input and output system so that the basic input and output system compares second network card information acquired by the basic input and output system with the first network card information to determine latest network card information, and setting the corresponding target network card by using the latest network card information.
8. A network card management device is applied to a baseboard management controller and comprises:
the state setting module is used for setting the state of the target function of the network card through a network card control page on the substrate management controller so as to obtain the current target function state;
the information generation module is used for generating first network card information corresponding to the network card based on the current target function state and storing the first network card information to a preset memory;
the information sending module is used for sending the first network card information in the preset memory to a basic input and output system, so that the basic input and output system compares second network card information which is acquired in advance in a mode of traversing a network card at a starting-up stage with the received first network card information, and determines latest network card information;
the network card matching module is used for matching the corresponding target network card by using the latest network card information;
and the state display module is used for displaying the state of the target function of the target network card as the state of the target function in the latest network card information on the network card control page.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program to implement the steps of the network card management method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the network card management method of any one of claims 1 to 7.
CN202210606091.8A 2022-05-31 2022-05-31 Network card management method, device, equipment and storage medium Active CN114840263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210606091.8A CN114840263B (en) 2022-05-31 2022-05-31 Network card management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210606091.8A CN114840263B (en) 2022-05-31 2022-05-31 Network card management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114840263A true CN114840263A (en) 2022-08-02
CN114840263B CN114840263B (en) 2023-07-14

Family

ID=82571434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210606091.8A Active CN114840263B (en) 2022-05-31 2022-05-31 Network card management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114840263B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627770A (en) * 2023-07-18 2023-08-22 苏州浪潮智能科技有限公司 Network card temperature prediction method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992318A (en) * 2019-04-12 2019-07-09 苏州浪潮智能科技有限公司 A kind of NCSI method for parameter configuration, system, device and readable storage medium storing program for executing
CN111464377A (en) * 2020-03-12 2020-07-28 苏州浪潮智能科技有限公司 Network card inspection method, device, equipment and storage medium
CN112000380A (en) * 2020-08-13 2020-11-27 北京浪潮数据技术有限公司 Network card configuration method, system, electronic equipment and storage medium
CN113517996A (en) * 2021-03-26 2021-10-19 山东英信计算机技术有限公司 Network card equipment polling method, system and related device
CN113645060A (en) * 2021-06-30 2021-11-12 苏州浪潮智能科技有限公司 Network card configuration method, data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992318A (en) * 2019-04-12 2019-07-09 苏州浪潮智能科技有限公司 A kind of NCSI method for parameter configuration, system, device and readable storage medium storing program for executing
CN111464377A (en) * 2020-03-12 2020-07-28 苏州浪潮智能科技有限公司 Network card inspection method, device, equipment and storage medium
CN112000380A (en) * 2020-08-13 2020-11-27 北京浪潮数据技术有限公司 Network card configuration method, system, electronic equipment and storage medium
CN113517996A (en) * 2021-03-26 2021-10-19 山东英信计算机技术有限公司 Network card equipment polling method, system and related device
CN113645060A (en) * 2021-06-30 2021-11-12 苏州浪潮智能科技有限公司 Network card configuration method, data processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627770A (en) * 2023-07-18 2023-08-22 苏州浪潮智能科技有限公司 Network card temperature prediction method and device, computer equipment and storage medium
CN116627770B (en) * 2023-07-18 2023-09-26 苏州浪潮智能科技有限公司 Network card temperature prediction method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114840263B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US8601466B2 (en) Software deployment method and system, software deployment server and user server
US9250672B2 (en) Cloning target machines in a software provisioning environment
US10203946B2 (en) Retiring target machines by a provisioning server
US8775578B2 (en) Providing hardware updates in a software environment
US8892700B2 (en) Collecting and altering firmware configurations of target machines in a software provisioning environment
US9411570B2 (en) Integrating software provisioning and configuration management
US8402123B2 (en) Systems and methods for inventorying un-provisioned systems in a software provisioning environment
US8898305B2 (en) Providing power management services in a software provisioning environment
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
US20090031299A1 (en) Systems and methods for firmware cloning
CN103294765A (en) Policy-based approach and system for provisioning and transforming virtual appliances
CN110855746A (en) Middleware management method, electronic device and storage medium
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN114840263B (en) Network card management method, device, equipment and storage medium
CN114115917A (en) Operating system installation method and device
CN114327536A (en) Server operation and maintenance method, device, equipment and storage medium
US20150220350A1 (en) Information processing device and method for managing information processing device
CN106484442B (en) Server system and method for updating startup mapping file
CN114885032B (en) Method, device, equipment and medium for generating and displaying equipment information
US11829781B2 (en) Method of remotely modifying basic input/output system configuration setting
CN113687910A (en) Method, device, equipment and storage medium for managing USB (universal serial bus) equipment in cluster
CN111414175A (en) Network installation method, system and device of operating system and readable storage medium
JPH10336208A (en) Information processor
CN114756252A (en) Method, device, equipment and medium for installing and configuring client outside big data cluster
CN105959152B (en) Terminal management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant