CN109254863A - A kind of method, apparatus and controlled terminal recording System Event Log - Google Patents
A kind of method, apparatus and controlled terminal recording System Event Log Download PDFInfo
- Publication number
- CN109254863A CN109254863A CN201811004567.0A CN201811004567A CN109254863A CN 109254863 A CN109254863 A CN 109254863A CN 201811004567 A CN201811004567 A CN 201811004567A CN 109254863 A CN109254863 A CN 109254863A
- Authority
- CN
- China
- Prior art keywords
- sel
- sel information
- sqlite
- sqlite database
- information
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0775—Content or structure details of the error report, e.g. specific table structure, specific error fields
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0787—Storage of error reports, e.g. persistent data storage, storage using memory protection
Abstract
The embodiment of the present application provides a kind of method, apparatus and controlled terminal for recording System Event Log, which comprises SQLITE database is introduced in BMC;SEL information is written in SQLITE database;By SEL information update to SQLITE database, SEL information is obtained by SQLITE tool;The application can give up traditional record SEL information in the form of binary data stream, it is changed to record SEL information by the form of database, when BMC failure, maintenance personnel can obtain SEL information by SQLITE tool, when needing to update SEL information table, it only needs to carry out SEL information table corresponding update to operate, it is no longer necessary to which special software tool facilitates operation maintenance personnel, achievees the purpose that convenient for developer, operation maintenance personnel management service BMC and server.
Description
Technical field
The present invention relates to server failure monitoring technical fields, and in particular to it is a kind of record System Event Log method,
Device and controlled terminal.
Background technique
With the development of internet and the expansion of server radix, for the prison of the operation conditions of server, health status
Survey proposes the requirement of update.The System Event Log SEL mentioned in IPMI specification is a kind of effective monitoring server operation
Situation, the method for health status, when server fail, operation maintenance personnel can be according to SEL information diagnosis server failure.Mesh
Before, SEL information is stored in Flash in the form of binary data stream in the realization of BMC, and this storage method needs
BMC is wanted to provide special tool to read SEL information, once the SEL module of BMC breaks down, operation maintenance personnel just can not be obtained
SEL information is unfavorable for the maintenance of server.
Therefore this patent proposes a kind of method, apparatus and controlled terminal for recording System Event Log, can give up biography
System records SEL information in the form of binary data stream, is convenient for developer, operation maintenance personnel management service BMC and service
Device.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of method, apparatus of System Event Log and controlled of recording
Terminal gives up traditional form record SEL information for recording SEL information in the form of binary data stream, being changed to by database,
Achieve the purpose that convenient for developer, operation maintenance personnel management service BMC and server.
In a first aspect, providing a kind of method for recording System Event Log, which comprises
SQLITE database is introduced in BMC;
SEL information is written in SQLITE database;
By SEL information update to SQLITE database, SEL information is obtained by SQLITE tool.
With reference to first aspect and its above-mentioned implementation, in the first possible implementation of the first aspect, described
SEL information is written in SQLITE database, comprising:
SEL message structure is combed, SEL information table is constructed, SEL information is written in SQLITE database.
Second aspect provides a kind of device for recording System Event Log, comprising:
Import unit, the import unit is for introducing SQLITE database in BMC;
SEL information is written in SQLITE database for writing unit, said write unit;
Acquiring unit, the acquiring unit are used to obtain SEL information update SQLITE database by SQLITE tool
Take SEL information.
In conjunction with second aspect, in the first possible implementation of the second aspect,
Said write unit is specifically used for:
SEL message structure is combed, SEL information table is constructed, SEL information is written in SQLITE database.
The third aspect provides a kind of controlled terminal, comprising:
Processor, memory, wherein
The memory is used to store computer program,
The processor from memory for calling and running the computer program, so that terminal device executes above-mentioned end
The method of end equipment.
Fourth aspect provides a kind of computer storage medium, instruction is stored in the computer readable storage medium,
When run on a computer, so that computer executes method described in above-mentioned various aspects.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that
Computer executes method described in above-mentioned various aspects.
Therefore, the application can give up traditional record SEL information in the form of binary data stream, be changed to by database
Form record SEL information, when BMC failure, maintenance personnel can obtain SEL information by SQLITE tool, work as needs
When updating SEL information table, it is only necessary to carry out corresponding update to SEL information table and operate, it is no longer necessary to special software work
Tool facilitates operation maintenance personnel, achievees the purpose that convenient for developer, operation maintenance personnel management service BMC and server.
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 schematic flow chart of the method for the application one embodiment.
Fig. 2 is the schematic block diagram of the device of the application one embodiment.
Fig. 3 is a kind of structural schematic diagram of controlled terminal 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.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.
The Key Term occurred in the application is explained below.
IPMI (Intelligent Platform Management Interface): Intelligent Platform Management Interface.
SEL (System Event Log): System Event Log.
Fig. 1 is the schematic flow chart of the method for the application one embodiment.Wherein, Fig. 1 executing subject can be one kind
Record the device of System Event Log.
As shown in Figure 1, this method 100 includes:
Step 110, SQLITE database is introduced in BMC;
Step 120, SEL information is written in SQLITE database;
Step 130, by SEL information update to SQLITE database, SEL information is obtained by SQLITE tool.
It is optionally, described that SEL information is written in SQLITE database as the application one embodiment, comprising:
SEL message structure is combed, SEL information table is constructed, SEL information is written in SQLITE database.
Therefore, the application can give up traditional record SEL information in the form of binary data stream, be changed to by database
Form record SEL information, when BMC failure, maintenance personnel can obtain SEL information by SQLITE tool, work as needs
When updating SEL information table, it is only necessary to carry out corresponding update to SEL information table and operate, it is no longer necessary to special software work
Tool facilitates operation maintenance personnel, achievees the purpose that convenient for developer, operation maintenance personnel management service BMC and server.
If Fig. 2 shows, which includes:
Import unit 210, the import unit 210 is for introducing SQLITE database in BMC;
SEL information is written in SQLITE database for writing unit for writing unit 220, said write unit 220;
Acquiring unit 230, the acquisition grade unit 230 are used to SEL information update SQLITE database passing through SQLITE
Tool obtains SEL information.
Optionally, as the application one embodiment, said write unit 220 is specifically used for:
SEL message structure is combed, SEL information table is constructed, SEL information is written in SQLITE database.
Fig. 3 is a kind of structural schematic diagram of controlled terminal device 300 provided in an embodiment of the present invention, the controlled terminal device
300 can be used for executing the method for schedule virtual resources provided by the embodiments of the present application.
Wherein, which may include: processor 310, memory 320 and communication unit 330.These
Component is communicated by one or more bus, it will be understood by those skilled in the art that the structure of server shown in figure
The restriction to the application is not constituted, it is also possible to hub-and-spoke configuration either busbar network, can also include than diagram
More or fewer components perhaps combine certain components or different component layouts.
Wherein, which can be used for executing instruction for storage processor 310, and memory 320 can be by any class
The volatibility or non-volatile memory device or their combination of type are realized, such as static random access memory (SRAM), electricity
Erasable Programmable Read Only Memory EPROM (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.When executing instruction in memory 320
When being executed by processor 310, so that terminal 300 some or all of is able to carry out in following above method embodiment step.
Processor 310 is the control centre for storing equipment, utilizes each of various interfaces and the entire electronic equipment of connection
A part by running or execute the software program and/or module that are stored in memory 320, and calls and is stored in storage
Data in device, to execute the various functions and/or processing data of electronic equipment.The processor can be by integrated circuit
(Integrated Circuit, abbreviation IC) composition, such as the IC that can be encapsulated by single are formed, can also be by more of connection
The encapsulation IC of identical function or different function and form.For example, processor 310 can only include central processing unit
(Central Processing Unit, abbreviation CPU).In the application embodiment, CPU can be single operation core, can also
To include multioperation core.
Communication unit 330, for establishing communication channel, so that the storage equipment be allow to be led to other equipment
Letter.Receive the user data or send user data to other equipment that other equipment are sent.
The application also provides a kind of computer storage medium, wherein the computer storage medium can be stored with program, the journey
Sequence may include step some or all of in each embodiment provided by the present application when executing.The storage medium can for magnetic disk,
CD, read-only memory (English: read-only memory, referred to as: ROM) or random access memory (English:
Random access memory, referred to as: RAM) etc..
Therefore, the application BMC stores heat dissipation policy-related (noun) parameter by way of configuration file, can not modify
The update that heat dissipation policy configuration parameter is realized on the basis of the code of BMC, achievees the purpose that the policy update that radiates, reduces heat dissipation
Regulate and control complexity and cost, the attainable technical effect of the present embodiment institute may refer to described above, and details are not described herein again.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in
Such as USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory in one storage medium
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk, including it is several
Instruction is used so that a computer equipment (can be personal computer, server or the second equipment, the network equipment etc.) is held
Row all or part of the steps of the method according to each embodiment of the present invention.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for terminal
For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method
Explanation.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
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 (5)
1. a kind of method for recording System Event Log, which is characterized in that the described method includes:
SQLITE database is introduced in BMC;
SEL information is written in SQLITE database;
By SEL information update to SQLITE database, SEL information is obtained by SQLITE tool.
2. being wrapped the method according to claim 1, wherein described SEL information is written in SQLITE database
It includes:
SEL message structure is combed, SEL information table is constructed, SEL information is written in SQLITE database.
3. a kind of for recording the device of System Event Log characterized by comprising
Import unit, the import unit is for introducing SQLITE database in BMC;
SEL information is written in SQLITE database for writing unit, said write unit;
Acquiring unit, the acquiring unit are used to obtain SEL information update SQLITE database by SQLITE tool
SEL information.
4. device according to claim 3, which is characterized in that said write unit is specifically used for:
SEL message structure is combed, SEL information table is constructed, SEL information is written in SQLITE database.
5. a kind of controlled terminal characterized by comprising
Processor;
The memory executed instruction for storage processor;
Wherein, the processor is configured to perform claim requires the described in any item methods of 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811004567.0A CN109254863A (en) | 2018-08-30 | 2018-08-30 | A kind of method, apparatus and controlled terminal recording System Event Log |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811004567.0A CN109254863A (en) | 2018-08-30 | 2018-08-30 | A kind of method, apparatus and controlled terminal recording System Event Log |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109254863A true CN109254863A (en) | 2019-01-22 |
Family
ID=65049821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811004567.0A Pending CN109254863A (en) | 2018-08-30 | 2018-08-30 | A kind of method, apparatus and controlled terminal recording System Event Log |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109254863A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988859A (en) * | 2019-12-17 | 2021-06-18 | 中国移动通信集团浙江有限公司 | Data processing method and device, computing equipment and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9081838B2 (en) * | 2011-06-03 | 2015-07-14 | Viaforensics, Llc | Methods, apparatuses, and computer program products for database record recovery |
CN106133699A (en) * | 2014-06-20 | 2016-11-16 | Nec 飞鼎克株式会社 | Malfunction informing device, failure notification method and program |
CN108182278A (en) * | 2018-01-26 | 2018-06-19 | 郑州云海信息技术有限公司 | A kind of FRU information maintenance methods and relevant apparatus |
CN108228426A (en) * | 2018-01-19 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of method and apparatus for recording SDR information |
-
2018
- 2018-08-30 CN CN201811004567.0A patent/CN109254863A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9081838B2 (en) * | 2011-06-03 | 2015-07-14 | Viaforensics, Llc | Methods, apparatuses, and computer program products for database record recovery |
CN106133699A (en) * | 2014-06-20 | 2016-11-16 | Nec 飞鼎克株式会社 | Malfunction informing device, failure notification method and program |
CN108228426A (en) * | 2018-01-19 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of method and apparatus for recording SDR information |
CN108182278A (en) * | 2018-01-26 | 2018-06-19 | 郑州云海信息技术有限公司 | A kind of FRU information maintenance methods and relevant apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988859A (en) * | 2019-12-17 | 2021-06-18 | 中国移动通信集团浙江有限公司 | Data processing method and device, computing equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647361B (en) | Data storage method, device and system based on block chain | |
CN111625452B (en) | Flow playback method and system | |
KR100843495B1 (en) | A method for sending service data to an rfid tag while an attached computer system is powered off and a computer system therefor | |
CN109710505A (en) | A kind of disk failure prediction technique, device, terminal and storage medium | |
CN104077199B (en) | Based on partition method and the system of the high-availability cluster of shared disk | |
CN109039829A (en) | A kind of network card performance testing method, apparatus, terminal and storage medium | |
CN103530338B (en) | Frame for carrying out page rendering on calculation equipment and page generation method | |
US11113385B2 (en) | Communicating trace information between security zones | |
CN109240739A (en) | A kind of method, apparatus and controlled terminal of rapid configuration BIOS option | |
CN106210124A (en) | A kind of unified cloud data center monitoring system | |
CN109240847A (en) | EMS memory error report method, device, terminal and storage medium during a kind of POST | |
CN109684166A (en) | Method, apparatus, terminal and the storage medium of automatic test Sensor log normalization | |
CN106815089A (en) | Malfunction elimination method and device based on daily record | |
CN104717276A (en) | Method and system for allocating data storage in network | |
CN115913937A (en) | Container multi-network-card network configuration method, device, equipment and storage medium | |
CN109660388A (en) | A kind of alarm management method and device based on cloud platform | |
CN109117159A (en) | A kind of automatic identification refreshes the method and device of firmware | |
CN109491909A (en) | A kind of CPLD refreshes verification method, device, terminal and storage medium | |
EP3640805A1 (en) | Method and apparatus for implementing white-box otn hardware device, and storage medium | |
CN109067605A (en) | A kind of storage subsystem method for diagnosing faults, device, terminal and storage medium | |
CN109254863A (en) | A kind of method, apparatus and controlled terminal recording System Event Log | |
CN109558300A (en) | A kind of whole machine cabinet alert processing method, device, terminal and storage medium | |
CN109545291A (en) | A kind of doctors and patients' interactive management method, device, terminal and storage medium | |
CN110955602A (en) | Distributed embedded software testing system based on resource sharing | |
CN109032874A (en) | A kind of memory pressure test 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190122 |
|
RJ01 | Rejection of invention patent application after publication |