CN117251361A - Method, device, equipment and storage medium for testing system stability - Google Patents

Method, device, equipment and storage medium for testing system stability Download PDF

Info

Publication number
CN117251361A
CN117251361A CN202311010935.3A CN202311010935A CN117251361A CN 117251361 A CN117251361 A CN 117251361A CN 202311010935 A CN202311010935 A CN 202311010935A CN 117251361 A CN117251361 A CN 117251361A
Authority
CN
China
Prior art keywords
information
stability
preset
memory space
management controller
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
CN202311010935.3A
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 CN202311010935.3A priority Critical patent/CN117251361A/en
Publication of CN117251361A publication Critical patent/CN117251361A/en
Pending legal-status Critical Current

Links

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
    • 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/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application relates to a method, a device, equipment and a storage medium for testing system stability. The method comprises the following steps: copying the test script file to a system; removing the related logs and running the test script file; acquiring current system hardware information and software information according to the test script file; storing the current system hardware information and the software information as basic information according to a preset server management standard; responding to restarting of the server, and carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information to obtain target information; comparing the target information with the basic information to obtain a comparison result; acquiring a test log file after the data transmission is completed; and responding to the completion of the test, and determining the system stability according to the comparison result and the test log file. The method can judge whether the data transmission has influence on the system.

Description

