CN111352788A - Computer system self-checking method, device, equipment and storage medium - Google Patents

Computer system self-checking method, device, equipment and storage medium Download PDF

Info

Publication number
CN111352788A
CN111352788A CN202010177644.3A CN202010177644A CN111352788A CN 111352788 A CN111352788 A CN 111352788A CN 202010177644 A CN202010177644 A CN 202010177644A CN 111352788 A CN111352788 A CN 111352788A
Authority
CN
China
Prior art keywords
self
computer system
checking
storage unit
program
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
CN202010177644.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 CN202010177644.3A priority Critical patent/CN111352788A/en
Publication of CN111352788A publication Critical patent/CN111352788A/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a computer system self-checking method, a device, equipment and a storage medium, wherein the method comprises the following steps: if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not; if so, indicating the computer system to start an operating system from a storage unit, and automatically utilizing a self-checking program matched with the model of the computer system in the storage unit to perform self-checking of the computer system after the computer system finishes starting the operating system; if not, determining that no self-test of the computer system is required. Therefore, the automation and the batch of the computer system self-checking are greatly enhanced, and the effectiveness and the accuracy of the computer system self-checking are ensured.

Description

Computer system self-checking method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer system technology, and more particularly, to a method, an apparatus, a device and a storage medium for computer system self-checking.
Background
In multiple links, computer systems such as servers and memories need to be subjected to complete machine inspection to identify electronic components (abnormal components) which are abnormally operated in the computer systems, for example, after complete machine production, before goods are put on shelves, before users deploy services, and the like, the complete machine needs to be subjected to deep inspection, and the abnormal components are identified to be replaced, so that the normal operation of the computer systems is ensured.
When the complete machine inspection of the computer system is realized, a self-inspection program for realizing the complete machine inspection of the computer system is usually copied to the lower part of the OS of the computer system which is installed, and then the self-inspection program is manually triggered by a worker to realize the self-inspection (complete machine inspection) of the computer system.
Disclosure of Invention
The invention aims to provide a computer system self-checking method, a computer system self-checking device, computer system self-checking equipment and a computer system self-checking storage medium, which can greatly enhance the automation and the batch property of computer system self-checking.
In order to achieve the above purpose, the invention provides the following technical scheme:
a computer system self-test method, comprising:
if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not;
if so, indicating the computer system to start an operating system from a storage unit, and automatically utilizing a self-checking program matched with the model of the computer system in the storage unit to perform self-checking of the computer system after the computer system finishes starting the operating system;
if not, determining that no self-test of the computer system is required.
Preferably, before instructing the computer system to start the operating system from the storage unit, the method further includes:
and reading the model information of the computer system and all the self-checking programs contained in the storage unit, and determining the self-checking program which has a corresponding relation with the model information in all the read self-checking programs as the self-checking program matched with the model of the computer system.
Preferably, before instructing the computer system to start the operating system from the storage unit, the method further includes:
reading the self-checking program stored in the storage unit, and determining that the read self-checking program is matched with the model of the computer system; the storage unit is stored with a corresponding self-test program before the computer system leaves factory.
Preferably, instructing the computer system to start an operating system from a storage unit includes:
and setting the starting mode of the operating system to be started from the storage unit, wherein the starting mode of the operation starting is that the setting started from the storage unit is only effective once after each setting is completed.
Preferably, after the self-test of the computer system is completed, the method further includes:
and acquiring an inspection result obtained by the self-inspection of the computer system, wherein the inspection result comprises a pressure test result and a health state inspection result of each specified component contained in the computer system.
Preferably, reading the self-test program contained in the storage unit includes:
reading a self-checking program contained in a designated memory area; the appointed memory area is an area virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
Preferably, reading the self-test program contained in the storage unit includes:
reading a self-test program contained in an independent storage medium; the independent storage medium is a storage medium virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
A computer system self-test apparatus, comprising:
a determination module configured to: if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not;
a self-test module to: if the judgment module judges that the obtained result is yes, the computer system is instructed to start an operating system from a storage unit, so that after the computer system starts the operating system, a self-checking program matched with the model of the computer system in the storage unit is automatically utilized to perform self-checking on the computer system;
an execution module to: and if the judgment module judges that the obtained result is negative, determining that the self-checking of the computer system is not needed.
A computer system self-test apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the computer system self-checking method as described in any one of the above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the computer system self-test method as claimed in any one of the preceding claims.
The invention provides a computer system self-checking method, a device, equipment and a storage medium, wherein the method comprises the following steps: if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not; if so, indicating the computer system to start an operating system from a storage unit, and automatically utilizing a self-checking program matched with the model of the computer system in the storage unit to perform self-checking of the computer system after the computer system finishes starting the operating system; if not, determining that no self-test of the computer system is required. Therefore, when the starting time of the self-checking of the computer system is judged to be reached, the computer system is automatically controlled to be started from the storage unit in which the self-checking program is stored, so that the self-checking of the computer system is automatically realized based on the self-checking program after the computer system is started, manual participation is not needed, and the automation and the batch of the self-checking of the computer system are greatly enhanced; and before controlling the computer system self-checking, whether the time period which has passed since the computer system self-checking last time reaches a time period threshold value or not is judged, and if the judgment result shows that the time period does not reach the time period threshold value, the self-checking of the computer system is not needed at the current moment, so that the self-checking of the computer system is avoided by the mode when the computer system reaches the self-checking starting time due to other reasons but does not need to be carried out actually, and the effectiveness and the accuracy of the computer system self-checking are ensured.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a first flowchart of a method for self-checking a computer system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a first hardware connection in a computer system self-checking method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a second hardware connection in a self-checking method of a computer system according to an embodiment of the present invention;
fig. 4 is a second flowchart of a self-checking method of a computer system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a self-checking device of a computer system according to an embodiment of the present invention.
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a self-checking method of a computer system according to an embodiment of the present invention is shown, where the method includes:
s11: if the starting time of the computer system self-checking is reached, whether the time period between the time of the last computer system self-checking and the current time reaches a time period threshold value is judged, if yes, the step S12 is executed, and if not, the step S13 is executed.
The execution main body of the computer system self-checking method provided by the embodiment of the present invention may be a corresponding computer system self-checking device, and the computer system self-checking device may be specifically disposed on a BMC (Baseboard management controller), so that the execution main body of the computer system self-checking method may be the BMC.
The self-checking program has the same meaning as the corresponding concept in the prior art, and is a diagnostic program which is used for correspondingly checking specified components (components specified in advance according to actual needs, such as a CPU (central processing unit), a hard disk and the like) in a computer system on a bootable operating system; the starting time of the computer system self-test may be a startup of the computer system (specifically, the server host included in the computer system) in a shutdown state, a warm restart of the computer system (specifically, the server host included in the computer system), and the like. Since the general start time includes the restart of the computer system, and the computer system is automatically restarted after executing the self-check program, in order to avoid that the computer system infinitely starts the operating system from the storage unit and further infinitely implements the self-check, in this embodiment, when the start time of the self-check of the computer system is reached, it may be determined first whether the time period between the time of the last self-check of the computer system and the current time reaches a time period threshold (e.g., 3 seconds, 2 seconds, etc.) set according to actual requirements, and if the time period threshold is not reached, it indicates that the self-check of the computer system has just been achieved, and this start time is the situation that the computer system is shut down and then powered on or restarted after the self-check is completed, so that the self-check of the computer system is not required at this time, otherwise, it indicates that this start time is not, but actually needs to implement the self-test of the computer system, so that the subsequent steps of self-testing the computer system are continuously implemented.
In addition, the BMC can provide an external communication interface, so that a user can input a setting instruction to the BMC by calling the external communication interface, and the BMC sets the time corresponding to the setting instruction as the starting time of the self-checking of the computer system. The BMC can start a self-checking auxiliary process, the self-checking auxiliary process is responsible for detecting starting time, if the starting time is detected to arrive, the storage unit is mounted to the lower portion of a USB bus of a host CPU of the computer system through a USB channel, so that the storage unit forms a USB virtual storage device, the USB virtual storage device comprises a self-starting operating system, the computer system is further instructed to start the operating system from the USB virtual storage device, and the computer system is guided to automatically utilize a corresponding self-checking program to achieve self-checking after the operating system is started.
S12: and instructing the computer system to start the operating system from the storage unit so as to automatically perform self-test of the computer system by using the self-test program matched with the model of the computer system in the storage unit after the computer system starts the operating system.
When the time period from the last time of performing the self-test of the computer system to the current time is determined to reach the time period threshold, it is indicated that the computer system needs to perform the self-test, so that the computer system is instructed to start the operating system of the computer system from the storage unit, and after the computer system starts the operating system from the storage unit, the self-test of the computer system can be automatically performed by using the self-test program contained in the storage unit. Specifically, after the host CPU of the computer system starts the operating system, the host CPU is guided to automatically enter a self-diagnosis process, and automatically runs a self-test program to perform corresponding inspection on a specified component (CPU, memory, hard disk, PCIe device, or the like). And after the self-test of the computer system is completed, the computer system is restarted, and the computer system is started from normal starting equipment (a storage unit which does not store a self-test program).
In addition, after the computer system self-checking is completed, the check result obtained by the computer system self-checking can be stored in the storage unit, and then the BMC can periodically read all or some (or some multiple) check results obtained by the self-checking in the storage unit and display the read check results to the user in a log mode, so that the user can know the required check results and further realize corresponding operation, and when the user reads the check results in the storage unit, the user can obtain the check results in batches and remotely by calling a reading interface provided by the BMC, and the check results are visual; and after the BMC acquires the inspection result, an alarm event such as SEL, SNMP Trap and the like can be generated in an alarm mode to inform a user of the inspection result.
In addition, when the storage of the inspection result is realized, the time of obtaining the inspection result can be stored at the same time, and when the time of the last self-inspection is determined, the time of the latest obtained inspection result is searched in the storage unit to be used as the time of the last self-inspection, if the inspection result is newly generated (the time period from the time of obtaining the inspection result of the last self-inspection to the current time does not reach the time period threshold value), the self-inspection program is considered to be just executed and is not considered to be the starting time of the real self-inspection, and therefore the self-inspection is not needed.
S13: it is determined that a self-test of the computer system is not required.
When the starting time of the computer system self-checking is judged to be reached, the computer system is automatically controlled to be started from the storage unit in which the self-checking program is stored, so that the self-checking is automatically realized based on the self-checking program after the computer system is started, manual participation is not needed, and the automation and the batch of the computer system self-checking are greatly enhanced; and before controlling the computer system self-checking, whether the time period which has passed since the computer system self-checking last time reaches a time period threshold value or not is judged, and if the judgment result shows that the time period does not reach the time period threshold value, the self-checking of the computer system is not needed at the current moment, so that the self-checking of the computer system is avoided by the mode when the computer system reaches the self-checking starting time due to other reasons but does not need to be carried out actually, and the effectiveness and the accuracy of the computer system self-checking are ensured.
The computer system self-checking method provided by the embodiment of the invention can further comprise the following steps before the computer system is indicated to start the operating system from the storage unit:
and reading the model information of the computer system and all the self-checking programs contained in the storage unit, and determining the self-checking program which has a corresponding relation with the model information in all the read self-checking programs as the self-checking program matched with the model of the computer system.
It should be noted that, when implementing the self-check of the computer system, the self-check program for implementing the self-check of the computer system needs to correspond to (match) the model of the computer system, and can be used by the corresponding computer system to implement the self-check; in order to enable the self-checking scheme of the computer system to flexibly adapt to models of different computer systems and further implement corresponding self-checking, in this embodiment, a self-checking program corresponding to a model including different computer systems may be stored in the storage unit, and further, when implementing self-checking of any computer system, a self-checking program corresponding to the model (model information) of the computer system may be determined from the storage unit, so that the computer system can implement self-checking by using the self-checking program.
The computer system self-checking method provided by the embodiment of the invention can further comprise the following steps before the computer system is indicated to start the operating system from the storage unit:
reading a self-checking program stored in a storage unit, and determining that the read self-checking program is a self-checking program matched with the type of a computer system; the storage unit is stored with a corresponding self-test program before the computer system leaves factory.
In order to speed up the efficiency of implementing the self-checking of the computer system, in this embodiment, the corresponding self-checking program may be obtained by cutting according to the model of the computer system before the computer system leaves the factory, and then the self-checking program matched with the model of the computer system is stored in the storage unit (the storage unit is included in the computer system), so that when the self-checking of the computer system needs to be implemented, the self-checking program included in the storage unit may be directly used to implement the self-checking.
In addition, it should be noted that, in order to enable the self-checking program to meet the current requirement, when the self-checking program needs to be updated and upgraded, a corresponding upgrade interface may be provided for an external user, so that the external user may call the upgrade interface to input the latest self-checking program, and the BMC may replace the corresponding self-checking program included in the storage unit with the received self-checking program, thereby enabling the present scheme to have flexibility of updating and upgrading the self-checking program at any time.
The computer system self-checking method provided by the embodiment of the invention is used for indicating the computer system to start the operating system from the storage unit, and comprises the following steps:
the starting mode of the operating system is set to be started from the storage unit, and the starting mode of the operation starting is set to be that the setting started from the storage unit is effective only once after each setting is completed.
It should be noted that the manner of instructing the computer system to start the operating system from the storage unit may be implemented by setting a start mode of operation start to be the start from the storage unit, and then the computer system may check the start mode when starting, if the start mode is the start from the storage unit, the operating system may be started from the storage unit to further implement self-checking, otherwise, the computer system is started in a normal manner; the starting mode is checked every time the computer system is started, and then the computer system is started according to the starting mode, so that the starting mode of the operating system is controlled to be valid only once after the setting of the starting from the storage unit is performed every time the computer system is started from the storage unit, namely after the operating system is started according to the mode, the setting of the starting mode needs to be realized again when the last starting mode is that the setting started from the storage unit is invalid when the computer system starts the operating system next time, and then the corresponding computer is started.
In addition, the computer system may specifically be a host BIOS of the computer system that is started and checks a start mode when the computer system is started, and then the computer system is started based on the start mode.
The computer system self-checking method provided by the embodiment of the invention can further comprise the following steps after the computer system self-checking is completed:
and acquiring an inspection result obtained by the self-inspection of the computer system, wherein the inspection result comprises a pressure test result and a health state inspection result of each specified component contained in the computer system.
It should be noted that, in this embodiment, the self-test of the computer system includes checking pressure tests/pressure tests of various components (specified components, such as other components of the CPU, the memory, the hard disk, and the PCIe device) in the computer system, and also includes checking health states of the various components (whether the various components can operate normally), and the check results obtained thereby include the pressure test results and the health state check results of the specified components included in the computer system, so that a user can know about relevant conditions of the various components of the computer system conveniently.
The computer system self-checking method provided by the embodiment of the invention reads the self-checking program contained in the storage unit, and the method can comprise the following steps:
reading a self-checking program contained in a designated memory area; the designated memory area is an area virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
The appointed memory can be Flash of BMC, the appointed memory area can be partition storing self-checking program in Flash, at this time, a hardware connection diagram for realizing the self-checking method of the computer system can be shown in figure 2, wherein a host CPU of the computer system is connected with BMC through USB, the self-checking program is stored in Flash of BMC, and BMC virtually mounts the partition storing the self-checking program in Flash to a USB bus of the host CPU through a USB channel.
The computer system self-checking method provided by the embodiment of the invention reads the self-checking program contained in the storage unit, and the method can comprise the following steps:
reading a self-test program contained in an independent storage medium; the independent storage medium is virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
The independent storage medium may be a TF card (also called microSD, which is a very small flash memory card) or an SD card (Secure Digital card, which is a new generation memory device based on a semiconductor flash memory), and a hardware connection diagram for implementing the self-checking method of the computer system may be as shown in fig. 3, where a host CPU of the computer system is connected to a BMC through a USB, a self-checking program is stored in the independent storage medium TF card or the SD card, and the BMC virtually mounts the independent storage medium to a USB bus of the host CPU through a USB channel.
In addition, the BMC realizes that the driver mounts the independent storage medium TF card/SD card or Flash partition under the USB bus of the host CPU through the USB channel to form a USB virtual storage device, and designs the virtual storage device into a bootable device with a self-starting Operating System (OS), so that the host CPU of the computer system can be started from the device.
In a specific application scenario, an implementation process of the self-checking method of the computer system disclosed in the present application is shown in fig. 4, and specifically may include the following steps:
storing a self-checking program in a local storage medium such as a TF card, an SD card or a BMC Flash in advance; the self-checking program is a diagnostic program made on the bootable operating system;
designing a BMC firmware program, and controlling the starting time of the self-checking program, wherein the starting time comprises starting in a shutdown state of a server host, hot restarting of the server host and the like; the BMC provides an external communication interface for a user to set the starting time of the self-checking program; the BMC starts a self-checking auxiliary process and is responsible for detecting starting time, and if the starting time is detected to arrive, a storage medium is mounted under a USB bus of the CPU through a USB channel to form USB virtual storage equipment; simultaneously, the BMC sets the starting mode to be started from the USB virtual storage device and sets the starting mode to be effective once; thus, the effect that the computer system is started from the USB virtual storage device is achieved;
after the BIOS of the host computer is started, checking a starting mode, and after finding a mode which is set by the BMC and is started from the USB virtual storage equipment, starting from the USB virtual storage equipment, wherein the starting mode takes effect only once, and the self-checking program is automatically restarted after being executed, so that the equipment is not started again; the CPU of the host computer is guided to enter a self-diagnosis process, and automatically runs a self-diagnosis program to perform health state check and pressure test check on other parts such as the CPU, the memory, the hard disk, PCIe equipment and the like;
after the self-checking program completes the self-checking, the checking result obtained by the self-checking is stored in the USB virtual storage device (namely, the local storage medium is stored);
restarting the computer system after the self-checking program finishes self-checking, and starting the host BIOS from normal starting equipment;
the BMC checks the checking result in the local storage medium periodically, displays the checking result to the client in a log mode, and generates alarm events such as SEL, SNMP Trap and the like in an alarm mode to inform the user of the self-checking result; the user can check the self-checking result in batch and in a remote way through the interface provided by the BMC, and the checking result is visual and visual.
In addition, because the computer system can be automatically restarted after the self-checking program is executed, the self-checking program must be prevented from infinitely setting a starting mode to be started from the USB virtual storage device; the self-test program can be considered to be just executed and not be considered to be the real self-test time any more if the self-test result is newly generated through checking the self-test result, for example, checking the generation time of the self-test result, and the starting mode is not set to be the virtual starting from the USB.
According to the technical scheme disclosed by the application, the problems that the flexibility of the current self-checking diagnosis is poor, manual participation is needed, batch self-checking is difficult, and the diagnosis result cannot be visually displayed can be solved, so that a self-diagnosis scheme which is good in flexibility, can be dynamically adapted to different machine types, is fully-automatic self-diagnosis, is easy to perform batch self-checking and enables the diagnosis result to be remotely and visually displayed is formed, the self-diagnosis system of a server and a storage type computing system is simplified to be built, the self-diagnosis usability is improved, and the customer satisfaction degree is increased; in addition, the technical scheme can be widely applied to complex computer systems such as servers and storages, and the used storage media can be expanded to EMMC and the like.
An embodiment of the present invention further provides a computer system self-checking device, as shown in fig. 5, which may specifically include:
a judging module 11, configured to: if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not;
a self-test module 12 for: if the judgment module judges that the obtained result is yes, the computer system is instructed to start the operating system from the storage unit, so that after the computer system starts the operating system, a self-checking program matched with the machine type of the computer system in the storage unit is automatically utilized to carry out self-checking on the computer system;
an execution module 13, configured to: and if the judgment module judges that the obtained result is negative, determining that the self-checking of the computer system is not needed.
The self-checking device of the computer system provided by the embodiment of the invention can also comprise:
a first determination module to: before the computer system is instructed to start the operating system from the storage unit, the model information of the computer system and all the self-checking programs contained in the storage unit are read, and the self-checking program which has a corresponding relation with the model information in all the read self-checking programs is determined to be the self-checking program matched with the model of the computer system.
The self-checking device of the computer system provided by the embodiment of the invention can also comprise:
a second determination module to: reading a self-checking program stored in a storage unit before indicating the computer system to start an operating system from the storage unit, and determining that the read self-checking program is a self-checking program matched with the model of the computer system; the storage unit is stored with a corresponding self-test program before the computer system leaves factory.
In an embodiment of the present invention, a self-checking module of a computer system includes:
a setting unit configured to: the starting mode of the operating system is set to be started from the storage unit, and the starting mode of the operation starting is set to be that the setting started from the storage unit is effective only once after each setting is completed.
The self-checking device of the computer system provided by the embodiment of the invention can also comprise:
an acquisition module to: after the self-test of the computer system is completed, the inspection result obtained by the self-test of the computer system is obtained, and the inspection result comprises the pressure test result and the health state inspection result of each designated component contained in the computer system.
In a self-checking apparatus of a computer system provided in an embodiment of the present invention, a first determining module and a second determining module respectively include:
a first reading unit to: reading a self-checking program contained in a designated memory area; the designated memory area is an area virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
In a self-checking apparatus of a computer system provided in an embodiment of the present invention, a first determining module and a second determining module respectively include:
a second determination unit configured to: reading a self-test program contained in an independent storage medium; the independent storage medium is virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
The embodiment of the invention also provides a computer system self-checking device, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the computer system self-checking method as described above when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the steps of the self-checking method of the computer system.
It should be noted that, for the description of the relevant parts in the self-checking apparatus, device and storage medium of the computer system provided in the embodiment of the present invention, reference is made to the detailed description of the corresponding parts in the self-checking method of the computer system provided in the embodiment of the present invention, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A computer system self-test method, comprising:
if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not;
if so, indicating the computer system to start an operating system from a storage unit, and automatically utilizing a self-checking program matched with the model of the computer system in the storage unit to perform self-checking of the computer system after the computer system finishes starting the operating system;
if not, determining that no self-test of the computer system is required.
2. The method of claim 1, prior to instructing the computer system to boot an operating system from a storage unit, further comprising:
and reading the model information of the computer system and all the self-checking programs contained in the storage unit, and determining the self-checking program which has a corresponding relation with the model information in all the read self-checking programs as the self-checking program matched with the model of the computer system.
3. The method of claim 1, prior to instructing the computer system to boot an operating system from a storage unit, further comprising:
reading the self-checking program stored in the storage unit, and determining that the read self-checking program is matched with the model of the computer system; the storage unit is stored with a corresponding self-test program before the computer system leaves factory.
4. The method of claim 2 or 3, wherein instructing the computer system to boot an operating system from a storage unit comprises:
and setting the starting mode of the operating system to be started from the storage unit, wherein the starting mode of the operation starting is that the setting started from the storage unit is only effective once after each setting is completed.
5. The method of claim 4, after the completion of the self-test of the computer system, further comprising:
and acquiring an inspection result obtained by the self-inspection of the computer system, wherein the inspection result comprises a pressure test result and a health state inspection result of each specified component contained in the computer system.
6. The method of claim 5, wherein reading the self-test program contained in the memory cell comprises:
reading a self-checking program contained in a designated memory area; the appointed memory area is an area virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
7. The method of claim 5, wherein reading the self-test program contained in the memory cell comprises:
reading a self-test program contained in an independent storage medium; the independent storage medium is a storage medium virtually mounted on a USB bus of a host CPU of the computer system through a USB channel.
8. A computer system self-test apparatus, comprising:
a determination module configured to: if the starting time of the computer system self-checking is reached, judging whether the time period between the time of the computer system self-checking last time and the current time reaches a time period threshold value or not;
a self-test module to: if the judgment module judges that the obtained result is yes, the computer system is instructed to start an operating system from a storage unit, so that after the computer system starts the operating system, a self-checking program matched with the model of the computer system in the storage unit is automatically utilized to perform self-checking on the computer system;
an execution module to: and if the judgment module judges that the obtained result is negative, determining that the self-checking of the computer system is not needed.
9. A computer system self-test device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the computer system self-test method as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the computer system self-test method according to any one of claims 1 to 7.
CN202010177644.3A 2020-03-13 2020-03-13 Computer system self-checking method, device, equipment and storage medium Pending CN111352788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010177644.3A CN111352788A (en) 2020-03-13 2020-03-13 Computer system self-checking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010177644.3A CN111352788A (en) 2020-03-13 2020-03-13 Computer system self-checking method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111352788A true CN111352788A (en) 2020-06-30

