CN115357507A - Firmware recovery result determining method, device, equipment and medium based on PFR - Google Patents

Firmware recovery result determining method, device, equipment and medium based on PFR Download PDF

Info

Publication number
CN115357507A
CN115357507A CN202211052464.8A CN202211052464A CN115357507A CN 115357507 A CN115357507 A CN 115357507A CN 202211052464 A CN202211052464 A CN 202211052464A CN 115357507 A CN115357507 A CN 115357507A
Authority
CN
China
Prior art keywords
preset
server
tested
firmware
test
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
Application number
CN202211052464.8A
Other languages
Chinese (zh)
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 CN202211052464.8A priority Critical patent/CN115357507A/en
Publication of CN115357507A publication Critical patent/CN115357507A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a firmware recovery result determining method, device, equipment and medium based on PFR, relates to the technical field of computers, is applied to a preset test end, and comprises the following steps: sending a test parameter setting document to a server to be tested, and performing test environment configuration on the server to be tested to generate an environment configuration result; if the environment configuration result meets a first preset condition, stopping power supply to the server to be tested, and recovering the target firmware in the server to be tested; and starting power supply for the service to be tested, updating the next preset abnormal configuration command to be the current preset abnormal configuration command if the server to be tested currently meets the preset starting state and the version of the target firmware meets the second preset condition, and skipping to the step of stopping power supply for the server to be tested again until the third preset condition is met, generating a test record and determining the recovery result of the preset platform firmware recovery system for the target firmware. The cost of abnormal firmware recovery result testing is reduced, and the testing efficiency is improved.

Description

