CN114281659B - Method and system for reproducing server BUG based on firmware version - Google Patents

Method and system for reproducing server BUG based on firmware version Download PDF

Info

Publication number
CN114281659B
CN114281659B CN202111367437.5A CN202111367437A CN114281659B CN 114281659 B CN114281659 B CN 114281659B CN 202111367437 A CN202111367437 A CN 202111367437A CN 114281659 B CN114281659 B CN 114281659B
Authority
CN
China
Prior art keywords
bug
firmware
server
firmware version
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.)
Active
Application number
CN202111367437.5A
Other languages
Chinese (zh)
Other versions
CN114281659A (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 CN202111367437.5A priority Critical patent/CN114281659B/en
Publication of CN114281659A publication Critical patent/CN114281659A/en
Application granted granted Critical
Publication of CN114281659B publication Critical patent/CN114281659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Abstract

The invention provides a method and a system for reproducing a server BUG based on a firmware version, wherein the method comprises the steps that when the server runs, if the BUG appears, the current firmware version of the server is recorded and the problem label of the current BUG is marked; and when the BUG reproduction is carried out, based on the problem label, locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC, and verifying the BUG. When the BUG appears in the server, the embodiment of the invention records the corresponding firmware version, marks the BUG through the problem label, accurately positions the firmware version based on the problem label when the BUG is reproduced, and verifies the BUG through the firmware file locally stored in the BMC, so that the used firmware of the server is summarized and managed, and a tester can save time and labor when reproducing the BUG, thereby greatly ensuring the high efficiency and accuracy when the problem of the server is verified.

Description

Method and system for reproducing server BUG based on firmware version
Technical Field
The invention relates to the technical field of servers, in particular to a method and a system for reproducing a server BUG based on a firmware version.
Background
Today, where the internet is rapidly developed, the demands of various industries for devices such as servers, switches, workstations, etc. are becoming more and more widespread. In order to facilitate the checking of the configuration information of the server and the monitoring of the real-time state of the server, the concept of BMC (Baseboard Management Controller ) is introduced into the server and is widely used; the server checking, monitoring and managing functions can be realized quickly, accurately, quickly and timely, and the stable operation of the whole server and even the whole machine room is ensured to a great extent.
The BMC (baseboard management controller) provides basic characteristics in an IPMI (Intelligent Platform Management Interface ) architecture, is a special micro controller embedded on a server main board, can collect the states of software and hardware in the server, communicate with the server, inquire the versions, models, quantity and the like of the software and the hardware, and can finish remote control. FW (firmware) is a program stored in an EPROM (erasable programmable read only memory) or EEPROM (electrically erasable programmable read only memory) inside the device. Through the 'driving' of the firmware, the operating system can realize the running action of the specific machine according to the standard device driving; the system bears the working role of the bottommost layer of the system, and often determines the basic functions and working performance of hardware equipment.
At present, common firmware updating is realized through a BMC web, however, the BMC web only can refresh firmware and can not store the firmware, when the problems of BUG reproduction of a server and the like are solved, a tester is required to select an added firmware version, and the firmware version is uploaded to the BMC web to perform corresponding operation, and the whole process is required to be manually participated, is complex in operation and is easy to make mistakes.
Disclosure of Invention
The invention provides a method and a system for reproducing a server BUG based on firmware versions, which are used for solving the problems that when the existing BUG reproduction of a server is carried out, a tester is required to select added firmware versions, the added firmware versions are uploaded to the BMC web to be correspondingly operated, and the whole process needs to be manually participated, is complex in operation and is easy to make mistakes.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the first aspect of the present invention provides a method for reproducing a server dog based on a firmware version, the method comprising the steps of:
when the server runs, if the BUG appears, recording the current firmware version of the server and labeling the problem label of the current BUG;
and when the BUG reproduction is carried out, based on the problem label, locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC, and verifying the BUG.
Further, the firmware includes BIOS (Basic Input Output System ) firmware, BMC firmware, and CPLD (Complex Programmable logic device ) firmware.
Further, before the occurrence of the BUG, the method further includes the steps of:
when the server issues the new version firmware, the firmware is uploaded and refreshed through the BMC web, and the corresponding firmware file is stored to the BMC local.
Further, the BMC is locally stored in the BMC.
Further, the local obtaining of the firmware version corresponding to the current BUG occurrence from the BMC, and the specific process of verifying the BUG comprises the following steps:
based on the problem tag, acquiring a corresponding firmware version;
comparing whether the current firmware version of the server is consistent with the corresponding firmware version;
if so, verifying the BUG by using the current firmware version;
and if the firmware versions are inconsistent, refreshing the firmware to the corresponding firmware versions, and verifying the BUG.
A second aspect of the present invention provides a system for reproducing a server BUG based on a firmware version, the system comprising:
the information collection module is used for recording the current firmware version of the server and labeling the problem label of the current BUG when the BUG appears in the operation of the server;
and the BUG reproduction module is used for locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC based on the problem tag when the BUG reproduction is carried out, and verifying the BUG.
Further, the system also comprises a storage module, and when the server issues the new version firmware, the storage module stores the corresponding firmware file to the BMC.
Further, the storage module is arranged in the BMC.
Further, the BUG reproduction module includes:
the firmware obtaining unit is used for obtaining a corresponding firmware version based on the problem label;
the comparison unit is used for comparing whether the current firmware version of the server is consistent with the corresponding firmware version;
the first processing unit is used for verifying the BUG by using the current firmware version when the first processing unit and the current firmware version are consistent;
and the second processing unit refreshes the firmware to the corresponding firmware version when the firmware version and the firmware version are inconsistent, and verifies the BUG.
A third aspect of the invention provides a computer storage medium having stored therein computer instructions which when run on the system cause the system to perform the steps of the method.
The system based on the firmware version reproduction server BUG of the second aspect of the present invention can implement the methods in the first aspect and the implementation manners of the first aspect, and achieve the same effects.
The effects provided in the summary of the invention are merely effects of embodiments, not all effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
when the BUG appears in the server, the embodiment of the invention records the corresponding firmware version, marks the BUG through the problem label, accurately positions the firmware version based on the problem label when the BUG is reproduced, and verifies the BUG through the firmware file locally stored in the BMC, so that the used firmware of the server is summarized and managed, and a tester can save time and labor when reproducing the BUG, thereby greatly ensuring the high efficiency and accuracy when the problem of the server is verified.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of an embodiment of the method of the present invention;
fig. 2 is a schematic diagram of an embodiment of the system of the present invention.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
For the monitoring and management functions of the server, the firmware such as BMC/BIOS/CPLD is perfected step by continuously updating the version, and the accuracy, the comprehensiveness and the applicability are greatly improved. The research and development process of a server is not a voice-playing and a kick-on, and here, research and development and testing personnel are required to input a great deal of manpower and time for repeated test and verification.
From discovering problems to analyzing problems to solving problems, the firmware may have updated multiple versions in between; the BUG defect is verified by looking ahead and looking back, which is to confirm the found problem under the original firmware version, and looking back, which is to verify whether the problem is solved under the latest version, namely, the problem is "reappearance" and "disappearance".
When a tester finds a problem, the current testing environment, namely hardware configuration and software version, needs to be recorded, and the current version number of the BIOS/BMC/CPLD is included; however, the solution to the problem cannot be introduced immediately, and the problem may not be properly handled until several versions have passed; from the test point of view, the problem needs to be solved in a 'look-ahead' way, and whether the 'look-after' is successful can be judged only when the problem is repeated. This requires the tester to restore the test environment to the environment where the problem occurred, and a degraded refresh of the software version is one of particular importance.
As shown in fig. 1, an embodiment of the present invention provides a method for reproducing a server BUG based on a firmware version, the method including the steps of:
s1, when a server runs, if BUG appears, recording the current firmware version of the server and labeling the problem label of the current BUG;
s2, when the BUG reproduction is carried out, based on the problem label, locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC, and verifying the BUG.
In step S1, the firmware includes BIOS firmware, BMC firmware, and CPLD firmware. When the BUG occurs on the server, the BIOS firmware, BMC firmware and CPLD firmware are all recorded.
The problem tag can accurately record specific phenomena occurring in the BUG, such as "the server is down for 12 hours under the BIOS setup".
In step S2, the local obtaining, from the BMC, the firmware version corresponding to the current BUG occurrence, and the specific process of verifying the BUG is:
based on the problem tag, acquiring a corresponding firmware version;
comparing whether the current firmware version of the server is consistent with the corresponding firmware version;
if so, verifying the BUG by using the current firmware version;
and if the firmware versions are inconsistent, refreshing the firmware to the corresponding firmware versions, and verifying the BUG.
The reason for the above verification of the BUG is that: with the progress of projects, the firmware version of the server is also updated iteratively, after a plurality of versions, firmware of a certain version solves the BUG, and a tester needs to rollback the firmware version to find the initial version of the BUG for BUG reproduction so as to verify whether the new version solves the BUG.
And refreshing the firmware to the corresponding firmware version by adopting a firmware version one-key rollback operation, and refreshing the firmware version with one key, thereby realizing high automation degree and saving time and labor.
In one implementation manner of the method embodiment of the present invention, before the occurrence of the BUG, the method further includes the steps of:
when the server issues the new version firmware, the firmware is uploaded and refreshed through the BMC web, and the corresponding firmware file is stored to the BMC local.
The BMC is locally stored in the BMC.
In the implementation mode, various firmware version information used by the server is stored locally, and when the firmware version information is copied, the corresponding firmware file can be obtained only by locating the corresponding firmware version based on the problem label, so that the operation efficiency is improved, and the accuracy of the obtained firmware file is ensured.
As shown in fig. 2, the embodiment of the invention further provides a system based on the firmware version reproduction server BUG, which comprises an information collecting module 1, a BUG reproduction module 2 and a storage module 3.
The information collection module 1 is used for recording the current firmware version of the server and labeling the problem label of the current BUG when the BUG appears in the operation of the server; the BUG reproduction module 2 is used for locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC based on the problem tag when the BUG reproduction is carried out, and verifying the BUG.
The firmware includes BIOS firmware, BMC firmware and CPLD firmware. When the server presents the BUG, the information collection module 1 records the BIOS firmware, the BMC firmware and the CPLD firmware.
The problem label can accurately record specific phenomena of BUG, such as "the server is down for 12 hours under BIOS setup".
And when the server issues the new version firmware, the storage module 3 stores the corresponding firmware file to the BMC.
The memory module 3 is disposed in the BMC.
The storage module 3 locally stores various firmware version information used by the server, and when the firmware version information is copied, the corresponding firmware file can be obtained only by locating the corresponding firmware version based on the problem label, so that the operation efficiency is improved, and the accuracy of the obtained firmware file is ensured.
The but reproduction module 2 comprises a firmware acquisition unit 21, a comparison unit 22, a first processing unit 23 and a second processing unit 24.
The firmware obtaining unit 21 obtains a corresponding firmware version based on the problem tag; the comparing unit 22 is configured to compare whether the current firmware version of the server is consistent with the corresponding firmware version; the first processing unit 23 verifies the BUG with the current firmware version when the two agree; when the two are inconsistent, the second processing unit 24 refreshes the firmware to the corresponding firmware version, and verifies the BUG.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer instructions, and the computer instructions, when running on the system, cause the system to execute the steps of the method.
While the foregoing description of the embodiments of the present invention has been presented in conjunction with the drawings, it should be understood that it is not intended to limit the scope of the invention, but rather, it is intended to cover all modifications or variations within the scope of the invention as defined by the claims of the present invention.

Claims (8)

1. A method for reproducing a server BUG based on a firmware version, the method comprising the steps of:
when the server runs, if the BUG appears, recording the current firmware version of the server and labeling the problem label of the current BUG;
when the BUG is reproduced, based on the problem label, locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC, and verifying the BUG;
the method comprises the steps that a firmware version corresponding to the current BUG is obtained locally from a BMC, and the specific process of verifying the BUG is as follows:
based on the problem tag, acquiring a corresponding firmware version;
comparing whether the current firmware version of the server is consistent with the corresponding firmware version;
if so, verifying the BUG by using the current firmware version;
and if the firmware versions are inconsistent, refreshing the firmware to the corresponding firmware versions, and verifying the BUG.
2. The method for reproducing the server BUG based on the firmware version according to claim 1, wherein the firmware includes BIOS firmware, BMC firmware and CPLD firmware.
3. Method for reproducing a server BUG based on a firmware version according to claim 1, characterized in that said method further comprises the step of, before said BUG appears:
when the server issues the new version firmware, the firmware is uploaded and refreshed through the BMC web, and the corresponding firmware file is stored to the BMC local.
4. A method of replicating a server BUG based on a firmware version as claimed in claim 3 wherein said BMC is a storage within the BMC locally.
5. A system for reproducing a server BUG based on a firmware version, the system comprising:
the information collection module is used for recording the current firmware version of the server and labeling the problem label of the current BUG when the BUG appears in the operation of the server;
the BUG reproduction module is used for locally acquiring a firmware version corresponding to the current BUG occurrence from the BMC based on the problem tag when the BUG reproduction is carried out, and verifying the BUG;
the BUG reproduction module includes:
the firmware obtaining unit is used for obtaining a corresponding firmware version based on the problem label;
the comparison unit is used for comparing whether the current firmware version of the server is consistent with the corresponding firmware version;
the first processing unit is used for verifying the BUG by using the current firmware version when the first processing unit and the current firmware version are consistent;
and the second processing unit refreshes the firmware to the corresponding firmware version when the firmware version and the firmware version are inconsistent, and verifies the BUG.
6. The firmware version replication server BUG-based system of claim 5, further comprising a storage module that saves a corresponding firmware file to the BMC local when the server issues a new version of firmware.
7. The firmware version replication server BUG-based system of claim 6, wherein the storage module is disposed within a BMC.
8. A computer storage medium having stored therein computer instructions which, when run on a system according to any of claims 5-7, cause the system to perform the steps of the method according to any of claims 1-4.
CN202111367437.5A 2021-11-18 2021-11-18 Method and system for reproducing server BUG based on firmware version Active CN114281659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111367437.5A CN114281659B (en) 2021-11-18 2021-11-18 Method and system for reproducing server BUG based on firmware version

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111367437.5A CN114281659B (en) 2021-11-18 2021-11-18 Method and system for reproducing server BUG based on firmware version

Publications (2)

Publication Number Publication Date
CN114281659A CN114281659A (en) 2022-04-05
CN114281659B true CN114281659B (en) 2023-11-07

Family

ID=80869406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111367437.5A Active CN114281659B (en) 2021-11-18 2021-11-18 Method and system for reproducing server BUG based on firmware version

Country Status (1)

Country Link
CN (1) CN114281659B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589712A (en) * 2015-08-24 2016-05-18 杭州昆海信息技术有限公司 BMC module updating method and apparatus
CN106997323A (en) * 2017-04-05 2017-08-01 广东浪潮大数据研究有限公司 A kind of recording method of server B MC problem repetition steps
CN112486743A (en) * 2020-10-28 2021-03-12 苏州浪潮智能科技有限公司 Interactive server intelligent fault processing system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589712A (en) * 2015-08-24 2016-05-18 杭州昆海信息技术有限公司 BMC module updating method and apparatus
CN106997323A (en) * 2017-04-05 2017-08-01 广东浪潮大数据研究有限公司 A kind of recording method of server B MC problem repetition steps
CN112486743A (en) * 2020-10-28 2021-03-12 苏州浪潮智能科技有限公司 Interactive server intelligent fault processing system and method

Also Published As

Publication number Publication date
CN114281659A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN101093462B (en) Automatization method for testing schooling pressure on database application
US8381193B2 (en) Apparatus, system, and method for visual log analysis
CN102568522B (en) The method of testing of hard disk performance and device
CN106951345B (en) Consistency test method and device for disk data of virtual machine
CN107402789A (en) A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW
CN105718570A (en) Data migration method and device used for database
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN111522703A (en) Method, apparatus and computer program product for monitoring access requests
CN111694684B (en) Abnormal construction method and device of storage device, electronic device and storage medium
CN114281659B (en) Method and system for reproducing server BUG based on firmware version
US20140201566A1 (en) Automatic computer storage medium diagnostics
CN111858178B (en) Method, device and equipment for judging power supply starting type and readable medium
CN107832106A (en) A kind of method and system of the online updating hard disk FW under low Kernel versions OS
CN107357700A (en) A kind of method and system of test NVME hard disk order stability
CN114446381B (en) eMMC fault analysis method, device, readable storage medium and electronic equipment
CN115878400A (en) Test method, test apparatus, computer device, storage medium, and program product
CN115794468A (en) Server fault analysis and diagnosis method in software test process
US9990382B1 (en) Secure erasure and repair of non-mechanical storage media
CN107885640B (en) Hard disk management method and device
CN113868003B (en) Verification and fault positioning method and device for server flash system
CN111209146A (en) RAID card aging test method and system
CN114692382B (en) Management method and device for nuclear power simulation model development data and computer equipment
TWI827105B (en) Repair system and repair method for semiconductor structure, storage medium and electronic device
CN117116333B (en) Method and device for testing VPD information of enterprise-level solid state disk
CN114385574A (en) Log processing method and device, electronic equipment and storage medium

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