Method, device, equipment and storage medium for testing system stability
Technical Field
The present disclosure relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing system stability.
Background
The BIOS and the BMC are two independent systems in the server system, the BIOS can complete the work of chip self-checking, main board hardware initialization, resource allocation, main board hardware information collection and the like, and the BMC is responsible for platform management work such as monitoring and control of the server system, such as monitoring of a sensor, recording of a log and the like. In order to better manage the server, the BIOS and the BMC need to perform data interaction, at present, an interface defined in an intelligent platform management interface (Intelligent Platform Management Interface, abbreviated as IPMI) specification is generally adopted for communication, during data interaction, the BIOS inputs data to an Input/Output (IO) command port and a data port and decodes the data to an LPC bus, and the BMC analyzes the read LPC bus interface data for use or returns the BIOS demand data to the BIOS for use.
The maximum frequency of the LPC bus interface is 33MHz, the maximum transmission bandwidth is 16MB/s, and the LPC bus interface is mainly suitable for low-speed communication equipment, and in addition, when a large amount of data is required to be transmitted, the LPC bus has the characteristics of low-speed and unidirectional communication, so that an instruction unresponsiveness possibly occurs in the waiting process, a user mistakenly takes the LPC bus as a phenomenon of downtime of the system, and the normal use of other equipment on the LPC bus is also influenced.
Therefore, there is a need to propose a method, apparatus, device and storage medium for testing system stability, which is capable of determining whether data transmission has an impact on the system.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, device, and storage medium for testing system stability that can determine whether data transmission has an impact on the system.
In a first aspect, there is provided a method of testing system stability, the method comprising:
copying a script file for testing the stability of the system into the system, and preparing a testing environment;
removing a system related log, and running a script file for testing the stability of the system;
acquiring current system hardware information and software information according to the script file for testing the system stability;
storing the current system hardware information and the software information as basic information according to a preset server management standard;
responding to restarting of the server, and carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information to obtain target information;
comparing the target information with the basic information to obtain a comparison result;
after data transmission between the baseboard management controller and the basic input/output system is completed, acquiring a test log file according to the script file of the stability of the test system;
and responding to the completion of the test, and determining the system stability according to the comparison result and the test log file.
In one embodiment, the responding to the restarting of the server, according to the preset server management standard and the basic information, performing data transmission between the baseboard management controller and the basic input/output system, and obtaining the target information includes:
reading the basic information according to the basic input and output system;
writing the basic information into a memory space corresponding to a preset physical link through a hardware interface of the preset physical link;
according to a preset server management standard, mapping basic information in a memory space corresponding to the preset physical link into a memory space corresponding to the baseboard management controller;
responding to restarting of the server, reading basic information in a memory space corresponding to the baseboard management controller, and obtaining the target information by analyzing the basic information;
wherein the preset physical link refers to a physical link that the baseboard management controller communicates with the basic input output system.
In one embodiment, the method further comprises:
and repeatedly carrying out data transmission between the baseboard management controller and the basic input/output system by setting the preset times or the preset time of the system stability test, and identifying the corresponding times on the obtained target information.
In one embodiment, the current system hardware information and software information include server component information and option information of the basic input output system, respectively.
In one embodiment, before mapping the basic information in the memory space corresponding to the preset physical link to the memory space corresponding to the baseboard management controller according to the preset server management standard, the method further includes:
applying for a space with a preset size in the memory space of the baseboard management controller as a target memory space, and taking the target memory space as a memory space corresponding to the baseboard management controller;
and a mapping relationship exists between the target memory space and the memory space corresponding to the preset physical link.
In one embodiment, the method further comprises:
and storing the basic information and the comparison result in a server where the baseboard management controller is located, and identifying the corresponding times on the comparison result.
In one embodiment, the determining the system stability according to the comparison result and the test log file in response to the test completion includes:
responding to the inconsistent comparison results, and making the system unstable;
and responding to the existence of system error information in the test log file, and making the system unstable.
In a second aspect, there is provided an apparatus for testing system stability, the apparatus comprising:
the replication preparation module is used for replicating the script file for testing the stability of the system into the system and preparing a testing environment;
the clearing operation module is used for clearing the system related logs and operating the script file for testing the system stability;
the first acquisition module is used for acquiring current system hardware information and software information according to the script file for testing the system stability;
the storage module is used for storing the current system hardware information and the software information as basic information according to a preset server management standard;
the transmission acquisition module is used for responding to restarting of the server, carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information, and obtaining target information;
the comparison acquisition module is used for comparing the target information with the basic information to obtain a comparison result;
the second acquisition module is used for acquiring a test log file according to the script file of the stability of the test system after the data transmission between the baseboard management controller and the basic input and output system is completed;
and the judging module is used for responding to the completion of the test and determining the system stability according to the comparison result and the test log file.
In a third aspect, a computer device is provided, the computer device comprising one or more processors; and a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the steps of the method of testing system stability as set forth in any one of the first aspects above.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method of testing the stability of a system according to any of the first aspects above.
According to the method, the device, the computer equipment and the storage medium for testing the stability of the system, the basic information obtained through the stability script is compared with the target information obtained through data transmission, and whether the problem of missing information exists in the data transmission process can be judged; after the data transmission is finished, a test log file is obtained according to a stability script, and whether analysis abnormality, server component information transmission failure and the like exist can be judged according to system error information in the test log file; and comprehensively considering the stability of the system according to the comparison result and the test log file.
Drawings
FIG. 1 is a flow diagram of a method of testing system stability in one embodiment;
FIG. 2 is a block diagram of an apparatus for testing system stability in one embodiment;
FIG. 3 is an internal block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Example 1
In one embodiment, as shown in FIG. 1, a method of testing system stability is provided, the method comprising the steps of:
s10, copying a script file for testing the stability of the system into the system, and preparing a testing environment;
s11, cleaning a system related log, and running a script file for testing the stability of the system;
specifically, the system-related log includes logs of dmesg (kernel-related log information), messages (core system log file), and the like.
S12, acquiring current system hardware information and software information according to the script file for testing the system stability;
further, the current system hardware information and the software information respectively comprise server component information and option information of the basic input/output system.
S13, storing the current system hardware information and the software information as basic information according to a preset server management standard;
specifically, the preset server management standard includes a redfish (a server management standard based on RESTful interface and JSON (JavaScript ObjectNotation, JS object notation) data format) protocol.
Further, the method further comprises:
and storing the basic information in a server where the baseboard management controller is located.
Specifically, the acquired basic information is used for comparing the acquired basic information with the target information, so that whether the problem of missing information exists in the data transmission process is judged, and the stability of the system is further judged.
S14, responding to restarting of the server, and carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information to obtain target information;
further, in response to restarting the server, according to the preset server management standard and the basic information, performing data transmission between the baseboard management controller and the basic input/output system to obtain target information, including:
reading the basic information according to the basic input and output system;
writing the basic information into a memory space corresponding to a preset physical link through a hardware interface of the preset physical link;
specifically, the preset physical link includes an LPC (Low Pin Count, a physical link for communication between the BMC and the BIOS), where a memory space of the LPC is not less than 6MB.
According to a preset server management standard, mapping basic information in a memory space corresponding to the preset physical link into a memory space corresponding to the baseboard management controller;
further, before the mapping, according to the preset server management standard, the basic information in the memory space corresponding to the preset physical link to the memory space corresponding to the baseboard management controller, the method further includes:
applying for a space with a preset size in the memory space of the baseboard management controller as a target memory space, and taking the target memory space as a memory space corresponding to the baseboard management controller;
and a mapping relationship exists between the target memory space and the memory space corresponding to the preset physical link.
Specifically, data transmission is performed through the LPC memory space, so that the pressure during data transmission through IPMI is reduced, and the transmission efficiency is improved.
Responding to restarting of the server, reading basic information in a memory space corresponding to the baseboard management controller, and obtaining the target information by analyzing the basic information;
wherein the preset physical link refers to a physical link that the baseboard management controller communicates with the basic input output system.
S15, comparing the target information with the basic information to obtain a comparison result;
further, the method further comprises:
and storing the basic information and the comparison result in a server where the baseboard management controller is located, and identifying the corresponding times on the comparison result.
Specifically, the obtained comparison result is identified for corresponding times, such as: a first comparison result, a second comparison result, a third comparison result, etc. And the system stability in each data transmission is conveniently judged through the corresponding times on the identifier.
S16, after data transmission between the baseboard management controller and the basic input/output system is completed, acquiring a test log file according to the script file for testing the stability of the system;
and S17, responding to the completion of the test, and determining the system stability according to the comparison result and the test log file.
Specifically, whether the problem of information loss exists in the data transmission process of the system can be judged through the comparison result, and whether the problem of analysis abnormality and the like exists in the data transmission process can be judged through the test log file.
Further, the determining system stability according to the comparison result and the test log file in response to the test completion includes:
responding to the inconsistent comparison results, and making the system unstable;
and responding to the existence of system error information in the test log file, and making the system unstable.
Specifically, for the system error information existing in the test file, further judgment is required. If the system is in error caused by the system network, continuing to test the system stability; if the analysis fails, the stability test is stopped and the processing is performed.
Further, the method further comprises:
and repeatedly carrying out data transmission between the baseboard management controller and the basic input/output system by setting the preset times or the preset time of the system stability test, and identifying the corresponding times on the obtained target information.
Specifically, the obtained target information is identified for corresponding times, such as: first time target information, second time target information, third time target information, and the like.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
Example two
In one embodiment, as shown in FIG. 2, an apparatus for testing system stability is provided, the apparatus comprising:
a copy preparation module 20, configured to copy a script file for testing system stability into a system, and prepare a test environment;
a clearing running module 21, configured to clear a log related to a system and run a script file for testing stability of the system;
the first obtaining module 22 is configured to obtain current system hardware information and software information according to the script file for testing the stability of the system;
a storage module 23, configured to store the current system hardware information and software information as basic information according to a preset server management standard;
further, the current system hardware information and the software information respectively comprise server component information and option information of the basic input/output system.
Further, the storage module is further configured to:
and storing the basic information in a server where the baseboard management controller is located.
A transmission obtaining module 24, configured to perform data transmission between the baseboard management controller and the basic input/output system according to the preset server management standard and the basic information in response to restarting the server, so as to obtain target information;
further, the transmission acquisition module is further configured to:
reading the basic information according to the basic input and output system;
writing the basic information into a memory space corresponding to a preset physical link through a hardware interface of the preset physical link;
according to a preset server management standard, mapping basic information in a memory space corresponding to the preset physical link into a memory space corresponding to the baseboard management controller;
responding to restarting of the server, reading basic information in a memory space corresponding to the baseboard management controller, and obtaining the target information by analyzing the basic information;
wherein the preset physical link refers to a physical link that the baseboard management controller communicates with the basic input output system.
Further, the transmission acquisition is further to:
applying for a space with a preset size in the memory space of the baseboard management controller as a target memory space, and taking the target memory space as a memory space corresponding to the baseboard management controller;
and a mapping relationship exists between the target memory space and the memory space corresponding to the preset physical link.
The comparison acquisition module 25 is configured to compare the target information with the basic information to obtain a comparison result;
further, the comparison acquisition module is further configured to:
and storing the comparison result in a server where the baseboard management controller is located, and identifying corresponding times.
A second obtaining module 26, configured to obtain a test log file according to a script file of the stability of the test system after the completion of data transmission between the baseboard management controller and the basic input output system;
and a judging module 27, configured to determine system stability according to the comparison result and the test log file in response to the test completion.
Further, the judging module is further configured to:
responding to the inconsistent comparison results, and making the system unstable;
and responding to the existence of system error information in the test log file, and making the system unstable.
Further, the apparatus further comprises:
and setting an identification module, wherein the setting identification module is used for repeatedly carrying out data transmission between the substrate management controller and the basic input/output system through setting the preset times or the preset time of the system stability test, and identifying the corresponding times on the obtained target information.
For specific limitations on the means for testing the stability of the system, reference may be made to the limitations of the method for testing the stability of the system hereinabove, and will not be repeated here. The above-described respective modules in the apparatus for testing system stability may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Example III
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
copying a script file for testing the stability of the system into the system, and preparing a testing environment;
removing a system related log, and running a script file for testing the stability of the system;
acquiring current system hardware information and software information according to the script file for testing the system stability;
storing the current system hardware information and the software information as basic information according to a preset server management standard;
responding to restarting of the server, and carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information to obtain target information;
comparing the target information with the basic information to obtain a comparison result;
after data transmission between the baseboard management controller and the basic input/output system is completed, acquiring a test log file according to the script file of the stability of the test system;
and responding to the completion of the test, and determining the system stability according to the comparison result and the test log file.
In one embodiment, the processor when executing the computer program further performs the steps of:
reading the basic information according to the basic input and output system;
writing the basic information into a memory space corresponding to a preset physical link through a hardware interface of the preset physical link;
according to a preset server management standard, mapping basic information in a memory space corresponding to the preset physical link into a memory space corresponding to the baseboard management controller;
responding to restarting of the server, reading basic information in a memory space corresponding to the baseboard management controller, and obtaining the target information by analyzing the basic information;
wherein the preset physical link refers to a physical link that the baseboard management controller communicates with the basic input output system.
In one embodiment, the processor when executing the computer program further performs the steps of:
and repeatedly carrying out data transmission between the baseboard management controller and the basic input/output system by setting the preset times or the preset time of the system stability test, and identifying the corresponding times on the obtained target information.
In one embodiment, the processor when executing the computer program further performs the steps of:
applying for a space with a preset size in the memory space of the baseboard management controller as a target memory space, and taking the target memory space as a memory space corresponding to the baseboard management controller;
and a mapping relationship exists between the target memory space and the memory space corresponding to the preset physical link.
In one embodiment, the processor when executing the computer program further performs the steps of:
and storing the basic information and the comparison result in a server where the baseboard management controller is located, and identifying the corresponding times on the comparison result.
In one embodiment, the processor when executing the computer program further performs the steps of:
responding to the inconsistent comparison results, and making the system unstable;
and responding to the existence of system error information in the test log file, and making the system unstable.
The program instructions, when read and executed by the one or more processors, may further perform operations corresponding to the steps in the foregoing method embodiments, and reference may be made to the foregoing description, which is not repeated herein. Referring to FIG. 3, which illustrates the architecture of a computer device, may include, in particular, a processor 310, a video display adapter 311, a disk drive 312, an input/output interface 313, a network interface 314, and a memory 320. The processor 310, the video display adapter 311, the disk drive 312, the input/output interface 313, the network interface 314, and the memory 320 may be communicatively connected by a communication bus 330.
The processor 310 may be implemented by a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided in the present application.
The Memory 320 may be implemented in the form of Read Only Memory (ROM), random access Memory (Random Access Memory, RAM), static storage devices, dynamic storage devices, and the like. The memory 320 may store an operating system 321 for controlling the operation of the computer device 300, and a Basic Input Output System (BIOS) 322 for controlling the low-level operation of the computer device 300. In addition, a web browser 323, data storage management 324, and an icon font processing system 325, etc. may also be stored. The icon font processing system 325 may be an application program that specifically implements the operations of the foregoing steps in the embodiments of the present application. In general, when the technical solutions provided in the present application are implemented by software or firmware, relevant program codes are stored in the memory 320 and invoked by the processor 310 for execution.
The input/output interface 313 is used to connect with an input/output module to realize information input and output. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The network interface 314 is used to connect communication modules (not shown) to enable communication interactions of the device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 330 includes a path to transfer information between various components of the device (e.g., processor 310, video display adapter 311, disk drive 312, input/output interface 313, network interface 314, and memory 320).
In addition, the computer device 300 may also obtain information of specific acquisition conditions from the virtual resource object acquisition condition information database 341 for making condition judgment, and so on.
It should be noted that although the above-described computer device 300 only shows the processor 310, the video display adapter 311, the disk drive 312, the input/output interface 313, the network interface 314, the memory 320, the bus 330, etc., the computer device may include other components necessary for achieving normal operation in the specific implementation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the present application, and not all the components shown in the drawings.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and include several instructions to cause a computer device (which may be a personal computer, a cloud server, or a network device, etc.) to perform the methods described in the various embodiments or some parts of the embodiments of the present application.
Example IV
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
copying a script file for testing the stability of the system into the system, and preparing a testing environment;
removing a system related log, and running a script file for testing the stability of the system;
acquiring current system hardware information and software information according to the script file for testing the system stability;
storing the current system hardware information and the software information as basic information according to a preset server management standard;
responding to restarting of the server, and carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information to obtain target information;
comparing the target information with the basic information to obtain a comparison result;
after data transmission between the baseboard management controller and the basic input/output system is completed, acquiring a test log file according to the script file of the stability of the test system;
and responding to the completion of the test, and determining the system stability according to the comparison result and the test log file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
reading the basic information according to the basic input and output system;
writing the basic information into a memory space corresponding to a preset physical link through a hardware interface of the preset physical link;
according to a preset server management standard, mapping basic information in a memory space corresponding to the preset physical link into a memory space corresponding to the baseboard management controller;
responding to restarting of the server, reading basic information in a memory space corresponding to the baseboard management controller, and obtaining the target information by analyzing the basic information;
wherein the preset physical link refers to a physical link that the baseboard management controller communicates with the basic input output system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and repeatedly carrying out data transmission between the baseboard management controller and the basic input/output system by setting the preset times or the preset time of the system stability test, and identifying the corresponding times on the obtained target information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
applying for a space with a preset size in the memory space of the baseboard management controller as a target memory space, and taking the target memory space as a memory space corresponding to the baseboard management controller;
and a mapping relationship exists between the target memory space and the memory space corresponding to the preset physical link.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and storing the basic information and the comparison result in a server where the baseboard management controller is located, and identifying the corresponding times on the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to the inconsistent comparison results, and making the system unstable;
and responding to the existence of system error information in the test log file, and making the system unstable.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of testing system stability, the method comprising:
copying a script file for testing the stability of the system into the system, and preparing a testing environment;
removing a system related log, and running a script file for testing the stability of the system;
acquiring current system hardware information and software information according to the script file for testing the system stability;
storing the current system hardware information and the software information as basic information according to a preset server management standard;
responding to restarting of the server, and carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information to obtain target information;
comparing the target information with the basic information to obtain a comparison result;
after data transmission between the baseboard management controller and the basic input/output system is completed, acquiring a test log file according to the script file of the stability of the test system;
and responding to the completion of the test, and determining the system stability according to the comparison result and the test log file.
2. The method according to claim 1, wherein the performing data transmission between the baseboard management controller and the basic input output system according to the preset server management standard and the basic information in response to the server restart, to obtain the target information, includes:
reading the basic information according to the basic input and output system;
writing the basic information into a memory space corresponding to a preset physical link through a hardware interface of the preset physical link;
according to a preset server management standard, mapping basic information in a memory space corresponding to the preset physical link into a memory space corresponding to the baseboard management controller;
responding to restarting of the server, reading basic information in a memory space corresponding to the baseboard management controller, and obtaining the target information by analyzing the basic information;
wherein the preset physical link refers to a physical link that the baseboard management controller communicates with the basic input output system.
3. The method according to claim 1, wherein the method further comprises:
and repeatedly carrying out data transmission between the baseboard management controller and the basic input/output system by setting the preset times or the preset time of the system stability test, and identifying the corresponding times on the obtained target information.
4. The method of claim 1, wherein the current system hardware information and software information include server component information and option information for the bios, respectively.
5. The method according to claim 2, wherein before mapping the basic information in the memory space corresponding to the preset physical link to the memory space corresponding to the baseboard management controller according to the preset server management standard, the method further comprises:
applying for a space with a preset size in the memory space of the baseboard management controller as a target memory space, and taking the target memory space as a memory space corresponding to the baseboard management controller;
and a mapping relationship exists between the target memory space and the memory space corresponding to the preset physical link.
6. A method according to claim 3, wherein the method further comprises:
and storing the basic information and the comparison result in a server where the baseboard management controller is located, and identifying the corresponding times on the comparison result.
7. The method of claim 1, wherein said determining system stability based on said comparison and said test log file in response to a test completion comprises:
responding to the inconsistent comparison results, and making the system unstable;
and responding to the existence of system error information in the test log file, and making the system unstable.
8. An apparatus for testing system stability, the apparatus comprising:
the replication preparation module is used for replicating the script file for testing the stability of the system into the system and preparing a testing environment;
the clearing operation module is used for clearing the system related logs and operating the script file for testing the system stability;
the first acquisition module is used for acquiring current system hardware information and software information according to the script file for testing the system stability;
the storage module is used for storing the current system hardware information and the software information as basic information according to a preset server management standard;
the transmission acquisition module is used for responding to restarting of the server, carrying out data transmission between the substrate management controller and the basic input/output system according to the preset server management standard and the basic information, and obtaining target information;
the comparison acquisition module is used for comparing the target information with the basic information to obtain a comparison result;
the second acquisition module is used for acquiring a test log file according to the script file of the stability of the test system after the data transmission between the baseboard management controller and the basic input and output system is completed;
and the judging module is used for responding to the completion of the test and determining the system stability according to the comparison result and the test log file.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of testing system stability of any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of testing the stability of a system according to any of claims 1 to 7.
CN202311010935.3A 2023-08-11 2023-08-11 Method, device, equipment and storage medium for testing system stability Pending CN117251361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311010935.3A CN117251361A (en) 2023-08-11 2023-08-11 Method, device, equipment and storage medium for testing system stability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311010935.3A CN117251361A (en) 2023-08-11 2023-08-11 Method, device, equipment and storage medium for testing system stability

