CN103441861B - A kind of data record generation method and device - Google Patents

A kind of data record generation method and device Download PDF

Info

Publication number
CN103441861B
CN103441861B CN201310302291.5A CN201310302291A CN103441861B CN 103441861 B CN103441861 B CN 103441861B CN 201310302291 A CN201310302291 A CN 201310302291A CN 103441861 B CN103441861 B CN 103441861B
Authority
CN
China
Prior art keywords
interface
data
output data
output
data record
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.)
Expired - Fee Related
Application number
CN201310302291.5A
Other languages
Chinese (zh)
Other versions
CN103441861A (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.)
Hangzhou Huawei Digital Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies 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 Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201310302291.5A priority Critical patent/CN103441861B/en
Publication of CN103441861A publication Critical patent/CN103441861A/en
Priority to PCT/CN2014/072211 priority patent/WO2015007091A1/en
Application granted granted Critical
Publication of CN103441861B publication Critical patent/CN103441861B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • G06F11/3075Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting the data filtering being achieved in order to maintain consistency among the monitored data, e.g. ensuring that the monitored data belong to the same timeframe, to the same system or component
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/86Event-based monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of data record generation method and device, method is:Output data by total interface in the BMC monitoring server of server internal, and record this output data corresponding acquisition time, and by corresponding for any one interface interface message, the output data of this any one interface above-mentioned, and this output data corresponding acquisition time arrange as data record.Using technical solution of the present invention, realizing the generation of data record from hardware driving layer by the BMC of server internal, the reliability of data record acquisition by network and single terminal unit and monitoring software, thus effectively reducing cost, need not be improve;And, comprising the output data of the interface corresponding acquisition time in the data record of above-mentioned generation, thus ensure that data record is matched with BMC event log, improve fault location and the accuracy of failure cause detection.

Description

