CN106909489A - A kind of method and device of test EventLog states - Google Patents
A kind of method and device of test EventLog states Download PDFInfo
- Publication number
- CN106909489A CN106909489A CN201710105103.8A CN201710105103A CN106909489A CN 106909489 A CN106909489 A CN 106909489A CN 201710105103 A CN201710105103 A CN 201710105103A CN 106909489 A CN106909489 A CN 106909489A
- Authority
- CN
- China
- Prior art keywords
- eventlog
- test
- daily record
- states
- state
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to system testing field, a kind of method of test EventLog states is disclosed, comprised the following steps:Write the program of test EventLog states;The program of testing results EventLog states;EventLog states are read, and judges whether alarm occur.A kind of device of test EventLog states is also disclosed, including:Module is write, the program for writing test EventLog states;Operation module, for the program of testing results EventLog states;Judge module, for reading EventLog states, and judges whether alarm occur.Change of the present invention based on EventLog states, designs the test log bar number that can repeatedly generate daily record to setting, so as to judge the program of EventLog states, is finally completed the test of each state changes of EventLog.
Description
Technical field
The present invention relates to system testing field, more particularly to a kind of method and device of test EventLog states.
Background technology
The state of EventLog can go out the storage condition of system journal, during normal storage, hardware monitoring mould with direct reaction
Under block, the status display of EventLog is normal, and client can check that the daily record of machine is stored by BMC web or IPMI orders
Situation, the health status of machine is judged with this.Due to limited storage space, current EventLog is calculated according to record strip number,
Maximum supports 3639 daily records storage, according to daily record storage strategy, is reached when daily record bar number or during close to 2736, EventLog
State can change, and daily record occur by full alarm " Log almost full ", when daily record bar number reaches maximum 3639
When, there is the full alarm of daily record " Log full ".A kind of method of test EventLog states is needed, test system
The change of each states of EventLog, so as to preferably carry out the operation and maintenance of machine system.
The content of the invention
The weak point that the present invention develops for current needs and prior art, there is provided one kind test EventLog states
Method and device, the present invention based on EventLog states change, design can repeatedly generate daily record to set test day
Will bar number, so as to judge the program of EventLog states, is finally completed the test of each state changes of EventLog.
To achieve these goals, the present invention uses following technical scheme:
Write the program of test EventLog states;
The program of testing results EventLog states;
EventLog states are read, and judges whether alarm occur.
Preferably, the EventLog states refer to the state of the sensor of storage daily record in BMC.
Preferably, the program of test EventLog states is write, including:
The text document of definition storage daily record;
Test log is set by the daily record bar number of full state;
Setting test log has expired the daily record bar number of state;
Definition preserves the test result document of test EventLog state outcomes.
Preferably, after the program for writing test EventLog states, also include:
The program of the test EventLog states to writing is compiled.
Preferably, the program of testing results EventLog states, including:
The IP address of machine to be measured is input into by host ends;
Remove the existing daily record of BMC storages;
Increase daily record, and be stored in the text document for depositing daily record.
Preferably, EventLog states are read, and judges whether alarm occur, including:
When the daily record bar number of storage reaches the test log of setting by the daily record bar number of full state, judge that EventLog states are
It is no daily record occur by full alarm, if so, the prompt message that then output journal passes through full state verification, test result is preserved
In test result document and continue increase daily record carry out daily record expire state test judge, if it is not, then output journal will expire
The prompt message of state verification failure;
When the test log that the daily record bar number of storage reaches setting has expired the daily record bar number of state, judge that EventLog states are
It is no the full alarm of daily record occur, if so, then output journal has expired prompt message that state verification passes through, has preserved test result
In test result document, if it is not, then output journal has expired the prompt message of state verification failure.
Present invention also offers a kind of test EventLog of the method based on a kind of above-mentioned test EventLog states
The device of state, including:
Module is write, the program for writing test EventLog states;
Operation module, for the program of testing results EventLog states;
Judge module, for reading EventLog states, and judges whether alarm occur.
Preferably, it is described to write module, further include:
First definition module, for defining the text document for being used for depositing daily record;
First setting module, for setting test log by the daily record bar number of full state;
Second setting module, the daily record bar number of state has been expired for setting test log;
Second definition module, the test result document of test EventLog state outcomes is preserved for setting.
Preferably, also include:
Collector, the program for the test EventLog states to writing is compiled.
Preferably, the operation module, further includes:
Input module, the IP address for being input into machine to be measured by host ends;
Module is removed, the existing daily record for removing BMC storages;
Increase log pattern, for increasing daily record, and be stored in the text document for depositing daily record.
Preferably, the judge module, further includes:
First judging submodule, daily record bar number of the test log by full state for reaching setting when the daily record bar number of storage
When, judge whether EventLog states daily record occur by full alarm, if so, then output journal is by carrying that full state verification passes through
Showing information, test result is stored in test result document and continuing to increase daily record carries out daily record and has expired the test of state sentencing
It is disconnected, if it is not, the prompt message that then output journal fails full state verification;
Second judging submodule, the test log for reaching setting when the daily record bar number of storage has expired the daily record bar number of state
When, judge whether EventLog states the full alarm of daily record occur, if so, then output journal carrying of having expired that state verification passes through
Show information, be stored in test result in test result document, if it is not, then output journal has expired the prompting letter of state verification failure
Breath.
Beneficial effects of the present invention:
The present invention provides a kind of program of test EventLog states, and the program is mainly used in the judgement of EventLog states,
The present invention can repeat to increase system journal to the test log bar number for setting, and independently can set test log bar number to set
The number of times of program operation and read the board of EventLog states, can read normal condition, daily record will full state and daily record
EventLog status displays under full state, enable O&M tester preferably to carry out machine system operation and maintenance.
Brief description of the drawings
Fig. 1 is a kind of one of schematic flow sheet of method of test EventLog states of the present invention.
Fig. 2 is a kind of one of structural representation of device of test EventLog states of the present invention.
Fig. 3 is the two of a kind of schematic flow sheet of the method for test EventLog states of the present invention.
Fig. 4 is the two of a kind of structural representation of the device of test EventLog states of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In order to make it easy to understand, the part noun to occurring in the present invention makees explanation explained below:
BMC:English full name Baseboard Management Controller, i.e. baseboard management controller, are one special
Service processor, it monitors the shape of a computer, the webserver or other hardware driving equipment using sensor
State, and communicated by independent connection line and system manager, the sensor of BMC is used for measuring internal physical change
Amount, for example:Temperature, humidity, supply voltage, fan speed, messaging parameter and operating system function, if any in these variables
Outside one scope beyond specified limitation, he is informed about keeper, and keeper will be taken just using remote control
True measure.Monitoring device can restart with power cycle or when necessity when, and so, single keeper just can be with
The numerous server of remote control and other equipment, save the overall cost of network, and may insure reliability simultaneously.
EventLog:Represent the daily record storage of BMC, the main monitoring record including hardware, storage system daily record sensor
Each state error triggerings and releasing situation, log recording of machine system etc..
host:In Internet protocol, host represents the local computer that can be mutually accessed with other machines.
IPMI:English full name Intelligent Platform Management Interface, i.e. intelligent platform management
Interface, is hardware management is possessed intelligentized universal interface standard of new generation.User can utilize IPMI monitoring servers
Physical features, such as temperature, voltage, electric fan working condition, power supply supply and cabinet invasion.
With reference to the accompanying drawings and examples, specific embodiment of the invention is described in further detail:
Embodiment one:
As shown in figure 1, a kind of method of test EventLog states of the invention, comprises the following steps:
Step S101:The text document sdrelist.txt of definition storage daily record.
Step S102:Test log is set by the daily record bar number of full state.
Step S103:Setting test log has expired the daily record bar number of state.
Step S104:Definition preserves the test result document Result.txt of test EventLog state outcomes.
Step S105:The program of the test EventLog states to writing is compiled.
Step S106:The IP address of machine to be measured is input into by host ends.
Step S107:Remove the existing daily record of BMC storages.
Step S108:Increase daily record, and be stored in the text document for depositing daily record.
Step S109:When the daily record bar number of storage reaches the test log of setting by the daily record bar number of full state, judge
Whether EventLog states there is daily record by full alarm, if so, the prompt message that then output journal passes through full state verification,
By test result be stored in test result document and continue increase daily record carry out daily record expire state test judgement, if it is not,
The prompt message that then output journal fails full state verification.
Step S110:When the test log that the daily record bar number of storage reaches setting has expired the daily record bar number of state, judge
Whether EventLog states there is the full alarm of daily record, if so, then output journal expired prompt message that state verification passes through,
Test result is stored in test result document, if it is not, then output journal has expired the prompt message of state verification failure.
Used as a kind of enforceable mode, the IP address of machine to be measured is 192.168.16.22.
Used as a kind of enforceable mode, it is 2800 to set test log by the daily record bar number of full state, sets test day
The daily record bar number that will has expired state is 900, then the max log bar number for testing the program of EventLog states is 2800 and 900
With as 3700.
Used as a kind of enforceable mode, the prompt message that full state verification passes through is defined as " BMC by daily record
The prompt message of full state verification failure is " BMC by EventLog Almost Full Status Test Pass ", daily record
EventLog Almost Full Status Test FAIL”。
Used as a kind of enforceable mode, daily record has been expired the prompt message that state verification passes through and has been defined as " BMC
EventLog Full Status Test Pass ", the prompt message that state verification failure has been expired in daily record is " BMC EventLog
Full Status Test FAIL”。
Embodiment two:
As shown in Fig. 2 a kind of device of test EventLog states of the invention, including:Write the first definition mould in module
Block 201, the first setting module 202 write in module, the second setting module 203 write in module, write in module
Removing module 207, fortune in input module 206, operation module in two definition modules 204, collector 205, operation module
The second judgement in the first judging submodule 209, judge module increased in log pattern 208, judge module in row module
Submodule 210, write the first definition module 201 in module be sequentially connected write in module the first setting module 202, write
In the second setting module 203, the second definition module 204 write in module, collector 205, operation module in module
In the increase log pattern 208, judge module in removing module 207, operation module in input module 206, operation module
The second judging submodule 210 in first judging submodule 209 and judge module.
The first definition module 201 in module is write, the text document for defining storage daily record;Write in module
One setting module 202, for setting test log by the daily record bar number of full state;The second setting module 203 in module is write,
The daily record bar number of state is expired for setting test log;The second definition module 204 in module is write, is surveyed for defining to preserve
Try the test result document of EventLog state outcomes;Collector 205, for the journey of the test EventLog states to writing
Sequence is compiled;Input module 206 in operation module, the IP address for being input into machine to be measured by host ends;Operation module
In removing module 207, for remove BMC storage existing daily record;Increase log pattern 208 in operation module, increases day
Will module, for increasing daily record, and is stored in the text document for depositing daily record;In judge module first judges submodule
Block 209, for when the daily record bar number of storage reaches the test log of setting by the daily record bar number of full state, judging EventLog
Whether state there is daily record by full alarm, if so, the prompt message that then output journal passes through full state verification, will test knot
Fruit is stored in test result document and continues to increase daily record and carries out daily record and expire the test judgement of state, if it is not, then exporting day
The prompt message that will fails full state verification;The second judging submodule 210 in judge module, for when the daily record bar of storage
When the test log that number reaches setting has expired the daily record bar number of state, judge whether EventLog states change, day occur
The full alarm of will, if so, then output journal has expired prompt message that state verification passes through, test result is stored in test knot
In fruit document, if it is not, then output journal has expired the prompt message of state verification failure.
Embodiment three:
As shown in figure 3, the method for another test EventLog states of the invention, comprises the following steps:
Step S301:Write the program of test EventLog states.
Step S302:The program of testing results EventLog states.
Step S303:EventLog states are read, and judges whether alarm occur.
Example IV:
As shown in figure 4, the device of another test EventLog states of the invention, including:Write module 401, operation module
402 and judge module 403, write module 401 and be sequentially connected operation module 402 and judge module 403.
Module 401 is write, the program for writing test EventLog states;Operation module 402, for testing results
The program of EventLog states;Judge module 403, for reading EventLog states, and judges whether alarm occur.
Professional further appreciates that, with reference to the module of each example of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes the composition and step of each example according to function in the above description.And this
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
Illustrated above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of method of test EventLog states, EventLog states include that normal condition, daily record will full state and daily records
State is expired, it is characterised in that comprise the following steps:
Write the program of test EventLog states;
The program of testing results EventLog states;
EventLog states are read, and judges whether alarm occur.
2. a kind of method of test EventLog states according to claim 1, it is characterised in that the EventLog shapes
State refers to the state of the sensor of storage daily record in BMC.
3. the method for a kind of test EventLog states according to claim 1, it is characterised in that write test
The program of EventLog states, including:
The text document of definition storage daily record;
Test log is set by the daily record bar number of full state;
Setting test log has expired the daily record bar number of state;
Definition preserves the test result document of test EventLog state outcomes.
4. the method for a kind of test EventLog states according to claim 1, it is characterised in that writing test
After the program of EventLog states, also include:
The program of the test EventLog states to writing is compiled.
5. a kind of method of test EventLog states according to claim 3, it is characterised in that testing results
The program of EventLog states, including:
The IP address of machine to be measured is input into by host ends;
Remove the existing daily record of BMC storages;
Increase daily record, and be stored in the text document for depositing daily record.
6. the method for a kind of test EventLog states according to claim 3, it is characterised in that read EventLog shapes
State, and judge whether alarm occur, including:
When the daily record bar number of storage reaches the test log of setting by the daily record bar number of full state, judge that EventLog states are
It is no daily record occur by full alarm, if so, the prompt message that then output journal passes through full state verification, test result is preserved
In test result document and continue increase daily record carry out daily record expire state test judge, if it is not, then output journal will expire
The prompt message of state verification failure;
When the test log that the daily record bar number of storage reaches setting has expired the daily record bar number of state, judge that EventLog states are
It is no the full alarm of daily record occur, if so, then output journal has expired prompt message that state verification passes through, has preserved test result
In test result document, if it is not, then output journal has expired the prompt message of state verification failure.
7. a kind of test EventLog shapes of the method based on a kind of any described test EventLog states of claim 1-6
The device of state, it is characterised in that including:
Module is write, the program for writing test EventLog states;
Operation module, for the program of testing results EventLog states;
Judge module, for reading EventLog states, and judges whether alarm occur.
8. the device of a kind of test EventLog states according to claim 7, it is characterised in that described to write module,
Further include:
First definition module, the text document for defining storage daily record;
First setting module, for setting test log by the daily record bar number of full state;
Second setting module, the daily record bar number of state has been expired for setting test log;
Second definition module, the test result document of test EventLog state outcomes is preserved for defining.
9. the device of a kind of test EventLog states according to claim 7, it is characterised in that also include:
Collector, the program for the test EventLog states to writing is compiled.
10. a kind of device of test EventLog states according to claim 7, it is characterised in that the operation module,
Further include:
Input module, the IP address for being input into machine to be measured by host ends;
Module is removed, the existing daily record for removing BMC storages;
Increase log pattern, for increasing daily record, and be stored in the text document for depositing daily record;
Preferably, the judge module, further includes:
First judging submodule, daily record bar number of the test log by full state for reaching setting when the daily record bar number of storage
When, judge whether EventLog states daily record occur by full alarm, if so, then output journal is by carrying that full state verification passes through
Showing information, test result is stored in test result document and continuing to increase daily record carries out daily record and has expired the test of state sentencing
It is disconnected, if it is not, the prompt message that then output journal fails full state verification;
Second judging submodule, the test log for reaching setting when the daily record bar number of storage has expired the daily record bar number of state
When, judge whether EventLog states the full alarm of daily record occur, if so, then output journal carrying of having expired that state verification passes through
Show information, be stored in test result in test result document, if it is not, then output journal has expired the prompting letter of state verification failure
Breath.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710105103.8A CN106909489B (en) | 2017-02-25 | 2017-02-25 | Method and device for testing EventLog state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710105103.8A CN106909489B (en) | 2017-02-25 | 2017-02-25 | Method and device for testing EventLog state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106909489A true CN106909489A (en) | 2017-06-30 |
CN106909489B CN106909489B (en) | 2020-03-31 |
Family
ID=59208289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710105103.8A Active CN106909489B (en) | 2017-02-25 | 2017-02-25 | Method and device for testing EventLog state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106909489B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861831A (en) * | 2017-12-07 | 2018-03-30 | 郑州云海信息技术有限公司 | A kind of method of automatic quick addition BMC sel daily records |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314392A (en) * | 2011-08-09 | 2012-01-11 | 浪潮(北京)电子信息产业有限公司 | Computer monitoring system and monitoring alarm method |
CN103188105A (en) * | 2011-12-31 | 2013-07-03 | 中国航天科工集团第二研究院七〇六所 | Safety enhancing system and method thereof of NAS equipment |
US20130179624A1 (en) * | 2012-01-09 | 2013-07-11 | Timothy M. Lambert | Systems and methods for tracking and managing non-volatile memory wear |
CN103902435A (en) * | 2012-12-26 | 2014-07-02 | 鸿富锦精密工业(深圳)有限公司 | System and method for recording log events in server testing |
CN105955858A (en) * | 2016-05-10 | 2016-09-21 | 浪潮电子信息产业股份有限公司 | Method and device for testing log recording function of BMC (Baseboard Management Controller) |
-
2017
- 2017-02-25 CN CN201710105103.8A patent/CN106909489B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314392A (en) * | 2011-08-09 | 2012-01-11 | 浪潮(北京)电子信息产业有限公司 | Computer monitoring system and monitoring alarm method |
CN103188105A (en) * | 2011-12-31 | 2013-07-03 | 中国航天科工集团第二研究院七〇六所 | Safety enhancing system and method thereof of NAS equipment |
US20130179624A1 (en) * | 2012-01-09 | 2013-07-11 | Timothy M. Lambert | Systems and methods for tracking and managing non-volatile memory wear |
CN103902435A (en) * | 2012-12-26 | 2014-07-02 | 鸿富锦精密工业(深圳)有限公司 | System and method for recording log events in server testing |
CN105955858A (en) * | 2016-05-10 | 2016-09-21 | 浪潮电子信息产业股份有限公司 | Method and device for testing log recording function of BMC (Baseboard Management Controller) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861831A (en) * | 2017-12-07 | 2018-03-30 | 郑州云海信息技术有限公司 | A kind of method of automatic quick addition BMC sel daily records |
Also Published As
Publication number | Publication date |
---|---|
CN106909489B (en) | 2020-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783262A (en) | Fault data processing method, device, server and computer readable storage medium | |
CN103117879B (en) | A kind of computer hardware operational factor network monitoring system | |
CN105610648B (en) | A kind of acquisition method and server of O&M monitoring data | |
CN104991629B (en) | Power-fail detecting system and its method | |
CN106844162A (en) | Storage server cabinet management system and method based on BMC | |
CN108376107A (en) | A kind of method, apparatus, equipment and the storage medium of server failure detection | |
CN107479836A (en) | Disk failure monitoring method, device and storage system | |
CN104796273A (en) | Method and device for diagnosing root of network faults | |
CN101753357A (en) | Network server centralized monitoring system and method | |
CN105867572A (en) | Power supply managing method for rack server and rack server | |
CN103378982A (en) | Internet business operation monitoring method and Internet business operation monitoring system | |
TW201119173A (en) | Method of using power supply to execute remote monitoring of an electronic system | |
CN105893745A (en) | Method for acquiring information of monitor module during communication failure and device | |
CN107094091A (en) | A kind of intelligent substation station level network configuration method of calibration and system | |
CN107237773A (en) | The detection method and device of fan trouble, storage medium, processor | |
CN114978883B (en) | Network wakeup management method and device, electronic equipment and storage medium | |
CN106909489A (en) | A kind of method and device of test EventLog states | |
CN102480396B (en) | Server system and connection method thereof | |
CN110362435A (en) | PCIE Fault Locating Method, device, equipment and the medium of Purley Platform Server | |
CN110048881A (en) | Information monitoring system, information monitoring method and device | |
CN109615218A (en) | Nuclear power information system performance monitoring system and method | |
CN105072056A (en) | Switch automatic inspection system and inspection method thereof | |
CN107025155A (en) | User method of testing and device is remotely set up based on ipmitool | |
CN111338891A (en) | Fan stability testing method and device | |
CN113794586B (en) | Snapshot and playback method and system of network topology |
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 |