CN109800114B - BMC visual test method, device, terminal and storage medium - Google Patents

BMC visual test method, device, terminal and storage medium Download PDF

Info

Publication number
CN109800114B
CN109800114B CN201910045768.3A CN201910045768A CN109800114B CN 109800114 B CN109800114 B CN 109800114B CN 201910045768 A CN201910045768 A CN 201910045768A CN 109800114 B CN109800114 B CN 109800114B
Authority
CN
China
Prior art keywords
setting
bmc
error
log
monitoring parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910045768.3A
Other languages
Chinese (zh)
Other versions
CN109800114A (en
Inventor
王浩生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201910045768.3A priority Critical patent/CN109800114B/en
Publication of CN109800114A publication Critical patent/CN109800114A/en
Application granted granted Critical
Publication of CN109800114B publication Critical patent/CN109800114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a BMC visual test method, a device, a terminal and a storage medium, comprising: setting test parameters; executing the resetting of the target BMC according to the test parameters; collecting a log for resetting the BMC according to the test parameters; setting an error display threshold; and carrying out error screening and error prompt processing on the collected log according to the error display threshold. The invention can realize the high-efficiency analysis of the test data, enhance the test accuracy and save time and human resources.

Description

BMC visual test method, device, terminal and storage medium
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a BMC visual testing method, a device, a terminal and a storage medium.
Background
The bmc (baseboard Management controller) substrate Management controller is responsible for monitoring the running state of the server, contains information such as the temperature and voltage of components such as a CPU, a memory, a hard disk, a network card, and the like of the server, and the rotating speed of a fan, and is very important for the server. If the BMC is not normally operated, various parameters of the server cannot be effectively controlled, and the use effect of the server is affected, so that the stability of the server is very important for the server.
However, a large amount of test data acquired in the test process of the existing BMC test is stored in a log form, and a tester analyzes the performance of the BMC by analyzing the data in the log file. Due to the fact that the produced log files are large, the existing BMC test is time-consuming, and is easy to miss when a large amount of data are analyzed manually, and adverse effects are caused to test accuracy.
Disclosure of Invention
In view of the above disadvantages in the prior art, the present invention provides a BMC visualization testing method, apparatus, terminal and storage medium to solve the above technical problems.
In a first aspect, the present invention provides a BMC visualization testing method, including:
setting test parameters;
resetting the target BMC according to the test parameters;
collecting a log for resetting the BMC according to the test parameters;
setting an error display threshold;
and carrying out error screening and error prompt processing on the collected log according to the error display threshold value.
Further, setting the test parameters includes:
setting a BMC reset type;
setting the BMC reset times;
setting a reset interval time;
setting BMC wake-up time;
and setting target BMC login information.
Further, setting the error display threshold includes:
setting the importance level of the monitoring parameter items in the log;
and setting error display threshold values of corresponding monitoring parameter items according to the importance levels.
Further, the processing of error screening and error prompt for the collected log according to the error display threshold value includes:
judging whether the error times of the monitoring parameter items in the log reach the corresponding error display threshold value:
if yes, displaying the monitoring parameter items and corresponding error times by using a GUI (graphical user interface);
and if not, not displaying the monitoring parameter item.
In a second aspect, the present invention provides a BMC visualization testing apparatus, including:
a parameter setting unit configured to set a test parameter;
the resetting execution unit is configured to execute resetting of the target BMC according to the test parameters;
the log acquisition unit is configured for acquiring a log for resetting the BMC according to the test parameters;
a threshold setting unit configured to set an error display threshold;
and the log processing unit is configured for carrying out error screening and error prompt processing on the collected log according to the error display threshold value.
Further, the parameter setting unit includes:
the type setting module is configured for setting a BMC reset type;
the time setting module is configured for setting the BMC reset time;
an interval setting module configured to set a reset interval time;
the wake-up setting module is configured for setting BMC wake-up time;
and the target setting module is configured for setting target BMC login information.
Further, the threshold setting unit includes:
the level setting module is configured for setting the importance level of the monitoring parameter items in the log;
and the threshold setting module is configured for setting the error display threshold of the corresponding monitoring parameter item according to the importance level.
Further, the log processing unit includes:
the frequency judging module is configured to judge whether the error frequency of the monitoring parameter item in the log reaches a corresponding error display threshold value;
the test display module is configured for displaying the monitoring parameter items and the corresponding error times by utilizing the GUI;
and the test hiding module is configured to not display the monitoring parameter item.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the BMC visual testing method, the device, the terminal and the storage medium, the testing parameters are set, the target BMC is reset and the log is collected according to the testing parameters, and the collected log is subjected to error screening and error prompt processing according to the preset error display threshold, so that the high-efficiency analysis of the testing data is realized, the testing accuracy is enhanced, and the time and the human resources are saved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
Fig. 2 is a schematic block diagram of an apparatus of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a BMC visualization testing apparatus.
As shown in fig. 1, the method 100 includes:
step 110, setting test parameters;
step 120, resetting the target BMC according to the test parameters;
step 130, collecting a log for resetting BMC according to the test parameters;
step 140, setting an error display threshold;
and 150, performing error screening and error prompt processing on the collected log according to the error display threshold value.
Optionally, as an embodiment of the present invention, the setting of the test parameter includes:
setting a BMC reset type;
setting the BMC reset times;
setting a reset interval time;
setting BMC wake-up time;
and setting target BMC login information.
Optionally, as an embodiment of the present invention, the setting of the error display threshold includes:
setting the importance level of the monitoring parameter items in the log;
and setting error display threshold values of corresponding monitoring parameter items according to the importance levels.
Optionally, as an embodiment of the present invention, the processing of performing error screening and error prompt on the collected log according to the error display threshold includes:
judging whether the error times of the monitoring parameter items in the log reach the corresponding error display threshold value:
if yes, displaying the monitoring parameter items and corresponding error times by using a GUI (graphical user interface);
and if not, not displaying the monitoring parameter item.
In order to facilitate understanding of the present invention, the BMC visual test method provided by the present invention is further described below with reference to the principle of the BMC visual test method of the present invention and the process of performing visual test on BMC in the embodiment.
Specifically, the BMC visual test method comprises the following steps:
and S1, setting test parameters.
Setting a BMC reset type, a BMC reset time, a reset interval time, a BMC wake-up time and target BMC login information (IP and login password of the target BMC).
And S2, resetting the target BMC according to the test parameters.
Firstly, judging and calling corresponding reset functions (the reset functions comprise a Warm reset function and a cold reset function) according to the reset types in the test parameters. And remotely logging in the target BMC according to the target BMC logging information in the test parameters, resetting the target BMC by using a resetting function, recording the resetting times by using a t ime tool, and ensuring that the interval time between two adjacent resetting meets the resetting interval time in the test parameters. When the reset times reach the BMC reset times, the BMC reset program is terminated, the completion of the reset program is prompted, and the test analysis program is entered to step S5.
And S3, collecting a log for resetting the BMC according to the test parameters.
After the target BMC is reset, when the waiting time meets the BMC wake-up time in the test parameters, immediately capturing a BMC initialization log, wherein the initialization log comprises an FRU, BMC info, network information, sessions and a log generated by BMC self-test. And marking the current reset times of the acquired initialization log.
And S4, setting an error display threshold value.
And setting the importance level of the monitoring parameter items in the log, and setting the error display threshold of the corresponding monitoring parameter items according to the importance level.
And S5, performing error screening and error prompt processing on the collected log according to the error display threshold.
Firstly, monitoring parameter items needing to be monitored in all logs are collected, monitoring parameter item data of subsequent test logs are compared with monitoring parameter item data in the test logs after initial resetting, error data which are inconsistent with the initial parameter items are recorded, and the number of times of errors of each monitoring parameter item is counted. Constructing a GUI interface, and judging whether the error times of the monitoring parameter items in the log reach the corresponding error display threshold value: if the corresponding error display threshold is reached, the monitoring parameter item is taken as an important error item, a window for displaying the monitoring parameter item is popped up from the GUI interface, and the error times and specific error information of the monitoring parameter are displayed in the popped-up window.
As shown in fig. 2, the apparatus 200 includes:
a parameter setting unit 210, wherein the parameter setting unit 210 is used for setting test parameters;
a reset execution unit 220, wherein the reset execution unit 220 is configured to execute a reset to the target BMC according to the test parameters;
the log collection unit 230 is used for collecting a log for resetting BMC according to the test parameters;
a threshold setting unit 240, the threshold setting unit 240 being configured to set an error display threshold;
and the log processing unit 250 is used for performing error screening and error prompt processing on the collected logs according to the error display threshold.
Optionally, as an embodiment of the present invention, the parameter setting unit includes:
the type setting module is configured for setting a BMC reset type;
the time setting module is configured for setting the BMC reset time;
an interval setting module configured to set a reset interval time;
the wake-up setting module is configured for setting BMC wake-up time;
and the target setting module is configured for setting target BMC login information.
Optionally, as an embodiment of the present invention, the threshold setting unit includes:
the level setting module is configured for setting the importance level of the monitoring parameter items in the log;
and the threshold setting module is configured for setting the error display threshold of the corresponding monitoring parameter item according to the importance level.
Optionally, as an embodiment of the present invention, the log processing unit includes:
the frequency judging module is configured to judge whether the error frequency of the monitoring parameter item in the log reaches a corresponding error display threshold value;
the test display module is configured for displaying the monitoring parameter items and the corresponding error times by utilizing the GUI;
and the test hiding module is configured to not display the monitoring parameter item.
Fig. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 may be used to execute the BMC visual test method according to the embodiment of the present invention.
Among them, the terminal apparatus 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the test data can be efficiently analyzed, the test accuracy is enhanced, time and human resources are saved, and the technical effect achieved by the embodiment can be seen in the description above, and is not repeated herein.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A BMC visual test method is characterized by comprising the following steps:
setting test parameters;
executing the resetting of the target BMC according to the test parameters;
collecting a log for resetting the BMC according to the test parameters;
setting an error display threshold;
performing error screening and error prompt processing on the collected log according to the error display threshold value;
the setting of the test parameters includes:
setting a BMC reset type;
setting the BMC reset times;
setting a reset interval time;
setting BMC wake-up time;
and setting target BMC login information.
2. The BMC visual test method of claim 1, wherein the setting an error display threshold comprises:
setting the importance level of the monitoring parameter items in the log;
and setting an error display threshold value of the corresponding monitoring parameter item according to the importance level.
3. The BMC visual test method of claim 1, wherein the performing error screening and error prompt processing on the collected log according to the error display threshold comprises:
judging whether the error times of the monitoring parameter items in the log reach the corresponding error display threshold value:
if yes, displaying the monitoring parameter items and corresponding error times by using a GUI (graphical user interface);
and if not, not displaying the monitoring parameter item.
4. A BMC visual testing device, comprising:
a parameter setting unit configured to set a test parameter;
the resetting execution unit is configured to execute resetting of the target BMC according to the test parameters;
the log acquisition unit is configured for acquiring a log for resetting the BMC according to the test parameters;
a threshold setting unit configured to set an error display threshold;
the log processing unit is configured to perform error screening and error prompt processing on the collected log according to the error display threshold;
the parameter setting unit includes:
the type setting module is configured for setting a BMC reset type;
the time setting module is configured for setting the BMC reset time;
an interval setting module configured to set a reset interval time;
the wake-up setting module is configured for setting BMC wake-up time;
and the target setting module is configured for setting target BMC login information.
5. The BMC visualization testing device of claim 4, wherein the threshold setting unit comprises:
the level setting module is configured for setting the importance level of the monitoring parameter items in the log;
and the threshold setting module is configured for setting the error display threshold of the corresponding monitoring parameter item according to the importance level.
6. The BMC visualization testing device of claim 4, wherein the log processing unit comprises:
the frequency judging module is configured to judge whether the error frequency of the monitoring parameter item in the log reaches a corresponding error display threshold value;
the test display module is configured to display the monitoring parameter items and the corresponding error times by using a GUI (graphical user interface);
and the test hiding module is configured to not display the monitoring parameter item.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201910045768.3A 2019-01-17 2019-01-17 BMC visual test method, device, terminal and storage medium Active CN109800114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910045768.3A CN109800114B (en) 2019-01-17 2019-01-17 BMC visual test method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910045768.3A CN109800114B (en) 2019-01-17 2019-01-17 BMC visual test method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109800114A CN109800114A (en) 2019-05-24
CN109800114B true CN109800114B (en) 2021-08-20

Family

ID=66559639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910045768.3A Active CN109800114B (en) 2019-01-17 2019-01-17 BMC visual test method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109800114B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111106979B (en) * 2019-11-15 2022-08-12 苏州浪潮智能科技有限公司 Method and equipment for switch threshold alarm test

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116537A (en) * 2011-09-14 2013-05-22 通用电气公司 Condition monitoring system and method
CN104615523A (en) * 2015-03-05 2015-05-13 浪潮电子信息产业股份有限公司 Fatigue test method for BMC management module based on IPMI protocol
CN105955858A (en) * 2016-05-10 2016-09-21 浪潮电子信息产业股份有限公司 Method and device for testing log recording function of BMC (Baseboard Management Controller)
CN106533817A (en) * 2017-01-23 2017-03-22 郑州云海信息技术有限公司 Method and device for setting attribute information of BMC

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679619A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Server and detection method of server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116537A (en) * 2011-09-14 2013-05-22 通用电气公司 Condition monitoring system and method
CN104615523A (en) * 2015-03-05 2015-05-13 浪潮电子信息产业股份有限公司 Fatigue test method for BMC management module based on IPMI protocol
CN105955858A (en) * 2016-05-10 2016-09-21 浪潮电子信息产业股份有限公司 Method and device for testing log recording function of BMC (Baseboard Management Controller)
CN106533817A (en) * 2017-01-23 2017-03-22 郑州云海信息技术有限公司 Method and device for setting attribute information of BMC

Also Published As

Publication number Publication date
CN109800114A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN110727556A (en) BMC health state monitoring method, system, terminal and storage medium
CN110851320A (en) Server downtime supervision method, system, terminal and storage medium
CN110543420B (en) Software testing method, system, terminal and storage medium
CN111209151A (en) Linux-based NVME SSD hot plug test method, system, terminal and storage medium
CN114546738A (en) Server general test method, system, terminal and storage medium
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN111966551A (en) Method, system, terminal and storage medium for verifying remote command execution result
CN111858201A (en) BMC (baseboard management controller) comprehensive test method, system, terminal and storage medium
CN112506758A (en) Firmware refreshing method and device, computer equipment and storage medium
CN109788052B (en) Server configuration remote query method, device, terminal and storage medium
CN110569154B (en) Chip interface function testing method, system, terminal and storage medium
CN109800114B (en) BMC visual test method, device, terminal and storage medium
CN111176917B (en) Method, system, terminal and storage medium for testing stability of CPU SST-BF function
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN106649011A (en) Detection method and detection device for server equipment
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN110543394A (en) server sensor information consistency testing method, system, terminal and storage medium
CN109688025B (en) Test monitoring method, device, terminal and storage medium based on digital KVM
CN114490238A (en) Method, system, terminal and storage medium for monitoring whole server diagnosis process
CN109802866B (en) Network card SR-IOV function testing method, device, terminal and storage medium
CN112486785A (en) Method, system, terminal and storage medium for positioning downtime phase of server
CN109920466B (en) Hard disk test data analysis method, device, terminal and storage medium

Legal Events

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