CN105224441A - Virtual machine information harvester, method and virtual machine information maintaining method and system - Google Patents

Virtual machine information harvester, method and virtual machine information maintaining method and system Download PDF

Info

Publication number
CN105224441A
CN105224441A CN201510594522.3A CN201510594522A CN105224441A CN 105224441 A CN105224441 A CN 105224441A CN 201510594522 A CN201510594522 A CN 201510594522A CN 105224441 A CN105224441 A CN 105224441A
Authority
CN
China
Prior art keywords
virtual machine
daily record
information file
system maintenance
warning information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510594522.3A
Other languages
Chinese (zh)
Other versions
CN105224441B (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.)
Huawei 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 CN201510594522.3A priority Critical patent/CN105224441B/en
Publication of CN105224441A publication Critical patent/CN105224441A/en
Application granted granted Critical
Publication of CN105224441B publication Critical patent/CN105224441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of virtual machine information harvester, method and virtual machine information maintaining method and system, wherein, this virtual machine information acquisition method comprises: virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And by the described system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated.Utilize the present invention, can maintenance log in automatic acquisition virtual machine in systems in which, and according to keywords fast search detects virtual-machine fail early warning, fault occurrence record information, virtual-machine fail is initiatively prevented to occur, or have trace to search after breaking down, according to log information quick and precisely localized reason, investigation problem.

Description