A kind of data record generation method and device
Technical field
The present invention relates to communication technical field, more particularly, to a kind of data record generation method and device.
Background technology
At present, the extensive application in the communications field with server, the fault detect of server is more and more closed Note.
When startup of server stage or server fail, the data of server interface output contributes to fault and determines Position and acquisition failure cause.At present, on-the-spot record and long-range record two ways is generally adopted to obtain server interface Output data, wherein:
It show the schematic diagram that on-the-spot record mode obtains server interface output data refering to Fig. 1, which is in clothes Business device side configures a terminal, and this terminal is established a connection by the I/O interface of hardware bus and server, and in this terminal Middle installation monitoring software.After startup of server, each by running monitoring software realization this server of acquisition in above-mentioned terminal The output data of individual interface.When obtaining the output data of server interface using above-mentioned on-the-spot record mode it is necessary first to Terminal installs monitoring software, and sets up the connection between terminal and server, thus increased the cost of maintenance terminal, and ought When connecting disconnection, monitoring software will be unable to obtain the output data of server interface;For the serial ports of server, the number of its output According to for stream data, there will be bulk information output in one interface of each time point, above-mentioned monitoring software cannot record respectively The individual interface output data corresponding time, thus cannot be with BMC (the Baseboard Management of server internal Controller, baseboard management controller) in the event log of record match.
It show the schematic diagram that remote mode obtains server interface output data refering to Fig. 2, which is in server Far-end configures a terminal, and this terminal is passed through network and is connected with server foundation, and installs monitoring software in the terminal.Work as clothes After business device starts, run the monitoring software in above-mentioned terminal and obtain the output number of this each interface of server by real-time performance According to.When obtaining the output data of server interface using above-mentioned long-range recording mode it is necessary first to monitor soft in terminal installation Part, thus increased the cost of maintenance terminal, due to passing through network connection between terminal and server, occupies bandwidth resources, And when this network connection disconnects, monitoring software will be unable to obtain the output data of server interface;For the serial ports of server, The data of its output is stream data, there will be bulk information output, above-mentioned monitoring software in one interface of each time point Each interface output data corresponding time cannot be recorded, thus cannot be with the event log phase of the BMC record of server internal Coupling, thus be not easy to the detection of the positioning to fault and failure cause.
In sum, in prior art, there is high cost, acquisition process to the acquisition methods of server interface output data Unreliable, and output data lacks temporal information causing trouble positioning and failure cause detects inaccurate problem.
Content of the invention
The embodiment of the present invention provides a kind of data record generation method and device, in order to solve to export number to server interface According to acquisition methods there is high cost, acquisition process is unreliable, and output data lack temporal information causing trouble positioning with And failure cause detects inaccurate problem.
In a first aspect, providing a kind of data record generation method, including:
Obtain the output data of any one interface in server by local hardware interface;
According to described output data, obtain the corresponding interface message of described output data, and the obtaining of described output data Take the time;
By the output data of any one interface described, described interface message, and described acquisition time are converted to specified The data record of form, and store described data record.
In conjunction with a first aspect, in the first possible implementation, indicating local bus control unit according to described clothes In business device, the output data of any one interface produces interrupt signal, and described interrupt signal is sent to local processor; Indicate that described processor parses to described interrupt signal, and obtain the key of the output data of described interrupt signal instruction Word, the interface message of any one interface according to described keyword generates, wherein, described interface message comprises interface identifier And its corresponding interface status information.
In conjunction with a first aspect, in the possible implementation of second, in the output receiving any one interface described During data, read the temporal information in local real-time clock RTC, using described temporal information as described output data acquisition Time.
In conjunction with the first possible implementation of first aspect, or the possible realization side of second of first aspect Formula, in the third possible implementation, by the output data of any one interface described, described interface message, Yi Jisuo State the store instruction that the acquisition time is converted to SQL SQL form;To carry in the store instruction of described SQL form Data record store to local data base.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, by specifying The query statement of interface input;Described query statement is converted to corresponding SQL form query statement;From described local number According to extracting the corresponding data record of described SQL form query statement in storehouse, and using described data record as described query statement Corresponding Query Result output.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, look into when described When comprising an interface identifier in inquiry instruction, the acquisition time order and function order according to the corresponding output data of described interface identifier is right The corresponding all data records of described interface identifier are ranked up, and export the data record after described sequence;When described inquiry When comprising at least two interface identifier in instruction, obtain the corresponding data record of each interface identifier respectively, and according to described Interface identifier order in query statement is sequentially output the corresponding data record of each interface identifier, wherein, any one interface Identify the acquisition time order and function order according to this corresponding output data of any one interface identifier for the corresponding all data records Sequence;When comprising initial time and end time in described query statement, obtain respectively each interface identifier corresponding Described initial time and the data record between the end time, and be sequentially output respectively according to default interface identifier priority orders The corresponding data record of individual interface identifier, wherein, the corresponding all data records of any one interface identifier are any one according to this The acquisition time order and function order of the corresponding output data of individual interface identifier sorts;Believe when comprising Interface status in described query statement During breath, extract, from the corresponding data record of each interface identifier, the data record meeting described interface status information respectively, And it is sequentially output according to default interface identifier priority orders that each interface identifier is corresponding to meet described interface status information Data record, wherein, the corresponding all data records of any one interface identifier according to this any one interface identifier correspond to Output data acquisition time order and function order sort.
Second aspect, provides a kind of data record generating means, including:
First acquisition unit, for obtaining the output number of any one interface in server by local hardware interface According to, and described output data is sent to second acquisition unit and signal generating unit;
Second acquisition unit, for receiving the output data that described first acquisition unit sends, and according to described output number According to, obtain the corresponding interface message of described output data, and acquisition time of described output data, and by described interface message And described acquisition time sends to signal generating unit;
Signal generating unit, for receiving any one interface that described first acquisition unit and second acquisition unit send Output data, interface message and obtain the time, by the output data of any one interface described, described interface message, and The described acquisition time is converted to the data record of specified format, and stores described data record.
In conjunction with second aspect, in the first possible implementation, described second acquisition unit, specifically for instruction originally The bus control unit on ground produces interrupt signal according to the output data of any one interface in described server, and by described interruption Signal sends to local processor;Indicate that described processor parses to described interrupt signal, and obtain described interruption letter Number instruction output data keyword, according to described keyword generate described in any one interface interface message, wherein, institute State interface message and comprise interface identifier and its corresponding interface status information.
In conjunction with second aspect, in the possible implementation of second, described second acquisition unit, specifically for receiving To any one interface described output data when, read the temporal information in local real-time clock RTC, the described time believed Breath is as the acquisition time of described output data.
In conjunction with the first possible implementation of aspect, or the possible implementation of second of second aspect, In the third possible implementation, described signal generating unit, specifically for by the output data of any one interface described, institute State interface message, and the described acquisition time is converted to the store instruction of SQL SQL form;By described SQL lattice The data record carrying in the store instruction of formula stores to local data base.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, also include defeated Go out unit, for the query statement by specified interface receives input;Described query statement is converted to corresponding SQL form look into Ask instruction;Extract the corresponding data record of described SQL form query statement from described local data base, and described data is remembered Record is as the output of described query statement corresponding Query Result.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, described output Unit, specifically for when comprising an interface identifier in described query statement, according to described interface identifier corresponding output number According to acquisition time order and function order all data records corresponding to described interface identifier be ranked up, and export described sequence after Data record;When comprising at least two interface identifier in described query statement, obtain each interface identifier respectively and correspond to Data record, and according to the interface identifier order in described query statement be sequentially output each interface identifier corresponding data note Record, wherein, the corresponding all data records of any one interface identifier are according to this any one interface identifier corresponding output number According to acquisition time order and function order sort;When comprising initial time and end time in described query statement, obtain every respectively The corresponding data record in described initial time and between the end time of one interface identifier, and according to default interface identifier Priority orders are sequentially output the corresponding data record of each interface identifier, and wherein, any one interface identifier is corresponding all Data record works as described inquiry according to the acquisition time order and function order sequence of this corresponding output data of any one interface identifier When comprising interface status information in instruction, extract from the corresponding data record of each interface identifier respectively and meet described interface The data record of status information, and it is corresponding full to be sequentially output each interface identifier according to default interface identifier priority orders The data record of the described interface status information of foot, wherein, the corresponding all data records of any one interface identifier are according to this The acquisition time order and function order of the corresponding output data of one interface identifier of meaning sorts.
In the embodiment of the present invention, by the output data of total interface in the BMC monitoring server of server internal, and remember Record this output data corresponding acquisition time, and by corresponding for any one interface interface message, above-mentioned this any one connect Mouthful output data, and the output data corresponding acquisition time of this any one interface arrange as data record.Using this Inventive technique scheme, realizes the generation of data record by the BMC of server internal from hardware driving layer, need not by network with And single terminal unit and monitoring software, thus effectively reducing cost, improve the reliability of data record acquisition;And And, the data record of above-mentioned generation comprises the output data corresponding acquisition time of interface, thus ensure that data record Match with BMC event log, improve fault location and the accuracy of failure cause detection.
Brief description
Fig. 1 is the schematic diagram that in prior art, on-the-spot record mode obtains server interface output data;
Fig. 2 obtains the schematic diagram of server interface output data for prior art medium-long range mode;
Fig. 3 is system construction drawing in the embodiment of the present invention;
Fig. 4 is data record product process figure in the embodiment of the present invention;
Fig. 5 is the detail flowchart that in the embodiment of the present invention, user inquires about data record;
Fig. 6 is data record product process figure under concrete application scene in the embodiment of the present invention;
Fig. 7 is data record generating means structural representation one in the embodiment of the present invention;
Fig. 8 is data record generating means structural representation two in the embodiment of the present invention;
Fig. 9 is BMC equipment schematic diagram in the embodiment of the present invention.
Specific embodiment
In order to solve there is high cost to the acquisition methods of server interface output data in prior art, acquisition process is not Reliable, and output data lacks temporal information causing trouble positioning and failure cause detects inaccurate problem.The present invention In embodiment, by the output data of total interface in the BMC monitoring server of server internal, and record this output data pair The acquisition time answered, the output data of this any one interface above-mentioned, and by corresponding for any one interface interface message, with And the output data corresponding acquisition time of this any one interface arranges as data record.Using technical solution of the present invention, lead to The BMC crossing server internal realizes the generation of data record from hardware driving layer, need not set by network and single terminal Standby and monitoring software, thus effectively reducing cost, improves the reliability of data record acquisition;And, in above-mentioned generation The output data corresponding acquisition time of interface is comprised, thus ensure that data record and BMC event log phase in data record Coupling, improves fault location and the accuracy of failure cause detection.
It show system architecture diagram in the embodiment of the present invention refering to Fig. 3, wherein, BMC is located in server, connects by hardware Mouth is set up with server and is connected, and generates data by bus control unit and processor according to the state of each interface in server Record, and the data base in BMC is used for storing above-mentioned data record.Below in conjunction with the accompanying drawings the preferred embodiment of the present invention is entered Row describes in detail.
Refering to shown in Fig. 4, in the embodiment of the present invention, the detailed process generating data record is:
Step 400:Obtain the output data of any one interface in server by the local hardware interface of BMC.
In the embodiment of the present invention, because server comprises multiple interfaces, BMC monitors the shape of the total interface in this server State, when there being any one interface output data in above-mentioned server, between each interface of the hardware interface of BMC and server The hardware bus passing through establish a connection, and obtain the output of any one interface in above-mentioned server by this hardware interface Data.Wherein, the interface of above-mentioned server can be system serial ports or other system interface(As 80port etc.).
Step 410:According to above-mentioned output data, obtain the corresponding interface message of this output data, and this output data The acquisition time.
In the embodiment of the present invention, after BMC receives the output data of any one interface of server, local total line traffic control Device processed according in above-mentioned server any one interface output data produce interrupt signal, and by this interrupt signal send to The processor of BMC, is parsed to this interrupt signal by this processor, obtains the keyword in this terminal signaling, and according to this Keyword generates the interface message corresponding to any one interface above-mentioned, and this interface message comprises interface identifier and its corresponding connects Mouth status information.Wherein, above-mentioned interface identifier comprises interface type(As 80port)With interface label(As serial ports 1);Above-mentioned connect Mouth identifies corresponding interface status information and comprises output data classification data attribute, and wrong mistake in such as instruction server Information, or general log information, the follow-up classification to the data record generating is easy in the acquisition of above-mentioned interface status information Storage.
By said process, BMC obtains the interface identifier of any one interface and its corresponding Interface status letter in server Breath, while obtaining the output data of any one interface above-mentioned, BMC reads local RTC(Real Time Clock;Real Shi Shizhong)In temporal information, and using this temporal information the output data as any one interface above-mentioned the acquisition time.Its In, the inside that above-mentioned RTC is normally at BMC is optional, can be by the NTP based on Ethernet(Network Time Protocol;NTP)Agreement makes the time of RTC keep synchronous with the time of server.
Using technique scheme, when BMC receives the output data of any one interface in server, that is, pass through The local RTC of BMC obtains in real time the acquisition time of above-mentioned output data, due to the output data of any one interface above-mentioned, with And the acquisition time of this output data is obtained by BMC, the above-mentioned acquisition time need not be obtained by the miscellaneous part in server, Therefore avoid and there is a problem of postponing with the acquisition time by the actual acquisition time of input information;And, because BMC is in hardware Driving aspect monitors the output data of each interface in server, and when any one interface above-mentioned has output data, BMC can Accurately obtain the information such as the acquisition time of this output data and this output data, thus improve acquisition information accuracy.
Step 420:By the output data of any one interface above-mentioned, and the interface message of this any one interface, with And the acquisition time is converted to the data record of specified format, and store this data record.
In the embodiment of the present invention, the processor of BMC generates according to the output data of any one interface to bus control unit Interrupt signal parsed after, obtain any one interface above-mentioned output data, interface message(Comprise interface identifier and its Corresponding interface status information), by the output data of any one interface above-mentioned, the interface identifier of this any one interface and its Corresponding interface status information, and the corresponding acquisition time be converted to SQL(Structure Query Language;Structure Change query language)The store instruction of form;And store the data record carrying in the store instruction of this SQL form to locally counting According in storehouse.From said process, a data record comprises acquisition time, interface status information, and interface identifier, output The much informations such as data, wherein, obtain the time, interface identifier and interface status information all can be used as identification informations, this mark Information all can inquire about the corresponding data record of each interface in above-mentioned server as query statement in order to user's later stage.
Through said process, the interface identifier according to any one interface and its corresponding interface status information, this is any The output data of one interface, and the acquisition time of this output data generate this any one interface corresponding one data note Record;When this any one interface is when still having output data in the next moment, BMC repeats said process, generates another Data record, the like.The corresponding data record of multiple interfaces can be comprised in above-mentioned data base, and each interface is permissible Corresponding a plurality of data record.Optionally, can be corresponding many to any one interface above-mentioned according to the sequencing of the time of acquisition Data record is ranked up, thus facilitating later stage user to check and the management to this data record.
Using technique scheme, because BMC is configured with independent operating system and working power, therefore, BMC can hold In continuous monitoring server, the output data of each interface, is not affected by the state of server, can reliably be given birth to thus ensure that Become data record.
After said process, in the local data base of BMC, preserve a plurality of data record, user can be according to the need of itself Ask, corresponding identification information is inputted by the user interface in BMC, inquires about above-mentioned data record.It is specially:By specified interface The query statement of receiving user's input;Wherein, this specified interface is CLI(Command Line Interface;Order line circle Face)Interface, WEB interface, or SNMP(Simple Network Management Protocol;Simple Network Management Protocol) Interface;Due to the above-mentioned query statement of data base's None- identified, therefore, above-mentioned query statement is converted to corresponding SQL form by BMC Query statement;And according to this SQL form query statement, extract above-mentioned SQL form query statement pair from the local data base of BMC The Query Result answered;And assume corresponding for above-mentioned query statement Query Result to the user interface of above-mentioned BMC.
During above-mentioned user inquiry data record, comprise in the query statement of user input to identify letter accordingly Breath, such as interface identifier, acquisition time etc..When comprising interface identifier in above-mentioned query statement, the number of this interface identifier is permissible For one or multiple.It is specially:When comprising an interface identifier in above-mentioned query statement, according to this interface identifier The acquisition time order and function order all data records corresponding to this interface identifier of corresponding output data are ranked up, and will arrange Data record after sequence exports as Query Result, for example, when this interface identifier corresponds to three data records, i.e. data record 1, data record 2 data record 3, and the acquisition time of its corresponding output data be respectively t1, t2 and t3, wherein, t1 is early In t3, t3 early than t2, is then followed successively by data record 1, data record 3, data record according to the Query Result of query statement output 2;When comprising at least two interface identifier in above-mentioned query statement, obtain each interface identifier corresponding data note respectively Record, and it is sequentially output the corresponding data record of each interface identifier according to the order of interface identifier in above-mentioned query statement, wherein, Make the corresponding all data records of any one interface identifier, according to obtaining of this corresponding output data of any one interface identifier Time order and function order is taken to be ranked up, for example, when the interface identifier comprising in query statement is followed successively by interface identifier 1 and interface mark Know 2, interface identifier 1 corresponds to data record 10 data record 11, the acquisition time of its corresponding output data is respectively t10 And t11, early than t10, interface identifier 2 is corresponding to data record 20 data record 21, the acquisition of its corresponding output data for t11 Time is respectively t20 and t21, and t20 early than t21, is then followed successively by " interface identifier 1 according to the Query Result of query statement output:Number According to record 11, data record 10;Interface identifier 2:Data record 20, data record 21 ".
In addition to comprising interface identifier in above-mentioned query statement, in this query statement, the acquisition time can also be comprised, this acquisition Time is usually two times(Initial time and end time), i.e. a time period.It is specially:When bag in above-mentioned query statement During containing initial time and end time, obtain respectively each interface identifier corresponding above-mentioned initial time and end time it Between data record, and according to default interface identifier priority orders be sequentially output each interface identifier corresponding data note Record, wherein, makes the corresponding all data records of any one interface identifier according to this corresponding output of any one interface identifier The acquisition time order and function order of data sorts.Special, above-mentioned initial time and end time can be at the same time(It is certain The individual moment), now, BMC will export the above-mentioned corresponding data record of each interface identifier sometime, wherein, any one The corresponding all data records of interface can be according to default output Cahn-Ingold-Prelog sequence rule output, such as random output, or according to data The data category output carrying in record, or according to the data attribute output carrying in data record.Using above-mentioned technical side Case, supports to assume related data record according to the acquisition time of output data to user, facilitates user to inquire about particular point in time The corresponding interface status information of each interface identifier.
Special, interface status information can also be comprised in the query statement of above-mentioned user input, connect from each respectively Mouth identifies in corresponding data record and extracts the data record meeting above-mentioned interface status information, and according to default interface identifier Priority orders are sequentially output the corresponding data record meeting interface status information of each interface identifier, wherein, any one The corresponding all data records of interface identifier are according to the acquisition time order and function of this corresponding output data of any one interface identifier Order sorts.For example, the interface status information comprising in query statement is error message, and now, BMC will obtain local data base The total interface of middle storage identifies the data record meeting error message in corresponding data record, and according to default interface mark Know priority orders and be sequentially output the corresponding data record of each interface identifier, wherein, make any one interface identifier corresponding All data records, the acquisition time order and function order according to this corresponding output data of any one interface identifier is ranked up.
Optionally, multiple identification informations can be comprised in the query statement of user input, such as comprise interface identifier, wrap again Time containing acquisition(As for a moment), now, BMC will obtain the above-mentioned interface identifier of storage in local data base when above-mentioned Carve corresponding all data records, and this all data record is sequentially output according to default output Cahn-Ingold-Prelog sequence rule.
Refering to shown in Fig. 5, in the embodiment of the present invention, the detailed process of user's inquiry data record is:
Step 500:BMC passes through the query statement of specified interface receiving user's input.
Step 510:BMC obtains the identification information carrying in this query statement, and this identification information is converted to SQL form Query statement.
Step 520:BMC sends above-mentioned SQL form query statement to local data base.
Step 530:Above-mentioned database root extracts corresponding Query Result according to above-mentioned SQL form query statement, and this is looked into Ask result and send and presented to user interface.
In the embodiment of the present invention, above-mentioned Query Result is the corresponding all data records of distinct interface in query statement.
Based on technique scheme, refering to shown in Fig. 6, data record life is discussed in detail with reference to specific application scenarios The flow process becoming:
Step 600:Start the monitoring to each interface in server for the BMC.
Step 610:BMC judges whether to receive the output data of any one interface in server, if no, execution step 620;Otherwise, execution step 630.
Step 620:BMC continues to monitor the state of total interface in this server.
Step 630:The bus control unit of BMC generates interrupt signal according to the output data of any one interface above-mentioned, and This interrupt signal is sent to the processor of BMC.
Step 640:After the processor of BMC receives above-mentioned interrupt signal, obtain the interface letter carrying in this interrupt signal Breath, and obtain the acquisition time of above-mentioned output data from RTC.
Step 650:BMC is by the interface message of any one interface of above-mentioned acquisition, the output number of this any one interface According to, and the acquisition time of this output data be converted to the store instruction of SQL form.
Step 660:The data record carrying in the store instruction of above-mentioned generation is stored to local data base.
Using technique scheme, in the data record of generation, comprise multiple identification informations, user can pass through various marks Know the corresponding data record of acquisition of information, such as obtain sometime or the corresponding output data of certain interface identifier, thus just In fault location and failure cause detection.
Based on technique scheme, refering to shown in Fig. 7, providing a kind of data record generating means in the embodiment of the present invention, Including first acquisition unit 70, second acquisition unit 71, and signal generating unit 72, wherein:
First acquisition unit 70, for obtaining the output number of any one interface in server by local hardware interface According to, and described output data is sent to second acquisition unit 71 and signal generating unit 72;
Second acquisition unit 71, for receiving the output data that described first acquisition unit 70 sends, and according to described defeated Go out data, obtain the corresponding interface message of described output data, and the acquisition time of described output data, and by described interface Information and described acquisition time send to signal generating unit 72;
Signal generating unit 72, for receiving any one that described first acquisition unit 70 and second acquisition unit 71 send The output data of interface, interface message and acquisition time, by the output data of any one interface described, described interface letter Cease, and the described acquisition time is converted to the data record of specified format, and store described data record.
Wherein, above-mentioned data record signal generating unit also includes output unit 73, for by specified interface receives input Query statement;Described query statement is converted to corresponding SQL form query statement;Extract described from described local data base The corresponding data record of SQL form query statement, and using described data record as the corresponding Query Result of described query statement Output.
It show data generating device another kind way of realization refering to Fig. 8, wherein:
Hardware interface 80, for obtaining the output data of each interface in server, and by this output data send to Monitor module 82;
Real-time clock 81, for storage time information, and this temporal information is sent to monitoring module 82;
Monitor module 82, for obtaining the output number of any one interface in server by local hardware interface 80 According to, and obtain the corresponding interface message of described output data, and described real-time clock 81 send the acquisition of output data when Between, and the output data by this any one interface, interface message and acquisition time send to Data Identification module 83;
Data Identification module 83, for receiving the output data monitoring any one interface that module 82 sends, interface is believed Cease and obtain the time, and the output data by any one interface described, described interface message, and described acquisition time turn It is changed to the data record of specified format, and this data record is sent to data base 84 by database access interface;
Data base 84, for storing above-mentioned data record.
Refering to shown in Fig. 9, the present invention also provides a kind of BMC, including hardware interface 90, bus control unit 91, and processor 92, Data base 93:
Hardware interface 90, for obtaining the output data of each interface in server, and by this output data send to Bus control unit 91;
Bus control unit 91, for the output data by any one interface in hardware interface 90 the reception server, and Corresponding interrupt signal is generated according to above-mentioned output data, and this interrupt signal is sent to processor 92;
Processor 92, for receiving the interrupt signal of bus control unit 91 transmission, obtains described defeated according to this interrupt signal Go out the corresponding interface message of data, and the acquisition time of described output data, by the output data of any one interface described, Described interface message, and the described acquisition time be converted to the data record of specified format, and this data record is sent to number According to storehouse 93.
Data base 93, for storing above-mentioned data record.
In sum, in the embodiment of the present invention, BMC passes through local hardware interface and obtains any one interface in server Output data, and obtain the corresponding interface message of described output data, and the acquisition time of above-mentioned output data;Will be above-mentioned The output data of any one interface, interface message, and acquisition time are deposited after being converted to the data record of specified format Storage.Using technical solution of the present invention, realize the generation of data record from hardware driving layer by the BMC of server internal, need not By network and single terminal unit and monitoring software, thus effectively reducing cost, improve data record acquisition Reliability;And, comprise the output data of the interface corresponding acquisition time in the data record of above-mentioned generation, thus ensure that Data record is matched with BMC event log, improves fault location and the accuracy of failure cause detection.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the present invention can be using in one or more computers wherein including computer usable program code Usable storage medium(Including but not limited to disk memory, CD-ROM, optical memory etc.)The computer program of upper enforcement produces The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System), and computer program flow process Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent Select embodiment and fall into being had altered and changing of the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this to the embodiment of the present invention The spirit and scope of bright embodiment.So, if these modifications of the embodiment of the present invention and modification belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to comprise these changes and modification.