Firmware recovery result determining method, device, equipment and medium based on PFR
Technical Field
The invention relates to the technical field of computers, in particular to a firmware recovery result determining method, device, equipment and medium based on PFR.
Background
The BMC (Baseboard Management Controller) is an important component in server system control, and is installed on a server in a manner of burning firmware, so as to provide a series of functions such as a Management interface and an external interaction interface for the server, and the operation stability of the BMC is directly related to the stability of the server in use. The PFR (Platform Firmware Resilience) function of the server is an important guarantee for the stable operation of the server, the PFR function can protect the safety of the server Firmware when the server Firmware is abnormal, and the PFR function can play a role timely and effectively and is an important factor for guaranteeing the operation safety of the server. Therefore, the server test phase needs to test the implementation, the working stability and the abnormal condition processing result of the firmware recovery for the PFR-based function.
In the prior art, a tester can confirm the environment, tools, test methods and test data requirements required by the test by inquiring the PFR technical documents, and configure the test environment according to the technical document requirements. And manually installing corresponding software such as test software, a driver and the like, configuring an operating system environment, manually triggering abnormal conditions according to test requirements, and collecting corresponding test data for analysis. After the tester still needs to manually configure the test environment, the tester manually tests according to the design case, manually triggers abnormal conditions, such as abnormal power failure, abnormal firmware transmission, BMC breakdown, breakdown in BMC upgrade and the like, and manually analyzes the data result. The PFR is used for recovering the firmware, the test of the recovery result has high specialty, testers need to deeply understand the test document requirement, corresponding tools are used for testing, the test steps are complex, the consumed time is long, and the labor input is large.
In summary, how to reduce the cost of testing the recovery result of abnormal firmware based on PFR and improve the testing efficiency is a problem to be solved in the field.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a medium for determining a firmware recovery result based on a PFR, so as to reduce the cost of testing an abnormal firmware recovery result based on the PFR and improve the testing efficiency. The specific scheme is as follows:
in a first aspect, the present application discloses a method for determining a firmware recovery result based on a PFR, which is applied to a preset test end, and includes:
generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result;
if the obtained environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system;
controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition;
and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
Optionally, before controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command, the method further includes:
sending a preset temporary storage instruction to the target firmware of the server to be tested so that the target firmware temporarily stores the firmware information to be uploaded, and then sending a preset refreshing instruction to the target firmware so that the target firmware uploads the firmware information to a preset platform firmware recovery system based on the preset refreshing instruction;
correspondingly, the restoring the target firmware in the server to be tested by using the preset platform firmware restoring system includes:
and recovering the target firmware in the server to be tested by using the firmware information through the preset platform firmware recovery system.
Optionally, after determining whether the current server to be tested satisfies the preset power-on state, the method further includes:
if the current starting state does not meet the preset starting state, recording a first abnormal log which does not meet the preset starting state at present, generating first abnormal reminding information corresponding to the first abnormal log, and displaying the first abnormal reminding information in a mode of displaying an image popup window through a preset interactive interface.
Optionally, after the verifying that the version of the target firmware meets the second preset condition if the version of the target firmware meets the second preset condition, the method further includes:
if the version of the target firmware and the original firmware version information of the target firmware do not meet the second preset condition, recording a second abnormal log which does not meet the second preset condition at present, generating second abnormal reminding information corresponding to the second abnormal log, and displaying the second abnormal reminding information in a mode of displaying an image popup window through the preset interactive interface.
Optionally, the skipping is performed again to the step of controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met, so as to generate a test record, including:
and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until the current preset cycle threshold is met to generate a test record, and storing the test record based on a test record storage path.
Optionally, before generating the test parameter setting document based on the preset test starting instruction, the method further includes:
establishing connection between the preset testing end and a server to be tested in an external connection mode;
or, the testing end is led into the SHELL environment of the server to be tested in a U-disk leading-in mode, so that a testing parameter setting document is generated based on a preset testing starting instruction.
Optionally, before generating the test parameter setting document based on the preset test starting instruction, the method further includes:
and if the connection between the preset test terminal and the server to be tested is established in the external connection mode, uploading original firmware version information of the target firmware to the server to be tested, and setting the preset cycle threshold, the current preset abnormal configuration command and the test record storage path.
In a second aspect, the present application discloses a firmware recovery result determining apparatus based on PFR, applied to a preset test end, including:
the configuration result generation module is used for generating a test parameter setting document based on a preset test starting instruction and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result;
the recovery module is used for controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command if the obtained environment configuration result meets a first preset condition, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system;
the checking module is used for controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state or not, and checking whether the version of the target firmware meets a second preset condition or not if the server to be tested meets the preset starting state;
and the result determining module is used for updating the next preset abnormal configuration command into the current preset abnormal configuration command if the current preset abnormal configuration command is met, and skipping to the step of controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met so as to generate a test record, and then determining the recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the PFR-based firmware recovery result determination method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the PFR-based firmware recovery result determination method disclosed above.
The firmware recovery result determining method based on the PFR comprises the steps of generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result; if the obtained environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system; controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition; and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record. Therefore, according to the method and the device, a test environment does not need to be set up manually, a specific re-jump test does not need to be set up manually, the step of determining the subsequent firmware recovery result can be performed fully automatically based on a preset test starting instruction, the time for setting up the test environment and the re-jump test is reduced, the accuracy and the seriousness of the result are improved through the fully-automatic firmware recovery result determining process, and the specific condition of the firmware recovery result can be reflected more carefully based on the automatically generated test parameter setting document, whether the server to be tested currently meets the preset starting state and whether the version of the target firmware meets the second preset condition.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a PFR-based firmware recovery result determination method disclosed in the present application;
FIG. 2 is a diagram illustrating a specific test of firmware recovery results according to the present disclosure;
FIG. 3 is a flow chart of a specific PFR-based firmware recovery result determination method disclosed herein;
fig. 4 is a schematic structural diagram of a PFR-based firmware recovery result determining apparatus disclosed in the present application;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The BMC is an important component in server system control, is installed on a server in a manner of burning firmware, provides a series of functions such as a management interface and an external interaction interface for the server, and has operation stability directly related to the use stability of the server. The PFR (Platform Firmware Resilience) function of the server is an important guarantee for the stable operation of the server, can protect the safety of the server Firmware when the server Firmware is abnormal, and plays a role in time and effectively as an important factor for guaranteeing the operation safety of the server. Therefore, the server test phase needs to test the implementation condition, the working stability and the abnormal condition processing result of the firmware recovery for the function based on the PFR.
In the prior art, a tester can confirm the environment, tools, test methods and test data requirements required by the test by inquiring the PFR technical documents, and configure the test environment according to the technical document requirements. And manually installing corresponding software such as test software, a driver and the like, configuring an operating system environment, manually triggering abnormal conditions according to test requirements, and collecting corresponding test data for analysis. After the tester still needs to manually configure the test environment, the tester manually tests according to the design case, manually triggers abnormal conditions, such as abnormal power failure, abnormal firmware transmission, BMC breakdown, breakdown in BMC upgrade and the like, and manually analyzes data results. The PFR is used for recovering the firmware, the test of the recovery result has high specialty, a tester needs to deeply understand the requirement of a test document, a corresponding tool is used for testing, the test steps are complex, the consumed time is long, and the labor input is large.
Therefore, a firmware recovery result determining scheme based on the PFR is correspondingly provided, the cost of abnormal firmware recovery result testing based on the PFR is reduced, and the testing efficiency is improved.
Referring to fig. 1, an embodiment of the present application discloses a method for determining a firmware recovery result based on a PFR, which is applied to a preset test end, and includes:
step S11: generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result.
In this embodiment, as shown in fig. 2, a specific firmware recovery result testing schematic diagram may be included in the server to be tested, where the server to be tested may include a BMC firmware, a BIOS (Basic Input Output System) firmware, an internal storage of the server, a SHELL environment, and a preset platform firmware recovery System PFR, an external power supply supplies power to the server to be tested, and the PFR is configured to refresh firmware information of the BMC to recover an abnormal condition of the BMC, maintain the BMC, and each module in the server to be tested may interact through an external port. It should be noted that, before performing the test, the preset test end needs to be written into the SHELL environment of the server to be tested, or the connection between the preset test end and the server to be tested needs to be established through an external connection manner.
In this embodiment, the preset test end may include a preset interaction interface, a PFR automated test management system, an AC (Alternating Current) management module, a test database, a data analysis system, and a test abnormality alarm management module. When interaction is carried out between the preset test port and the server to be tested, an external port management module and a data decoding module are needed.
In this embodiment, the external port management module may manage and control external communication between the PFR automated test management system and the server to be tested, adjust information transmission priorities of different modules in the external communication process, adjust an uplink and downlink sequence, and provide a temporary storage environment.
In this embodiment, the data decoding module undertakes transcoding work of data, instruction information and instructions of the PFR automated test management system acquired through an external serial port, and provides a data temporary storage space when target firmware is uploaded in a data uplink process, because BMC and BIOS firmware have requirements on communication formats, the data decoding module can convert a preset power-on instruction of the PFR and a current preset abnormal configuration command into a control format required by a corresponding component, stably send the preset power-on instruction conversion and the current preset abnormal configuration command, and provide a temporary storage space in a test data acquisition process in a data downlink process, arrange data and then transmit the data back to the PFR automated test management system, classify and temporarily store test results and instruction execution conditions fed back by test system firmware, and uniformly send the PFR automated test management system.
In this embodiment, the preset interactive interface provides an interactive environment between the software system and the tester, collects the setting parameters and the setting information, and transmits the relevant information to the PFR automated test management system. The user can click to start the test at a position corresponding to the preset interactive interface, namely, a preset test starting instruction is generated.
In this embodiment, the PFR automated management system is a core system, and takes charge of functions such as information transfer and test condition management of each system and module, and is mainly responsible for the following processes in terms of specific task architecture:
(1) The system is responsible for storing interaction control information with the BIOS, the BMC and the server, monitoring the running condition of the firmware and collecting the feedback of the test condition in real time;
(2) Checking the firmware version information, executing a firmware refreshing program, and setting a test environment of firmware, software and a system in a server to be tested;
(3) Acquiring related information set by a user of a preset interactive interface, calling a related test flow of a test database according to a test requirement, and importing a test parameter requirement and a file into the test database;
(4) The AC management module is controlled through a remote control instruction, namely a current preset abnormal configuration command and a preset power-on instruction, so that a power supply system of the server to be tested is indirectly controlled, and the abnormal state of the BMC firmware is actively generated;
(5) And packaging the uploaded and downloaded files, and performing logic control on information transmission between systems.
Step S12: and if the acquired environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system.
In this embodiment, before controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command, the method further includes: sending a preset temporary storage instruction to the target firmware of the server to be tested so that the target firmware temporarily stores the firmware information to be uploaded, and then sending a preset refreshing instruction to the target firmware so that the target firmware uploads the firmware information to a preset platform firmware recovery system based on the preset refreshing instruction.
In this embodiment, the recovering the target firmware in the server to be tested by using the preset platform firmware recovery system specifically includes: and restoring the target firmware in the server to be tested by using the firmware information through the preset platform firmware restoring system.
In this embodiment, the AC management module may adopt a separate configuration, or may embed the function of the AC management module into an intelligent PDU (Power Distribution Unit). And after receiving the corresponding power-off information, the AC management module powers off the corresponding power supply interface of the server to be tested according to the program flow, so as to realize the triggering of the abnormal condition.
Step S13: and controlling the external power supply to start supplying power to the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition.
In this embodiment, after the data analysis system at the preset test end completes the test, the data analysis system will automatically call the test standard from the test database and compare the test standard with the test standard, compare the test data generated in the test process according to the actually set test requirement, and based on different single-round test result conditions, process the following cases:
(1) Under the condition that the single-round test data has difference, the analysis system records the related difference and sends the related information to the test abnormity alarm management module;
(2) Under the condition that the single-round test data cannot obtain the test data, for example, if the server to be tested does not normally return data, the condition is recorded, and the PFR test management system is informed to increase the test times;
(3) And if the single round of test data has no difference and the check passes, the corresponding data is classified and packaged.
In this embodiment, the test exception alarm management module of the preset test end is responsible for alarm information of a corresponding data analysis system, and sends a corresponding alarm instruction to the preset interactive interface according to test settings, such as alarm forms of single-round test failure stop, single-round test failure non-stop, single-round test exception alarm, and alarm after summary, and after receiving the alarm instruction, the preset interactive interface displays exception reminding information corresponding to the alarm instruction in a pop-up window or user setting manner so as to prompt a user of test exception.
In this embodiment, the test database of the preset test end performs classification management on the setting parameters, the setting method, the system information, the server information and other contents required in the PFR test in a characteristic value manner, and simultaneously records the automation process of the preset test end and the test methods of different server models. In addition, the test database is also responsible for recording test data generated by each test in the test cycle and test comparison standards of servers with different models and PFR systems with different types. The test database can be configured remotely in a network mode, and can also be deployed in a mode of manufacturing a special function disk.
Step S14: and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
In this embodiment, when a third preset condition is satisfied, the re-jump is stopped, where the third preset condition is, for example, a preset loop threshold, that is, the number of times of re-jump satisfies the preset loop threshold, and after the preset test end completes all rounds of tests, the data analysis system sorts all test data, analyzes the stability of the data, and automatically generates a test record.
The firmware recovery result determining method based on the PFR comprises the steps of generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result; if the obtained environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system; controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition; and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record. Therefore, according to the method and the device, a test environment does not need to be set up manually, a specific re-jump test does not need to be set up manually, the step of determining the subsequent firmware recovery result can be performed fully automatically based on a preset test starting instruction, the time for setting up the test environment and the re-jump test is reduced, the accuracy and the seriousness of the result are improved through the fully-automatic firmware recovery result determining process, and the specific condition of the firmware recovery result can be reflected more carefully based on the automatically generated test parameter setting document, whether the server to be tested currently meets the preset starting state and whether the version of the target firmware meets the second preset condition.
Referring to fig. 3, the embodiment of the present application discloses a specific method for determining a firmware recovery result based on a PFR, which is applied to a preset test end, and includes:
step S21: generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested performs test environment configuration based on the test parameter setting document and generates a corresponding environment configuration result.
In this embodiment, before generating the test parameter setting document based on the preset test starting instruction, the method further includes: establishing connection between the preset testing end and a server to be tested in an external connection mode; or, the testing end is imported into the SHELL environment of the server to be tested in a USB flash disk (USB flash disk) import mode, so that a testing parameter setting document is generated based on a preset testing start instruction. The external connection mode is, for example, a serial port or a network external connection mode, the usb disk is one of the storage media, and the test end may also be introduced into the SHELL environment of the server to be tested by using another storage media introduction mode.
In this embodiment, if the test environment is configured in a manner of importing the usb disk or other storage media, the internal storage in the server to be tested needs to be configured, so as to complete the test environment configuration for the server to be tested.
In this embodiment, before generating the test parameter setting document based on the preset test starting instruction, the method further includes: and if the connection between the preset test terminal and the server to be tested is established in the external connection mode, uploading original firmware version information of the target firmware to the server to be tested, and setting the preset cycle threshold, the current preset abnormal configuration command and the test record storage path. It can be understood that, when the PFR automated test management system is operated on the preset test terminal, the server to be tested is started up, the data stability of the network or the serial port is confirmed, the firmware information of the BMC firmware of different versions to be refreshed is uploaded, and test parameter settings are performed, such as the original BMC version information of the server to be tested, for comparing the BMC recovery conditions; setting the number of test turns, namely presetting a cycle threshold; setting an abnormal trigger mode, for example, the trigger mode is a timing trigger mode and is triggered randomly within a period of time; and setting a test record saving path. The abnormal triggering mode is a mode for controlling the external power supply to stop supplying power, for example, the external power supply is controlled to stop supplying power at regular time, or the external power supply is controlled to stop supplying power at random within a preset time period, so as to simulate an abnormal condition of the BMC firmware.
Step S22: and if the acquired environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system.
In this embodiment, if the environment configuration result meets the first preset condition, that is, if the environment configuration result indicates that the environment configuration is correct, the external power source is controlled to stop supplying power to the server to be tested based on the current preset abnormal configuration command, the current preset abnormal configuration command may include an abnormal trigger mode to determine how to control the server to be tested to stop supplying power at present, and after the power supply is stopped, the preset platform firmware recovery system recovers the target firmware by using the firmware information and the version information of the firmware to ensure that the target firmware is in a normal state. It can be appreciated that at BMC refresh, the old BMC is already cleared and the new BMC is not burned.
Step S23: and controlling the external power supply to start supplying power to the service to be tested based on a preset power-on instruction, and judging whether the server to be tested meets a preset starting state currently.
In this embodiment, after a preset time period, the server to be tested may be powered on, that is, the preset power-on instruction is used to control the AC management module to implement that the external power supply starts to supply power to the service to be tested.
Step S24: if the current abnormal log does not meet the preset starting state, recording the first abnormal log which does not meet the preset starting state at present, generating first abnormal reminding information corresponding to the first abnormal log, and displaying the first abnormal reminding information in a mode of displaying an image popup window through a preset interactive interface.
Step S25: and if so, checking whether the version of the target firmware meets a second preset condition.
In this embodiment, after the verifying whether the version of the target firmware meets the second preset condition if the version of the target firmware meets the second preset condition, the method further includes: if the version of the target firmware and the original firmware version information of the target firmware do not meet the second preset condition, recording a second abnormal log which does not meet the second preset condition at present, generating second abnormal reminding information corresponding to the second abnormal log, and displaying the second abnormal reminding information in a mode of displaying an image popup window through the preset interactive interface. It is to be understood that the second preset condition may be that the version of the target firmware matches the original firmware version information of the target firmware.
Step S26: and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
In this embodiment, the skipping again to the step of controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, specifically including: and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until the current preset cycle threshold is met to generate a test record, and storing the test record based on a test record storage path.
Therefore, the method and the device realize the automation of the BMC recovery capability test under the abnormal condition of the PFR system, and reduce the time loss of manual test environment construction and cycle test. The full-automatic test flow improves the accuracy of the test. The test result can be automatically analyzed according to the required standard of the project, the test file can be automatically generated, and the test condition can be more accurately and meticulously reflected while the workload of personnel is reduced.
Referring to fig. 4, an embodiment of the present application discloses a firmware recovery result determining apparatus based on a PFR, which is applied to a preset test end, and includes:
a configuration result generating module 11, configured to generate a test parameter setting document based on a preset test starting instruction, and send the test parameter setting document to a server to be tested, so that the server to be tested performs test environment configuration based on the test parameter setting document, and generates a corresponding environment configuration result;
the recovery module 12 is configured to, if the obtained environment configuration result meets a first preset condition, control an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recover the target firmware in the server to be tested by using a preset platform firmware recovery system;
the checking module 13 is configured to control the external power supply to start supplying power to the service to be tested based on a preset power-on instruction, determine whether the server to be tested currently satisfies a preset power-on state, and check whether the version of the target firmware satisfies a second preset condition if the server to be tested satisfies the preset power-on state;
and the result determining module 14 is configured to update the next preset abnormal configuration command to the current preset abnormal configuration command if the current preset abnormal configuration command is met, and re-jump to the step of controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determine a recovery result of the preset platform firmware recovery system on the target firmware based on the test record.
The method comprises the steps of generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result; if the obtained environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system; controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition; and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record. Therefore, according to the method and the device, a test environment does not need to be set up manually, a specific re-jump test does not need to be set up manually, the step of determining the subsequent firmware recovery result can be performed fully automatically based on a preset test starting instruction, the time for setting up the test environment and the re-jump test is reduced, the accuracy and the seriousness of the result are improved through the fully-automatic firmware recovery result determining process, and the specific condition of the firmware recovery result can be reflected more carefully based on the automatically generated test parameter setting document, whether the server to be tested currently meets the preset starting state and whether the version of the target firmware meets the second preset condition.
Further, the embodiment of the application also provides electronic equipment. FIG. 5 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The method specifically comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is adapted to store a computer program, which is loaded and executed by the processor 21, to implement the steps of:
generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result;
if the obtained environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system;
controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition;
and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
sending a preset temporary storage instruction to a target firmware of the server to be tested so that the target firmware can temporarily store firmware information to be uploaded, and then sending a preset refreshing instruction to the target firmware so that the target firmware can upload the firmware information to a preset platform firmware recovery system based on the preset refreshing instruction;
correspondingly, the restoring the target firmware in the server to be tested by using the preset platform firmware restoring system includes:
and recovering the target firmware in the server to be tested by using the firmware information through the preset platform firmware recovery system.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
if the current abnormal log does not meet the preset starting state, recording the first abnormal log which does not meet the preset starting state at present, generating first abnormal reminding information corresponding to the first abnormal log, and displaying the first abnormal reminding information in a mode of displaying an image popup window through a preset interactive interface.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
if the version of the target firmware and the original firmware version information of the target firmware do not meet the second preset condition, recording a second abnormal log which does not meet the second preset condition at present, generating second abnormal reminding information corresponding to the second abnormal log, and displaying the second abnormal reminding information in a mode of displaying an image popup window through the preset interactive interface.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until the current preset cycle threshold is met to generate a test record, and storing the test record based on a test record storage path.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
establishing connection between the preset testing end and a server to be tested in an external connection mode;
or, the testing end is led into the SHELL environment of the server to be tested in a U-disk leading-in mode, so that a testing parameter setting document is generated based on a preset testing starting instruction.
In some embodiments, the processor, by executing the computer program stored in the memory, may further include:
and if the connection between the preset test terminal and the server to be tested is established in the external connection mode, uploading original firmware version information of the target firmware to the server to be tested, and setting the preset cycle threshold, the current preset abnormal configuration command and the test record storage path.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to acquire external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling hardware devices and computer programs 222 on the electronic device, so as to implement operations and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the PFR-based firmware recovery result determination method performed by the electronic device disclosed in any of the foregoing embodiments. The data 223 may include data received by the electronic device and transmitted from an external device, or may include data collected by the input/output interface 25 itself.
Further, an embodiment of the present application further discloses a computer-readable storage medium, where a computer program is stored, and when the computer program is loaded and executed by a processor, the method steps performed in the firmware recovery result determination process based on PFR disclosed in any of the foregoing embodiments are implemented.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The method, the apparatus, the device and the medium for determining the firmware recovery result based on the PFR according to the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A firmware recovery result determining method based on PFR is characterized in that the method is applied to a preset test end and comprises the following steps:
generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result;
if the obtained environment configuration result meets a first preset condition, controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system;
controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state, and if so, checking whether the version of the target firmware meets a second preset condition;
and if so, updating the next preset abnormal configuration command into the current preset abnormal configuration command, and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record, and then determining a recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
2. The method for determining firmware recovery result based on PFR of claim 1, wherein before controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command, further comprising:
sending a preset temporary storage instruction to the target firmware of the server to be tested so that the target firmware temporarily stores the firmware information to be uploaded, and then sending a preset refreshing instruction to the target firmware so that the target firmware uploads the firmware information to a preset platform firmware recovery system based on the preset refreshing instruction;
correspondingly, the restoring the target firmware in the server to be tested by using the preset platform firmware restoring system includes:
and recovering the target firmware in the server to be tested by using the firmware information through the preset platform firmware recovery system.
3. The method of claim 1, wherein after determining whether the server to be tested currently satisfies the preset power-on state, the method further comprises:
if the current abnormal log does not meet the preset starting state, recording the first abnormal log which does not meet the preset starting state at present, generating first abnormal reminding information corresponding to the first abnormal log, and displaying the first abnormal reminding information in a mode of displaying an image popup window through a preset interactive interface.
4. The PFR-based firmware recovery result determining method of claim 3, wherein after the verifying whether the version of the target firmware satisfies the second preset condition, further comprising:
if the version of the target firmware and the original firmware version information of the target firmware do not meet the second preset condition, recording a second abnormal log which does not meet the second preset condition at present, generating second abnormal reminding information corresponding to the second abnormal log, and displaying the second abnormal reminding information in a mode of displaying an image popup window through the preset interactive interface.
5. The method as claimed in claim 4, wherein the re-jumping to the step of controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met to generate a test record comprises:
and skipping to the step of controlling an external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until the current preset cycle threshold is met to generate a test record, and storing the test record based on a test record storage path.
6. The method of claim 5, wherein before generating the test parameter setting document based on the preset test start command, the method further comprises:
establishing connection between the preset testing end and a server to be tested in an external connection mode;
or, the testing end is led into the SHELL environment of the server to be tested in a U-disk leading-in mode, so that a testing parameter setting document is generated based on a preset testing starting instruction.
7. The PFR-based firmware recovery result determining method of claim 6, wherein before generating the test parameter setting document based on the preset test start command, further comprising:
if the connection between the preset testing end and the server to be tested is established through the external connection mode, uploading original firmware version information of target firmware to the server to be tested, and setting the preset cycle threshold, the current preset abnormal configuration command and the test record storage path.
8. A firmware recovery result determining device based on PFR is applied to a preset test terminal and comprises:
the configuration result generation module is used for generating a test parameter setting document based on a preset test starting instruction, and sending the test parameter setting document to a server to be tested so that the server to be tested can carry out test environment configuration based on the test parameter setting document and generate a corresponding environment configuration result;
the recovery module is used for controlling an external power supply to stop supplying power to the server to be tested based on a current preset abnormal configuration command if the obtained environment configuration result meets a first preset condition, and recovering the target firmware in the server to be tested by using a preset platform firmware recovery system;
the checking module is used for controlling the external power supply to start power supply for the service to be tested based on a preset power-on instruction, judging whether the server to be tested currently meets a preset starting state or not, and checking whether the version of the target firmware meets a second preset condition or not if the server to be tested meets the preset starting state;
and the result determining module is used for updating the next preset abnormal configuration command into the current preset abnormal configuration command if the current preset abnormal configuration command is met, and skipping to the step of controlling the external power supply to stop supplying power to the server to be tested based on the current preset abnormal configuration command until a third preset condition is met so as to generate a test record, and then determining the recovery result of the preset platform firmware recovery system to the target firmware based on the test record.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the PFR-based firmware recovery result determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the PFR based firmware recovery result determination method according to any one of claims 1 to 7.
CN202211052464.8A 2022-08-31 2022-08-31 Firmware recovery result determining method, device, equipment and medium based on PFR Pending CN115357507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211052464.8A CN115357507A (en) 2022-08-31 2022-08-31 Firmware recovery result determining method, device, equipment and medium based on PFR

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211052464.8A CN115357507A (en) 2022-08-31 2022-08-31 Firmware recovery result determining method, device, equipment and medium based on PFR