Family

ID=71192875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010177644.3A Pending CN111352788A (en) 2020-03-13 2020-03-13 Computer system self-checking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111352788A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038561A (en) * 2006-03-14 2007-09-19 联想(北京)有限公司 Computer remote control method and system
CN101131662A (en) * 2006-08-23 2008-02-27 联想(北京)有限公司 Computer automatic tour inspection system and method thereof
CN105786544A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Method for booting computer system rapidly and booting system of computer
CN108011397A (en) * 2017-12-25 2018-05-08 阳光电源股份有限公司 The self checking method and double-fed wind-driven power generation converter system of a kind of Crowbar circuits

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038561A (en) * 2006-03-14 2007-09-19 联想(北京)有限公司 Computer remote control method and system
CN101131662A (en) * 2006-08-23 2008-02-27 联想(北京)有限公司 Computer automatic tour inspection system and method thereof
CN105786544A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Method for booting computer system rapidly and booting system of computer
CN108011397A (en) * 2017-12-25 2018-05-08 阳光电源股份有限公司 The self checking method and double-fed wind-driven power generation converter system of a kind of Crowbar circuits

Similar Documents

Publication Publication Date Title
CN102855174B (en) The target program progress control method that can automatically recover in automatic test and device
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
EP3879399B1 (en) Method and apparatus for upgrading vehicle-mounted tbox, device, and storage medium
WO2016206514A1 (en) Startup processing method and device
CN111736906A (en) BIOS-based boot entry synchronous storage method, system, terminal and storage medium
US11074148B2 (en) Method and system for visually displaying a bios message during a power-on self-test
CN111414285A (en) Test method, test device and test equipment for starting function of server system
CN116932010B (en) System firmware upgrading method, device and server
CN114116280A (en) Interactive BMC self-recovery method, system, terminal and storage medium
US20160103688A1 (en) Method of Starting Computing System
CN113138791A (en) Upgrade processing method and device based on embedded system and electronic equipment
CN116775141A (en) Abnormality detection method, abnormality detection device, computer device, and storage medium
CN114860322A (en) Substrate management controller, control method and electronic equipment
CN111078452A (en) BMC firmware image recovery method and device
CN111352788A (en) Computer system self-checking method, device, equipment and storage medium
CN115951949A (en) Recovery method and device for configuration parameters of BIOS (basic input output System) and computing equipment
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN115098342A (en) System log collection method, system, terminal and storage medium
CN114860292A (en) Terminal equipment firmware upgrading control method and device, computer equipment and medium
CN115168146A (en) Anomaly detection method and device
CN114153507A (en) Control method and device and storage medium
CN114153503A (en) BIOS control method, device and medium
CN114741119A (en) System starting method and device, computer equipment and storage medium
CN113608939A (en) Server starting timing method, device, terminal and storage medium in performance test
CN104834574B (en) A kind of method and device solving system partitioning damage

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200630