Virtual machine information harvester, method and virtual machine information maintaining method and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of virtual machine information harvester, method and virtual machine information maintaining method and system.
Background technology
Along with developing rapidly of Intel Virtualization Technology, kinds of schemes is deployed and is applied in field of cloud calculation.Virtual machine VM (VirtualMachine), for using Intel Virtualization Technology, by the computer hardware system function that software simulation is complete, the full virtual computing system constructed.Virtual machine can independent operating in a completely isolated environment, safe and reliable as use local computer.
The virtual machine of current various virtualization system; because virtual machine internal is abnormal; such as; protocol proxy module fault, IP address conflict, operating system file are modified; when can occur to be logged in the problems such as failure, communicating interrupt, blue screen by remote protocol, these failure messages can be recorded in VME operating system daily record usually.
When virtual machine can log in, just need user people initiatively from virtual machine, to transfer operating system daily record and warning information, and send to maintainer, the exception that virtual machine occurs is repaired.But when virtual machine logs in failure, user initiatively cannot transfer operating system daily record from virtual machine, and the mode usually can only moved by fault, restart or rebuild recovers virtual machine, the passive and poor efficiency of the maintenance of such way to virtual machine.
Summary of the invention
In view of this, the invention provides a kind of virtual machine information harvester, method and virtual machine information maintaining method and system, to solve in prior art
Can in desktop maintenance system customary automatic acquisition virtual machine maintenance log, according to keywords fast search detects virtual-machine fail early warning, fault occurrence record information, initiatively prevents virtual-machine fail to occur, or has mark to follow after breaking down, according to log information quick and precisely localized reason, investigation problem.
For solving the problems of the technologies described above, the application's first aspect provides a kind of virtual machine information acquisition method, and the method comprises: virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And by the described system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated.
In conjunction with first aspect, in the implementation that the first is possible, described virtual machine runs self-defined information acquisition applications/script and is specially with the step of the system maintenance daily record and warning information file that gather described virtual machine: described virtual machine runs described self-defined information acquisition applications/script to gather maintenance log in the designated storage location of described virtual machine and warning file information; Wherein, described designated storage location is specified during acquisition applications/script by described in described virtual machine creating.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second is possible, described virtual machine runs self-defined information acquisition applications/script and is specially with the step of the system maintenance daily record and warning information file that gather described virtual machine: described virtual machine runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of described virtual machine at predetermined time interval.
In conjunction with first aspect, in the implementation that the third is possible, described virtual machine increases described Microsoft Loopback Adapter newly when creating, and is the maintenance IP of described Microsoft Loopback Adapter configuration correspondence.
For solving the problem, the application's second aspect provides a kind of virtual machine information maintaining method, and the method comprises: virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; Described virtual machine by the described system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated; And server receives described system maintenance daily record and warning information file, and described system maintenance daily record and warning information file are preserved in a database; Wherein, described database is set up in advance by described server, and only for preserving described system maintenance daily record and warning information file.
In conjunction with second aspect, in the implementation that the first is possible, described method also comprises: described server to schedule interval detects described database, and described system maintenance daily record newly-increased in described database and warning information file is saved in index data base.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, described method also comprises: described server receives search instruction and searches for described index data base, to obtain the described system maintenance daily record of mating with described search instruction and warning information file; And the described system maintenance daily record that obtains of described server feedback and warning information file.
In conjunction with the first possible implementation of second aspect, in the implementation that the third is possible, described server receives search instruction and searches for described index data base, comprise with the step obtaining described system maintenance daily record and the warning information file mated with described search instruction: described server receives search instruction and searches for described index data base, judge whether to retrieve the described system maintenance daily record and warning information file of mating with described search instruction; When not retrieving the described system maintenance daily record and warning information file of mating with described search instruction, detect described database to be saved in described index data base by described system maintenance daily record newly-increased in described database and warning information file, and again perform described server receive search instruction search for described index data base, judge whether the step retrieving described system maintenance daily record and the warning information file mated with described search instruction.
For solving the problem, the application's third aspect provides a kind of virtual machine information harvester, this device comprises: acquisition module, for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And sending module, for described system maintenance daily record that described acquisition module is collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated.
In conjunction with the third aspect, in the implementation that the first is possible, described acquisition module is for controlling described self-defined information acquisition applications/script to gather system maintenance daily record in the designated storage location of described virtual machine and warning information file; Wherein, described designated storage location is specified during acquisition applications/script by described in described virtual machine creating.
For solving the problem, the application's fourth aspect provides a kind of virtual machine information maintenance system, this system comprises virtual machine information attending device and server, described device comprises: acquisition module, for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And sending module, for described system maintenance daily record that described acquisition module is collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated; Described system maintenance daily record and warning information file for receiving described system maintenance daily record and warning information file, and are preserved in a database by described server; Wherein, described database is set up in advance by described server, and only for preserving described system maintenance daily record and warning information file.
In conjunction with fourth aspect, in the implementation that the first is possible, described server comprises: detection module, detects described database for interval to schedule, and described system maintenance daily record newly-increased in described database and warning information file is saved in index data base.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second is possible, described server also comprises: search module, described index data base is searched for, to obtain the described system maintenance daily record of mating with described search instruction and warning information file for receiving search instruction.
For solving the problem, the application the 5th aspect provides a kind of terminal device, comprising: one or more processor; Storer; Multiple application program; And one or more program, wherein, this one or more program to be stored in this storer and to be configured to be performed by this one or more processor, this one or more program comprises instruction, and this instruction is used for: virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And by the described system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated.
In above scheme, self-defined information acquisition applications/script is created while establishment virtual machine, run this self-defined information acquisition applications/script when running virtual machine and gather maintenance log and warning information file, and by self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Thus, carry out maintenance log in automatic acquisition virtual machine in system, and according to keywords fast search detects virtual-machine fail early warning, fault occurrence record information, virtual-machine fail is initiatively prevented to occur, or have trace to search after breaking down, according to log information quick and precisely localized reason, investigation problem.
Accompanying drawing explanation
Fig. 1 be in first embodiment of the invention a kind of virtual machine information acquisition method process flow diagram;
Fig. 2 is the process flow diagram of a kind of virtual machine information maintaining method in second embodiment of the invention;
Fig. 3 is the process flow diagram of a kind of virtual machine information acquisition method in third embodiment of the invention;
Fig. 4 be in embodiment of the present invention server according to the process flow diagram of search instruction search index data base method;
Fig. 5 is the structural representation of a kind of virtual machine information harvester in first embodiment of the invention;
Fig. 6 is the structural representation of a kind of virtual machine information maintenance system in embodiment of the present invention;
Fig. 7 is the structural representation of a kind of virtual machine information maintenance system in another embodiment of the present invention;
Fig. 8 is the structural representation of the terminal device in embodiment of the present invention.
Embodiment
First explanation is explained to prior art noun relevant in embodiment of the present invention.
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Refer to Fig. 1, for virtual machine information acquisition method a kind of in first embodiment of the invention process flow diagram, the method shown in this embodiment comprises:
Step S10, virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of this virtual machine.Wherein, this acquisition applications/script together creates by during virtual machine creating.
Particularly, this virtual machine runs this self-defined information acquisition applications/script to gather maintenance log in the designated storage location of this virtual machine and warning file information.Wherein, this designated storage location is specified by during this acquisition applications/script of virtual machine creating.
Further, this virtual machine runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of this virtual machine at predetermined time interval.
In step slo, create this self-defined information acquisition applications/script while physical machine creates virtual machine, and run when virtual machine activation simultaneously.Wherein, this self-defined information acquisition applications/script comprises maintenance log and the warning information file place catalogue of initial virtual machine of specifying needs to collect in configuration file, file, that is, designated storage location as above.Virtual machine provide user to when to the existence of this self-defined information acquisition applications/script of instruction manual and this designated storage location, user can delete/change designated storage location or this self-defined information acquisition applications/script out of service as required.
And, virtual machine runs this self-defined information acquisition applications/script, can search for the file that designated storage location is preserved and gather at predetermined time interval, such as, every day, timing was (as every 3 hours, or every 24 hours, client configuration can be managed in system), in the time that user's liveness is minimum, such as, after morning, search and acquisition configuration paper formulation catalogue under daily record or warning file.
Further, this self-defined information acquisition applications/script is also arranged and system interface, and system captures and uploading instructions to issuing initiatively file by corresponding maintenance channel, and this self-defined information acquisition applications/script response instruction performs corresponding operation.
Step S11, by the system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Wherein, this Microsoft Loopback Adapter or safeguard IP and other planar isolated.
Particularly, this virtual machine create time increase this Microsoft Loopback Adapter newly, and for this Microsoft Loopback Adapter configuration correspondence maintenance IP.
In one embodiment, increase Microsoft Loopback Adapter newly when creating virtual machine, this newly-increased Microsoft Loopback Adapter is used for maintain communications, and configuring maintenance IP.
In another embodiment, existing management network interface card is configured for the IP (hereinafter referred to as safeguarding IP) of the specific network segment of maintain communications.Wherein, the server network segment is identical with this maintenance IP, and system increases the IP with this maintenance IP phase same network segment, makes server, can be interconnected by the switch independent virtual LAN (Local Area Network) of management between system and virtual machine.Because, this VLAN only allows this specifically to safeguard, the IP of the network segment passes through, and makes this maintenance IP and other planar isolated, does not affect other service plane, management plane.
Utilize embodiment of the present invention, self-defined information acquisition applications/script is created while establishment virtual machine, run this self-defined information acquisition applications/script when running virtual machine and gather maintenance log and warning information file, and by self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Thus, carry out maintenance log in automatic acquisition virtual machine in system, and according to keywords fast search detects virtual-machine fail early warning, fault occurrence record information, virtual-machine fail is initiatively prevented to occur, or have trace to search after breaking down, according to log information quick and precisely localized reason, investigation problem.
Refer to Fig. 2, be the process flow diagram of a kind of virtual machine information maintaining method in second embodiment of the invention, the method shown in this embodiment comprises the steps:
Step S20, virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of this virtual machine.Wherein, this acquisition applications/script together creates by during this virtual machine creating.
Particularly, this virtual machine runs this self-defined information acquisition applications/script to gather maintenance log in the designated storage location of this virtual machine and warning file information.Wherein, this designated storage location is specified by during this acquisition applications/script of virtual machine creating.
Further, this virtual machine runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of this virtual machine at predetermined time interval.
Step S21, this virtual machine by the system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Wherein, this Microsoft Loopback Adapter or safeguard IP and other planar isolated.
Particularly, this virtual machine create time increase this Microsoft Loopback Adapter newly, and for this Microsoft Loopback Adapter configuration correspondence maintenance IP.
In one embodiment, increase Microsoft Loopback Adapter newly when creating virtual machine, this newly-increased Microsoft Loopback Adapter is used for maintain communications, and configuring maintenance IP.
In another embodiment, existing management network interface card is configured for the IP (hereinafter referred to as safeguarding IP) of the specific network segment of maintain communications.
Step S22, server receives this system maintenance daily record and warning information file, and system maintenance daily record and warning information file is preserved in a database.Wherein, this database is set up in advance by server, and only for preserving this system maintenance daily record and warning information file.
In step S22, server increases the path of catalogue as this database in advance newly, to deposit daily record or the warning information of each virtual machine application or operating system printing specially.
Daily record, warning file etc. by self-defined Microsoft Loopback Adapter or in safeguarding that IP uploads onto the server in modes such as FTP, are preserved in a database according to the path of newly-increased catalogue by this virtual machine by the system maintenance daily record collected and warning information file.
Please refer to Fig. 3, for the process flow diagram of a kind of virtual machine information acquisition method in third embodiment of the invention, this embodiment is relative to embodiment as indicated with 2, after step s 22, namely, server receives this system maintenance daily record and warning information file, and system maintenance daily record and warning information file is preserved in a database, and the method shown in this embodiment also comprises the steps:
Step S33, this server is interval Test database to schedule, and the system maintenance daily record increased newly in database and warning information file is saved in index data base.
Step S34, this server receives search instruction and searches for this index data base, to obtain the system maintenance daily record of mating with search instruction and warning information file.
Maintenance log and the warning file information of the virtual machine preserved in database are made regular check on and resolved to this server especially by search engine, to be stored into newly increasing to the maintenance log in database and warning file information in index data base.Wherein, search engine adopts existing search engine of increasing income, such as, and solr.Search engine can concentrate deployment on a single server, also can distributed deployment on each main frame.Search engine also may be used for the search mission that receiving system is issued by REST message.
Step S35, the system maintenance daily record that this server feedback obtains and warning information file.
Particularly, system manager can carry out filtered search by the condition such as region of search inputted search key word, search time of maintenance interface, or carry out full detail search, the search module API that calling system is arranged, issue REST message to start search by search module to search engine.Then, the information that search engine returns by search module is back to maintenance interface, thus presents Search Results to keeper.
Other steps in Fig. 3 refer to Fig. 2 and corresponding explanatory note thereof.
Please refer to Fig. 4, further, this server receives search instruction and searches for this index data base, to obtain the step of system maintenance daily record and the warning information file mated with search instruction, realizes especially by following steps:
Step S40, this server receives search instruction and searches for this index data base, judges whether to retrieve the system maintenance daily record and warning information file of mating with search instruction.If so, then step S41 is entered, otherwise, enter step S42.
Step S41, the system maintenance daily record that this server feedback obtains and warning information file.
Step S42, detects this database the system maintenance increased newly in database daily record and warning information file to be saved in index data base.Then, step S40 is returned.
Particularly, the search engine of this server is searched search information and is returned to the search module of maintenance system from index data base.If do not have the information that will search in index database, then this search engine also initiatively checks and resolves database, newly-increased maintenance log and warning information to be saved in index data base, and again carries out information retrieval to this index data base.If there is search information, then the relevant information searched is returned to the search module of maintenance system, otherwise return the prompting not finding relevant information to the search module of maintenance system.
Refer to Fig. 5, be the structural representation of a kind of virtual machine information harvester in first embodiment of the invention, this device 50 comprises acquisition module 51 and sending module 52.
This acquisition module 51 is for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of this virtual machine.Wherein, this acquisition applications/script together creates by during virtual machine creating.
Particularly, this acquisition module 51 controls this self-defined information acquisition applications/script to gather system maintenance daily record in the designated storage location of virtual machine and warning information file.Wherein, this designated storage location is specified by during virtual machine creating acquisition applications/script.
Further, this acquisition module 51 runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of this virtual machine at predetermined time interval.
This sending module 52 for system maintenance daily record that acquisition module 51 is collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Wherein, Microsoft Loopback Adapter or safeguard IP and other planar isolated.
Particularly, this virtual machine create time increase this Microsoft Loopback Adapter newly, and for this Microsoft Loopback Adapter configuration correspondence maintenance IP.
In one embodiment, increase Microsoft Loopback Adapter newly when creating virtual machine, this newly-increased Microsoft Loopback Adapter is used for maintain communications, and configuring maintenance IP.
In another embodiment, existing management network interface card is configured for the IP of the specific network segment of maintain communications.
Refer to Fig. 6, for the structural representation of the virtual machine information maintenance system in embodiment of the present invention, this system 60 comprises virtual machine information attending device 61 and server 62, and wherein, this virtual machine information attending device 61 comprises acquisition module 610 and sending module 611.
This acquisition module 610 is for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of this virtual machine.Wherein, this acquisition applications/script together creates by during virtual machine creating.
Particularly, this acquisition module 610 controls this self-defined information acquisition applications/script to gather system maintenance daily record in the designated storage location of virtual machine and warning information file.Wherein, this designated storage location is specified by during virtual machine creating acquisition applications/script.
Further, this acquisition module 610 runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of this virtual machine at predetermined time interval.
This sending module 611 for system maintenance daily record that acquisition module 611 is collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Wherein, Microsoft Loopback Adapter or safeguard IP and other planar isolated.
Particularly, this virtual machine create time increase this Microsoft Loopback Adapter newly, and for this Microsoft Loopback Adapter configuration correspondence maintenance IP.
In one embodiment, increase Microsoft Loopback Adapter newly when creating virtual machine, this newly-increased Microsoft Loopback Adapter is used for maintain communications, and configuring maintenance IP.
In another embodiment, existing management network interface card is configured for the IP of the specific network segment of maintain communications.
System maintenance daily record and warning information file for receiving this system maintenance daily record and warning information file, and are kept in database 622 by this server 62.Wherein, this database 622 is set up in advance by server, and only for preserving this system maintenance daily record and warning information file.
Further, this server 62 also comprises detection module 620 and search module 621.
System maintenance daily record newly-increased in database 622 and warning information file for interval Test database 622 to schedule, and are saved in index data base 622 by this detection module 620.
This search module 621 searches for this index data base 622 for receiving search instruction, to obtain the system maintenance daily record of mating with search instruction and warning information file, and feeds back the system maintenance daily record and warning information file that obtain.
Referring to Fig. 7, is the structural representation of a kind of virtual machine information maintenance system in another embodiment of the present invention.This system 70 comprises virtual machine information attending device 71, first server 72 and second server 73.In the present embodiment, this first server 72 is the server for preserving maintenance log and warning information file, and this second server 73 is system maintenance server.
Wherein, this virtual machine information attending device 71 comprises acquisition module 710 and sending module 711.This first server 72 comprises database 720, first search module 721, index data base 722 and detection module 723.This second server 73 comprises the second search module 730 and interactive module 731.
This acquisition module 710 is for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of this virtual machine.Wherein, this acquisition applications/script together creates by during virtual machine creating.
Particularly, this acquisition module 710 controls this self-defined information acquisition applications/script to gather system maintenance daily record in the designated storage location of virtual machine and warning information file.Wherein, this designated storage location is specified by during virtual machine creating acquisition applications/script.
Further, this acquisition module 710 runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of this virtual machine at predetermined time interval.
This sending module 711 for system maintenance daily record that acquisition module 711 is collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Wherein, Microsoft Loopback Adapter or safeguard IP and other planar isolated.
Particularly, this virtual machine create time increase this Microsoft Loopback Adapter newly, and for this Microsoft Loopback Adapter configuration correspondence maintenance IP.
In one embodiment, increase Microsoft Loopback Adapter newly when creating virtual machine, this newly-increased Microsoft Loopback Adapter is used for maintain communications, and configuring maintenance IP.
In another embodiment, existing management network interface card is configured for the IP of the specific network segment of maintain communications.
System maintenance daily record and warning information file for receiving this system maintenance daily record and warning information file, and are preserved in a database by this server 72.Wherein, this database is set up in advance by server, and only for preserving this system maintenance daily record and warning information file.
Further, system maintenance daily record newly-increased in database 720 and warning information file for interval Test database 720 to schedule, and are saved in index data base 722 by this detection module 723.
This first search module 721 searches for this index data base 722 for receiving search instruction, to obtain the system maintenance daily record of mating with search instruction and warning information file, and feeds back the system maintenance daily record and warning information file that obtain.
Particularly, the maintenance log of virtual machine and warning file information of preserving in database 720 are made regular check on and resolved to this first search module 721, to be stored into newly increasing to the maintenance log in database 720 and warning file information in index data base 722.And, interactive module 731 provides a maintenance interface, the condition such as search key, search time that receiving management person is inputted by the region of search of this maintenance interface, and the API of this second server 73 correspondence setting is called by the second search module 730, issue REST message to start search to the first search module 721.
The information that first search module 721 returns is sent to interactive module 731 by this second search module 730, presents Search Results by interactive module 731 on this maintenance interface to keeper.
Further, this first search module 721 is searched search information and is returned to the second search module 730 from index data base 722.If there is no the information that will search in index data base 722, then this first search module 721 also initiatively checks and resolves this database 720, newly-increased maintenance log and warning information to be saved in index data base 722, and again information retrieval is carried out to this index data base 722.If there is search information, then the relevant information searched is sent to the second search module 730 by this first search module 721, otherwise sends the prompting not finding relevant information to second server 73.
Refer to Fig. 8, be the structural representation of the terminal device in embodiment of the present invention, this terminal device 80 comprises receiver 81, processor 82, transmitter 83, ROM (read-only memory) 84, random access memory 85 and bus 86.
This receiver 81 is for receiving data.
The operation of this processor 82 control terminal 80, this processor 82 can also become CPU (CentralProcessingUnit, CPU (central processing unit)).This processor 82 may be a kind of integrated circuit (IC) chip, has the processing power of signal.Processor 82 can also be general processor, digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components.The processor etc. of general processor can be microprocessor or this processor also can be any routine.
This transmitter 83 is for sending data.
Storer can comprise ROM (read-only memory) 84 and random access memory 85, and provides instruction and data to processor 82.A part for storer can also comprise nonvolatile RAM (NVRAM).
Each assembly of terminal device 80 is coupled by bus 86, and wherein, bus 86, except comprising data bus, can also comprise power bus, control bus and status signal bus in addition etc.But for the purpose of clearly demonstrating, in the drawings various bus is all designated as bus 86.
Storer stores following element, executable module or data structure, or their subset, or their superset:
Operational order: comprise various operational order, for realizing various operation.
Operating system: comprise various system program, for realizing various basic business and processing hardware based task.
In embodiments of the present invention, the operational order (this operational order can store in an operating system) that processor 82 stores by calling storer, performs and operates as follows:
This processor 82 controls self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of this virtual machine.Wherein, this acquisition applications/script together creates by during virtual machine creating.
This processor 82 by the system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Wherein, Microsoft Loopback Adapter or safeguard IP and other planar isolated.
Particularly, this virtual machine create time increase this Microsoft Loopback Adapter newly, and for this Microsoft Loopback Adapter configuration correspondence maintenance IP.
In one embodiment, increase Microsoft Loopback Adapter newly when creating virtual machine, this newly-increased Microsoft Loopback Adapter is used for maintain communications, and configuring maintenance IP.
In another embodiment, existing management network interface card is configured for the IP of the specific network segment of maintain communications.
Alternatively, this processor 82 controls this self-defined information acquisition applications/script to gather system maintenance daily record in the designated storage location of virtual machine and warning information file.Wherein, this designated storage location is specified by during virtual machine creating acquisition applications/script.
Alternatively, this processor 82 runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of this virtual machine at predetermined time interval.
Virtual machine information harvester as above, method and virtual machine information maintaining method and system, self-defined information acquisition applications/script is created while establishment virtual machine, run this self-defined information acquisition applications/script when running virtual machine and gather maintenance log and warning information file, and by self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends.Thus, carry out maintenance log in automatic acquisition virtual machine in system, and according to keywords fast search detects virtual-machine fail early warning, fault occurrence record information, virtual-machine fail is initiatively prevented to occur, or have trace to search after breaking down, according to log information quick and precisely localized reason, investigation problem.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiments described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, it can be by some interfaces that shown or discussed coupling each other or direct-coupling or communication connect, and the indirect coupling of device or unit or communication connect, and can be electrical, machinery or other form.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (13)

