CN106452876A - Log acquisition system and method - Google Patents

Log acquisition system and method Download PDF

Info

Publication number
CN106452876A
CN106452876A CN201610910643.9A CN201610910643A CN106452876A CN 106452876 A CN106452876 A CN 106452876A CN 201610910643 A CN201610910643 A CN 201610910643A CN 106452876 A CN106452876 A CN 106452876A
Authority
CN
China
Prior art keywords
attribute information
hardware configuration
configuration attribute
software
self
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
Application number
CN201610910643.9A
Other languages
Chinese (zh)
Inventor
张锟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201610910643.9A priority Critical patent/CN106452876A/en
Publication of CN106452876A publication Critical patent/CN106452876A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a log acquisition system and method. The log acquisition system comprises at least one service server and a host server, wherein each service server is connected with the host server, and is used for acquiring and storing self corresponding software and hardware configuration attribute information, acquiring self current software and hardware configuration attribute information according to external current trigger, comparing key character strings in the self current software and hardware configuration attribute information with key character strings in the self corresponding software and hardware configuration attribute information, and if the key character strings are different after comparison, sending the self current software and hardware configuration attribute information to the host server; and the host server stores the current software and hardware configuration attribute information. The solution can timely extract various logs generated in the presence of difference in the test process.

Description