Claims (8)

1. a kind of data record generation method is it is characterised in that include:
Obtain the output data of any one interface in server by local hardware interface;
According to described output data, obtain the corresponding interface message of described output data, and receive described any one During the output data of interface, read the temporal information in local real-time clock RTC, using described temporal information as described output The acquisition time of data;Wherein, the described acquisition corresponding interface message of described output data specifically includes:Indicate local bus Controller produces interrupt signal according to the output data of any one interface in described server, and described interrupt signal is sent To local processor;Indicate that described processor parses to described interrupt signal, and obtain described interrupt signal instruction The keyword of output data, the interface message of any one interface according to described keyword generates, wherein, described interface letter Breath comprises interface identifier and its corresponding interface status information;
By the output data of any one interface described, described interface message, and described acquisition time are converted to specified format Data record, and store described data record.
2. the method for claim 1 is it is characterised in that by the output data of any one interface described, described interface Information, and the described acquisition time be converted to the data record of specified format, and store described data record, specifically include:
By the output data of any one interface described, described interface message, and described acquisition time are converted to structuring and look into Ask the store instruction of language SQL form;
The data record carrying in the store instruction of described SQL form is stored to local data base.
3., after method as claimed in claim 2 is it is characterised in that store described data record, further include:
Query statement by specified interface receives input;
Described query statement is converted to corresponding SQL form query statement;
The corresponding data record of described SQL form query statement is extracted from described local data base, and by described data record As the output of described query statement corresponding Query Result.
4. method as claimed in claim 3, it is characterised in that the output corresponding Query Result of described query statement, is specifically wrapped Include:
When comprising an interface identifier in described query statement, according to the corresponding output data of described interface identifier acquisition when Between sequencing all data records corresponding to described interface identifier be ranked up, and export described sequence after data note Record;
When comprising at least two interface identifier in described query statement, obtain each interface identifier corresponding data note respectively Record, and it is sequentially output the corresponding data record of each interface identifier according to the interface identifier order in described query statement, wherein, The corresponding all data records of any one interface identifier are according to the acquisition of this corresponding output data of any one interface identifier Time order and function order sorts;
When comprising initial time and end time in described query statement, obtain respectively each interface identifier corresponding in institute State the data record between initial time and end time, and be sequentially output each according to default interface identifier priority orders The corresponding data record of interface identifier, wherein, the corresponding all data records of any one interface identifier according to this any one The acquisition time order and function order of the corresponding output data of interface identifier sorts;
When comprising interface status information in described query statement, carry from the corresponding data record of each interface identifier respectively Take the data record meeting described interface status information, and be sequentially output each according to default interface identifier priority orders and connect Mouth identifies the corresponding data record meeting described interface status information, wherein, the corresponding all numbers of any one interface identifier Sort according to the acquisition time order and function order of this corresponding output data of any one interface identifier according to record.
5. a kind of data record generating means are it is characterised in that include:
First acquisition unit, for obtaining the output data of any one interface in server by local hardware interface, and Described output data is sent to second acquisition unit and signal generating unit;
Second acquisition unit, for receiving the output data that described first acquisition unit sends, and according to described output data, obtains Take the corresponding interface message of described output data, and when receiving the output data of any one interface described, read this Temporal information in the real-time clock RTC on ground, using described temporal information as described output data the acquisition time, and will be described Interface message and described acquisition time send to signal generating unit;Wherein, described acquisition described output data corresponding interface letter Breath specifically includes:Indicate that local bus control unit produces according to the output data of any one interface in described server to interrupt Signal, and described interrupt signal is sent to local processor;Indicate that described processor parses to described interrupt signal, And obtain the keyword of the output data of described interrupt signal instruction, any one interface according to described keyword generates Interface message, wherein, described interface message comprises interface identifier and its corresponding interface status information;
Signal generating unit, for receiving the output of any one interface of described first acquisition unit and second acquisition unit transmission Data, interface message and obtain the time, by the output data of any one interface described, described interface message, and described The acquisition time is converted to the data record of specified format, and stores described data record.
6. device as claimed in claim 5 is it is characterised in that described signal generating unit, specifically for:
By the output data of any one interface described, described interface message, and described acquisition time are converted to structuring and look into Ask the store instruction of language SQL form;The data record carrying in the store instruction of described SQL form is stored to local data In storehouse.
7. device as claimed in claim 5, it is characterised in that also including output unit, is used for:
Query statement by specified interface receives input;Described query statement is converted to corresponding SQL form query statement; Extract the corresponding data record of described SQL form query statement from described local data base, and using described data record as The corresponding Query Result output of described query statement.
8. device as claimed in claim 7 is it is characterised in that described output unit, specifically for:
When comprising an interface identifier in described query statement, according to the corresponding output data of described interface identifier acquisition when Between sequencing all data records corresponding to described interface identifier be ranked up, and export described sequence after data note Record;When comprising at least two interface identifier in described query statement, obtain each interface identifier corresponding data note respectively Record, and it is sequentially output the corresponding data record of each interface identifier according to the interface identifier order in described query statement, wherein, The corresponding all data records of any one interface identifier are according to the acquisition of this corresponding output data of any one interface identifier Time order and function order sorts;When comprising initial time and end time in described query statement, obtain each interface respectively Identify corresponding data record in described initial time and between the end time, and suitable according to default interface identifier priority Sequence is sequentially output the corresponding data record of each interface identifier, wherein, the corresponding all data records of any one interface identifier Acquisition time order and function order according to this corresponding output data of any one interface identifier sorts;When bag in described query statement When containing interface status information, extract from the corresponding data record of each interface identifier respectively and meet described interface status information Data record, and according to default interface identifier priority orders be sequentially output each interface identifier corresponding meet described in connect The data record of mouth status information, wherein, according to this, any one connects the corresponding all data records of any one interface identifier The acquisition time order and function order that mouth identifies corresponding output data sorts.
CN201310302291.5A 2013-07-16 2013-07-16 A kind of data record generation method and device Expired - Fee Related CN103441861B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310302291.5A CN103441861B (en) 2013-07-16 2013-07-16 A kind of data record generation method and device
PCT/CN2014/072211 WO2015007091A1 (en) 2013-07-16 2014-02-19 Data record generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310302291.5A CN103441861B (en) 2013-07-16 2013-07-16 A kind of data record generation method and device