1. a virtual machine information acquisition method, is characterized in that, described method comprises:
Virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And
By the described system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated.
2. virtual machine information acquisition method according to claim 1, is characterized in that, described virtual machine runs self-defined information acquisition applications/script and is specially with the step of the system maintenance daily record and warning information file that gather described virtual machine:
Described virtual machine runs described self-defined information acquisition applications/script to gather maintenance log in the designated storage location of described virtual machine and warning file information; Wherein, described designated storage location is specified during acquisition applications/script by described in described virtual machine creating.
3. virtual machine information acquisition method according to claim 1 and 2, is characterized in that, described virtual machine runs self-defined information acquisition applications/script and is specially with the step of the system maintenance daily record and warning information file that gather described virtual machine:
Described virtual machine runs self-defined information acquisition applications/script, gathers system maintenance daily record and the warning information file of described virtual machine at predetermined time interval.
4. virtual machine information acquisition method according to claim 1, is characterized in that, described virtual machine increases described Microsoft Loopback Adapter newly when creating, and is the maintenance IP of described Microsoft Loopback Adapter configuration correspondence.
5. a virtual machine information maintaining method, is characterized in that, described method comprises:
Virtual machine runs self-defined information acquisition applications/script to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating;
Described virtual machine by the described system maintenance daily record collected and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated; And
Server receives described system maintenance daily record and warning information file, and described system maintenance daily record and warning information file is preserved in a database; Wherein, described database is set up in advance by described server, and only for preserving described system maintenance daily record and warning information file.
6. virtual machine information maintaining method according to claim 5, is characterized in that, described method also comprises:
Described server to schedule interval detects described database, and described system maintenance daily record newly-increased in described database and warning information file is saved in index data base.
7. virtual machine information maintaining method according to claim 6, is characterized in that, described method also comprises:
Described server receives search instruction and searches for described index data base, to obtain the described system maintenance daily record of mating with described search instruction and warning information file; And
The described system maintenance daily record that described server feedback obtains and warning information file.
8. virtual machine information maintaining method according to claim 6, it is characterized in that, described server receives search instruction and searches for described index data base, comprises with the step obtaining described system maintenance daily record and the warning information file mated with described search instruction:
Described server receives search instruction and searches for described index data base, judges whether to retrieve the described system maintenance daily record and warning information file of mating with described search instruction;
When not retrieving the described system maintenance daily record and warning information file of mating with described search instruction, detect described database to be saved in described index data base by described system maintenance daily record newly-increased in described database and warning information file, and again perform described server receive search instruction search for described index data base, judge whether the step retrieving described system maintenance daily record and the warning information file mated with described search instruction.
9. a virtual machine information harvester, is characterized in that, described device comprises:
Acquisition module, for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And
Sending module, for the described system maintenance daily record that collected by described acquisition module and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated.
10. virtual machine information harvester according to claim 9, it is characterized in that, described acquisition module is for controlling described self-defined information acquisition applications/script to gather system maintenance daily record in the designated storage location of described virtual machine and warning information file; Wherein, described designated storage location is specified during acquisition applications/script by described in described virtual machine creating.
11. 1 kinds of virtual machine information maintenance systems, it is characterized in that, direct bearing turnkey draws together virtual machine information attending device and server, described device comprises:
Acquisition module, for controlling self-defined information acquisition applications/script in virtual machine to gather system maintenance daily record and the warning information file of described virtual machine; Wherein, described acquisition applications/script together creates by during described virtual machine creating; And
Sending module, for the described system maintenance daily record that collected by described acquisition module and warning information file via self-defined Microsoft Loopback Adapter or safeguard that IP outwards sends; Wherein, described Microsoft Loopback Adapter or safeguard IP and other planar isolated;
Described system maintenance daily record and warning information file for receiving described system maintenance daily record and warning information file, and are preserved in a database by described server; Wherein, described database is set up in advance by described server, and only for preserving described system maintenance daily record and warning information file.
12. virtual machine information maintenance systems according to claim 11, it is characterized in that, described server comprises:
Detection module, detects described database for interval to schedule, and described system maintenance daily record newly-increased in described database and warning information file is saved in index data base.
13. virtual machine information maintenance systems according to claim 12, it is characterized in that, described server also comprises:
Search module, searches for described index data base for receiving search instruction, to obtain the described system maintenance daily record of mating with described search instruction and warning information file.
CN201510594522.3A 2015-09-17 2015-09-17 Virtual machine information acquisition device, method and virtual machine information maintaining method and system Active CN105224441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510594522.3A CN105224441B (en) 2015-09-17 2015-09-17 Virtual machine information acquisition device, method and virtual machine information maintaining method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510594522.3A CN105224441B (en) 2015-09-17 2015-09-17 Virtual machine information acquisition device, method and virtual machine information maintaining method and system

