CN115525557A - Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium - Google Patents

Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium Download PDF

Info

Publication number
CN115525557A
CN115525557A CN202211203189.5A CN202211203189A CN115525557A CN 115525557 A CN115525557 A CN 115525557A CN 202211203189 A CN202211203189 A CN 202211203189A CN 115525557 A CN115525557 A CN 115525557A
Authority
CN
China
Prior art keywords
test
pfr
cpld
server
management module
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
CN202211203189.5A
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 CN202211203189.5A priority Critical patent/CN115525557A/en
Publication of CN115525557A publication Critical patent/CN115525557A/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/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

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

Abstract

The invention relates to the technical field of computers, in particular to a method and a system for recovering CPLD (complex programmable logic device) capacity under the abnormal condition of PFR (pulse frequency response), electronic equipment and a storage medium. The method refreshes the test BMC and BIOS firmware of the PFR system to be tested according to the requirement; after the BMC and BIOS firmware are refreshed and tested, a server power-off instruction is sent to the PFR system through an external port at regular time or irregular time, and the condition that the CPLD firmware is crashed is simulated; and then sending a server power-on instruction to the PFR system through the external port to obtain a test result. The invention realizes the automation of CPLD recovery capability test under the abnormal condition of the PFR system and reduces the time loss of manual test environment construction and cycle test. The full-automatic test flow improves the accuracy and seriousness of the test.