A kind of Log Collect System and method
Technical field
The present invention relates to field of computer technology, particularly to a kind of Log Collect System and method.
Background technology
Whole machine cabinet server is answered at more and more newdata centers due to its advantage such as high energy efficiency, rapid deployment With.In order to ensure whole machine cabinet server can normal high-quality operation, after whole machine cabinet server disposition completes, need to whole Equipment cabinet server carries out stability test.
At present, the various daily record of substantial amounts of classification can be produced during whole machine cabinet server stability test, owing to stablizing Property test automatically carry out, unmanned within the quite a long time, once produce abnormal log, and do not have tested If personnel find in time, whole machine cabinet server may proceed to samsara and performs later test.After repeatedly loop test, various days After will saves bit by bit some, newly generated daily record can cover the daily record producing in early days automatically.
But, existing mode, due to the automatic daily record covering and producing in early days, causes the abnormal log producing in early days by clearly Remove.It is thus impossible to extract all kinds of daily records producing when existing abnormal in test process in time
Content of the invention
Embodiments provide a kind of Log Collect System and method, in order to ensure that timely test process exists All kinds of daily records producing when abnormal.
First aspect, embodiments provides a kind of Log Collect System, and this system includes:
At least one service server and host server, wherein,
In at least one service server described, each service server is connected with described host server, is used for obtaining Take from the corresponding software of body and hardware configuration attribute information, and store self corresponding software described and hardware configuration attribute letter Breath;And currently trigger acquisition self current software and hardware configuration attribute information according to outside, and self is current by described In software and hardware configuration attribute information in keyword strings and self corresponding software described and hardware configuration attribute information Keyword strings is compared, and after comparison, keyword strings exists difference, then send self current software described and Hardware configuration attribute information is to described host server;
Described host server, is used for receiving described current software and hardware configuration attribute information, and stores described working as Front software and hardware configuration attribute information.
Preferably,
In at least one service server described, each service server, being further used for, software is set and hardware is joined Putting attribute information and checking oneself rule, described rule of checking oneself includes that at least one checks oneself character string, currently triggers acquisition according to outside Self current software and hardware configuration attribute information, and self current software described and hardware configuration attribute information will close Key word character string is compared with keyword strings in self corresponding software described and hardware configuration attribute information, works as comparison There is not difference in rear keyword strings, then by self current software described and hardware configuration attribute information according to described setting Software and hardware configuration attribute information are checked oneself rule and are checked oneself, when checking oneself self current software and hardware configuration attribute information When including that at least one checks oneself character string, send self current software described and hardware configuration attribute information extremely described host Server.
Preferably, farther include:Switch;
Described switch, is connected with each service server described, and is connected with described host server, for by institute State each service server and described host server and access consolidated network, current by each service server described Software and the transmission of hardware configuration attribute information are to described host server.
Preferably, farther include:Hardware device;
Described hardware device, is used for connecting each service server described, host server and switch, and according to outward Portion currently triggers, and generates corresponding current self the current log information triggering, and sends described current log information to institute State host server;
Described host server, is further used for receiving the described current log information that described hardware device sends, and deposits Store up described current log information.
Preferably,
Described host server, is further used for self current software and hardware configuration attribute letter according to receive Breath and the corresponding keyword strings of title in described current log information, by self current software described and hardware configuration attribute Information and described current log information carry out subregion preservation.
Second aspect, embodiments provides a kind of log collection method, and the method includes:
Obtain at least one service server, the corresponding software of each service server self and hardware configuration attribute Information;
It is stored in described software and hardware configuration attribute information in corresponding service server;
Also include:
Currently trigger self current software of acquisition and hardware configuration attribute information according to outside;
By keyword strings in self current software described and hardware configuration attribute information with described self is corresponding In software and hardware configuration attribute information, keyword strings is compared;
There is difference in keyword strings after comparison, then send self current software described and hardware configuration attribute letter Breath is to described host server;
Utilize described host server to receive described current software and hardware configuration attribute information, and store described currently Software and hardware configuration attribute information.
Preferably, farther include:Arranging software and hardware configuration attribute information checking oneself rule, described checking oneself in rule is wrapped Include at least one and check oneself character string;
Described by keyword strings in self current software described and hardware configuration attribute information with described self is right After in the software answered and hardware configuration attribute information, keyword strings is compared, farther include:
There is not difference in keyword strings after comparison, then believe self current software described and hardware configuration attribute Breath arranges software and hardware configuration attribute information is checked oneself rule and checked oneself according to described, when checking oneself self current software and hard When part configuration attribute information includes that at least one checks oneself character string, send self current software described and hardware configuration attribute Information is to described host server.
Preferably, farther include:
Switch is connected with each service server described, and is connected with described host server so that described often One service server and described host server access consolidated network;
Transmit current software and the hardware configuration attribute information of each service server described to described host clothes Business device.
Preferably, farther include:
Hardware device is utilized to connect each service server described, host server and switch, and according to outside Currently trigger, self current log information of the corresponding current triggering of generation, and described current log information is sent extremely described Host server;
Utilize described host server to receive the described current log information that described hardware device sends, and store described working as Front log information.
Preferably, after the described current software of described storage and hardware configuration attribute information, farther include:
Utilize described host server self current software and hardware configuration attribute information and institute according to receive State in current log information the corresponding keyword strings of title, by self current software described and hardware configuration attribute information and Described current log information carries out subregion preservation.
Visible, embodiments provide a kind of Log Collect System and method, by obtaining each business service The corresponding software of device self and hardware configuration attribute information, and store self corresponding software described and hardware configuration attribute letter Breath, and each service server self current software of acquisition and hardware configuration attribute information is currently triggered according to outside, and By keyword strings in self current software described and hardware configuration attribute information and self corresponding software described and hard In part configuration attribute information, keyword strings is compared, and after comparison, keyword strings exists difference, then work as self Front software and hardware configuration attribute information are sent to host server, and are stored in host server.The present invention can be certainly In the corresponding software of each service server self of dynamic comparison storage and hardware configuration attribute information keyword strings with each Keyword strings in the current software of individual service server self and hardware configuration attribute information, only by distinct current Software and hardware configuration attribute information be delivered and stored in host server, therefore can extract stability test mistake in time All kinds of daily records when abnormal problem produces in journey.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the accompanying drawing of required use is briefly described, it should be apparent that, the accompanying drawing in describing below is the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawing.
Fig. 1 is the structural representation of a kind of Log Collect System that one embodiment of the invention provides;
Fig. 2 is the structural representation of a kind of Log Collect System that another embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of Log Collect System that another embodiment of the present invention provides;
Fig. 4 is the flow chart of a kind of log collection method that one embodiment of the invention provides;
Fig. 5 is the flow chart of a kind of log collection method that another embodiment of the present invention provides.
Detailed description of the invention
Purpose, technical scheme and advantage for making the embodiment of the present invention are 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 The 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 being obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of Log Collect System, this system includes:
At least one service server 101 and host server 102, wherein,
In at least one service server 101 described, each service server 101 and described host server 102 phase Even, it is used for obtaining self corresponding software and hardware configuration attribute information, and storage self corresponding software described and hardware are joined Put attribute information;And currently trigger acquisition self current software and hardware configuration attribute information according to outside, and will described oneself In the current software of body and hardware configuration attribute information, keyword strings and self corresponding software described and hardware configuration belong to Property information in keyword strings compare, there is difference in keyword strings after comparison, then send that described self is current Software and hardware configuration attribute information to described host server 102;
Described host server 102, is used for receiving described current software and hardware configuration attribute information, and stores described Current software and hardware configuration attribute information.
Embodiment according to above-mentioned Fig. 1, by obtaining the corresponding software of each service server self and hardware Configuration attribute information, and store self corresponding software described and hardware configuration attribute information, and currently trigger every according to outside One service server obtains self current software and hardware configuration attribute information, and by self current software described and hard Keyword strings and keyword word in self corresponding software described and hardware configuration attribute information in part configuration attribute information Symbol string is compared, and after comparison, keyword strings exists difference, then believe self current software and hardware configuration attribute Breath is sent to host server, and is stored in host server.The present invention is capable of each business service of automatic comparison storage Current soft of keyword strings and each service server self in the corresponding software of device self and hardware configuration attribute information Distinct Current software and hardware configuration attribute information are only passed by keyword strings in part and hardware configuration attribute information Send and be stored in host server, therefore can extract all kinds of daily records producing when existing abnormal in test process in time.
In an embodiment of the invention, there is abnormal Current software and hardware configuration attribute in order to avoid removing self Information, at least one service server 101 described, each service server 101, it is further used for arranging software and hard Part configuration attribute information checks oneself rule, and described rule of checking oneself includes that at least one checks oneself character string, currently triggers according to outside Obtain self current software and hardware configuration attribute information, and by self current software described and hardware configuration attribute information Middle keyword strings is compared with keyword strings in self corresponding software described and hardware configuration attribute information, when After comparison there is not difference in keyword strings, then by self current software described and hardware configuration attribute information according to described Software is set and hardware configuration attribute information is checked oneself rule and checked oneself, when checking oneself self current software and hardware configuration attribute When information includes that at least one checks oneself character string, send self current software described and hardware configuration attribute information is extremely described Host server 102.
Described rule of checking oneself includes that at least one checks oneself character string, and at least one of which is checked oneself in character and can is Any one or more in fail, error, not found, bad, unusable and access denied.Can be according to tool The business need of body determines that checks oneself that rule includes checks oneself character string.
Described software and hardware configuration attribute information include CPU information, mainboard information, memory information, hard disk information, heat radiation Any one or more in device information, activation bit and shared routine information.For example, the software of service server 1 and hardware In configuration attribute information, the cpu frequency in CPU information is 1.5GHz, according to outside currently trigger acquisition self current software and In hardware configuration attribute information, the cpu frequency in CPU information is 1.5GHz, by the software current to service server 1 and hard 1.5GHz and the corresponding software of service server 1 self and hardware configuration attribute information in CPU information in part configuration attribute information In middle CPU information, 1.5GHz compares, and after comparison, in CPU information, 1.5GHz does not exist difference, then take described business The current software of business device 1 and hardware configuration attribute information are checked oneself according to checking oneself rule, and checking oneself in rule of for example determining is wrapped Include fail and error two and check oneself character string, by checking oneself the software and hardware configuration attribute letter determining that service server 1 is current Breath include in fail and error at least one when, send the current software of service server 1 and hardware configuration attribute information To host server.
According to above-described embodiment, check oneself rule by arranging software and hardware configuration attribute information, to service server In self software and hardware configuration attribute information there is not current software and the hardware configuration attribute of difference in keyword strings Information, checks oneself rule according to software and hardware configuration attribute information and checks oneself, it is to avoid removes self and there is the currently soft of exception Part and hardware configuration attribute information.
In an embodiment of the invention, as in figure 2 it is shown, in order to ensure to connect each service server with host server Entering to consolidated network, described Log Collect System farther includes:Switch 201;
Described switch 201, is connected with each service server 101 described, and with described host server 102 phase Even, for each service server 101 described and described host server 102 are accessed consolidated network, by described each The current software of service server 101 and the transmission of hardware configuration attribute information are to described host server 102.
Owing to described Log Collect System includes at least one service server, and each service server is required for Carry out data transmission with described host server, be therefore accomplished by switch and each service server and host server are connected Receive in same network.Switch can choose concrete type according to concrete business need, for example, can select SAN Switch.
Embodiment according to above-mentioned Fig. 2, is connected with each service server by switch, and services with host Device is connected so that each service server and host server access consolidated network, it is ensured that each service server can To be transferred to current software abnormal for self existence and hardware configuration attribute information in host server.
In an embodiment of the invention, as it is shown on figure 3, in order to ensure the current software in each service server And hardware configuration attribute information is transferred in host server, described Log Collect System farther includes:Hardware device 301;
Described hardware device 301, is used for connecting described each service server the 101st, host server 102 and switch 201, and currently trigger according to outside, generate corresponding current self the current log information triggering, and by described current log Information sends to described host server 102;
Described host server 102, is further used for receiving the described current log letter that described hardware device 301 sends Breath, and store described current log information.
Described hardware device includes:BMC, Serial Port Line and syslog server.Wherein said syslog server can be with Described host server is general.
Self current log information described, including each service server that described hardware device collects self is opened Serial printing information, start during machine POST guides operating system during OS (Operating System, operating system) Daily record, come into OS after described hardware device self produce daily record and whole test process in BMC produce event day Will.Described hardware device sends self current log information described to described host server.Described host server is deposited Storage receives described current log information.Tester can be according to concrete business need be transferred or is deleted and is stored in The log information of the described hardware device in host server.
Embodiment according to above-mentioned Fig. 3, by hardware device by each service server, host server and friendship Change planes connected, and the log information that self produces is sent to host server, and be stored in host server, it is ensured that test Personnel can understand the situation of test according to the log information that hardware device produces.
In an embodiment of the invention, corresponding in order to ensure that tester can be quickly found out each service server Software and the log information that produces of hardware configuration attribute information and described hardware device, including:
Described host server 102, is further used for self current software and hardware configuration according to receive and belongs to Property information and the corresponding keyword strings of title in described current log information, by self current software described and hardware configuration Attribute information and described current log information carry out subregion preservation.
Can self be current to described according to each service server and the corresponding character string of hardware device title Software and hardware configuration attribute information and described current log information carry out subregion preservation, for example, by corresponding for service server 1 All softwares and hardware configuration attribute information are stored in subregion 1, then when receive a software and hardware configuration attribute letter During breath, first go to determine whether the corresponding character string of service server title sending software and hardware configuration attribute information is business Server 1, if being so stored in the software receiving and hardware configuration attribute information in subregion 1.
According to above-described embodiment, by host server, to receiving self current software described and hardware is joined Put attribute information and the corresponding keyword strings of title in described current log information, by self current software described and hardware Configuration attribute information and described current log information carry out subregion preservation.Ensureing that tester can quickly search and transfer needs Want software and hardware configuration attribute information and log information.
The contents such as each unit in said apparatus and the information between every kind of server are mutual, execution process, due to this Inventive method embodiment is based on same design, and particular content can be found in the narration in the inventive method embodiment, no longer superfluous herein State.
As shown in Figure 4, embodiments providing a kind of log collection method, the method can include:
Step 401:Obtain at least one service server, the corresponding software of each service server self and hardware Configuration attribute information;
Step 402:It is stored in described software and hardware configuration attribute information in corresponding service server;
Step 403:Currently trigger self current software of acquisition and hardware configuration attribute information according to outside;
Step 404:By keyword strings in self current software described and hardware configuration attribute information with described from In the corresponding software of body and hardware configuration attribute information, keyword strings is compared;
Step 405:There is difference in keyword strings after comparison, then send self current software described and hardware is joined Put attribute information to described host server;
Step 406:Utilize described host server to receive described current software and hardware configuration attribute information, and store Described current software and hardware configuration attribute information.
Embodiment according to above-mentioned Fig. 4, by obtaining the corresponding software of each service server self and hardware Configuration attribute information, and be stored in described software and hardware configuration attribute information in corresponding service server, then basis Outside current triggering obtains self current software and hardware configuration attribute information, joins self current software described and hardware Put keyword strings and keyword strings in self corresponding software described and hardware configuration attribute information in attribute information Comparing, there is difference in keyword strings after comparison, then send self current software described and hardware configuration attribute Information, to described host server, utilizes described host server to receive described current software and hardware configuration attribute information, And store described current software and hardware configuration attribute information.Distinct current software and hardware are only joined by the present invention Putting attribute information to be delivered and stored in host server, during therefore can extracting stability test in time, abnormal problem produces All kinds of daily records when raw.
In an embodiment of the invention, self there is abnormal current software and hardware configuration genus in order to avoid removing Property information, farther includes:
Arranging software and hardware configuration attribute information checking oneself rule, described rule of checking oneself includes that at least one checks oneself character String;
Described by keyword strings in self current software described and hardware configuration attribute information with described self is right After in the software answered and hardware configuration attribute information, keyword strings is compared, farther include:
There is not difference in keyword strings after comparison, then believe self current software described and hardware configuration attribute Breath arranges software and hardware configuration attribute information is checked oneself rule and checked oneself according to described, when checking oneself self current software and hard When part configuration attribute information includes that at least one checks oneself character string, send self current software described and hardware configuration attribute Information is to described host server.
In an embodiment of the invention, in order to ensure each service server and host server are linked into same net Network, farther includes:
Switch is connected with each service server described, and is connected with described host server so that described often One service server and described host server access consolidated network;
Transmit current software and the hardware configuration attribute information of each service server described to described host clothes Business device.
In an embodiment of the invention, in order to ensure the current software in each service server and hardware configuration Attribute information is transferred in host server, farther includes:
Hardware device is utilized to connect each service server described, host server and switch, and according to outside Currently trigger, self current log information of the corresponding current triggering of generation, and described current log information is sent extremely described Host server;
Utilize described host server to receive the described current log information that described hardware device sends, and store described working as Front log information.
In an embodiment of the invention, after the described current software of described storage and hardware configuration attribute information, Farther include:
Utilize described host server self current software and hardware configuration attribute information and institute according to receive State in current log information the corresponding keyword strings of title, by self current software described and hardware configuration attribute information and Described current log information carries out subregion preservation.
Include 40 service servers with a whole machine cabinet below, and each server passes through switch and hardware device Being connected with host server respectively, the log collection method providing the embodiment of the present invention illustrates, as it is shown in figure 5, this day Will acquisition method may include steps of:
Step 501:Hardware device is utilized to connect each service server described, host server and switch.
Include altogether 40 service servers in the present embodiment, then by hardware device by each service server It is connected with switch, and by hardware device, host server is connected with switch.Wherein, the type of switch can basis Concrete business need selects concrete model, selects SAN switch, by 40 service servers and host in the present embodiment Server is connected in same network, by hardware device, each service server exists abnormal Current software and hard Part configuration attribute information is transferred in host server.Wherein, described hardware device includes:BMC, Serial Port Line and syslog service Device.Wherein said syslog server can be general with described host server.
Step 502:Arranging software and hardware configuration attribute information checking oneself rule, described rule of checking oneself includes at least one Check oneself character string.
Described rule of checking oneself includes that at least one checks oneself character string, and at least one of which is checked oneself in character and can is Any one or more in fail, error, not found, bad, unusable and access denied.
Step 503:Obtain at least one service server, the corresponding software of each service server self and hardware Configuration attribute information.
In the present embodiment, obtain in 40 service servers, the corresponding software of each service server self and hard Part configuration attribute information, wherein said software and hardware configuration attribute information include CPU information, mainboard information, memory information, hard Any one or more in dish information, radiator information, activation bit and shared routine information.
Step 504:It is stored in described software and hardware configuration attribute information in corresponding service server.
After obtaining described software and hardware configuration attribute information, each service server store self corresponding software and Hardware configuration attribute information stores.In the present embodiment, service server 1 obtains software and hardware configuration attribute information include CPU information, mainboard information, memory information, hard disk information, radiator information, activation bit and shared routine information, business service Device 1 just will store self corresponding software and hardware configuration attribute information.
Step 505:Receive outside current triggering, and step 506 and step 508.
This outside current triggering form can determine according to concrete business need, and in the present embodiment, outside is worked as The front instruction starting test triggering as starting to carry out at least one service server in whole machine cabinet stability test.When After receiving outside current triggering, step 506 and step 508 simultaneously.
Step 506:Currently trigger described hardware device according to outside and generate corresponding current self the current daily record triggering Information.
Self current log information described, including each service server that described hardware device collects self is opened Serial printing information during machine POST, start guide operating system daily record during OS, come into OS after described hardware set In the standby daily record self producing and whole test process, BMC produces event daily record.
Step 507:Send described current log information to described host server.And step:514.
In the present embodiment, during each service server start POST that each hardware device collects self Serial printing information, start guide operating system daily record during OS, come into OS after described hardware device self produce In daily record and whole test process, BMC produces event daily record, sends to host server.
Step 508:Currently trigger self current software of acquisition and hardware configuration attribute information according to outside.
In the present embodiment, as a example by the service server 1 in 40 service servers, service server 1 is according to outside Current triggering obtains self current software and hardware configuration attribute information.
Step 509:By keyword strings in self current software described and hardware configuration attribute information with described from In the corresponding software of body and hardware configuration attribute information, keyword strings is compared;If there is difference, then step 511;Otherwise, step 510.
In the present embodiment, in the corresponding software of service server 1 self and hardware configuration attribute information in CPU information Cpu frequency is 1.5GHz, in the current software generating according to external trigger and hardware configuration attribute information in CPU information Cpu frequency is 1.5GHz, and through the corresponding character string comparison of keyword cpu frequency, 1.5GHz is identical not there are differences, then perform Step 510.If the CPU frequency in the current software generating according to external trigger and hardware configuration attribute information in CPU information Rate is 0.5GHz, then through the corresponding character string comparison of keyword cpu frequency, there are differences, then step 511.
Step 510:Self current software described and hardware configuration attribute information are arranged software and hardware according to described Configuration attribute information is checked oneself rule and is checked oneself, when checking oneself self current software and hardware configuration attribute information includes at least One when checking oneself character string, step 511, otherwise delete Current software and hardware configuration attribute information.
In the present embodiment, when the current software of service server 1 and hardware configuration attribute information with arrange software and There is no difference after hardware configuration attribute information comparison, then according to check oneself rule current software and hardware configuration attribute information are entered Row is checked oneself, and wherein said rule of checking oneself includes fail, error and not found.When current software and hardware configuration attribute When information includes fail, error and not found any one or more, then step 511, otherwise directly delete and work as Front software and hardware configuration attribute information.
Step 511:Send self current software described and hardware configuration attribute information to described host server.
In the present embodiment, by corresponding current for service server 1 software triggering and hardware configuration attribute information, software and Hardware configuration attribute information exists software and hardware configuration attribute information with service server 1 self storage there are differences, Or there is character string fail, one or more, by Current software and hardware configuration attribute information in error and not found It is sent directly to host server.
Step 512:Described host server is utilized to receive described current software and hardware configuration attribute information.
In the present embodiment, host server is utilized to receive the corresponding current software of service server 1 and hardware configuration Attribute information.
Step 513:Utilize described host server self current software and hardware configuration attribute according to receive In information, self current software described and hardware configuration attribute information are carried out subregion guarantor by the corresponding keyword strings of title Deposit.
In the present embodiment, corresponding for service server 1 all softwares and hardware configuration attribute information are stored in subregion 1 In, then when receiving a software and hardware configuration attribute information, first go to determine transmission software and hardware configuration attribute letter Whether the corresponding character string of service server title of breath is service server 1, if so by the software receiving and Hardware configuration attribute information is stored in subregion 1.
Step 514:Utilize described host server to receive described current log information, and store described current log letter Breath.
In the present embodiment, utilize described host server receive all hardware equipment generate self collect each Serial printing information, start during individual service server start POST guides operating system daily record during OS, comes into After OS described hardware device self produce daily record and whole test process in BMC produce event daily record.
Step 515:Utilize described host server according to receiving in described current log information the corresponding keyword of title Described current log information is carried out subregion preservation by character string.
In the present embodiment, it is stored in corresponding for hardware device 1 current log information in subregion 2, then when receiving During hardware device 1 corresponding current log information, first go to determine the corresponding character string of hardware device sending current log information It whether is hardware device 1, if being so stored in the current log information receiving in subregion 2.
In sum, each embodiment of the present invention at least can realize following beneficial effect:
1st, in embodiments of the present invention, belonged to by obtaining the corresponding software of each service server self and hardware configuration Property information, and store self corresponding software described and hardware configuration attribute information, and currently trigger each industry according to outside Business server obtains self current software and hardware configuration attribute information, and by self current software described and hardware configuration In attribute information, keyword strings and keyword strings in self corresponding software described and hardware configuration attribute information enter Row comparison, there is difference in keyword strings after comparison, then send self current software and hardware configuration attribute information It to host server, and is stored in host server.The present invention is capable of each service server self of automatic comparison storage Self current software of keyword strings and each service server and hard in corresponding software and hardware configuration attribute information Distinct current software and hardware configuration attribute information are only transmitted simultaneously by keyword strings in part configuration attribute information It is stored in host server, therefore can extract all kinds of daily records when abnormal problem produces during stability test in time.
2nd, in embodiments of the present invention, check oneself rule by arranging software and hardware configuration attribute information, take to business In business device self software and hardware configuration attribute information there is not current software and the hardware configuration of difference in keyword strings Attribute information, checks oneself rule according to software and hardware configuration attribute information and checks oneself, it is to avoid removes and self there is abnormal working as Front software and hardware configuration attribute information.
3rd, in embodiments of the present invention, by switch, be connected with each service server, and with host server phase Even so that each service server and host server access consolidated network, it is ensured that each service server can be by There is abnormal current software in self and hardware configuration attribute information is transferred in host server.
4th, in embodiments of the present invention, by hardware device by each service server, host server and switch It is connected, and the log information that self produces is sent to host server, and be stored in host server, it is ensured that tester Test case can be understood according to the log information that hardware device produces.
5th, in embodiments of the present invention, by host server, to receiving self current software described and hard Part configuration attribute information and the corresponding keyword strings of title in described current log information, by self current software described and Hardware configuration attribute information and described current log information carry out subregion preservation.Ensure that tester can quickly search and adjust Take and need software and hardware configuration attribute information and log information.
It should be noted that herein, the relational terms of such as first and second etc is used merely to an entity Or operation separates with another entity or operating space, and not necessarily require or imply exist between these entities or operation The relation of any this reality or order.And, term " includes ", "comprising" or its any other variant are intended to non- Comprising of exclusiveness, so that include that the process of a series of key element, method, article or equipment not only include those key elements, But also include other key elements being not expressly set out, or also include being consolidated by this process, method, article or equipment Some key elements.In the case of there is no more restriction, the key element being limited by statement " including ", do not arrange Remove in process, method, article or the equipment include described key element, there is also other identical factor.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of said method embodiment can be passed through The related hardware of programmed instruction completes, and aforesaid program can be stored in the storage medium of embodied on computer readable, this program Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light In the various medium that can store program code such as dish.
Finally it should be noted that:The foregoing is only presently preferred embodiments of the present invention, be merely to illustrate the skill of the present invention Art scheme, is not intended to limit protection scope of the present invention.All made within the spirit and principles in the present invention any modification, Equivalent, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. a Log Collect System, it is characterised in that include:At least one service server and host server, wherein,
In at least one service server described, each service server is connected with described host server, is used for being obtained from The corresponding software of body and hardware configuration attribute information, and store self corresponding software described and hardware configuration attribute information;And Currently trigger acquisition self current software and hardware configuration attribute information according to outside, and by self current software described and Keyword strings and keyword in self corresponding software described and hardware configuration attribute information in hardware configuration attribute information Character string is compared, and after comparison, keyword strings exists difference, then send self current software described and hardware is joined Put attribute information to described host server;
Described host server, for receiving described current software and hardware configuration attribute information, and stores described current Software and hardware configuration attribute information.
2. Log Collect System according to claim 1, it is characterised in that
In at least one service server described, each service server, being further used for, software is set and hardware configuration belongs to Property information check oneself rule, described rule of checking oneself includes that at least one checks oneself character string, according to outside currently trigger acquisition self Current software and hardware configuration attribute information, and by keyword in self current software described and hardware configuration attribute information Character string is compared with keyword strings in self corresponding software described and hardware configuration attribute information, closes after comparison There is not difference in key word character string, then according to described, self current software described and hardware configuration attribute information is arranged software And hardware configuration attribute information checks oneself rule and check oneself, wrap when checking oneself in self current software and hardware configuration attribute information Include at least one when checking oneself character string, send self current software described and hardware configuration attribute information service to described host Device.
3. Log Collect System according to claim 1, it is characterised in that farther include:Switch;
Described switch, is connected with each service server described, and is connected with described host server, for by described often One service server and described host server access consolidated network, by the current software of each service server described And the transmission of hardware configuration attribute information is to described host server.
4. Log Collect System according to claim 3, it is characterised in that farther include:Hardware device;
Described hardware device, is used for connecting each service server described, host server and switch, and works as according to outside Front triggering, corresponding current self the current log information triggering of generation, and described current log information is sent extremely described Host server;
Described host server, is further used for receiving the described current log information that described hardware device sends, and stores institute State current log information.
5. according to described Log Collect System arbitrary in Claims 1-4, it is characterised in that
Described host server, be further used for according to receive self current software described and hardware configuration attribute information and The corresponding keyword strings of title in described current log information, by self current software described and hardware configuration attribute information Carry out subregion preservation with described current log information.
6. a log collection method, it is characterised in that
Obtain at least one service server, the corresponding software of each service server self and hardware configuration attribute letter Breath;
It is stored in described software and hardware configuration attribute information in corresponding service server;
Also include:
Currently trigger self current software of acquisition and hardware configuration attribute information according to outside;
By keyword strings in self current software described and hardware configuration attribute information and self corresponding software described And keyword strings is compared in hardware configuration attribute information;
There is difference in keyword strings after comparison, then transmission self current software described and hardware configuration attribute information are extremely Described host server;
Utilize described host server to receive described current software and hardware configuration attribute information, and store described current soft Part and hardware configuration attribute information.
7. the method for log collection according to claim 6, it is characterised in that farther include:Software is set and hardware is joined Putting attribute information and checking oneself rule, described rule of checking oneself includes that at least one checks oneself character string;
Described by keyword strings in self current software described and hardware configuration attribute information with described self is corresponding After in software and hardware configuration attribute information, keyword strings is compared, farther include:
There is not difference in keyword strings after comparison, then press self current software described and hardware configuration attribute information According to described software is set and hardware configuration attribute information is checked oneself rule and checked oneself, when checking oneself self current software and hardware is joined Put attribute information when including that at least one checks oneself character string, send self current software described and hardware configuration attribute information To described host server.
8. the method for log collection according to claim 6, it is characterised in that farther include:
Switch is connected with each service server described, and is connected with described host server so that described each Service server and described host server access consolidated network;
Transmit current software and the hardware configuration attribute information of each service server described to described host server.
9. the method for log collection according to claim 8, it is characterised in that farther include:
Hardware device is utilized to connect each service server described, host server and switch, and current according to outside Trigger, generate corresponding current self the current log information triggering, and send described current log information to described host Server;
Utilize described host server to receive the described current log information that described hardware device sends, and work as the day before yesterday described in storage Will information.
10. the method according to described log collection arbitrary in claim 6 to 9, it is characterised in that described currently in described storage Software and hardware configuration attribute information after, farther include:
Utilize described host server self current software and hardware configuration attribute information and described work as according to receive The corresponding keyword strings of title in front log information, by self current software described and hardware configuration attribute information and described Current log information carries out subregion preservation.
CN201610910643.9A 2016-10-19 2016-10-19 Log acquisition system and method Pending CN106452876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610910643.9A CN106452876A (en) 2016-10-19 2016-10-19 Log acquisition system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610910643.9A CN106452876A (en) 2016-10-19 2016-10-19 Log acquisition system and method