Publications (2)

Publication Number Publication Date
CN105224441A true CN105224441A (en) 2016-01-06
CN105224441B CN105224441B (en) 2018-11-20

Family

ID=54993426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510594522.3A Active CN105224441B (en) 2015-09-17 2015-09-17 Virtual machine information acquisition device, method and virtual machine information maintaining method and system

Country Status (1)

Country Link
CN (1) CN105224441B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729117A (en) * 2016-08-10 2018-02-23 中国移动通信集团重庆有限公司 A kind of virtual machine generation method and system
CN109324820A (en) * 2018-11-01 2019-02-12 郑州云海信息技术有限公司 A kind of update method of host, device, equipment and medium
CN110401570A (en) * 2019-08-06 2019-11-01 中国联合网络通信集团有限公司 Alarm method, device, system, equipment and readable storage medium storing program for executing
CN111865915A (en) * 2020-06-15 2020-10-30 新浪网技术(中国)有限公司 IP control method and system for accessing server
CN113162944A (en) * 2021-04-29 2021-07-23 杭州安恒信息安全技术有限公司 Network communication method, device and equipment for security operation platform and security component
CN113608908A (en) * 2021-07-28 2021-11-05 烽火超微信息科技有限公司 Server fault processing method, system, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425568A (en) * 2013-08-23 2013-12-04 新浪网技术(中国)有限公司 Method and device for processing log information
CN103475535A (en) * 2013-08-23 2013-12-25 汉柏科技有限公司 Log management system of cloud computing server
CN103577443A (en) * 2012-07-30 2014-02-12 中国银联股份有限公司 Log processing system
CN103824069A (en) * 2014-03-19 2014-05-28 北京邮电大学 Intrusion detection method based on multi-host-log correlation
EP2838028A1 (en) * 2012-04-09 2015-02-18 Nec Corporation Visualization device, visualization system, and visualization method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2838028A1 (en) * 2012-04-09 2015-02-18 Nec Corporation Visualization device, visualization system, and visualization method
CN103577443A (en) * 2012-07-30 2014-02-12 中国银联股份有限公司 Log processing system
CN103425568A (en) * 2013-08-23 2013-12-04 新浪网技术(中国)有限公司 Method and device for processing log information
CN103475535A (en) * 2013-08-23 2013-12-25 汉柏科技有限公司 Log management system of cloud computing server
CN103824069A (en) * 2014-03-19 2014-05-28 北京邮电大学 Intrusion detection method based on multi-host-log correlation

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JEFFEY: "VMware vSpere 5.5常用排错技巧(一):日志收集", 《HTTPS://WEB.ARCHIVE.ORG/WEB/20150502040157/HTTPS://COMMUNITY.EMC.COM/DOCS/DOC-42944》 *
王贺朝: "《电子商务与数据库应用》", 31 July 2002 *
鲁松: "《计算机虚拟化技术及应用》", 31 January 2008 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729117A (en) * 2016-08-10 2018-02-23 中国移动通信集团重庆有限公司 A kind of virtual machine generation method and system
CN107729117B (en) * 2016-08-10 2021-07-06 中国移动通信集团重庆有限公司 Virtual machine generation method and system
CN109324820A (en) * 2018-11-01 2019-02-12 郑州云海信息技术有限公司 A kind of update method of host, device, equipment and medium
CN109324820B (en) * 2018-11-01 2021-12-17 郑州云海信息技术有限公司 Host updating method, device, equipment and medium
CN110401570A (en) * 2019-08-06 2019-11-01 中国联合网络通信集团有限公司 Alarm method, device, system, equipment and readable storage medium storing program for executing
CN111865915A (en) * 2020-06-15 2020-10-30 新浪网技术(中国)有限公司 IP control method and system for accessing server
CN113162944A (en) * 2021-04-29 2021-07-23 杭州安恒信息安全技术有限公司 Network communication method, device and equipment for security operation platform and security component
CN113162944B (en) * 2021-04-29 2022-08-02 杭州安恒信息安全技术有限公司 Network communication method, device and equipment for security operation platform and security component
CN113608908A (en) * 2021-07-28 2021-11-05 烽火超微信息科技有限公司 Server fault processing method, system, equipment and readable storage medium
CN113608908B (en) * 2021-07-28 2023-12-22 烽火超微信息科技有限公司 Server fault processing method, system, equipment and readable storage medium

