CN109783292A - A kind of inspection method and system of server info - Google Patents
A kind of inspection method and system of server info Download PDFInfo
- Publication number
- CN109783292A CN109783292A CN201910058988.XA CN201910058988A CN109783292A CN 109783292 A CN109783292 A CN 109783292A CN 201910058988 A CN201910058988 A CN 201910058988A CN 109783292 A CN109783292 A CN 109783292A
- Authority
- CN
- China
- Prior art keywords
- server
- information
- test
- log
- restart
- 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
Links
Abstract
The present invention proposes the inspection method and system of a kind of server info, and wherein method includes: SS1, definition and generates Servers standard information;Server during SS2, acquisition Server Restart tests information;SS3, server test information and Servers standard information are compared, and exports LOG log;SS4, step SS3- step SS4 is repeated, until completing Server Restart test.The present invention tests information by obtaining server during each Server Restart, and by server test information compared with Servers standard information pair, and exports LOG log, realizes the continuity check in Server Restart test process to server info.Tester only need to call corresponding LOG log, i.e., whether server info malfunctions in knowable each restarting process after Server Restart is tested.This method is simple, fast, the working efficiency of tester can be greatly improved, and realize customer demand.
Description
Technical field
The present invention relates to Server Restart the field of test technology, and in particular to a kind of inspection method of server info and is
System.
Background technique
Server, also referred to as servomechanism are to provide the equipment of the service of calculating.Since server needs to respond service request, and
It is handled, in general server should have the service of undertaking and ensure the ability of service.
The composition of server includes that processor, hard disk, memory, system bus etc. are similar with general computer architecture, but
It is that in processing capacity, stability, reliability, safety, scalability, can be managed due to needing to provide highly reliable service
Rationality etc. is more demanding.
For the stable operation for guaranteeing server, Server Restart test is then very important in server stability test
One ring.
Current Server Restart test process, tester need to examine server info for customer demand
It looks into.And Server Restart test be successional test process, tester can not be during the test to server info
It is checked, and excessive due to restarting number in Server Restart test process, if tester is by retaining Server Restart
The log of test, checks server info, then extremely wastes time, and greatly reduces the work effect of tester
Rate.
To solve the above problems, the present invention proposes the inspection method and system of a kind of server info.
Summary of the invention
For the above-mentioned deficiency of the prior art, the present invention provides the inspection method and system of a kind of server info, with solution
Certainly above-mentioned technical problem.
In a first aspect, the present invention provides a kind of inspection method of server info, comprising the following steps:
SS 1, it defines and generates Servers standard information;
Server during SS2, acquisition Server Restart tests information;
SS3, server test information and Servers standard information are compared, and exports LOG log;
SS4, step SS3- step SS4 is repeated, until completing Server Restart test.
Further, the Servers standard information specifically includes:
Model, sequence number, mainboard, BIOS, memory, CPU information.
Further, the step SS2 is specifically included:
The server test information during Server Restart is obtained by SMC.
Further, the step SS3 is specifically included:
Server test information and Servers standard information are compared, if server test information and Servers standard information one
It causes, then the LOG log is PASS;
If server tests information and Servers standard information is inconsistent, the LOG log is FAIL, and records this time
Server Restart state.
Further, the step SS4 further include:
Judge that Server Restart tests whether to complete, specifically include:
It obtains server and currently restarts number;
It is greater than the set value if server currently restarts number, Server Restart test is completed;
Otherwise, Server Restart test does not complete.
Second aspect, the present invention provide a kind of inspection system of server info, comprise the following modules:
Standard information generation module, for defining and generating Servers standard information;
Data obtaining module is tested, tests information for obtaining the server during Server Restart;
Comparison module for comparing server test information and Servers standard information, and exports LOG log;
Loop module, for returning to test data obtaining module, until completing Server Restart test.
Further, the Servers standard information specifically includes:
Model, sequence number, mainboard, BIOS, memory, CPU information.
Further, the test data obtaining module is specifically used for,
The server test information during Server Restart is obtained by SMC.
Further, the comparison module is specifically used for,
Server test information and Servers standard information are compared, if server test information and Servers standard information one
It causes, then the LOG log is PASS;
If server tests information and Servers standard information is inconsistent, the LOG log is FAIL, and records this time
Server Restart state.
Further, the loop module further includes judging unit;
The judging unit is specifically included for judging that Server Restart tests whether to complete:
It obtains server and currently restarts number;
It is greater than the set value if server currently restarts number, Server Restart test is completed;
Otherwise, Server Restart test does not complete.
The beneficial effects of the present invention are,
The inspection method and system of a kind of server info provided by the invention are exclusively used in Server Restart measuring technology neck
Domain.Since current Server Restart process is mostly continuous test process, tester can not be during the test to service
Device information checked, simultaneously because in Server Restart test process to restart number excessive, if tester passes through retention
The log of Server Restart test, checks server info, then extremely wastes time, greatly reduce tester
Working efficiency.And the inspection method of server info proposed by the present invention, by being obtained during each Server Restart
It takes server to test information, and by server test information compared with Servers standard information pair, and exports the side of LOG log
Method realizes the continuity check in Server Restart test process to server info.Tester need to only think highly of in service
After opening test, corresponding LOG log is called, i.e., whether server info malfunctions in knowable each restarting process.The party
Method is simple, fast, the working efficiency of tester can be greatly improved, and realize customer demand.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the inspection method flow diagram according to the server info shown in an exemplary embodiment.
Fig. 2 is the inspection method flow diagram according to the server info shown in an exemplary embodiment.
Fig. 3 is the inspection system structure diagram of server info provided in an embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.
Fig. 1 is the inspection method flow diagram of server info shown according to an exemplary embodiment, as shown in Figure 1
, comprising the following steps:
SS 1, it defines and generates Servers standard information;
Server during SS2, acquisition Server Restart tests information;
SS3, server test information and Servers standard information are compared, and exports LOG log;
SS4, step SS3- step SS4 is repeated, until completing Server Restart test.
Specified otherwise is also needed, above-mentioned Servers standard information specifically includes: model, sequence number, mainboard, BIOS, interior
It deposits, CPU information.Corresponding, above-mentioned server test information equally includes: model, sequence number, mainboard, BIOS, interior
It deposits, CPU information.
For technical solution shown in FIG. 1, specified otherwise is needed, server inspection method proposed by the present invention is dedicated
In Server Restart the field of test technology.Since current Server Restart process is mostly continuous test process, tester
Server info can not be checked during the test, simultaneously because restarting number mistake in Server Restart test process
It is more, if the log that tester is tested by retaining Server Restart, checks server info, then when extremely wasting
Between, greatly reduce the working efficiency of tester.And the inspection method of server info proposed by the present invention, by every
Server is obtained during secondary Server Restart and tests information, and by server test information compared with Servers standard information
Method that is right, and exporting LOG log realizes the continuity check in Server Restart test process to server info.It surveys
Examination personnel only need to call corresponding LOG log, i.e., service in knowable each restarting process after Server Restart is tested
Whether device information malfunctions.This method is simple, fast, the working efficiency of tester can be greatly improved, and realize customer demand.
In one embodiment, above-mentioned steps SS2 is specifically included: obtaining server by SMC (System Management Controller)
Server in restarting process tests information.
The step of obtaining server test information especially by SMC is given in the present embodiment:
The SMC IP address of server is grabbed, and SMC is logged in by selenium module, is specified in SMC and obtains clothes
The test information of business.
In one embodiment, above-mentioned steps SS3 is specifically included:
Server test information and Servers standard information are compared, if server test information and Servers standard information one
It causes, then the LOG log is PASS;
If server tests information and Servers standard information is inconsistent, the LOG log is FAIL, and records this time
Server Restart state.
Specified otherwise is needed, in the present embodiment, by setting the partial content of LOG log, to simplify test
The follow-up work process of personnel.Tester only need to call the LOG of FAIL to may know that clothes after the completion of Server Restart is tested
Business device information whether there is the content for not meeting customer demand.And by recording the secondary clothes in the LOG log that content is FAIL
The rebooting status of business device, tester is just easily found the test node of error, and thinks highly of according to the service in LOG log content
It opens state to improve server, complies with the needs of client.
Fig. 2 is the inspection method flow diagram of server info shown according to an exemplary embodiment, wherein Fig. 2
Judgment part adds returning part to collectively form the step SS4 of Fig. 1.
Judgment part in Fig. 2 is specific as shown in Figure 2, to judge that Server Restart tests whether to complete, specifically
Judgment mode is as follows:
It obtains server and currently restarts number;
It is greater than the set value if server currently restarts number, Server Restart test is completed;
Otherwise, Server Restart test does not complete.
After completing Server Restart test, then terminate;
When the test of unfinished Server Restart, then return step SS2.
For technical solution as indicated with 2, specified otherwise is needed, the program specifies the node of end, perfect
Technical solution.And the above-mentioned Server Restart that judges tests whether the method completed simply, conveniently, since server is currently restarted
Number and setting value are easy to be acquired, for this purpose, being carried out by way of comparing server and currently restarting number and setting value
Server Restart tests whether that the judgement completed has good enforceability.
Based on the identical inventive concept of previous embodiment, as shown in Figure 3, the embodiment of the present invention discloses a kind of server letter
The system of the inspection system of breath, comprises the following modules:
Standard information generation module, for defining and generating Servers standard information;
Data obtaining module is tested, tests information for obtaining the server during Server Restart;
Comparison module for comparing server test information and Servers standard information, and exports LOG log;
Loop module, for returning to test data obtaining module, until completing Server Restart test.
Specified otherwise is also needed, above-mentioned Servers standard information specifically includes: model, sequence number, mainboard, BIOS, interior
It deposits, CPU information.Corresponding, above-mentioned server test information equally includes: model, sequence number, mainboard, BIOS, interior
It deposits, CPU information.
For technical solution shown in Fig. 3, specified otherwise is needed, server proposed by the present invention checks system-specific
In Server Restart the field of test technology.Since current Server Restart process is mostly continuous test process, tester
Server info can not be checked during the test, simultaneously because restarting number mistake in Server Restart test process
It is more, if the log that tester is tested by retaining Server Restart, checks server info, then when extremely wasting
Between, greatly reduce the working efficiency of tester.And the inspection method of server info proposed by the present invention, by every
Server is obtained during secondary Server Restart and tests information, and by server test information compared with Servers standard information
Method that is right, and exporting LOG log realizes the continuity check in Server Restart test process to server info.It surveys
Examination personnel only need to call corresponding LOG log, i.e., service in knowable each restarting process after Server Restart is tested
Whether device information malfunctions.This method is simple, fast, the working efficiency of tester can be greatly improved, and realize customer demand.
In one embodiment, above-mentioned test data obtaining module is specifically used for,
The server test information during Server Restart is obtained by SMC (System Management Controller).
The step of obtaining server test information especially by SMC is given in the present embodiment:
The SMC IP address of server is grabbed, and SMC is logged in by selenium module, is specified in SMC and obtains clothes
The test information of business.
In one embodiment, above-mentioned contrast module is specifically used for,
Server test information and Servers standard information are compared, if server test information and Servers standard information one
It causes, then the LOG log is PASS;
If server tests information and Servers standard information is inconsistent, the LOG log is FAIL, and records this time
Server Restart state.
Specified otherwise is needed, in the present embodiment, by setting the partial content of LOG log, to simplify test
The follow-up work process of personnel.Tester only need to call the LOG of FAIL to may know that clothes after the completion of Server Restart is tested
Business device information whether there is the content for not meeting customer demand.And by recording the secondary clothes in the LOG log that content is FAIL
The rebooting status of business device, tester is just easily found the test node of error, and thinks highly of according to the service in LOG log content
It opens state to improve server, complies with the needs of client.
In one embodiment, above-mentioned loop module further includes judging unit;
Judging unit, completion when for judging Server Restart test, specifically includes:
It obtains server and currently restarts number;
It is greater than the set value if server currently restarts number, Server Restart test is completed;
Otherwise, Server Restart test does not complete.
After completing Server Restart test, then terminate;
When the test of unfinished Server Restart, then test data obtaining module is returned.
For the present embodiment, specified otherwise is needed, by the way that judging unit is arranged in loop module, specifies end
Node, thus perfect technical solution.And the above-mentioned Server Restart that judges tests whether the method completed simply, conveniently,
Since server currently restarts number and setting value is easy to be acquired, for this purpose, by compare server currently restart number and
The mode of setting value tests whether that the judgement completed has good enforceability to carry out Server Restart.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint
What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer
It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims
It is quasi-.
Claims (10)
1. a kind of inspection method of server info, which comprises the following steps:
SS1, definition simultaneously generate Servers standard information;
Server during SS2, acquisition Server Restart tests information;
SS3, server test information and Servers standard information are compared, and exports LOG log;
SS4, step SS3- step SS4 is repeated, until completing Server Restart test.
2. the inspection method of server info according to claim 1, which is characterized in that the Servers standard information tool
Body includes:
Model, sequence number, mainboard, BIOS, memory, CPU information.
3. the inspection method of server info according to claim 1, which is characterized in that the step SS2 is specifically included:
The server test information during Server Restart is obtained by SMC.
4. the inspection method of server info according to claim 1, which is characterized in that the step SS3 is specifically included:
Server test information and Servers standard information are compared, if server test information is consistent with Servers standard information,
Then the LOG log is PASS;
If server tests information and Servers standard information is inconsistent, the LOG log is FAIL, and records the secondary service
Device rebooting status.
5. server info inspection method according to claim 1, which is characterized in that the step SS4 further includes judgement
Server Restart tests whether to complete, and specifically includes:
It obtains server and currently restarts number;
It is greater than the set value if server currently restarts number, Server Restart test is completed;
Otherwise, Server Restart test does not complete.
6. a kind of inspection system of server info, which is characterized in that comprise the following modules:
Standard information generation module, for defining and generating Servers standard information;
Data obtaining module is tested, tests information for obtaining the server during Server Restart;
Comparison module for comparing server test information and Servers standard information, and exports LOG log;
Loop module, for returning to test data obtaining module, until completing Server Restart test.
7. the inspection system of server info according to claim 6, which is characterized in that the Servers standard information tool
Body includes:
Model, sequence number, mainboard, BIOS, memory, CPU information.
8. the inspection system of server info according to claim 6, which is characterized in that the test data obtaining module
It is specifically used for,
The server test information during Server Restart is obtained by SMC.
9. the inspection system of server info according to claim 6, which is characterized in that the comparison module is specifically used
In,
Server test information and Servers standard information are compared, if server test information is consistent with Servers standard information,
Then the LOG log is PASS;
If server tests information and Servers standard information is inconsistent, the LOG log is FAIL, and records the secondary service
Device rebooting status.
10. the inspection system of server info according to claim 6, which is characterized in that the loop module further includes
Judging unit;
The judging unit, for judging that Server Restart tests whether to complete, specifically include: acquisition server is currently restarted secondary
Number;
It is greater than the set value if server currently restarts number, Server Restart test is completed;Otherwise, Server Restart is tested not
It completes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910058988.XA CN109783292A (en) | 2019-01-22 | 2019-01-22 | A kind of inspection method and system of server info |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910058988.XA CN109783292A (en) | 2019-01-22 | 2019-01-22 | A kind of inspection method and system of server info |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783292A true CN109783292A (en) | 2019-05-21 |
Family
ID=66502069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910058988.XA Pending CN109783292A (en) | 2019-01-22 | 2019-01-22 | A kind of inspection method and system of server info |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783292A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111679943A (en) * | 2020-06-10 | 2020-09-18 | 浪潮商用机器有限公司 | Server test system |
CN112965865A (en) * | 2021-02-22 | 2021-06-15 | 山东英信计算机技术有限公司 | Personal computer restart testing method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289398A (en) * | 2010-06-17 | 2011-12-21 | 英业达股份有限公司 | Restart testing method |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN104615519A (en) * | 2015-03-10 | 2015-05-13 | 浪潮集团有限公司 | Method for detecting loss of memory capacity of server under LINUX system |
CN108845909A (en) * | 2018-06-20 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of BMC method for testing pressure parallel based on Python |
-
2019
- 2019-01-22 CN CN201910058988.XA patent/CN109783292A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289398A (en) * | 2010-06-17 | 2011-12-21 | 英业达股份有限公司 | Restart testing method |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN104615519A (en) * | 2015-03-10 | 2015-05-13 | 浪潮集团有限公司 | Method for detecting loss of memory capacity of server under LINUX system |
CN108845909A (en) * | 2018-06-20 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of BMC method for testing pressure parallel based on Python |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111679943A (en) * | 2020-06-10 | 2020-09-18 | 浪潮商用机器有限公司 | Server test system |
CN112965865A (en) * | 2021-02-22 | 2021-06-15 | 山东英信计算机技术有限公司 | Personal computer restart testing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220321440A1 (en) | Interface Service Function Monitoring Method and System Based on Data Acquisition | |
US8661125B2 (en) | System comprising probe runner, monitor, and responder with associated databases for multi-level monitoring of a cloud service | |
US11636028B2 (en) | Stress test impact isolation and mapping | |
CN109408390A (en) | A kind of BMC login user stability test method, apparatus, terminal and storage medium | |
CN106919485A (en) | A kind of system based on configuration hardware testing instrument on server | |
CN109240865A (en) | A kind of AC test method, device, terminal and the storage medium of AEP memory | |
CN110063042A (en) | A kind of response method and its terminal of database failure | |
CN109783292A (en) | A kind of inspection method and system of server info | |
CN109684166A (en) | Method, apparatus, terminal and the storage medium of automatic test Sensor log normalization | |
CN110058998A (en) | Method for testing software and device | |
CN107870850A (en) | A kind of efficient the Internet, applications log system | |
CN112650676A (en) | Software testing method, device, equipment and storage medium | |
CN110569154B (en) | Chip interface function testing method, system, terminal and storage medium | |
CN105955838A (en) | System halt reason check method and device | |
CN112506802B (en) | Test data management method and system | |
CN109032874A (en) | A kind of memory pressure test method, device, terminal and storage medium | |
CN109491909A (en) | A kind of CPLD refreshes verification method, device, terminal and storage medium | |
US20210286713A1 (en) | System testing infrastructure using combinatorics | |
CN107562565A (en) | A kind of method for verifying internal memory Patrol Scurb functions | |
CN111538562A (en) | Linux cloud host service continuity testing method and device on cloud computing platform | |
US7363615B2 (en) | Stack-based callbacks for diagnostic data generation | |
CN109783294A (en) | A kind of test method and system of server memory performance | |
CN105027083B (en) | Use the recovery routine of diagnostic result | |
Paul | End-to-end integration testing | |
CN113655846B (en) | OpenPOWER server time synchronization method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |
|
RJ01 | Rejection of invention patent application after publication |