Publications (1)

Publication Number Publication Date
CN106452876A true CN106452876A (en) 2017-02-22

Family

ID=58176313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610910643.9A Pending CN106452876A (en) 2016-10-19 2016-10-19 Log acquisition system and method

Country Status (1)

Country Link
CN (1) CN106452876A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959029A (en) * 2018-06-29 2018-12-07 深圳市同泰怡信息技术有限公司 Collect the method and system with report server abnormal log

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645336A (en) * 2005-01-20 2005-07-27 上海复旦光华信息科技股份有限公司 Automatic extraction and analysis for formwork based on heterogenerous logbook
US8301587B2 (en) * 2001-08-21 2012-10-30 Hewlett-Packard Development Company, L.P. Internet enabled computer system management
CN103297435A (en) * 2013-06-06 2013-09-11 中国科学院信息工程研究所 Abnormal access behavior detection method and system on basis of WEB logs
CN104298586A (en) * 2014-10-15 2015-01-21 青岛海尔软件有限公司 Web system exception analytical method and device based on system log

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8301587B2 (en) * 2001-08-21 2012-10-30 Hewlett-Packard Development Company, L.P. Internet enabled computer system management
CN1645336A (en) * 2005-01-20 2005-07-27 上海复旦光华信息科技股份有限公司 Automatic extraction and analysis for formwork based on heterogenerous logbook
CN103297435A (en) * 2013-06-06 2013-09-11 中国科学院信息工程研究所 Abnormal access behavior detection method and system on basis of WEB logs
CN104298586A (en) * 2014-10-15 2015-01-21 青岛海尔软件有限公司 Web system exception analytical method and device based on system log

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959029A (en) * 2018-06-29 2018-12-07 深圳市同泰怡信息技术有限公司 Collect the method and system with report server abnormal log