Publications (1)

Publication Number Publication Date
CN117251361A true CN117251361A (en) 2023-12-19

Family

ID=89132049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311010935.3A Pending CN117251361A (en) 2023-08-11 2023-08-11 Method, device, equipment and storage medium for testing system stability

Country Status (1)

Country Link
CN (1) CN117251361A (en)

Similar Documents

Publication Publication Date Title
WO2019161619A1 (en) Automatic interface test method and apparatus, and device and computer-readable storage medium
CN110704304B (en) Application program testing method and device, storage medium and server
US20120254662A1 (en) Automated test system and automated test method
CN110515795B (en) Big data component monitoring method and device and electronic equipment
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN112650676A (en) Software testing method, device, equipment and storage medium
CN111352779A (en) On-off test method of AC power supply of MOC card and related assembly
US9842044B2 (en) Commit sensitive tests
CN108364670B (en) Read-write pressure testing method, device, equipment and storage medium
US11861214B2 (en) Memory device forensics and preparation
CN117251361A (en) Method, device, equipment and storage medium for testing system stability
US20220188221A1 (en) Regression testing method and regression testing apparatus
CN115757099A (en) Automatic test method and device for platform firmware protection recovery function
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
CN114442930A (en) Method and device for controlling group disk array, electronic equipment and readable storage medium
CN114579147A (en) Burning verification method and device, terminal equipment and storage medium
CN112181853A (en) Program debugging method, device and system
CN114297009B (en) Method and device for testing server and electronic equipment
CN111522737B (en) Automatic test verification method and device for front-end interface and storage medium
CN116107821A (en) Method, device, equipment and medium for testing switching on and switching off of whole system
CN114721886A (en) Fault detection method, device, equipment and readable storage medium
CN107783827B (en) Asynchronous task processing method and device
CN114924940A (en) Performance test method, device, storage medium and electronic equipment
CN117539697A (en) Storage controller testing method, device, computer equipment and storage medium
CN117407258A (en) Initialization process time consumption statistical method and device, electronic equipment and storage medium

Legal Events

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