Description

Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for recovering CPLD (complex programmable logic device) capacity under a PFR (pulse frequency response) abnormal condition, electronic equipment and a storage medium.
Background
The PFR (Platform Firmware Resilience) function of the server is an important guarantee for the stability of the server operation, and can protect the security of the server Firmware when the server Firmware is abnormal. Whether the PFR function can be timely and effectively played is an important factor for guaranteeing the operation safety of the server. Therefore, the server test phase needs to test for the function implementation condition, the working stability and the abnormal condition handling of the PFR.
The PFR test has higher specialty, needs testers to deeply understand the requirements of test documents, uses corresponding tools to test, and has the disadvantages of complicated test steps, long consumed time and large labor investment.
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, and configuring an operating system environment. And then, triggering abnormal conditions at manual positions according to the test requirements, and collecting corresponding test data for analysis. Aiming at the problems of high specificity and complex tools of PFR testing, the method can be used for solving the problems by adopting a function integration mode. Such as CN202110964736.0. The functions of supporting the PFR function, conforming the used PFR firmware to the version requirement, inquiring the data of the PFR test register and the like can be realized, the labor intensity is reduced, and the working efficiency is improved.
The solution can realize partial automation in the aspects of information collection and software arrangement in the PFR test, simplify the test process to a certain extent and improve the test efficiency. However, the prior art is not suitable for the actual situation of PFR testing, and cannot automatically detect the most important server disaster tolerance capability of PFR, or detect the stability of PFR functional components. After the tester still needs to manually configure the test environment, the tester manually performs the test according to the design case, manually triggers abnormal conditions (such as abnormal power failure, abnormal firmware transmission, CPLD crash, crash in CPLD upgrade, and the like), and manually analyzes the data result.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a method, a system, an electronic device and a storage medium for recovering the CPLD capability under the abnormal condition of the PFR, so that the problem of automation of stability test under the abnormal condition of the PFR is solved, and the function of automatic test on the disaster recovery function of the PFR can be realized. And the requirement of recovering the CPLD test under the abnormal condition in the PFR test is met.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
in a first aspect, in an embodiment provided by the present invention, a method for recovering CPLD capability in case of PFR anomaly is provided, which is applied to a server; the method comprises the following steps:
refreshing the test BMC and BIOS firmware of the PFR system to be tested according to the requirement;
after refreshing and testing the BMC and BIOS firmware, sending a server power-off instruction to the PFR system through an external port at regular or irregular time, and simulating the crash condition of the CPLD firmware; and then sending a server power-on instruction to the PFR system through the external port to obtain a test result.
As a further aspect of the present invention, the test results include:
if the CPLD function is recovered to be normal under the abnormal condition of the PFR system, the server can be normally started at the moment, and the current CPLD version and the set version are automatically verified; if the verification is normal, the test is normal, the relevant test result is recorded, then the process is repeated, the information is recorded, and the test is circulated to verify the stability;
if the server cannot be normally started in the circulating process, the PFR recovery capability is invalid, the test of the round fails, and abnormal conditions are recorded;
if the CPLD can be started but the CPLD version is not the set version, recording and reporting errors, and continuing to carry out the cycle test; and after the cycle test is finished, automatically analyzing all data according to the test requirements and outputting the test result.
As a further scheme of the present invention, if the server cannot be normally started up in the cycle process, the PFR recovery capability is disabled, the test of the current round fails, and an abnormal condition is recorded, including error reporting in an image popup mode.
In a second aspect, in another embodiment provided by the present invention, a PFR exception recovery CPLD capability system is provided, the system comprising: the system comprises: the device comprises an external serial port management module, a data decoding module, an interactive interface, an AC management module, a test database, a data analysis module, a test abnormity alarm management module and a PFR automatic management module;
the external serial port management module is communicated with the outside of the server to be tested, adjusts the information transmission priority of different modules in the external communication process, adjusts the uplink and downlink sequence and provides a temporary storage environment;
the data decoding module is used for obtaining external serial port data, instruction information and instruction transcoding work;
the interactive interface is used for collecting setting parameters and setting information for the interactive environment of the tester and transmitting the related information to the PFR automatic management module;
the AC management module is used for powering off the power supply interface corresponding to the server according to the program flow after receiving the corresponding power off information sent by the interactive interface, so as to realize the triggering of abnormal conditions;
the test database is used for carrying out classification management on the set parameters, the set methods, the system information, the server information and other contents required in the PFR test in a characteristic value mode, and simultaneously recording the test procedures and the test methods of different server models;
the data analysis module is used for automatically calling a test standard and a comparison step from the test database after the test is finished, and comparing test data generated in the test process according to the test requirement;
the test abnormity alarm management module is used for taking charge of the alarm information of the corresponding data analysis module and sending a corresponding alarm instruction to the interactive interface according to the test setting;
and the PFR automatic management module bears the information transfer of each module and the management function of the test condition.
As a further scheme of the present invention, the data decoding module provides a data temporary storage space during firmware uploading for a data uplink process, converts a PFR system control instruction to be tested into a control format required by a non-corresponding component, and stably sends the control instruction; for the data downlink process, the data decoding module provides a temporary storage space in the test data acquisition process, and the data is sorted and then transmitted back to the PFR automatic management module.
As a further aspect of the present invention, the AC management module is configured separately or embeds a function into the intelligent PDU.
As a further scheme of the present invention, the test database is further configured to record test data generated by each test in a test cycle, and test comparison standards of servers of different models and PFR systems of different types.
As a further scheme of the present invention, the PFR automation management module 800 is responsible for storing interaction control information with the BIOS \ BMC \ server, monitoring the firmware operation condition, and collecting the test condition feedback in real time;
checking firmware version information, executing a firmware refreshing program, and setting a server firmware, software and system test environment;
acquiring user setting information of an interactive interface, calling a relevant test flow of a test database according to a test requirement, and importing a test parameter requirement and a file into the test database;
the AC management module is controlled through a remote control instruction, a server power supply system is indirectly controlled, and a CPLD abnormal state is actively generated;
and uploading and downloading files, and logically controlling information transmission between systems.
In a third aspect, in yet another embodiment provided by the present invention, there is provided an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the PFR exception recovery CPLD capability method when loading and executing the computer program.
In a fourth aspect, in a further embodiment provided by the present invention, a storage medium is provided, which stores a computer program that, when loaded and executed by a processor, implements the steps of the PFR exception recovery CPLD capability method.
The technical scheme provided by the invention has the following beneficial effects:
the method, the system, the electronic equipment and the storage medium for recovering the CPLD capability under the PFR abnormal condition provided by the invention realize the automation of the CPLD capability recovery test under the PFR abnormal condition, and reduce the time loss of manual test environment construction and cycle test. The full-automatic test flow improves the accuracy and seriousness 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.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a flow chart of a method for recovering CPLD capability in the case of PFR anomaly according to an embodiment of the present invention;
fig. 2 is a block diagram of the structure of the system for recovering CPLD capability from PFR abnormal situations according to an embodiment of the present invention.
In the figure: the system comprises an external serial port management module-100, a data decoding module-200, an interactive interface-300, an AC management module-400, a test database-500, a data analysis module-600, a test abnormity alarm management module-700 and a PFR automatic management module-800.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 flowcharts shown in the figures are illustrative only and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution order may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Specifically, the embodiments of the present invention are further explained below with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart of a method for recovering CPLD capability under PFR abnormal condition according to an embodiment of the present invention, and as shown in fig. 1, the method for recovering CPLD capability under PFR abnormal condition includes steps S10 to S20. The method is applied to the server.
And S10, refreshing the test BMC and BIOS firmware of the PFR system to be tested according to the requirement.
The BMC firmware and the BIOS firmware can be generated after a PFR test function is added on the basis of original firmware of a server according to actual conditions of projects.
In the embodiment of the invention, in consideration of actual test environment conditions, the PFR system to be tested can be connected with the test server in external modes such as a serial port, a network and the like, and can also be directly led into the SHELL environment of the server to be tested in a USB flash disk mode for testing. The following test modes of external links are taken as examples:
and the server is started up by a serial port or network mode and the server, and the data stability condition of the network/serial port is confirmed. Uploading CPLD firmware files of different versions to be refreshed, and setting test parameters: 1. the original CPLD version information of the server is used for comparing CPLD recovery conditions 2, setting test turns 3, setting an abnormal trigger mode (timing trigger mode/random trigger within a period of time) 4 and setting a log storage path.
And starting the test to automatically generate a test parameter setting document of the time, and sending the test parameter setting document to the server to be tested through an external port. The configuration file on the server to be tested will automatically run under SHELL, configure the test environment, and send the configuration result to the test computer through the serial port after completing the configuration. And after receiving the correct configuration feedback, the test computer sends the correct configuration feedback to the BMC through a serial port instruction to guide the BMC to temporarily store the uploaded firmware data. The BMC may then receive a flush command to begin importing the corresponding firmware into the PFR system. After the PFR system receives the firmware information, the corresponding firmware is programmed into the CPLD according to the method set before.
S20, after refreshing and testing the BMC and BIOS firmware, sending a server power-off instruction to the PFR system through an external port at regular or irregular time, and simulating the crash condition of the CPLD firmware; then sending a server power-on instruction to the PFR system through an external port; and obtaining a test result.
Wherein the test results include:
if the CPLD function is recovered to be normal under the abnormal condition of the PFR system, the server can be normally started at the moment, and the current CPLD version and the set version are automatically verified; if the verification is normal, the test is normal, the relevant test result is recorded, then the process is repeated, the information is recorded, and the test is circulated to verify the stability.
If the server cannot be normally started in the circulating process, the PFR recovery capability is invalid, the test of the round fails, the abnormal condition is recorded, and the error is reported in an image popup mode.
If the CPLD can be started but the CPLD version is not the set version, recording and reporting errors, and continuing to carry out the cycle test; and after the cycle test is finished, automatically analyzing all data according to the test requirements and outputting the test result.
In the embodiment of the invention, if a U disk or a storage medium is used for testing, an in-storage testing system needs to be configured to complete the environment configuration of a single server, and the specific testing process is similar to that of remote connection.
The invention realizes the automation of CPLD recovery capability test under the abnormal condition of the PFR system and reduces the time loss of manual test environment construction and cycle test. The full-automatic test flow improves the accuracy and seriousness 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.
It should be understood that although the above steps are described in a certain order, these steps are not necessarily performed in the order described. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, some steps of this embodiment may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, referring to fig. 2, in an embodiment of the present invention, a PFR abnormal situation recovery CPLD capability system is further provided, where the system includes an external serial port management module 100, a data decoding module 200, an interactive interface 300, an AC management module 400, a test database 500, a data analysis module 600, a test abnormal alarm management module 700, and a PFR automation management module 800.
The external serial port management module 100 communicates with the outside of the server to be tested, adjusts the information transmission priorities of different modules in the external communication process, adjusts the uplink and downlink sequence, and provides a temporary storage environment.
The data decoding module 200 is configured to obtain external serial port data, instruction information, and instruction transcoding.
In the embodiment of the present invention, the data decoding module 200 provides a data temporary storage space for uploading firmware in the data uplink process, converts the control instruction of the PFR system to be tested into a control format required by a non-corresponding component (the firmware such as BMC \ BIOS has a communication format requirement), and stably sends the control instruction. For the data downlink process, it provides a temporary storage space in the test data acquisition process, and transmits the data to the PFR automation management module 800 after being sorted. And classifying and temporarily storing the test result fed back by the firmware and the instruction execution condition, and uniformly sending the test result and the instruction execution condition to the PFR automatic management module 800.
The interactive interface 300 is configured to collect setting parameters and setting information for an interactive environment of a tester, and transmit the relevant information to the PFR automation management module 800.
The AC management module 400 is configured to power off the power supply interface corresponding to the server according to the program flow after receiving the corresponding power off information sent by the interactive interface 300, so as to implement triggering of an abnormal condition; the AC management module 400 may be configured separately or may embed functionality into the intelligent PDU.
The test database 500 is used for performing classification management on the setting parameters, the setting methods, the system information, the server information and other contents required in the PFR test in a characteristic value manner, and simultaneously recording the test procedures and the test methods of different server models. In addition, the test database 500 is also responsible for recording test data generated by each test in a test cycle, and the test comparison standards of servers of different models and PFR systems of different types. The test database 500 may be configured remotely through a network, or may be deployed by making a dedicated function disk.
The data analysis module 600 is configured to automatically invoke a test standard and a comparison step from the test database 500 after the test is completed, and compare test data generated in the test process according to a preset test requirement.
In the embodiment of the invention, the data analysis module 600 is used for carrying out the following steps that 1, when the single-round test data are different, the analysis system records the related difference and sends the related information to the test abnormity alarm management module. 2. In the case where the test data cannot be obtained from a single round of test data (the server does not normally return data), the situation will be recorded and the PFR atm 800 will be notified to increase the number of tests. 3. And if the single-round test data is not different, and the verification passes, classifying and packaging the corresponding data. And after all round tests are finished, all test data are sorted, the stability of the data is analyzed, and a test report is automatically generated.
The abnormal test alarm management module 700 is responsible for sending alarm information of the corresponding data analysis module 600 to the interactive interface 300 according to test settings (test single-round failure stop/single-round failure non-stop; single-round abnormal test alarm/alarm after summary). After receiving the alarm command, the interactive interface 300 prompts the user to test the exception in a pop-up window or a mode set by the user.
The PFR automation management module 800 undertakes the functions of information transfer, test condition management, and the like of each module.
In the embodiment of the invention, from the specific task architecture, the PFR automation management module 800 is mainly responsible for the following processes of 1, storing interaction control information with the BIOS \ BMC \ server, monitoring the firmware operation condition, and collecting the test condition feedback in real time. 2. Checking the firmware version information, executing a firmware refreshing program, and setting a server firmware, software and system test environment. 3. And acquiring user setting information of the interactive interface 300, calling a relevant test flow of the test database according to the test requirement, and importing the test parameter requirement and the file into the test database. 4. The AC management module 400 is controlled by the remote control instruction, so as to indirectly control the power system of the server, and actively generate the CPLD abnormal state. 5. And packaging the uploaded and downloaded files, and logically controlling information transfer between systems.
In one embodiment, there is also provided an electronic device in an embodiment of the present invention, including at least one processor, and a memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the method for PFR exception recovery CPLD capability, the processor executing the instructions to implement the steps of the method embodiments as described above:
and S10, refreshing the test BMC and BIOS firmware of the PFR system to be tested according to the requirement.
The BMC firmware and the BIOS firmware can be generated after PFR test functions are added on the basis of original firmware of the server according to actual conditions of projects.
In the embodiment of the invention, in consideration of actual test environment conditions, the PFR system to be tested can be connected with the test server in external modes such as a serial port, a network and the like, and can also be directly led into the SHELL environment of the server to be tested in a USB flash disk mode for testing. The following test mode of the external link is taken as an example:
the test computer and the server to be tested are connected in a serial port or network mode, the PFR automatic test management system is operated on the test computer, the server to be tested is started, and the data stability condition of the network/serial port is confirmed. Uploading CPLD firmware files of different versions to be refreshed, and setting test parameters: 1. the original CPLD version information of the server is used for comparing CPLD recovery conditions 2, setting test turns 3, setting an abnormal trigger mode (timing trigger mode/random trigger within a period of time) 4 and setting a log storage path.
When the test computer is clicked to start testing, the system of the invention can automatically generate the test parameter setting document and send the document to the server to be tested through the external port. The configuration file on the server to be tested will automatically run under SHELL, configure the test environment, and send the configuration result to the test computer through the serial port after completing the configuration. And after receiving the correct configuration feedback, the test computer sends the correct configuration feedback to the BMC through a serial port instruction to guide the BMC to temporarily store the uploaded firmware data. And then the BMC receives a refreshing instruction sent by the system of the invention and starts to introduce the corresponding firmware into the PFR system to be tested. After the PFR system to be tested receives the firmware information, the corresponding firmware is programmed into the CPLD according to the method set before.
S20, after refreshing and testing the BMC and BIOS firmware, sending a server power-off instruction to the PFR system through an external port at regular or irregular time, and simulating the crash condition of the CPLD firmware; then sending a server power-on instruction to the PFR system through an external port; and obtaining a test result.
Wherein the test result comprises:
if the normal CPLD function is recovered under the abnormal condition of the PFR system, the server can be normally started up at the moment, and the system can automatically verify the current CPLD version and the set version; if the verification is normal, the test is normal, the system of the invention records the relevant test result, then repeats the process, records the information and tests circularly to verify the stability.
If the server cannot be started normally in the circulating process, the PFR recovery capability fails, the test of the round fails, and the system automatically records the abnormal condition and reports errors in an image popup mode.
If the power can be started, but the CPLD version is not the set version, the system of the invention records the error report and continues the cycle test; after the cycle test is finished, the system automatically analyzes all data according to the test requirement and outputs the test result.
In the embodiment of the invention, if a U disk or a storage medium is used for testing, an in-storage testing system needs to be configured to complete the environment configuration of a single server, and the specific testing process is similar to remote connection.
The CPLD recovery capability test automation under the abnormal condition of the PFR system is realized, and the time loss of manual test environment construction and cycle test is reduced. The full-automatic test flow improves the accuracy and seriousness 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.
The electronic equipment comprises user equipment and network equipment. Wherein the user equipment includes but is not limited to computers, smart phones, PDAs, etc.; the network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of computers or network servers, wherein the Cloud Computing is one of distributed Computing, a super virtual computer consisting of a collection of loosely coupled computers. The electronic device can operate alone to implement the present invention, and can also access a network and implement the present invention through interoperation with other electronic devices in the network. The network where the electronic device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In an embodiment of the present invention, a storage medium is also provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant only to be exemplary, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also combinations between technical features in the above embodiments or in different embodiments are possible, and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A PFR abnormal situation recovers CPLD ability method, apply to the server; the method is characterized by comprising the following steps:
refreshing the test BMC and BIOS firmware of the PFR system to be tested according to the requirement;
after refreshing and testing the BMC and BIOS firmware, sending a server power-off instruction to the PFR system through an external port at regular or irregular time, and simulating the crash condition of the CPLD firmware; and then sending a server power-on instruction to the PFR system through the external port to obtain a test result.
2. The method for recovering CPLD capability from PFR abnormal situation as claimed in claim 1, wherein said test result comprises:
if the CPLD function is recovered to be normal under the abnormal condition of the PFR system, the server can be normally started up at the moment, and the current CPLD version and the set version are automatically checked; if the verification is normal, the test is normal, the relevant test result is recorded, then the process is repeated, the information is recorded, and the test is circulated to verify the stability;
if the server cannot be normally started in the circulating process, the PFR recovery capability is invalid, the test of the round fails, and abnormal conditions are recorded;
if the CPLD can be started but the CPLD version is not the set version, recording and reporting errors, and continuing to carry out the cycle test; and after the cycle test is finished, automatically analyzing all data according to the test requirements, and outputting the test result.
3. The method for recovering CPLD capacity from PFR abnormal condition according to claim 2, wherein if the server fails to start up normally during the circulation process, the PFR recovery capacity is disabled, the test of the current round fails, and the abnormal condition is recorded, including error reporting by image pop-up window.
4. A system for recovering CPLD capability from PFR anomaly conditions, the system comprising: the device comprises an external serial port management module, a data decoding module, an interactive interface, an AC management module, a test database, a data analysis module, a test abnormity alarm management module and a PFR automatic management module;
the external serial port management module is in external communication with the server to be tested, adjusts the information transmission priority of different modules in the external communication process, adjusts the uplink and downlink sequence and provides a temporary storage environment;
the data decoding module is used for obtaining external serial port data, instruction information and instruction transcoding work;
the interactive interface is used for collecting setting parameters and setting information for the interactive environment of the tester and transmitting the related information to the PFR automatic management module;
the AC management module is used for powering off the power supply interface corresponding to the server according to the program flow after receiving the corresponding power off information sent by the interactive interface, so as to realize the triggering of abnormal conditions;
the test database is used for carrying out classification management on the set parameters, the set methods, the system information, the server information and other contents required in the PFR test in a characteristic value mode, and simultaneously recording the test procedures and the test methods of different server models;
the data analysis module is used for automatically calling a test standard and a comparison step from the test database after the test is finished, and comparing test data generated in the test process according to the test requirement;
the test abnormity alarm management module is used for taking charge of alarm information of the corresponding data analysis module and sending a corresponding alarm instruction to the interactive interface according to the test setting;
and the PFR automatic management module bears the information transfer of each module and the management function of the test condition.
5. The system for recovering CPLD capability from the PFR abnormal condition according to claim 4, wherein the data decoding module provides a data temporary storage space for the data uplink process when the firmware is uploaded, converts the control command of the PFR system to be tested into a control format required by the non-corresponding component, and stably sends the control command; for the data downlink process, the data decoding module provides a temporary storage space in the test data acquisition process, and the data is sorted and then transmitted back to the PFR automatic management module.
6. The PFR abnormal situation recovery CPLD capability system of claim 4, wherein the AC management module employs a stand-alone configuration or embeds functionality into an intelligent PDU.
7. The PFR abnormal situation recovery CPLD capability system of claim 4, wherein the testing database is further used to record the testing data generated by each test in the testing cycle, the testing comparison standards of different models of servers and different types of PFR systems.
8. The PFR exception recovery CPLD capability system of any one of claims 4-7,
the PFR automatic management module is used for storing interaction control information with the BIOS \ BMC \ server, monitoring the running condition of the firmware and collecting the feedback of the test condition in real time;
checking firmware version information, executing a firmware refreshing program, and setting a server firmware, software and system test environment;
acquiring user setting information of an interactive interface, calling a relevant test flow of a test database according to a test requirement, and importing a test parameter requirement and a file into the test database;
the AC management module is controlled through a remote control instruction, a server power supply system is indirectly controlled, and the CPLD abnormal state is actively generated;
and uploading and downloading files, and logically controlling information transmission between systems.
9. An electronic device comprising a memory and a processor, the memory storing a computer program which when loaded and executed by the processor implements the steps of the PFR exception condition recovery CPLD capability method of any of claims 1-7.
10. A storage medium storing a computer program which, when loaded and executed by a processor, carries out the steps of the PFR anomaly recovery CPLD capability method according to any one of claims 1-7.
CN202211203189.5A 2022-09-29 2022-09-29 Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium Pending CN115525557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211203189.5A CN115525557A (en) 2022-09-29 2022-09-29 Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211203189.5A CN115525557A (en) 2022-09-29 2022-09-29 Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115525557A true CN115525557A (en) 2022-12-27