Similar Documents

Publication Publication Date Title
US10237295B2 (en) Automated event ID field analysis on heterogeneous logs
US10891297B2 (en) Method and system for implementing collection-wise processing in a log analytics system
US8214372B2 (en) Determining configuration parameter dependencies via analysis of configuration data from multi-tiered enterprise applications
CN104717094B (en) The control method of management server and management server
CN101651576B (en) Alarm information processing method and system
CN104346365B (en) It is determined that the method and apparatus of the association daily record related to specific transactions
US20180285596A1 (en) System and method for managing sensitive data
CN110399383A (en) Applied to the data processing method of server, device, calculate equipment, medium
CN102597966B (en) Operation management device and operation management method
CN106815054A (en) A kind of method and device of refreshing BMC firmwares
CN110489407A (en) Data filling mining method, apparatus, computer equipment and storage medium
CN110245145A (en) Structure synchronization method and apparatus of the relevant database to Hadoop database
CN110201393A (en) Configuration data storage method and device and electronic equipment
CN107479994A (en) A kind of journal file processing method based on distributed software system, device
CN107483381A (en) The monitoring method and device of interlock account
CN106897342A (en) A kind of data verification method and equipment
CN107609179A (en) A kind of data processing method and equipment
JP2009003549A (en) Data management device, data management method, data management program, and data management program storage medium
CN110008462A (en) A kind of command sequence detection method and command sequence processing method
CN113641742A (en) Data extraction method, device, equipment and storage medium
CN108173711A (en) Enterprises system data exchange monitoring method
CN106452876A (en) Log acquisition system and method
CN106776255A (en) The log extracting method and device of intelligent television system
CN107704548A (en) A kind of storage medium and storage method of object data, device and equipment
CN108574957A (en) Evolution block core net device intelligence patrol checking server, cruising inspection system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222