Publications (1)

Publication Number Publication Date
CN115357507A true CN115357507A (en) 2022-11-18

Family

ID=84004161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211052464.8A Pending CN115357507A (en) 2022-08-31 2022-08-31 Firmware recovery result determining method, device, equipment and medium based on PFR

Country Status (1)

Country Link
CN (1) CN115357507A (en)

Similar Documents

Publication Publication Date Title
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
CN104360878B (en) A kind of method and device of application software deployment
CN107302476B (en) Automatic testing method and system for testing asynchronous interactive system
US20140236914A1 (en) Controller, information processing apparatus, and recording medium
CN104424095A (en) Automatic testing method and system of mobile terminal
CN113946499A (en) Micro-service link tracking and performance analysis method, system, equipment and application
CN115525557A (en) Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium
CN115827358A (en) Automatic test system, method and device for PFR function and storage medium
CN103903312A (en) Method and device for executing automatic inspection
CN117251333A (en) Method, device, equipment and storage medium for acquiring hard disk information
CN110739025B (en) Power failure test method, device and system for storage equipment
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
KR102194974B1 (en) System for monitoring and controling electric power system for process verification
CN113703792A (en) Firmware remote upgrade test method, device, server and medium
CN108064054B (en) FTP file transmission monitoring method and system in LTE system
CN112822254A (en) Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN115357507A (en) Firmware recovery result determining method, device, equipment and medium based on PFR
CN110941254A (en) Aeroengine data processing method and equipment
CN110399264B (en) FRU information management method, device and equipment
CN116306429A (en) Method, device, computer storage medium and terminal for realizing state data capture
CN111737112B (en) Method and system for realizing server management by remote end integration
CN114826954A (en) Vehicle-mounted Ethernet monitoring system and monitoring method
CN111858203A (en) Server performance detection method, system, programmable controller and storage medium
RU2520942C2 (en) Method of computer-aided power system operation and computer-aided power system

Legal Events

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