Family

ID=84700310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211203189.5A Pending CN115525557A (en) 2022-09-29 2022-09-29 Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115525557A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116165352A (en) * 2023-04-23 2023-05-26 河北华清环境科技集团股份有限公司 Quality control system of flue gas on-line monitor
CN116991710A (en) * 2023-06-27 2023-11-03 珠海妙存科技有限公司 Automatic test method and system, electronic equipment and storage medium thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116165352A (en) * 2023-04-23 2023-05-26 河北华清环境科技集团股份有限公司 Quality control system of flue gas on-line monitor
CN116165352B (en) * 2023-04-23 2023-07-21 河北华清环境科技集团股份有限公司 Quality control system of flue gas on-line monitor
CN116991710A (en) * 2023-06-27 2023-11-03 珠海妙存科技有限公司 Automatic test method and system, electronic equipment and storage medium thereof
CN116991710B (en) * 2023-06-27 2024-04-09 珠海妙存科技有限公司 Automatic test method and system, electronic equipment and storage medium thereof

Similar Documents

Publication Publication Date Title
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
US11281570B2 (en) Software testing method, system, apparatus, device medium, and computer program product
US9569325B2 (en) Method and system for automated test and result comparison
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
US7174265B2 (en) Heterogeneous multipath path network test system
CN112817872B (en) Development test system and method
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN105209925A (en) Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing
CN114546747A (en) BMC cold restart pressure test system and method
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
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
CN114510381A (en) Fault injection method, device, equipment and storage medium
CN113094251B (en) Method and device for testing embedded system, computer equipment and storage medium
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN116467183A (en) Satellite-ground cooperative satellite single-machine on-orbit reconstruction automatic management system
CN111737112B (en) Method and system for realizing server management by remote end integration
CN111552584B (en) Testing system, method and device for satellite primary fault diagnosis isolation and recovery function
CN114610329B (en) Solid state disk deployment method and device, readable storage medium and electronic equipment
CN111338678A (en) Method and equipment for upgrading and checking storage system
CN115840703A (en) Server platform firmware elasticity test method and device, electronic equipment and storage medium
CN110765011B (en) Automatic acquisition and verification device and method for test operation and maintenance data in configuration library
CN115357507A (en) Firmware recovery result determining method, device, equipment and medium based on PFR
CN114281615B (en) Automatic testing system and method for consistency of stored data
CN118012685A (en) Automatic test method and device for server AC

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