CN114978901B - Method, system, equipment and storage medium for automatically updating server firmware - Google Patents

Method, system, equipment and storage medium for automatically updating server firmware Download PDF

Info

Publication number
CN114978901B
CN114978901B CN202210551895.2A CN202210551895A CN114978901B CN 114978901 B CN114978901 B CN 114978901B CN 202210551895 A CN202210551895 A CN 202210551895A CN 114978901 B CN114978901 B CN 114978901B
Authority
CN
China
Prior art keywords
firmware
scene
dhcp
updated
server
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.)
Active
Application number
CN202210551895.2A
Other languages
Chinese (zh)
Other versions
CN114978901A (en
Inventor
张国磊
王宏伟
李岩
贡维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210551895.2A priority Critical patent/CN114978901B/en
Publication of CN114978901A publication Critical patent/CN114978901A/en
Application granted granted Critical
Publication of CN114978901B publication Critical patent/CN114978901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method for automatically updating server firmware, which is used for solving the technical problems of time consumption, labor consumption and low efficiency of the existing server firmware which needs to be manually participated in during operation and maintenance. The method comprises the following steps: built-in detection program in BMC; detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene of a matching provider category identifier, and an advanced DHCP scene of a VIVSO; when the firmware to be updated is detected, starting the firmware update, and feeding back an update result after the update is finished. According to the method, the server firmware is automatically updated, the problems of low efficiency, omission and the like caused by manual participation in updating are reduced, and the user experience is enhanced.

Description

Method, system, equipment and storage medium for automatically updating server firmware
Technical Field
The present application relates to the field of server updating technologies, and in particular, to a method, a system, an apparatus, and a storage medium for automatically updating a server firmware.
Background
Servers play an increasingly important role in modern information-based society and are widely used. Many companies or enterprises are using servers and are huge in number. In actual operation and maintenance, the upgrade of the server firmware occupies most operation and maintenance resources, and in the actual operation and maintenance, the firmware is operated and maintained by adopting a manual participation mode, so that a great deal of labor cost is consumed, and the user experience is also influenced.
For the operation and maintenance work of the server which is participated in manually, update omission is easy to cause to influence the normal operation of the server, and the operation and maintenance efficiency of the manual mode is low. Therefore, for the problems existing in the current server firmware upgrade, an automatic update method is needed to realize the automatic update of the firmware in the server operation and maintenance.
Disclosure of Invention
The embodiment of the application provides a method, a system, equipment and a storage medium for automatically updating server firmware, which are used for solving the technical problems that the existing server firmware needs to be manually participated in during operation and maintenance, and is time-consuming and labor-consuming and low in efficiency.
In one aspect, an embodiment of the present application provides a method for automatically updating server firmware, where the method includes: generating a probing program in a BMC (Baseboard Management Controller ); detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scenario, an L2 connection scenario, a basic DHCP (Dynamic Host Configuration Protocol ) scenario specifying installation of a mirror URL, a basic DHCP scenario of a domain name server, a third-layer network scenario, an advanced DHCP scenario matching a vendor class identifier, an advanced DHCP scenario of a VIVSO; and controlling the firmware to be updated when the firmware needing to be updated is detected.
In one implementation of the present application, the method further includes: determining the version information number of the current firmware; comparing the detected firmware version information number to be updated with the detected firmware version information number to be updated; if the version information number of the firmware to be updated is higher than that of the current firmware, determining that the current firmware needs to be updated; if the version information number of the firmware to be updated is lower than or equal to the version information number of the current firmware, determining that the current firmware does not need to be updated.
In one implementation of the present application, when the detection program detects whether firmware to be updated exists in the direct connection scenario, the HTTP server queries local neighbors of the IPV4 and IPV6 links, and obtains the installation program required for updating the firmware.
In one implementation of the present application, the IPV4 broadcast address is 255.255.255.255.
In one implementation of the present application, the probing program probes whether firmware to be updated exists in the advanced DHCP scenario matching the vendor class identifier, and sets the Web server and the BMC to reside on different subnets.
In one implementation of the present application, the method further includes: recording the update logs of all firmware in the server; and determining that the firmware is updated, and feeding back an updating result.
On the other hand, the embodiment of the application also provides a system for automatically updating the server firmware, which comprises: the generating module is used for generating a detection program in the BMC; the detection module is used for detecting whether firmware needing to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a basic DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene matched with a provider category identifier, and an advanced DHCP scene of a VIVSO; and the control module is used for controlling the firmware to be updated when the firmware needing to be updated is detected.
In one implementation manner of the present application, when the detection program detects whether firmware that needs to be updated exists in the direct connection scenario, the control module is specifically configured to: and controlling the HTTP server to inquire the local neighbors of the IPV4 and IPV6 links and acquiring the installation program required by the firmware update.
In addition, the embodiment of the application also provides a device for automatically updating the server firmware, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: built-in detection program in BMC; detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a basic DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene matched with a provider category identifier, and an advanced DHCP scene of a VIVSO; and controlling the firmware to be updated when the firmware needing to be updated is detected.
The embodiment of the application also provides a nonvolatile computer storage medium for automatically updating the server firmware, which stores computer executable instructions, and is characterized in that the computer executable instructions are configured to: built-in detection program in BMC; detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene of a matching provider category identifier, and an advanced DHCP scene of a VIVSO; and controlling the firmware to be updated when the firmware needing to be updated is detected.
The method for automatically updating the server firmware provided by the embodiment of the application is used for detecting whether the firmware needing to be updated exists in the network or not by setting a detection program. And the detection program is set to explore through various paths, so that the possibility of updating all the existing firmware is covered, the supporting range is wider, and the firmware needing to be updated in the network can be automatically detected and found as much as possible. In addition, in the detection of the advanced DHCP scene matching the provider category identifier, the Web server and the BMC are arranged to reside on different subnets, so that the problem that the detection is difficult after multi-layer exchange can be avoided. According to the application, the server firmware is automatically updated in an automatic detection and multipath detection mode, so that the problem of missing or error of firmware update caused by manual participation in updating in the past is solved, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flowchart of a method for automatically updating server firmware according to an embodiment of the present application;
fig. 2 is a schematic diagram of a system structure for automatically updating server firmware according to an embodiment of the present application;
fig. 3 is a schematic diagram of an apparatus for automatically updating server firmware according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Servers play an increasingly important role in modern information-based society and are widely used. Many companies or enterprises are using servers and are huge in number. In actual operation and maintenance, the upgrade of the server firmware occupies most operation and maintenance resources, and in the actual operation and maintenance, the firmware is operated and maintained by adopting a manual participation mode, so that a great deal of labor cost is consumed, and the user experience is also influenced.
For the operation and maintenance work of the server which is participated in manually, update omission is easy to cause to influence the normal operation of the server, and the operation and maintenance efficiency of the manual mode is low. Therefore, for the problems existing in the current server firmware upgrade, an automatic update method is needed to realize the automatic update of the firmware in the server operation and maintenance.
The embodiment of the application provides a method, a system, equipment and a storage medium for automatically updating server firmware, which are used for solving the technical problems that the existing server firmware needs to be manually participated in during operation and maintenance, and is time-consuming and labor-consuming and low in efficiency.
The following describes the technical scheme provided by the embodiment of the application in detail through the attached drawings.
Fig. 1 is a schematic diagram of an embodiment of the present application. As shown in fig. 1, the method for automatically updating server firmware provided by the embodiment of the application mainly includes the following steps:
step 101, generating a probe program in the BMC.
In the embodiment of the application, to realize automatic updating of the server firmware, the BMC is required to be relied on to complete corresponding operation. Because the BMC acts as a remote management controller for the execution server, it acts as a manager of the server, managing the basic operation of the server. The BMC can perform a series of operations such as firmware upgrade and checking of the machine equipment when the machine is not started. In the application, firstly, a detection program is generated in the BMC for automatically detecting whether firmware needing to be updated exists in the network.
Step 102, detecting whether firmware needing to be updated exists in various connection scenes based on a detection program.
In the embodiment of the application, the detection program detects in a plurality of modes, and particularly provides a method for detecting whether firmware which needs updating and upgrading exists in a plurality of connection scenes. The connection scene at least comprises: a direct connection scenario, an L2 connection scenario, a basic DHCP scenario specifying installation mirror URLs, a basic DHCP scenario of a domain name server, a third-layer network scenario, an advanced DHCP scenario matching vendor class identifiers, an advanced DHCP scenario of VIVSO.
In the embodiment of the application, the detection process of the detection program covers a plurality of paths provided, so that the wider the range supported by one server is, the more scenes are, and the more firmware which needs to be updated in the server can be found as much as possible. And related services in the network and server can be found in a variety of ways.
Further, in the direct connection scenario, the probe queries the IPV4 and IPV6 link-local neighbors through the HTTP server, and obtains the installer for firmware update. The algorithm process needed in this process is as follows:
1. ping IPV4 broadcast address 255.255.255.255;
2. ping6 "all nodes" links local IPV6 multi-address, ff02;
3. for each responding neighbor, an attempt is made to download a default filename from the root directory of the HTTP server.
In the embodiment of the application, the L2 connection scene and the direct connection scene adopt the same mode, and the algorithm implementation process is the same, so that the description is omitted.
Further, in the basic DHCP scenario, where an installation image URL is specified, the complexity is increased by one level, and more specific information about the installer image location is provided using a DHCP server. The DHCP server, the BMC and the Web server are all located on the same second layer network, and to implement this process, the following information needs to be provided on the DHCP server:
subnet 192.168.1.0netmask 255.255.255.0{
range 192.168.1.20 192.168.1.200;
option default-url=“http://192.168.1.10/bmc”;
}
further, in the third layer network scenario, the IP in the basic DHCP scenario specifying the installation mirror URL needs to be replaced with a domain name, which is implemented as follows:
in the embodiment of the application, when detecting the advanced DHCP scene matching the vendor class identifier, the detection program sets the BMC to pass through the third-layer network through the gateway and then to reach the Web server. With this arrangement, the Web server and BMC may reside on different subnets. It should be noted that, in order to ensure that the detection procedure can still detect in this scenario, the network of an enterprise is usually very complex, not just a layer of network, but typically passes through a route, across three levels of networks, and then through multiple switch networks.
Specifically, the BMC needs to send a data packet through the router to reach the Web server, because the machine is located on a different subnet, and to assign the router to the BMC, the following configuration needs to be added in the DHCP server:
subnet 192.168.1.0netmask 255.255.255.0{
range 192.168.1.20 192.168.1.200;
option domain-name-servers 192.168.1.2;
option routers 192.168.1.3;
option default-url=“http://bmc-image/bmc”;
}
in the embodiment of the application, in the advanced DHCP scene of the VIVSO, the detection program adds a manufacturer identification code, namely an option 60 parameter, in the DHCP server. Since in the network specification, to determine a more advanced scenario, the technician needs to ensure that the address is self-architectural, in this way preventing misclassification. In the embodiment of the application, a manufacturer identification code, namely a network standard code, is added, the identification code is added in the network, and the address is judged to be legal through the identification code.
Step 103, when the firmware needing to be updated is detected, controlling the firmware to be updated.
In the embodiment of the application, when the detection program detects that firmware to be updated exists in any connection scene, the BMC system controls the updating process to update and upgrade the firmware.
Specifically, in the direct connection scenario, after the installation program is acquired through the corresponding algorithm program link local neighbor, the installation program is analyzed, and the analyzed firmware version information number to be updated is identified and confirmed. And then calculating the current firmware version information number and the resolved version information number. If the version information number of the firmware to be updated is higher than the version information number of the current firmware, determining that the current firmware needs to be updated, controlling the related upgrading process to run by the system, and performing overlay upgrading on the analyzed installation program. And if the version information number of the firmware to be updated is lower than or equal to the version information number of the current firmware, determining that the current firmware does not need to be updated.
In the advanced DHCP scenario, which matches the vendor class identifier, when an installer image is requested, the BMC sends the install packet to the domain name 192.168.1.3 and then forwards the packet to the next hop in the layer 3 network. Finally, the installation data packet reaches the Web server, and then the probe program replies to download the installation image. At this time, the system controls the relevant upgrading process to perform downloading analysis of the installation package, and then covers the program image in the installation package on the current firmware to complete one-time upgrading.
In other connection scenarios, the probe program also realizes the update of the current firmware through a similar process, so that the description is omitted in the present specification.
In the embodiment of the application, after the firmware is updated, the detection program can further detect whether the updated firmware can normally run or not, and returns an updating result. If the updated firmware is damaged, early warning information is generated and sent to relevant technicians. Meanwhile, when the detection program performs multi-scene connection detection updating, a related log file is also generated so as to record the firmware upgrading condition of the whole server, so that technicians can check the updating condition of certain firmware at any time.
The method for automatically updating the server firmware provided by the embodiment of the application is used for detecting whether the firmware needing to be updated exists in the network or not by setting a detection program. And the detection program is set to explore through various paths, so that the possibility of updating all the existing firmware is covered, the supporting range is wider, and the firmware needing to be updated in the network can be automatically detected and found as much as possible. In addition, in the detection of the advanced DHCP scene matching the provider category identifier, the Web server and the BMC are arranged to reside on different subnets, so that the problem that the detection is difficult after multi-layer exchange can be avoided. According to the application, the server firmware is automatically updated in an automatic detection and multipath detection mode, so that the problem of missing or error of firmware update caused by manual participation in updating in the past is solved, and the user experience is improved.
The embodiment of the application also provides a system for automatically updating the server firmware, as shown in fig. 2, fig. 2 is a schematic diagram of a system structure for automatically updating the server firmware, and in fig. 2, the system mainly comprises: a generating module 201, configured to generate a probe program in the BMC; the detection module 202 is configured to detect whether firmware that needs to be updated exists in various connection scenarios based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a basic DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene matched with a provider category identifier, and an advanced DHCP scene of a VIVSO; and the control module 203 is used for controlling the firmware to be updated when the firmware needing to be updated is detected.
In one embodiment of the present application, when the detection program detects whether there is firmware that needs to be updated in the direct connection scenario, the control module 203 is specifically configured to: and controlling the HTTP server to inquire the local neighbors of the IPV4 and IPV6 links and acquiring the installation program required by the firmware update.
The foregoing is a product structure optimization method provided by the embodiment of the present application, and based on the same inventive concept, the embodiment of the present application further provides a product structure optimization device, and fig. 3 is a schematic diagram of the product structure optimization device provided by the embodiment of the present application, where, as shown in fig. 3, the device mainly includes: at least one processor 301; and a memory 302 communicatively coupled to the at least one processor; wherein the memory 302 stores instructions executable by the at least one processor 301, the instructions being executable by the at least one processor 301 to enable the at least one processor 301 to: built-in detection program in BMC; detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a basic DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene matched with a provider category identifier, and an advanced DHCP scene of a VIVSO; and controlling the firmware to be updated when the firmware needing to be updated is detected.
In addition, an embodiment of the present application further provides a non-volatile computer storage medium with optimized product structure, storing computer executable instructions, where the computer executable instructions are configured to: built-in detection program in BMC; detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a basic DHCP scene of a domain name server, a third-layer network scene, an advanced DHCP scene matched with a provider category identifier, and an advanced DHCP scene of a VIVSO; and controlling the firmware to be updated when the firmware needing to be updated is detected.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (7)

1. A method for automatically updating server firmware, the method comprising:
generating a probe program in the BMC; wherein the detection process of the detection program covers a plurality of paths;
detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a third-layer network scene, an advanced DHCP scene of a matching provider class identifier, and an advanced DHCP scene of a VIVSO;
when the detection program detects whether firmware to be updated exists in the direct connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update;
when the detection program detects whether firmware to be updated exists in the L2 connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update;
the detection program detects whether the firmware to be updated exists in the basic DHCP scene of the appointed installation mirror image URL, the complexity is increased by one level, a DHCP server is used for providing specific information about the image position of the installation program, and the installation program required by the firmware update is obtained;
when the detection program detects whether the firmware needing to be updated exists in the third-layer network scene, the IP in the basic DHCP scene of the appointed installation mirror image URL is replaced by a domain name, and an installation program needed by the firmware update is obtained;
when the detection program detects whether the firmware to be updated exists in the advanced DHCP scene matching the provider category identifier, setting a Web server and a BMC to reside on different subnets, and acquiring an installation program required by the firmware update;
when the detection program detects whether firmware to be updated exists in the advanced DHCP scene of the VIVSO, a manufacturer identification code is added in a DHCP server, namely an option 60 parameter is added, the address is judged to be legal through the option 60 parameter, and an installation program required by firmware update is acquired;
and controlling the firmware to be updated when the firmware needing to be updated is detected.
2. The method for automatically updating server firmware of claim 1, wherein the method further comprises:
determining the version information number of the current firmware;
comparing the detected firmware version information number to be updated with the detected firmware version information number to be updated;
if the version information number of the firmware to be updated is higher than that of the current firmware, determining that the current firmware needs to be updated;
if the version information number of the firmware to be updated is lower than or equal to the version information number of the current firmware, determining that the current firmware does not need to be updated.
3. The method of claim 1, wherein the IPV4 broadcast address is 255.255.255.255.
4. The method for automatically updating server firmware of claim 1, wherein the method further comprises: recording the update logs of all firmware in the server;
and determining that the firmware is updated, and feeding back an updating result.
5. A system for automatically updating server firmware, the system comprising: the generating module is used for generating a detection program in the BMC; wherein the detection process of the detection program covers a plurality of paths;
the detection module is used for detecting whether firmware needing to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a third-layer network scene, an advanced DHCP scene of a matching provider class identifier, and an advanced DHCP scene of a VIVSO; when the detection program detects whether firmware to be updated exists in the direct connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update; when the detection program detects whether firmware to be updated exists in the L2 connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update; the detection program detects whether the firmware to be updated exists in the basic DHCP scene of the appointed installation mirror image URL, the complexity is increased by one level, a DHCP server is used for providing specific information about the image position of the installation program, and the installation program required by the firmware update is obtained; when the detection program detects whether the firmware needing to be updated exists in the third-layer network scene, the IP in the basic DHCP scene of the appointed installation mirror image URL is replaced by a domain name, and an installation program needed by the firmware update is obtained; when the detection program detects whether the firmware to be updated exists in the advanced DHCP scene matching the provider category identifier, setting a Web server and a BMC to reside on different subnets, and acquiring an installation program required by the firmware update; when the detection program detects whether firmware to be updated exists in the advanced DHCP scene of the VIVSO, a manufacturer identification code is added in a DHCP server, namely an option 60 parameter is added, the address is judged to be legal through the option 60 parameter, and an installation program required by firmware update is acquired;
and the control module is used for controlling the firmware to be updated when the firmware needing to be updated is detected.
6. An apparatus for automatically updating a server, the apparatus comprising: at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to: built-in detection program in BMC; wherein the detection process of the detection program covers a plurality of paths;
detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a third-layer network scene, an advanced DHCP scene of a matching provider class identifier, and an advanced DHCP scene of a VIVSO; when the detection program detects whether firmware to be updated exists in the direct connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update; when the detection program detects whether firmware to be updated exists in the L2 connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update; the detection program detects whether the firmware to be updated exists in the basic DHCP scene of the appointed installation mirror image URL, the complexity is increased by one level, a DHCP server is used for providing specific information about the image position of the installation program, and the installation program required by the firmware update is obtained; when the detection program detects whether the firmware needing to be updated exists in the third-layer network scene, the IP in the basic DHCP scene of the appointed installation mirror image URL is replaced by a domain name, and an installation program needed by the firmware update is obtained; when the detection program detects whether the firmware to be updated exists in the advanced DHCP scene matching the provider category identifier, setting a Web server and a BMC to reside on different subnets, and acquiring an installation program required by the firmware update; when the detection program detects whether firmware to be updated exists in the advanced DHCP scene of the VIVSO, a manufacturer identification code is added in a DHCP server, namely an option 60 parameter is added, the address is judged to be legal through the option 60 parameter, and an installation program required by firmware update is acquired;
and controlling the firmware to be updated when the firmware needing to be updated is detected.
7. A non-volatile computer storage medium storing computer-executable instructions for automatically updating server firmware, the computer-executable instructions being executable by a processor, the computer-executable instructions configured to:
built-in detection program in BMC; wherein the detection process of the detection program covers a plurality of paths;
detecting whether firmware to be updated exists in various connection scenes based on the detection program; wherein the plurality of connection scenarios includes any one to more of: a direct connection scene, an L2 connection scene, a basic DHCP scene of a designated installation mirror URL, a third-layer network scene, an advanced DHCP scene of a matching provider class identifier, and an advanced DHCP scene of a VIVSO; when the detection program detects whether firmware to be updated exists in the direct connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update; when the detection program detects whether firmware to be updated exists in the L2 connection scene, searching for the local neighbors of the IPV4 link and the IPV6 link through an HTTP server, and acquiring an installation program required by the firmware update; the detection program detects whether the firmware to be updated exists in the basic DHCP scene of the appointed installation mirror image URL, the complexity is increased by one level, a DHCP server is used for providing specific information about the image position of the installation program, and the installation program required by the firmware update is obtained; when the detection program detects whether the firmware needing to be updated exists in the third-layer network scene, the IP in the basic DHCP scene of the appointed installation mirror image URL is replaced by a domain name, and an installation program needed by the firmware update is obtained; when the detection program detects whether the firmware to be updated exists in the advanced DHCP scene matching the provider category identifier, setting a Web server and a BMC to reside on different subnets, and acquiring an installation program required by the firmware update; when the detection program detects whether firmware to be updated exists in the advanced DHCP scene of the VIVSO, a manufacturer identification code is added in a DHCP server, namely an option 60 parameter is added, the address is judged to be legal through the option 60 parameter, and an installation program required by firmware update is acquired;
and controlling the firmware to be updated when the firmware needing to be updated is detected.
CN202210551895.2A 2022-05-20 2022-05-20 Method, system, equipment and storage medium for automatically updating server firmware Active CN114978901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210551895.2A CN114978901B (en) 2022-05-20 2022-05-20 Method, system, equipment and storage medium for automatically updating server firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210551895.2A CN114978901B (en) 2022-05-20 2022-05-20 Method, system, equipment and storage medium for automatically updating server firmware

Publications (2)

Publication Number Publication Date
CN114978901A CN114978901A (en) 2022-08-30
CN114978901B true CN114978901B (en) 2023-08-18

Family

ID=82985812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210551895.2A Active CN114978901B (en) 2022-05-20 2022-05-20 Method, system, equipment and storage medium for automatically updating server firmware

Country Status (1)

Country Link
CN (1) CN114978901B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515641A (en) * 2019-08-30 2019-11-29 西安易朴通讯技术有限公司 The update method of server firmware, apparatus and system
CN111756574A (en) * 2020-06-19 2020-10-09 浪潮电子信息产业股份有限公司 Method and device for remotely updating firmware in batch mode and computer readable storage medium
CN113127033A (en) * 2021-03-30 2021-07-16 山东英信计算机技术有限公司 Server firmware version upgrading method, device and system and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11513786B2 (en) * 2020-11-06 2022-11-29 Quanta Cloud Technology Inc. Method and system for server firmware update framework

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515641A (en) * 2019-08-30 2019-11-29 西安易朴通讯技术有限公司 The update method of server firmware, apparatus and system
CN111756574A (en) * 2020-06-19 2020-10-09 浪潮电子信息产业股份有限公司 Method and device for remotely updating firmware in batch mode and computer readable storage medium
CN113127033A (en) * 2021-03-30 2021-07-16 山东英信计算机技术有限公司 Server firmware version upgrading method, device and system and readable storage medium

Also Published As

Publication number Publication date
CN114978901A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US10700932B2 (en) Automated standalone bootstrapping of hardware inventory
US10812597B2 (en) Content delivery network (CDN) management system, method, and apparatus
US10938855B1 (en) Systems and methods for automatically and securely provisioning remote computer network infrastructure
US8200769B2 (en) Downloading a plug-in on an instant messaging client
US20110276685A1 (en) Cloud computing as a service for enterprise software and data provisioning
EP2988454B1 (en) Network device detecting method and apparatus, and cloud detection system
EP3198792B1 (en) Automated standalone bootstrapping of hardware inventory
JP6665444B2 (en) Information processing apparatus, control program for information processing apparatus, control method, and information processing system
CN108011819B (en) Route issuing method and device
WO2017206576A1 (en) Gateway service processing method and apparatus
US20030131096A1 (en) Credential management and network querying
CN102594944B (en) A kind of method of automatic configuration and the network equipment
TW201301133A (en) Firmware repairable customer premises equipment and firmware repairing method thereof
CN111641733A (en) Network bridge equipment management method and device and readable storage medium
CN104468283A (en) Multi-host management system monitoring method, device and system
US8650560B2 (en) Computer readable medium for installing software
CN114978901B (en) Method, system, equipment and storage medium for automatically updating server firmware
WO2020010906A1 (en) Method and device for operating system (os) batch installation, and network device
US11750560B2 (en) Zero Touch Provisioning for a network element over IPv6 unnumbered interfaces in OSPFv3 networks
CN110247778B (en) Operating system installation method and device, electronic equipment and storage medium
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN112153173B (en) IPv6 address rapid deployment and distribution method and device
CN1238993C (en) Apparatus and method for automatic acquisition of effective internet protocol configuration in local network
WO2013178034A1 (en) Cloud service deployment method and system
CN112363737A (en) System installation method and related device

Legal Events

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