Also Published As

Publication number Publication date
CN105224441B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN105224441A (en) Virtual machine information harvester, method and virtual machine information maintaining method and system
US10474519B2 (en) Server fault analysis system using event logs
US8122111B2 (en) System and method for server configuration control and management
US9647910B2 (en) Management server and control method of the management server for managing a service system virtually built using connected components
CN106775929B (en) A kind of virtual platform safety monitoring method and system
US20130191516A1 (en) Automated configuration error detection and prevention
US11250147B2 (en) Hybrid approach to data governance
US9223606B1 (en) Automatically configuring and maintaining cluster level high availability of a virtual machine running an application according to an application level specified service level agreement
CN103812699A (en) Monitoring management system based on cloud computing
CN102169484A (en) Comprehensive, relative and dynamic data search in virtual environment
CN106656562B (en) A kind of OLT batch issues the detection method and device of ONU configuration
US20070078841A1 (en) System and method for network resource management
KR101443071B1 (en) Error Check System of Webpage
CN112039868A (en) Firewall policy verification method, device, equipment and storage medium
CN113449298B (en) Detection method, device, equipment and medium for rebound shell process
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN109240851A (en) A kind of autonomous type realization self-healing method and system of batch BMC
CN111193643A (en) Cloud server state monitoring system and method
CN105553731A (en) Automatic inspection method and device
CN112214351A (en) Backup data recovery method and device, electronic equipment and storage medium
CN111343016A (en) Cloud server cluster management method and device
CN111934953A (en) Batch testing method based on domestic processor computer platform
CN112261114A (en) Data backup system and method
CN114138483B (en) Virtualized resource management method, device, server, system and medium
US10812346B1 (en) Application discovery and dependency mapping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200417

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310052, Binjiang District, Zhejiang, Hangzhou

Patentee before: Huawei Technologies Co.,Ltd.