Publications (2)

Publication Number Publication Date
CN103441861A CN103441861A (en) 2013-12-11
CN103441861B true CN103441861B (en) 2017-03-08

Family

ID=49695530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310302291.5A Expired - Fee Related CN103441861B (en) 2013-07-16 2013-07-16 A kind of data record generation method and device

Country Status (2)

Country Link
CN (1) CN103441861B (en)
WO (1) WO2015007091A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441861B (en) * 2013-07-16 2017-03-08 杭州华为数字技术有限公司 A kind of data record generation method and device
CN105574010B (en) * 2014-10-13 2020-06-02 阿里巴巴集团控股有限公司 Data query method and device
CN104754035A (en) * 2015-03-06 2015-07-01 浪潮集团有限公司 Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip
TWI632453B (en) 2015-10-02 2018-08-11 緯穎科技服務股份有限公司 Method for monitoring server, monitoring device and monitoring system
JP2017173971A (en) * 2016-03-22 2017-09-28 ブラザー工業株式会社 Information collection system, information collection method, and terminal device
TWI679579B (en) * 2018-08-17 2019-12-11 英業達股份有限公司 Remote login method for server subsystem and remote login system
CN111221763A (en) * 2018-11-26 2020-06-02 英业达科技有限公司 Information acquisition system
CN109947690B (en) * 2019-03-18 2023-05-23 联想(北京)有限公司 Control method and device and electronic equipment
CN111061338B (en) * 2019-11-30 2021-06-01 苏州浪潮智能科技有限公司 Method, system and equipment for updating time sequence of baseboard management controller
CN111554367B (en) * 2020-04-26 2023-05-30 贵州精准健康数据有限公司 Data processing method, device and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135715A (en) * 2007-05-25 2008-03-05 中兴通讯股份有限公司 North direction interface data integrity verification method
CN101540694A (en) * 2008-03-17 2009-09-23 联想(北京)有限公司 Method for monitoring server and server adopting same
CN101594259A (en) * 2008-05-28 2009-12-02 韩美爱提株式会社 Terminating apparatus management system and interface arrangement and correlation method, recording medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308834C (en) * 2002-03-15 2007-04-04 联想(北京)有限公司 Method for getting and outputting information monitored by server through multiple approaches
US20080103729A1 (en) * 2006-10-31 2008-05-01 Microsoft Corporation Distributed detection with diagnosis
CN101247275B (en) * 2008-03-18 2011-02-09 杭州华三通信技术有限公司 Interrupt reporting method and network appliance
CN101355531A (en) * 2008-09-24 2009-01-28 华为技术有限公司 Method, apparatus and equipment for transmitting and receiving information
CN102073578A (en) * 2009-11-23 2011-05-25 英业达股份有限公司 Method for recording system event log
CN102478897A (en) * 2010-11-30 2012-05-30 英业达股份有限公司 Computer system
CN103441861B (en) * 2013-07-16 2017-03-08 杭州华为数字技术有限公司 A kind of data record generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135715A (en) * 2007-05-25 2008-03-05 中兴通讯股份有限公司 North direction interface data integrity verification method
CN101540694A (en) * 2008-03-17 2009-09-23 联想(北京)有限公司 Method for monitoring server and server adopting same
CN101594259A (en) * 2008-05-28 2009-12-02 韩美爱提株式会社 Terminating apparatus management system and interface arrangement and correlation method, recording medium

