CN115834379A - Server network card upgrading method, device, equipment and storage medium - Google Patents
Server network card upgrading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115834379A CN115834379A CN202211372360.5A CN202211372360A CN115834379A CN 115834379 A CN115834379 A CN 115834379A CN 202211372360 A CN202211372360 A CN 202211372360A CN 115834379 A CN115834379 A CN 115834379A
- Authority
- CN
- China
- Prior art keywords
- network card
- upgraded
- upgrading
- network
- version
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000013461 design Methods 0.000 claims abstract description 18
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012423 maintenance Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 12
- 238000004519 manufacturing process Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 7
- 238000009434 installation Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000750 progressive effect Effects 0.000 description 2
- 238000007650 screen-printing Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000010923 batch production Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the application provides an upgrading method, a device, equipment and a storage medium of a server network card, which are applied to a server, wherein the server has at least two in-place network cards with the same chip and different network card models and/or different network card forms, and the at least two in-place network cards are inserted into the server based on a hot plug design, and the method comprises the following steps: receiving a network card upgrading requirement request sent by a client; acquiring a network card identifier of the network card to be upgraded in a server based on the network card information of the network card to be upgraded, and generating configuration information aiming at the network card to be upgraded according to the network card identifier; and performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the configuration information, and performing upgrading operation on the current network card required to be upgraded based on the version requirement required to be upgraded. The network card upgrading operation with different network card upgrading requirements on the on-site network card is realized under the condition that the chassis is not opened and the network cards are not plugged, the FW upgrading requirements of various network cards are met, and the batch maintenance of network card upgrading is facilitated.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an upgrade method for a server network card, an upgrade apparatus for a server network card, a corresponding electronic device, and a corresponding non-volatile computer-readable storage medium.
Background
When a general PC (Personal Computer) accesses a local area network or the internet, only one network card is usually needed to implement the access, and in order to meet the requirements of a server in the aspect of network, the server usually needs two or more network cards to provide a high-speed network connection capability for the server based on the network cards, and with the continuous development and growth of the server, the requirements of customers on the network cards are higher and higher, and the use of the network cards on the server needs to be comprehensively tested and verified in terms of functionality, stability, performance and the like.
In the related technology of upgrading the network cards of the server, generally, all the network cards FW (FirmWare versions, usually FW versions) of the same chip of the same manufacturer are upgraded, which means that when a network card in an OCP form (referring to an LOM card defined based on Open computer Project organization, where the LOM card is an integrated network card, usually a network card capable of providing a high-speed network interface from a motherboard) and a network card in an FW form (i.e. a PCIE standard card, i.e. a network card capable of providing a high-speed network interface from a PCIE slot on the motherboard) of the same chip exist on the server at the same time, a requirement for upgrading only one type of network card cannot be realized in a boot state, and it is difficult to meet requirements for upgrading multiple types of network cards.
Disclosure of Invention
In view of the above problems, embodiments of the present application are provided to provide a method for upgrading a server network card, an apparatus for upgrading a server network card, a corresponding electronic device, and a corresponding non-volatile computer-readable storage medium, which overcome or at least partially solve the above problems.
The embodiment of the application discloses a method for upgrading a network card of a server, which is applied to the server, wherein the server has at least two in-place network cards with the same chip and different network card models and/or different network card forms, and the at least two in-place network cards are inserted into the server based on a hot plug design, and the method comprises the following steps:
the method comprises the steps that a server receives a network card upgrading requirement request sent by a client, wherein the network card upgrading requirement request comprises network card information of a network card to be upgraded and an upgrading version requirement to be upgraded;
acquiring a network card identifier of the network card to be upgraded in a server based on the network card information of the network card to be upgraded, and generating configuration information aiming at the network card to be upgraded according to the network card identifier; the configuration information is used for indicating the network card position and the upgrading version requirement aiming at the network card required to be upgraded, wherein the upgrading version requirement aiming at the network card required to be upgraded comprises different upgrading version requirements of the same chip and/or the same upgrading version requirement of the same chip and/or the original version requirement of the same chip;
and performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the configuration information, and performing upgrading operation on the current network card required to be upgraded based on the version requirement required to be upgraded.
Optionally, generating configuration information for the network card to be upgraded according to the network card identifier includes:
acquiring the network card model of the network card to be upgraded, the current network card version and the network card position of the network card to be upgraded at the server according to the network card identifier of the network card to be upgraded at the server;
and generating configuration information aiming at the network card to be upgraded by adopting the network card model of the network card to be upgraded, the current network card version, the network card position of the network card to be upgraded and the upgrade version requirement to be upgraded.
Optionally, performing power-off operation on other in-place network cards except the current network card to be upgraded according to the configuration information, and performing upgrade operation on the current network card to be upgraded based on the version requirement to be upgraded, including:
judging whether the same chip with different upgrading version requirements exist in the network card to be upgraded according to the configuration information, and if the same chip with different upgrading version requirements exist in the network card to be upgraded, determining an upgrading sequence based on the different upgrading version requirements;
and sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are subjected to upgrading operation according to different upgrading version requirements.
Optionally, sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are upgraded according to different upgrading version requirements, including:
when the fact that the same chip has different upgrading version requirements is determined in the network card to be upgraded, determining a first network card to be upgraded according to an upgrading sequence, and acquiring the network card position of the first network card to be upgraded and the network card positions of other in-place network cards except the network card position of the first network card to be upgraded;
based on the network card positions of other in-place network cards, performing power-off operation on the other in-place network cards except the first upgraded network card required to be upgraded, and performing upgrading operation on the first upgraded network card required to be upgraded according to the version requirement required to be upgraded;
and performing power-off operation on the first upgraded network card required to be upgraded after the upgrading operation is completed, and performing upgrading operation on the subsequent network cards required to be upgraded according to different upgrading version requirements according to the upgrading sequence.
Optionally, the power-off operation is performed on the first upgraded required upgrading network card after the upgrade operation is completed, and the upgrade operation is performed on the subsequent required upgrading network card according to different upgrading version requirements according to the upgrading sequence, including:
after the upgrading of the first upgraded network card required to be upgraded is completed, if different upgrading version requirements still exist in the network card required to be upgraded, the network card required to be upgraded still having different upgrading version requirements is obtained, the network card required to be upgraded after the upgrading is completed is powered off, and the network card version of the network card required to be upgraded is upgraded according to the corresponding upgrading version requirements.
Optionally, performing a power-off operation on the other in-place network cards except the current network card to be upgraded according to the configuration information, and performing an upgrade operation on the current network card to be upgraded based on a version requirement to be upgraded, further comprising:
and judging whether the same upgrading version requirement of the same chip exists in the network card to be upgraded or not according to the configuration information, if the same upgrading version requirement of the same chip exists in the network card to be upgraded, acquiring the network card to be upgraded with the same upgrading version requirement, and upgrading the network card to be upgraded according to the version requirement to be upgraded.
Optionally, performing a power-off operation on the other in-place network cards except the current network card to be upgraded according to the configuration information, and performing an upgrade operation on the current network card to be upgraded based on a version requirement to be upgraded, further comprising:
judging whether the same chip needs to keep the original version in the network card to be upgraded or not according to the configuration information, and if the same chip needs to keep the original version in the network card to be upgraded, acquiring the position of the network card which needs to keep the original version in the in-place network card of the server;
and performing power-off operation on the in-place network card corresponding to the network card position retaining the original version requirement, and performing upgrading operation on other in-place network cards except the network card position retaining the original version requirement based on the version requirement required to be upgraded.
The embodiment of the invention also discloses an upgrading device of the network card of the server, which is applied to the server, the server has at least two in-place network cards with the same chip and different network card models and/or different network card forms, the at least two in-place network cards are inserted into the server based on the hot plug design, and the device comprises:
the network card upgrading request receiving module is used for receiving a network card upgrading request sent by a client, and the network card upgrading request comprises network card information of a network card to be upgraded and an upgrading version requirement to be upgraded;
the configuration information generation module is used for acquiring a network card identifier of the network card to be upgraded in the server based on the network card information of the network card to be upgraded and generating configuration information aiming at the network card to be upgraded according to the network card identifier; the configuration information is used for indicating the network card position and the upgrading version requirement aiming at the network card required to be upgraded, wherein the upgrading version requirement aiming at the network card required to be upgraded comprises different upgrading version requirements of the same chip and/or the same upgrading version requirement of the same chip and/or the original version requirement of the same chip;
and the network card upgrading module is used for carrying out power-off operation on other in-place network cards except the current network card required to be upgraded according to the configuration information and carrying out upgrading operation on the current network card required to be upgraded based on the version requirement required to be upgraded.
Optionally, the configuration information generating module includes:
the network card position determining submodule is used for acquiring the network card model of the network card to be upgraded, the current network card version and the network card position of the network card to be upgraded in the server according to the network card identification of the network card to be upgraded in the server;
and the configuration information generation submodule is used for generating configuration information aiming at the network card required to be upgraded by adopting the network card model of the network card required to be upgraded, the current network card version, the network card position of the network card required to be upgraded in the server and the upgrade version requirement required to be upgraded.
Optionally, the network card upgrading module includes:
the upgrading sequence determining submodule is used for judging whether the same chip with different upgrading version requirements exists in the network card to be upgraded according to the configuration information, and if the same chip with different upgrading version requirements exists in the network card to be upgraded, determining the upgrading sequence based on the different upgrading version requirements;
and the first network card upgrading submodule is used for sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on other network cards in place except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are upgraded according to different upgrading version requirements.
Optionally, the first network card upgrading sub-module includes:
the first network card position determining unit is used for determining the first upgrading required network card according to the upgrading sequence when the same chip with different upgrading version requirements exists in the upgrading required network card, and acquiring the network card position of the first upgrading required network card and the network card positions of other in-place network cards except the network card position of the first upgrading required network card;
the first network card upgrading unit is used for carrying out power-off operation on other in-place network cards except the network card required to be upgraded for the first upgrade based on the network card positions of the other in-place network cards, and carrying out upgrading operation on the network card required to be upgraded for the first upgrade according to the version requirement required to be upgraded;
and the subsequent network card upgrading unit is used for performing power-off operation on the first upgraded network card required to be upgraded after the upgrading operation is completed, and performing upgrading operation on the subsequent network card required to be upgraded according to different upgrading version requirements according to the upgrading sequence.
Optionally, the subsequent network card upgrading unit includes:
and the subsequent network card upgrading subunit is used for acquiring the required upgrading network card still having different upgrading version requirements if the required upgrading network card still has different upgrading version requirements after the upgrading of the required upgrading network card for the first upgrading is completed, performing power-off operation on the required upgrading network card after the upgrading is completed, and upgrading the network card version of the required upgrading network card according to the corresponding upgrading version requirements.
Optionally, the network card upgrading module further includes:
and the upgrading submodule is used for judging whether the same chip same upgrading version requirements exist in the network card to be upgraded according to the configuration information, if the same chip same upgrading version requirements exist in the network card to be upgraded, acquiring the network card to be upgraded with the same upgrading version requirements, and upgrading the network card to be upgraded according to the version requirements to be upgraded.
Optionally, the network card upgrading module further includes:
the network card position determining submodule is used for judging whether the same chip in the network card required to be upgraded needs to reserve the original version according to the configuration information, and if the same chip in the network card required to be upgraded needs to reserve the original version, the network card position which reserves the original version need is obtained in the on-site network card of the server;
and the second network card upgrading submodule is used for powering off the in-place network card corresponding to the network card position retaining the original version requirement and upgrading the other in-place network cards except the network card position retaining the original version requirement based on the version requirement required to be upgraded.
The embodiment of the invention also discloses an electronic device, which comprises: the system comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the upgrading method of any one server network card when being executed by the processor.
The embodiment of the invention also discloses a nonvolatile computer readable storage medium, wherein a computer program is stored on the nonvolatile computer readable storage medium, and when being executed by a processor, the computer program realizes the upgrading method of any server network card.
The embodiment of the application has the following advantages:
in the embodiment of the application, when at least two in-place network cards with different network card models and/or different network card forms of the same chip exist on the server, the in-place network card on the server can be designed based on hot plug, so that when a network card upgrading requirement request sent by a client is received, other in-place network cards except the currently required upgrading network card can be powered off based on corresponding configuration information of the network card required to be upgraded, the currently required upgrading network card is upgraded based on the version requirement required to be upgraded, the in-place network card can be upgraded without opening a case and plugging the network card, the in-place network card is upgraded according to different upgrading version requirements of the same chip without opening the case, the in-place network card is upgraded without performing upgrading operation of the other in-place network card, the requirements of the client on various FW (firmware) can be met, automatic upgrading operation can be performed based on the configuration information, batch maintenance and upgrading of the network cards is facilitated, the upgrading efficiency of the network cards is improved, and the workload is saved.
Drawings
Fig. 1 is a flowchart illustrating steps of an embodiment of a method for upgrading a network card of a server according to the present application;
FIG. 2 is a flowchart illustrating steps of another embodiment of a method for upgrading a network card of a server according to the present application;
fig. 3 is a flowchart illustrating steps of another embodiment of a method for upgrading a network card of a server according to the present application;
fig. 4 is a schematic application flow diagram of a method for upgrading a server network card according to an embodiment of the present application;
fig. 5 is a block diagram illustrating an embodiment of an upgrading apparatus for a server network card according to the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an upgrading method for a server network card according to an embodiment of the present application;
fig. 7 is a schematic diagram of a non-volatile computer-readable storage medium for implementing an upgrading method of a server network card according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
When a manufacturer releases a network card, usually one network card may have multiple FW versions, and FW versions with different characteristics are required for different customers, many times these different FW versions may be mutually converted, and when a customer purchases the network card, the customer may purchase an excessive amount of hard disks of a certain FW version, but after a while, there may be situations that the FW version has an updatable FW version or a better FW version in terms of performance or energy consumption, and at this time, a production line is required to refresh the FW versions, and then the FW versions are matched with machines with different configurations for shipment. After a client uses a certain FW for a long time, the FW version may not meet the current requirements along with the service requirements, and the network card FW on the existing server needs to be upgraded.
In the related technology for upgrading the network cards of the server, if the FW of all the network cards of the same manufacturer on the server is the same, the FW upgrade test of the network cards is usually directly carried out, and the server can upgrade the network cards of the same manufacturer on the same chip; when network cards with different network card forms of the same chip, such as an OCP network card and a PCIE network card, exist on a server at the same time and the FW of the sub-network cards is different, or when it is only desired to upgrade the FW of one network card (for example, OCP) and the FW of the other network cards (PCIE types) remain unchanged, the server needs to be powered off first, and the PCIE network card is pulled out, and then the FW of the OCP network card is upgraded when the server is powered on, and then the PCIE network card is inserted, so that the FW upgrade of only one network card type can be realized. In addition, the upgrading of the network card FW in the production line or the customer site causes inconvenience and extra workload.
One of the core ideas of the embodiment of the application is that when at least two in-place network cards with the same chip and different network card models and/or different network card forms exist on a server, the in-place network cards on the server can be subjected to hot plug-based design, the in-place network cards which are not upgraded currently are kept in place in a power-off mode, the network cards which need to be upgraded currently are kept in place, and the network cards FW (firmware) of the network cards are upgraded independently, so that the requirement of upgrading the same chip of the server into different network cards FW (firmware) is met in a mode that a case is not opened and the network cards are not plugged, the requirement of producing the same chip of the server into different network cards FW in batch on a production line is met, and the requirement of upgrading various network cards FW by a client can be met; and establishing a network card FW configuration file for the network card, and performing automatic upgrading operation based on the configuration information to realize simultaneous network card FW upgrading for the network cards of multiple servers, so that sequential upgrading of the network cards one by one is avoided, batch maintenance of network card upgrading is facilitated, the network card FW upgrading efficiency is improved, and the workload of production line workers for disassembling and assembling machines and network cards to realize FW upgrading of different network cards on the same chip is greatly saved. Furthermore, for the client, the maintenance operation of the boot box cover is avoided, the requirement that different network card FW upgrades of the network cards of the same chip on the same server are realized based on the command operation according to the configuration information is met, and the maintainability of the server is improved.
Referring to fig. 1, a flowchart of steps of an embodiment of a method for upgrading a server network card according to the present application is shown, and when the method is applied to a server, the method specifically includes the following steps:
the network cards on the server can be represented as network cards of the same chip, can be network cards of different network card models, can also be network cards of different network card forms (such as OCP network cards or PCIE network cards), and can also be network cards of the same form but with different network card models; even if the same chip is used, the network models of the multiple network cards included in the same chip are different, wherein the network models may refer to slots used by the network cards in the server. Generally, however, a network card of one network card model generally has only one chip.
It should be noted that the network card model corresponds to a specific PN code, and the OCP type and the PCIE type are only roughly classified from the form of the network card, that is, the OCP-form network card and the PCIE-form network card can be classified into many network card models.
In order to realize the upgrading operation of different upgrading version requirements of the same chip on the in-place network card under the condition of not opening a chassis and plugging and unplugging the network card, and realize the upgrading operation of one in-place network card on the in-place network card without performing the upgrading operation of the other in-place network card so as to meet the upgrading requirements of customers on various network cards FW, when at least two in-place network cards with different network card models and/or different network card forms of the same chip exist on a server, the in-place network cards on the server can be subjected to hot plug design, namely at least two in-place network cards are inserted into the server based on the hot plug design.
The hot plug refers to hot plug, and the hot plug function is to allow a user to disconnect a certain component from the system based on power-off operation under the condition of not closing the system and not cutting off the power supply, so that the hot plug design is carried out to realize the out-of-position phenomenon of the network card which is not upgraded temporarily under the condition of not realizing physical plug of the network card, and the network card required to be upgraded is conveniently upgraded independently.
In the embodiment of the application, the network card to be upgraded can be determined based on the network card upgrading requirement sent by the client, the received network card upgrading requirement request can include the network card information of the network card to be upgraded and the upgrading version requirement to be upgraded, and at the moment, the server can determine the network card to be upgraded based on the network card information in the network card upgrading requirement request, so that the subsequent power-off operation of the network card not to be upgraded is facilitated; the server can determine whether the network cards required to be upgraded in the in-place network cards have different upgrading requirements or not based on the upgrading version requirements in the network card upgrading requirement request so as to determine an upgrading sequence and carry out network card upgrading operation based on the upgrading sequence; and the server can also determine whether the in-place network cards with the same upgrading requirements exist based on the upgrading version requirements in the request so as to realize batch upgrading operation in the subsequent network card upgrading process.
102, acquiring a network card identifier of a network card to be upgraded in a server based on network card information of the network card to be upgraded, and generating configuration information aiming at the network card to be upgraded according to the network card identifier;
after receiving a network card upgrading requirement request sent by a client, at this time, a network card identifier of the network card to be upgraded in a server can be acquired based on network card information of the network card to be upgraded, and a network card identifier BDF (Bus Device Function, which may be represented as a Bus number, a Device number, and a Function number in sequence) may be a unique identifier of the on-site network card in the server, so as to determine relevant on-site information of the network card to be upgraded in the server based on the unique identifier, and generate configuration information.
The configuration information may be used to indicate a network card position and an upgrade version requirement for the network card to be upgraded, and specifically may be used to indicate a network card position when the power-off operation is performed on the in-place network card in the server subsequently, and a network card upgrade requirement required to be met when the upgrade operation is performed on the network card to be upgraded subsequently. In practical application, based on the indication of the configuration information, the network card to be upgraded can be upgraded as required, the network cards of a plurality of servers can be upgraded with the FW (firmware upgrade) of the network cards at the same time, the sequential upgrading of the network cards one by one is avoided, the upgrading of the network cards is convenient to maintain in batches, the FW upgrading efficiency of the network cards is improved, and the workload of production line workers for disassembling and assembling machines and the network cards to realize the FW upgrading of different network cards on the same chip is greatly saved.
The upgrade version requirements indicated by the configuration information may generally include different upgrade version requirements of the same chip, and/or the same chip retains the original version requirements. And judging whether the network card required to be upgraded has different upgrading requirements or not, wherein the judgment can be mainly carried out based on whether the version required to be upgraded is the same or not.
And 103, performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the configuration information, and performing upgrading operation on the current network card required to be upgraded based on the version requirement required to be upgraded.
After the configuration information for indicating the network card position and the upgrade version requirement for the network card to be upgraded is obtained, the configuration information can be used for indicating the subsequent network card position when the network card in place in the server is powered off and the network card upgrade requirement required to be met when the network card to be upgraded is subsequently upgraded, at this time, other network cards in place except the current network card to be upgraded can be automatically powered off based on the configuration information, namely, the network card in place on the server is designed based on hot plug, the network card to be upgraded is kept in place by keeping the current network card not to be upgraded in a power off mode, and the network card FW upgrade is separately performed on the network card/batch of network cards, so that the requirement of upgrading the same chip of the server into different FWs in a mode of not opening a case and not plugging the network cards is met.
When the network card in place except the current network card required to be upgraded is powered off, the current network card required to be upgraded which is kept in place can be upgraded according to the requirement of the required upgrade version.
In an embodiment of the application, after the upgrade operation is performed, the server may be restarted and the network card FW is detected to determine whether the upgrade is successful, and if the upgrade is failed, a prompt message may be generated to prompt the manual upgrade.
In the embodiment of the application, when at least two in-place network cards with different network card models and/or different network card forms of the same chip exist on the server, the in-place network card on the server can be designed based on hot plug, so that when a network card upgrading requirement request sent by a client is received, other in-place network cards except the currently required upgrading network card can be powered off based on corresponding configuration information of the network card required to be upgraded, the currently required upgrading network card is upgraded based on the version requirement required to be upgraded, the in-place network card can be upgraded without opening a case and plugging the network card, the in-place network card is upgraded according to different upgrading version requirements of the same chip without opening the case, the in-place network card is upgraded without performing upgrading operation of the other in-place network card, the requirements of the client on various FW (firmware) can be met, automatic upgrading operation can be performed based on the configuration information, batch maintenance and upgrading of the network cards is facilitated, the upgrading efficiency of the network cards is improved, and the workload is saved.
Referring to fig. 2, a flowchart of steps of another embodiment of a method for upgrading a server network card according to the present application is shown, which may specifically include the following steps:
in the embodiment of the application, in order to realize the upgrading operation of different upgrading version requirements of the same chip on the on-site network card without opening a chassis and plugging the network card, and realize the upgrading operation of one on-site network card without performing the upgrading operation of the other on-site network card on the on-site network card, so as to meet the requirements of a client on upgrading FW of various network cards, when at least two on-site network cards of different network card models and/or different network card forms of the same chip exist on a server, the on-site network card on the server can be subjected to hot plug design, that is, at least two on-site network cards are inserted into the server based on the hot plug design, so that the phenomenon that the network card which is not temporarily upgraded is not in place is realized under the condition that the physical plugging of the network card is not realized through the hot plug design, and the network card which is required to be upgraded is convenient to upgrade alone.
In practical application, the network card to be upgraded can be determined based on the network card upgrading requirement sent by the client, the received network card upgrading requirement request can include network card information of the network card to be upgraded and upgrading version requirement to be upgraded, at this time, the network card identifier BDF of the network card to be upgraded in the server can be obtained based on the network card information of the network card to be upgraded, relevant in-place information of the network card to be upgraded in the server is determined, and configuration information is generated.
In a specific implementation, the network card model of the network card to be upgraded, the current network card version, and the network card position of the network card to be upgraded at the server may be queried according to the network card identifier of the network card to be upgraded at the server, and then configuration information for the network card to be upgraded is generated based on the queried network card model of the network card to be upgraded, the current network card version, the network card position of the network card to be upgraded at the server, and the upgrade version requirement of the network card to be upgraded.
Then, the configuration information may be used to indicate a network card position and an upgrade version requirement for the network card to be upgraded, and specifically may be used to indicate a network card position when the power-off operation is performed on the in-place network card in the server subsequently, and a network card upgrade requirement required to be met when the upgrade operation is performed on the network card to be upgraded subsequently. In practical application, based on the indication of the configuration information, the network card to be upgraded can be upgraded as required, the network cards of a plurality of servers can be upgraded with the FW (firmware upgrade) of the network cards at the same time, the sequential upgrading of the network cards one by one is avoided, the upgrading of the network cards is convenient to maintain in batches, the FW upgrading efficiency of the network cards is improved, and the workload of production line workers for disassembling and assembling machines and the network cards to realize the FW upgrading of different network cards on the same chip is greatly saved.
The upgrade version requirements indicated by the configuration information may generally include different upgrade version requirements of the same chip, and/or the same chip retains the original version requirements. And judging whether the network card required to be upgraded has different upgrading requirements or not, wherein the judgment can be mainly carried out based on whether the version required to be upgraded is the same or not.
the server can determine the network card required to be upgraded based on the generated configuration information so as to perform power-off operation on the network card not required to be upgraded; the server can determine whether the network cards required to be upgraded in the in-place network cards have different upgrading requirements based on the generated configuration information so as to determine an upgrading sequence and carry out network card upgrading operation based on the upgrading sequence; and the server can also determine whether the in-place network cards with the same upgrading requirements exist based on the generated configuration information so as to realize batch upgrading operation in the network card upgrading process.
In an embodiment of the present application, when performing an upgrade operation on an in-place network card, there is a situation that the upgrade operation required by different upgrade versions of the same chip is performed on the in-place network card without opening a chassis and plugging and unplugging the network card. For example, when upgrading the network cards with different network card forms and/or different network card types, such as the PCIE network card and the OCP network card, on the same chip, even if the network cards belong to the same chip, the PCIE network card and the OCP network card on the same chip generally need to be upgraded to the different network cards FW.
And 203, sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are upgraded according to different upgrading version requirements.
When judging whether the same chip with different upgrading version requirements exist in the network card to be upgraded according to the configuration information, if the same chip with different upgrading version requirements exists in the network card to be upgraded, determining an upgrading sequence based on the different upgrading version requirements so as to upgrade the network card to be upgraded corresponding to the different upgrading version requirements based on the determined upgrading sequence.
Specifically, the network card position of the current network card required to be upgraded can be sequentially determined according to the upgrading sequence, and other network cards in place except the current network card required to be upgraded are powered off according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are upgraded according to different upgrading version requirements. The network card position of the on-site network card is mainly determined according to the PCIE topology and the silk-screen printing on the case, and the only position of the network card in the server can be determined when the network card is inserted into the server.
In practical application, when it is determined that the same-chip different-upgrade version requirements exist in the network card to be upgraded, firstly, the network card to be upgraded can be determined according to the upgrade sequence, and the network card position of the network card to be upgraded and the network card positions of other in-place network cards except the network card position of the network card to be upgraded are obtained; and then based on the network card positions of other in-place network cards, performing power-off operation on other in-place network cards except the first network card to be upgraded, performing upgrading operation on the first network card to be upgraded according to the version requirement to be upgraded, subsequently performing power-off operation on the first network card to be upgraded after the upgrading operation is completed, and performing upgrading operation on the subsequent network cards to be upgraded according to different upgrading version requirements according to the upgrading sequence.
The method mainly comprises the steps of obtaining the required upgrading network cards with different upgrading version requirements if the required upgrading network cards still have different upgrading version requirements after the upgrading of the first required upgrading network card is completed, carrying out power-off operation on the required upgrading network cards after the upgrading is completed, and upgrading the network card versions of the required upgrading network cards according to the corresponding upgrading version requirements. The upgrade is completed by restarting the server and detecting the network card after the upgrade operation is performed on the network card required to be upgraded, wherein the network card version is the same as the network card FW required to be upgraded in the configuration information generated aiming at the network card required to be upgraded, and if the network card version of the network card after the upgrade operation is the same as the network card FW required to be upgraded, the upgrade operation for the network card required to be upgraded is completed.
Exemplarily, assuming that a PCIE network card and an OCP network card of the same chip need to be upgraded to different network cards FW, when the server network card FW is upgraded, the network card model, the network card position, and the upgrade version requirement that needs to be upgraded, which are generally expressed in a configuration file, may be based on the provided configuration information, before the network card FW is upgraded, a hot plug power-off operation is performed on the OCP network card, and at this time, the OCP network card after power-off is not in place, and the PCIE network card may be upgraded to FW; after the update of the PCIE network card is completed, the power supply of the OCP network card can be recovered, and then the hot plug power-off operation is executed on the PCIE network card after the update is completed.
In a preferred embodiment, when upgrading the in-place network cards with different network card models and/or different network card forms on the same chip according to different upgrading version requirements, it can also be determined whether the same upgrading version requirements of the same chip exist in the network card to be upgraded according to the configuration information, if the same upgrading version requirements of the same chip exist in the network card to be upgraded, the network card to be upgraded with the same upgrading version requirements is obtained, and the network card to be upgraded is upgraded according to the version requirements to be upgraded, that is, the network cards with the same upgrading version requirements are upgraded simultaneously in batch.
In practical application, the upgrading operation performed on the network card to be upgraded is mainly realized by installing an installation package corresponding to the upgrading version requirement of the network card. For example, the same manufacturer network card can upgrade different chips to the same FW, i.e. the FW package is realized by using the same package for multiple network cards.
In addition, after the on-site network card of the server is upgraded, the server can be restarted and the network card FW can be detected to judge whether the upgrade is successful or not, and prompt information can be generated to prompt manual upgrade if the upgrade is failed.
In the embodiment of the application, when at least two in-place network cards with different network card models and/or different network card forms of the same chip exist on the server, the in-place network card on the server can be designed based on hot plug, so that when a network card upgrading requirement request sent by a client is received, other in-place network cards except the currently required upgrading network card can be powered off based on corresponding configuration information of the network card required to be upgraded, the currently required upgrading network card is upgraded based on the version requirement required to be upgraded, the in-place network card can be upgraded without opening a case and plugging the network card, the in-place network card is upgraded according to different upgrading version requirements of the same chip without opening the case, the in-place network card is upgraded without performing upgrading operation of the other in-place network card, the requirements of the client on various FW (firmware) can be met, automatic upgrading operation can be performed based on the configuration information, batch maintenance and upgrading of the network cards is facilitated, the upgrading efficiency of the network cards is improved, and the workload is saved.
Referring to fig. 3, a flowchart illustrating steps of another embodiment of a method for upgrading a server network card according to the present application is shown, which may specifically include the following steps:
301, acquiring a network card identifier of the network card to be upgraded in a server based on the network card information of the network card to be upgraded, and generating configuration information for the network card to be upgraded according to the network card identifier;
in the embodiment of the application, in order to realize the upgrading operation of different upgrading version requirements of the same chip on the on-site network card without opening a chassis and plugging the network card, and realize the upgrading operation of one on-site network card without performing the upgrading operation of the other on-site network card on the on-site network card, so as to meet the requirements of a client on upgrading FW of various network cards, when at least two on-site network cards of different network card models and/or different network card forms of the same chip exist on a server, the on-site network card on the server can be subjected to hot plug design, that is, at least two on-site network cards are inserted into the server based on the hot plug design, so that the phenomenon that the network card which is not temporarily upgraded is not in place is realized under the condition that the physical plugging of the network card is not realized through the hot plug design, and the network card which is required to be upgraded is convenient to upgrade alone.
In practical application, the network card to be upgraded can be determined based on the network card upgrading requirement sent by the client, the received network card upgrading requirement request can include network card information of the network card to be upgraded and upgrading version requirement to be upgraded, at this time, the network card identifier BDF of the network card to be upgraded in the server can be obtained based on the network card information of the network card to be upgraded, relevant in-place information of the network card to be upgraded in the server is determined, and configuration information is generated.
In a specific implementation, the network card model, the current network card version, and the network card position of the network card to be upgraded may be queried according to the network card identifier of the network card to be upgraded at the server, and then the configuration information for the network card to be upgraded may be generated based on the queried network card model, current network card version, network card position of the network card to be upgraded at the server, and the upgrade version requirement of the network card to be upgraded.
Then, the configuration information may be used to indicate a network card position and an upgrade version requirement for the network card to be upgraded, and specifically may be used to indicate a network card position when the power-off operation is performed on the in-place network card in the server subsequently, and a network card upgrade requirement required to be met when the upgrade operation is performed on the network card to be upgraded subsequently. In practical application, based on the indication of the configuration information, the network card to be upgraded can be upgraded as required, the network cards of a plurality of servers can be upgraded with the FW (firmware upgrade) of the network cards at the same time, the sequential upgrading of the network cards one by one is avoided, the upgrading of the network cards is convenient to maintain in batches, the FW upgrading efficiency of the network cards is improved, and the workload of production line workers for disassembling and assembling machines and the network cards to realize the FW upgrading of different network cards on the same chip is greatly saved.
The upgrade version requirements indicated by the configuration information may generally include different upgrade version requirements of the same chip, and/or the same chip retains the original version requirements. And judging whether the network card required to be upgraded has different upgrading requirements or not, wherein the judgment can be mainly carried out based on whether the version required to be upgraded is the same or not.
the server can determine the network card required to be upgraded based on the generated configuration information so as to perform power-off operation on the network card not required to be upgraded; the server can determine whether the network cards required to be upgraded in the in-place network cards have different upgrading requirements based on the generated configuration information so as to determine an upgrading sequence and carry out network card upgrading operation based on the upgrading sequence; and the server can also determine whether the in-place network cards with the same upgrading requirements exist based on the generated configuration information so as to realize batch upgrading operation in the network card upgrading process.
In an embodiment of the present application, when performing an upgrade operation on an in-place network card, there is a case where the upgrade operation of one in-place network card is performed on the in-place network card without opening a chassis and plugging in or unplugging the network card, and the upgrade operation of another in-place network card is not performed. For example, when upgrading network cards with different network card forms and/or different network card types, such as a PCIE network card and an OCP network card, of the same chip, only the PCIE network card needs to be upgraded at present, and the OCP network card does not need to be upgraded, that is, the upgraded version of the OCP network card needs to be the version that is reserved.
When judging whether the same chip in the network card to be upgraded has the requirement of keeping the original version according to the configuration information, if the same chip in the network card to be upgraded has the requirement of keeping the original version, the network card position where the original version is kept can be obtained in the in-place network card of the server, so that the network card position where the network card to be upgraded does not need to be carried out can be independently upgraded.
Specifically, the in-place network card corresponding to the network card position retaining the original version requirement may be powered off, and the other in-place network cards except the network card position retaining the original version requirement may be upgraded based on the version requirement to be upgraded. The network card position of the on-site network card is mainly determined according to the PCIE topology and the silk-screen printing on the case, and the only position of the network card in the server can be determined when the network card is inserted into the server.
For example, assuming that when upgrading network cards with different network card forms and/or different network card types, such as a PCIE network card and an OCP network card, on the same chip, only the PCIE network card needs to be upgraded at present, but not the OCP network card needs to be upgraded, when upgrading FW of the server network card, based on the provided configuration information, which is usually expressed as a network card model, a network card position, and an upgrade version requirement that needs to be upgraded, before upgrading FW of the network card, a hot plug power-off operation is performed on the OCP network card that does not need to be upgraded, and at this time, the OCP network card that is powered off is not in place, so that FW upgrade can be performed on the PCIE network card, and when a chassis is not opened and the network cards are not plugged, an upgrade operation of one in-place network card is performed on the in-place network card, and an upgrade operation of another in-place network card is not performed.
In a preferred embodiment, when the in-place network cards with different network card models and/or different network card forms on the same chip are upgraded, whether the same upgrading version requirement of the same chip exists in the network card to be upgraded can be judged according to the configuration information, if the same upgrading version requirement of the same chip exists in the network card to be upgraded, the network card to be upgraded with the same upgrading version requirement is obtained, the network card to be upgraded is upgraded according to the version requirement to be upgraded, and therefore simultaneous batch upgrading of the network cards with the same upgrading version requirement is achieved.
In practical application, the upgrading operation performed on the network card to be upgraded is mainly realized by installing an installation package corresponding to the upgrading version requirement of the network card. For example, the upgrading of network cards of the same manufacturer can be realized by upgrading different chips into the same FW, namely, the FW package is realized by using the same package for a plurality of network cards.
In addition, after the on-site network card of the server is upgraded, the server can be restarted and the network card FW can be detected to judge whether the upgrade is successful or not, and prompt information can be generated to prompt manual upgrade if the upgrade is failed.
In the embodiment of the application, when at least two in-place network cards with different network card models and/or different network card forms of the same chip exist on the server, the in-place network card on the server can be designed based on hot plug, so that when a network card upgrading requirement request sent by a client is received, other in-place network cards except the currently required upgrading network card can be powered off based on corresponding configuration information of the network card required to be upgraded, the currently required upgrading network card is upgraded based on the version requirement required to be upgraded, the in-place network card can be upgraded without opening a case and plugging the network card, the in-place network card is upgraded according to different upgrading version requirements of the same chip without opening the case, the in-place network card is upgraded without performing upgrading operation of the other in-place network card, the requirements of the client on various FW (firmware) can be met, automatic upgrading operation can be performed based on the configuration information, batch maintenance and upgrading of the network cards is facilitated, the upgrading efficiency of the network cards is improved, and the workload is saved.
Referring to fig. 4, an application flow diagram of the method for upgrading a server network card provided in the embodiment of the present application is shown, specifically, when at least two in-place network cards of different network card models and/or different network card forms of the same chip exist on a server, the in-place network card on the server may be subjected to a hot plug-and-unplug design, the network card required to be upgraded currently is kept in place by powering off the in-place network card not currently being upgraded, and the network card FW upgrade is performed on the network card/batch of network cards individually, so that a need of upgrading the same chip of the server to different network cards FW is met in a manner of not opening a chassis and not plugging in/out the network cards, and the method is suitable for batch production of the network cards with the same chip to different network cards on a production line, and can meet the need of upgrading various FW by a client.
In this application scenario, the step of upgrading the network card may include:
step 1: before carrying out the operation of upgrading the FW of the network card, loading the configuration files of the FW of the network card in advance so as to sequentially determine the network card upgrading sequence of the network card required to be upgraded through the configuration files, so as to conveniently issue a hotspot command to the network card meeting the requirements in the follow-up process, ensure that only one or a batch of network cards are upgraded, and after the network card is successfully upgraded, upgrading other network cards according to the process. After the network cards are upgraded, an upgrade identifier may be added to one or a batch of network cards after the upgrade operation is performed, so as to indicate that the network cards have performed the upgrade operation.
And 2, step: in the process of upgrading the network card, the server may provide a configuration file according to the FW upgrade requirement of the network card, specifically, may query the BDF of the network card in place to determine the information such as the location of the network card, the current FW version, and the like based on the network card identifier, where the provided configuration file includes the information such as the model of the network card, the location of the network card of the server, and the upgrade version requirement to be upgraded.
Illustratively, the network card FW profile may be represented as:
and step 3: the server can judge whether the network card required to be upgraded belongs to the requirements of different upgrading versions of the same chip or not according to the information provided by the configuration file, if the network card required to be upgraded belongs to the requirements of different upgrading versions of the same chip, the current on-site network card which does not need to be upgraded is powered off based on a hot plug command, and an active lamp of the on-site network card which is powered off can usually appear to flash first and then be turned off; if the upgrading of the FW network cards does not have the same chip with different network card FW requirements and the upgrading is the same network card FW upgrading, all the network card FWs with the same upgrading version requirements can be prepared at the moment, the network card FWs on the server are upgraded simultaneously, the server is restarted and the network card FWs are detected to judge whether the upgrading is successful or not, and if the upgrading is failed, prompt information can be generated to prompt the manual upgrading.
Exemplarily, assuming that a PCIE network card is powered off, a network card hot plug command may specify a BDF of the PCIE network card, a power-on or power-off command, and send a control command to the PCIE controller, so that the power-on and power-off of the PCIE network card by the PCIE controller control connection or disconnection of PCIE signals on the PCIE network card, and control a display state of a PCIE network card indicator light, and an active light specifically represented as an in-place network card that is powered off may generally be first flashed and then extinguished.
And 4, step 4: when the FW network card needing to be upgraded belongs to FW requirements of different network cards of the same chip, the first or initial upgrading network card needing to be upgraded and the upgrading version needing to be upgraded can be determined according to the upgrading sequence, before the network card FW upgrading command is executed, other on-site network cards except the first upgrading network card needing to be upgraded can be powered off based on sending a hot plug command, only one or a batch of network card active lamps on a server are bright at the moment, and the active lamps of the on-site network card which is executed to be powered off can usually show that the lamps flicker first and then are turned off; and executing a network card FW upgrading command on the current in-place network card to show that an installation package corresponding to the upgrading version requirement of the network card is installed, and specifically, the installation package can be copied under a server to realize the upgrading.
Illustratively, an installation package may be obtained, such as nvmeprogrde _216.1.192.5_216.1.270.18.Tar; then decompressing an installation package tar-xvfnvmUpdide _216.1.192.5_216.1.270.18.Tar; and execute/install network card FW after entering nvmptrade _ 216.1.192.5/216.1.270.18.
And 5: and after the network card is installed, restarting the server to check the network card FW, and checking that the version of the network card FW is successfully upgraded by using ethnool-i eth0 (internet access name).
Step 6: after restarting the server, the in-place network card of the previously executed hot plug command fails, that is, all network cards are in place, at this time, the network cards and the network cards FW can be checked, the network cards FW are compared with the configuration file, whether the network cards are successfully upgraded is judged, if the network card upgrading is finished, the script is stopped, if the network card upgrading is successful, whether FW requirements of the network cards different from the chip are needed to be judged, if yes, the FW upgrading is continuously carried out on the second network card, the other network cards except the second network card execute the hot plug command FW to power off the hot plug command FW, then the steps 4 and 5 are repeated to complete the second network card upgrading, and so on; if the network card FW requirements of the same chip and different network cards are not needed, all the network cards FW can be prepared according to the normal network card upgrading requirements, the network cards FW on the server are upgraded at the same time, and the server is restarted to check the network cards and the network cards FW.
It should be noted that, in the embodiment of the present application, a configuration file may be formed for other components, such as a hard disk FW, a backplane CPLD (Complex Programmable Logic Device), an HCA (refer to a meldonox connectictx IB InfiniBand host channel adapter) card FW, and the FW can be automatically updated for a plurality of components on a server at one time or sequentially through the configuration file, so as to improve the testing efficiency under the condition of avoiding plugging and unplugging a network card.
In the embodiment of the application, when at least two in-place network cards with the same chip and different network card models and/or different network card forms exist on the server, the in-place network card on the server can be subjected to hot plug-based design, the network card required to be upgraded currently is kept in place by keeping the in-place network card which is not upgraded currently in a power-off mode, and the network card/batch of network cards are subjected to FW upgrade independently, so that the requirement of upgrading the same chip of the server into different network cards FW is met in a mode of not opening a case and not plugging and unplugging the network cards, the FW upgrading method is suitable for the requirement of producing the same chip of the server into different network cards FW in batch on a production line, and the requirement of a client on upgrading various network cards FW can be met; and establishing a network card FW configuration file for the network card, and performing automatic upgrading operation based on the configuration information to realize simultaneous network card FW upgrading for the network cards of multiple servers, so that sequential upgrading of the network cards one by one is avoided, batch maintenance of network card upgrading is facilitated, the network card FW upgrading efficiency is improved, and the workload of production line workers for disassembling and assembling machines and network cards to realize FW upgrading of different network cards on the same chip is greatly saved. Furthermore, for the client, the maintenance operation of the boot box cover is avoided, the requirement that different network card FW upgrades of the network cards of the same chip on the same server are realized based on the command operation according to the configuration information is met, and the maintainability of the server is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 5, a block diagram of an embodiment of an upgrading apparatus for a server network card according to the present application is shown, and is applied to a server, where the server has at least two in-place network cards with different network card models and/or different network card forms on the same chip, and the at least two in-place network cards are inserted into the server based on a hot-plug design, and may specifically include the following modules:
a network card upgrading requirement request receiving module 501, configured to receive a network card upgrading requirement request sent by a client, where the network card upgrading requirement request includes network card information of a network card to be upgraded and an upgrading version requirement of the network card to be upgraded;
a configuration information generating module 502, configured to obtain a network card identifier of the network card to be upgraded at the server based on the network card information of the network card to be upgraded, and generate configuration information for the network card to be upgraded according to the network card identifier; the configuration information is used for indicating the network card position and the upgrading version requirement aiming at the network card required to be upgraded, wherein the upgrading version requirement aiming at the network card required to be upgraded comprises different upgrading version requirements of the same chip and/or the same upgrading version requirement of the same chip and/or the original version requirement of the same chip;
the network card upgrading module 503 is configured to perform power-off operation on other in-place network cards except the current network card to be upgraded according to the configuration information, and upgrade the current network card to be upgraded based on a version requirement to be upgraded.
In an embodiment of the present application, the configuration information generating module 502 may include the following sub-modules:
the network card position determining submodule is used for acquiring the network card model of the network card to be upgraded, the current network card version and the network card position of the network card to be upgraded in the server according to the network card identification of the network card to be upgraded in the server;
and the configuration information generation submodule is used for generating configuration information aiming at the network card required to be upgraded by adopting the network card model of the network card required to be upgraded, the current network card version, the network card position of the network card required to be upgraded in the server and the upgrade version requirement required to be upgraded.
In an embodiment of the present application, the network card upgrading module 503 may include the following sub-modules:
the upgrading sequence determining submodule is used for judging whether the same chip with different upgrading version requirements exists in the network card to be upgraded according to the configuration information, and if the same chip with different upgrading version requirements exists in the network card to be upgraded, determining the upgrading sequence based on the different upgrading version requirements;
and the first network card upgrading submodule is used for sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on other network cards in place except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are upgraded according to different upgrading version requirements.
In an embodiment of the present application, the first network card upgrading sub-module may include the following units:
the first network card position determining unit is used for determining the first upgrading required network card according to the upgrading sequence when the same chip with different upgrading version requirements exists in the upgrading required network card, and acquiring the network card position of the first upgrading required network card and the network card positions of other in-place network cards except the network card position of the first upgrading required network card;
the first network card upgrading unit is used for carrying out power-off operation on other in-place network cards except the network card required to be upgraded for the first upgrade based on the network card positions of the other in-place network cards and carrying out upgrading operation on the network card required to be upgraded for the first upgrade according to the version requirement required to be upgraded;
and the subsequent network card upgrading unit is used for performing power-off operation on the first upgraded network card required to be upgraded after the upgrading operation is completed, and performing upgrading operation on the subsequent network card required to be upgraded according to different upgrading version requirements according to the upgrading sequence.
In an embodiment of the present application, the subsequent network card upgrading unit may include the following sub-units:
and the subsequent network card upgrading subunit is used for acquiring the required upgrading network card still having different upgrading version requirements if the required upgrading network card still has different upgrading version requirements after the upgrading of the required upgrading network card for the first upgrading is completed, performing power-off operation on the required upgrading network card after the upgrading is completed, and upgrading the network card version of the required upgrading network card according to the corresponding upgrading version requirements.
In an embodiment of the present application, the network card upgrading module 503 may further include the following sub-modules:
and the upgrading submodule is used for judging whether the same chip same upgrading version requirements exist in the network card to be upgraded according to the configuration information, if the same chip same upgrading version requirements exist in the network card to be upgraded, acquiring the network card to be upgraded with the same upgrading version requirements, and upgrading the network card to be upgraded according to the version requirements to be upgraded.
In an embodiment of the present application, the network card upgrading module 503 may further include the following sub-modules:
the network card position determining submodule is used for judging whether the same chip in the network card required to be upgraded needs to reserve the original version according to the configuration information, and if the same chip in the network card required to be upgraded needs to reserve the original version, the network card position which reserves the original version need is obtained in the on-site network card of the server;
and the second network card upgrading submodule is used for powering off the in-place network card corresponding to the network card position retaining the original version requirement and upgrading other in-place network cards except the network card position retaining the original version requirement based on the version requirement required to be upgraded.
In this embodiment of the present application, when at least two in-place network cards of different network card models and/or different network card forms of the same chip exist on a server, the in-place network card on the server may be designed based on hot plug, so that when a network card upgrade request sent by a client is received, based on corresponding configuration information of the network card to be upgraded, other in-place network cards except for the currently required network card to be upgraded may be powered off, and the currently required network card may be upgraded based on a version requirement to be upgraded, so as to implement an upgrade operation of different upgrade version requirements of the same chip on the in-place network card without opening a chassis and plugging the network card, and implement an upgrade operation of one in-place network card and an upgrade operation of another in-place network card on the in-place network card, while being able to meet requirements of a client of multiple FW upgrade network cards, the upgrade apparatus may also perform an automatic upgrade operation based on the configuration information, which is convenient for maintaining the network cards in batch, improve the upgrade efficiency of the network cards, and save workload.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In some embodiments of the present application, an embodiment of the present application further provides an electronic device, including the processor 601, the memory 602, and a computer program stored on the memory 602 and capable of running on the processor as shown in fig. 6, where the computer program, when executed by the processor 601, implements each process of the above-mentioned server network card upgrading method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
In some embodiments of the present application, a non-volatile computer-readable storage medium is further provided in the embodiments of the present application, as shown in fig. 7, a computer program 71 is stored on the non-volatile computer-readable storage medium 7, and when being executed by a processor, the computer program 71 implements each process of the embodiment of the method for upgrading a server network card, and can achieve the same technical effect, and is not described herein again to avoid repetition. The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
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 "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrases "comprising one of 8230 \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The method for upgrading the server network card, the device for upgrading the server network card, the corresponding electronic device, and the corresponding non-volatile computer-readable storage medium provided by the present application are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. The method for upgrading the network card of the server is characterized in that the method is applied to the server, the server has at least two in-place network cards with the same chip and different network card models and/or different network card forms, the at least two in-place network cards are inserted into the server based on a hot plug design, and the method comprises the following steps:
the server receives a network card upgrading requirement request sent by a client, wherein the network card upgrading requirement request comprises network card information of a network card to be upgraded and an upgrading version requirement to be upgraded;
acquiring a network card identifier of the network card to be upgraded in the server based on the network card information of the network card to be upgraded, and generating configuration information aiming at the network card to be upgraded according to the network card identifier; the configuration information is used for indicating the network card position and the upgrading version requirement aiming at the network card required to be upgraded, wherein the upgrading version requirement aiming at the network card required to be upgraded comprises different upgrading version requirements of the same chip and/or the same upgrading version requirement of the same chip and/or the original version requirement of the same chip;
and performing power-off operation on other in-place network cards except the current network card required to be upgraded according to the configuration information, and performing upgrading operation on the current network card required to be upgraded based on the version requirement required to be upgraded.
2. The method of claim 1, wherein generating configuration information for the network card to be upgraded according to the network card identifier comprises:
acquiring the network card model of the network card to be upgraded, the current network card version and the network card position of the network card to be upgraded in the server according to the network card identifier of the network card to be upgraded in the server;
and generating configuration information aiming at the network card to be upgraded by adopting the network card model of the network card to be upgraded, the current network card version, the network card position of the network card to be upgraded in the server and the upgrade version requirement to be upgraded.
3. The method according to claim 1, wherein the powering off operation is performed on the network cards in place except the network card which needs to be upgraded currently according to the configuration information, and the upgrading operation is performed on the network card which needs to be upgraded currently based on the version requirement of the upgrade, and the method includes:
judging whether the network card to be upgraded has the requirements of different upgrading versions of the same chip according to the configuration information, and if the network card to be upgraded has the requirements of different upgrading versions of the same chip, determining an upgrading sequence based on the requirements of the different upgrading versions;
and sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on other network cards in place except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are subjected to upgrading operation according to different upgrading version requirements.
4. The method as claimed in claim 3, wherein the sequentially determining the network card position of the current network card required to be upgraded according to the upgrading sequence, and performing power-off operation on the network cards in place except the current network card required to be upgraded according to the determined network card position of the current network card required to be upgraded until the network cards required to be upgraded are all upgraded according to different upgrading version requirements comprises:
when the fact that the same chip with different upgrading version requirements exists in the network cards needing to be upgraded is determined, the network card needing to be upgraded is determined according to the upgrading sequence, the network card position of the network card needing to be upgraded is obtained, and the network card positions of other network cards in place except the network card position of the network card needing to be upgraded are obtained;
based on the network card positions of the other in-place network cards, performing power-off operation on the other in-place network cards except the first network card to be upgraded, and performing upgrading operation on the first network card to be upgraded according to version requirements to be upgraded;
and performing power-off operation on the first upgraded network card required to be upgraded after the upgrading operation is completed, and performing upgrading operation on the subsequent network cards required to be upgraded according to different upgrading version requirements according to the upgrading sequence.
5. The method according to claim 4, wherein the step of powering off the first network card to be upgraded after the upgrade operation is completed, and the step of upgrading the subsequent network cards to be upgraded according to different upgrade version requirements according to the upgrade sequence comprises:
after the upgrading of the first network card to be upgraded is completed, if different upgrading version requirements still exist in the network card to be upgraded, the network card to be upgraded still having different upgrading version requirements is obtained, the network card to be upgraded after the upgrading is completed is powered off, and the network card version of the network card to be upgraded is upgraded according to the corresponding upgrading version requirements.
6. The method according to claim 3, wherein the powering off operation is performed on the network cards in place except the currently required upgraded network card according to the configuration information, and the upgrading operation is performed on the currently required upgraded network card based on the version requirement of the required upgrade, further comprising:
and judging whether the same upgrading version requirement of the same chip exists in the network card to be upgraded according to the configuration information, if the same upgrading version requirement of the same chip exists in the network card to be upgraded, acquiring the network card to be upgraded with the same upgrading version requirement, and upgrading the network card to be upgraded according to the version requirement to be upgraded.
7. The method according to claim 1 or 3, wherein the powering off operation is performed on the network cards in place except for the currently required upgraded network card according to the configuration information, and the upgrading operation is performed on the currently required upgraded network card based on the version requirement of the required upgrade, further comprising:
judging whether the same chip in the network card to be upgraded has the requirement of reserving the original version or not according to the configuration information, and if the same chip in the network card to be upgraded has the requirement of reserving the original version, acquiring the network card position for reserving the original version requirement in the in-place network card of the server;
and performing power-off operation on the in-place network card corresponding to the network card position retaining the original version requirement, and performing upgrading operation on other in-place network cards except the network card position retaining the original version requirement based on the version requirement required to be upgraded.
8. An upgrading device for a server network card is characterized in that the upgrading device is applied to a server, the server has at least two in-place network cards with the same chip and different network card models and/or different network card forms, the at least two in-place network cards are inserted into the server based on a hot plug design, and the device comprises:
the network card upgrading system comprises a network card upgrading requirement request receiving module, a network card upgrading module and a network card upgrading module, wherein the network card upgrading requirement request receiving module is used for receiving a network card upgrading requirement request sent by a client side, and the network card upgrading requirement request comprises network card information of a network card to be upgraded and upgrading version requirements of the network card to be upgraded;
the configuration information generation module is used for acquiring a network card identifier of the network card to be upgraded in the server based on the network card information of the network card to be upgraded and generating configuration information aiming at the network card to be upgraded according to the network card identifier; the configuration information is used for indicating the network card position and the upgrading version requirement aiming at the network card required to be upgraded, wherein the upgrading version requirement aiming at the network card required to be upgraded comprises different upgrading version requirements of the same chip and/or the same upgrading version requirement of the same chip and/or the original version requirement of the same chip;
and the network card upgrading module is used for carrying out power-off operation on other in-place network cards except the network card required to be upgraded currently according to the configuration information and carrying out upgrading operation on the network card required to be upgraded currently based on the version requirement required to be upgraded.
9. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the method for upgrading a server network card according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for upgrading a server network card according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211372360.5A CN115834379A (en) | 2022-11-03 | 2022-11-03 | Server network card upgrading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211372360.5A CN115834379A (en) | 2022-11-03 | 2022-11-03 | Server network card upgrading method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115834379A true CN115834379A (en) | 2023-03-21 |
Family
ID=85526499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211372360.5A Pending CN115834379A (en) | 2022-11-03 | 2022-11-03 | Server network card upgrading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115834379A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018006677A1 (en) * | 2016-07-06 | 2018-01-11 | 中兴通讯股份有限公司 | Smart upgrade method, server, terminal and system |
CN109660422A (en) * | 2018-12-03 | 2019-04-19 | 郑州云海信息技术有限公司 | Network interface card bandwidth test method, apparatus, terminal and storage medium based on multi-process |
CN110502258A (en) * | 2019-07-11 | 2019-11-26 | 苏州浪潮智能科技有限公司 | A kind of method, equipment and readable medium upgrading network interface card |
CN111371610A (en) * | 2020-02-29 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Network card firmware batch refreshing method, system, terminal and storage medium |
CN114500280A (en) * | 2022-01-06 | 2022-05-13 | 新华三信息技术有限公司 | Firmware upgrading method and device and computer readable storage medium |
CN115134236A (en) * | 2022-06-28 | 2022-09-30 | 苏州浪潮智能科技有限公司 | Intelligent network card management method, device, equipment and readable medium |
WO2022206256A1 (en) * | 2021-03-30 | 2022-10-06 | 山东英信计算机技术有限公司 | Method, apparatus, and system for upgrading version of firmware of server, and readable storage medium |
-
2022
- 2022-11-03 CN CN202211372360.5A patent/CN115834379A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018006677A1 (en) * | 2016-07-06 | 2018-01-11 | 中兴通讯股份有限公司 | Smart upgrade method, server, terminal and system |
CN109660422A (en) * | 2018-12-03 | 2019-04-19 | 郑州云海信息技术有限公司 | Network interface card bandwidth test method, apparatus, terminal and storage medium based on multi-process |
CN110502258A (en) * | 2019-07-11 | 2019-11-26 | 苏州浪潮智能科技有限公司 | A kind of method, equipment and readable medium upgrading network interface card |
CN111371610A (en) * | 2020-02-29 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Network card firmware batch refreshing method, system, terminal and storage medium |
WO2022206256A1 (en) * | 2021-03-30 | 2022-10-06 | 山东英信计算机技术有限公司 | Method, apparatus, and system for upgrading version of firmware of server, and readable storage medium |
CN114500280A (en) * | 2022-01-06 | 2022-05-13 | 新华三信息技术有限公司 | Firmware upgrading method and device and computer readable storage medium |
CN115134236A (en) * | 2022-06-28 | 2022-09-30 | 苏州浪潮智能科技有限公司 | Intelligent network card management method, device, equipment and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8640118B2 (en) | Managing firmware on a system board | |
US10936295B2 (en) | Software update system | |
CN112328440B (en) | Hard disk physical position determining method and device | |
CN105354070A (en) | Method for upgrading equipment firmware through I2C | |
CN111143256B (en) | Method and device for reading field replaceable unit information | |
CN105094927A (en) | Equipment firmware updating method and device | |
CN113434202B (en) | Device starting method and device, electronic device and computer storage medium | |
CN103164238A (en) | Method for automatically and continuously installing operating system | |
CN103997683A (en) | System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof | |
CN106547645B (en) | Method for automatically restoring image file and server system | |
CN109660391B (en) | Method, system and related device for upgrading firmware of pooling server system | |
CN102567171A (en) | Method for testing blade server mainboard | |
CN102541711A (en) | Method for testing X86 architecture server mainboards | |
CN111966419A (en) | Method and device for automatically distributing VPP (virtual private Point) addresses by signal conditioning equipment | |
US20190392148A1 (en) | Validation of installation of removeable computer hardware components | |
US11416233B1 (en) | Software upgrade system and method for a baseboard management controller configured in an information handling system | |
CN110515635A (en) | Mainboard VR firmware upgrade method, device, server and readable storage medium storing program for executing | |
CN114328136A (en) | Lighting method, device, system and medium for NVMe hard disk backboard | |
US10007529B2 (en) | Data terminal running mode switching method, device, and data terminal | |
CN108259895A (en) | set-top box test method, system and terminal device | |
CN117289963A (en) | Method and equipment for online updating target area of server platform service firmware | |
CN115834379A (en) | Server network card upgrading method, device, equipment and storage medium | |
CN105337782A (en) | Method and device for automatic upgrading after boot failure of network equipment firmware | |
CN116150064A (en) | Hot plug method of NVME storage device, backboard and computing device | |
CN114936033A (en) | Cluster firmware upgrading system and intelligent super computing cluster |
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 |