Also Published As

Publication number Publication date
WO2015007091A1 (en) 2015-01-22
CN103441861A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN103441861B (en) A kind of data record generation method and device
RU2419986C2 (en) Combining multiline protocol accesses
US8792385B2 (en) Method and device for auto-generating goose signal connection topology from substation level
CN102355368B (en) Fault processing method of network equipment and system
CN105159964A (en) Log monitoring method and system
CN110554930B (en) Data storage method and related equipment
CN105530220B (en) The interface method of two kinds of different agreement system communications is realized based on OPC
WO2014049804A1 (en) System operation trace method in distributed system
CN106095413B (en) A kind of configuration method and device of bluetooth driver
CN107749778B (en) A kind of communications optical cable fault early warning method and device
CN107133231B (en) Data acquisition method and device
CN102096982A (en) Voice alarm system and method for server monitor
CN104090896B (en) A kind of methods, devices and systems that import data
CN107548087A (en) A kind of method and device of warning association analysis
CN109861869B (en) Configuration file generation method and device
CN102902574B (en) Cooperative processing method and device of multiple information flow nodes
CN102739446B (en) The method and apparatus for selecting Network Time Protocol server
CN103678423A (en) Data file input system, device and method
CN101667953A (en) Reporting method of rapid looped network physical link state and device therefor
CN113407374A (en) Fault processing method and device, fault processing equipment and storage medium
CN107306416A (en) The recording method of business diary and device
CN109257185A (en) A kind of network equipment, service card, logic device and notification information transmission method
CN109104314A (en) A kind of method and device for modifying log configuration file
CN108667649A (en) A kind of malfunction elimination method, apparatus and server
CN114756301A (en) Log processing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170308

Termination date: 20190716