CN109218129A - A kind of upgrade detection method based on log, device, memory and equipment - Google Patents

A kind of upgrade detection method based on log, device, memory and equipment Download PDF

Info

Publication number
CN109218129A
CN109218129A CN201810993610.4A CN201810993610A CN109218129A CN 109218129 A CN109218129 A CN 109218129A CN 201810993610 A CN201810993610 A CN 201810993610A CN 109218129 A CN109218129 A CN 109218129A
Authority
CN
China
Prior art keywords
node
upgrading
log
nodes
key message
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
CN201810993610.4A
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 CN201810993610.4A priority Critical patent/CN109218129A/en
Publication of CN109218129A publication Critical patent/CN109218129A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The application provides a kind of upgrade detection method based on log, device, memory and equipment, the method includes after the completion of the upgrading of all nodes of device cluster to be serviced, batch matches the upgrading log of each node, judges in the upgrading log with the presence or absence of the key message upgraded successfully;If in the upgrading log of first node, there are the key messages, it is determined that the first node upgrades successfully;If the key message is not present in the upgrading log of first node, it is determined that the first node upgrading failure;Wherein, the first node is any node in all nodes.In the embodiment of the present application, judge whether each node upgrades successfully after upgrading under extensive node by the method for matching upgrading log in each upgrade node.If any the node of upgrading failure, the nodal information of output upgrading failure facilitates operator to determine therefrom that the node for needing to upgrade again.

Description

A kind of upgrade detection method based on log, device, memory and equipment
Technical field
This application involves field of computer technology, in particular to a kind of upgrade detection method based on log, device, storage Device and equipment.
Background technique
In the case where current scientific and technological high speed development, people are higher and higher to the function of IT product, performance requirement.In order to full The demand of sufficient user, the product renewing of IT enterprises, upgrading frequently occur.And when the product of enterprise is deployed in large-scale server On when, the upgrading of product is often batch upgrade.
Under normal conditions, it is serially executed in large-scale server when product up-gradation, if one of node upgrades Failure, upgrading can be transferred to automatically writes a node execution, and after the completion of upgrading task final in this way, operator can not determine all Whether host all upgrades successfully.
Summary of the invention
In view of this, the application's is designed to provide one kind.Its concrete scheme is as follows:
In a first aspect, the embodiment of the present application provides a kind of upgrade detection method based on log, comprising:
After the completion of all nodes upgrading of device cluster to be serviced, the upgrading log of each node is matched in batches, described in judgement With the presence or absence of the key message upgraded successfully in upgrading log;
If in the upgrading log of first node, there are the key messages, it is determined that the first node upgrades successfully;
If the key message is not present in the upgrading log of first node, it is determined that the first node upgrading failure;
Wherein, the first node is any node in all nodes.
Optionally, after determining the first node upgrading failure, further includes:
Export the nodal information of the first node.
Optionally, after the completion of all nodes upgrading of the device cluster to be serviced, the upgrading day of each node is matched in batches Will judges in the upgrading log with the presence or absence of the key message upgraded successfully, comprising:
After the completion of all nodes upgrading of the device cluster to be serviced, batch matches each section by way of remote access The upgrading log of point judges in the upgrading log with the presence or absence of the key message upgraded successfully.
Second aspect, the embodiment of the present application provide a kind of upgrading detection device based on log, comprising:
Matching module matches the upgrading of each node after the completion of all nodes upgrading of device cluster to be serviced in batches Log judges in the upgrading log with the presence or absence of the key message upgraded successfully;
Determining module, if for there are the key messages in the upgrading log of first node, it is determined that the first segment Point upgrades successfully;
If the key message is not present in the upgrading log of first node, it is determined that the first node upgrading failure;
Wherein, the first node is any node in all nodes.
Optionally, described device further include:
Output module, for exporting the nodal information of the first node.
Optionally, the matching module, is specifically used for:
After the completion of all nodes upgrading of device cluster to be serviced, batch matches each node by way of remote access Upgrade log, judges in the upgrading log with the presence or absence of the key message upgraded successfully.
The third aspect, the embodiment of the present application provide a kind of computer storage, are stored on the computer storage Computer program, the computer program realize above-mentioned first aspect described in any item steps when being executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of computer equipment, comprising:
Memory, for storing computer program;
Processor realizes above-mentioned first aspect described in any item steps when for executing the computer program.
In the embodiment of the present application, judged under extensive node by the method for matching upgrading log in each upgrade node Whether each node upgrades successfully after upgrading.If any the node of upgrading failure, the nodal information of output upgrading failure facilitates behaviour The node for needing to upgrade again is determined therefrom that as personnel.
The application provides a kind of method and is applied to above-mentioned apparatus, and computer storage and equipment can run the above method, With above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of upgrade detection method flow diagram based on log that the application specific embodiment provides;
Fig. 2 is a kind of upgrading detection device schematic diagram based on log that the application specific embodiment provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of upgrade detection method process based on log that the application specific embodiment provides Schematic diagram, as shown in Figure 1, it is mainly included the following steps that.
Step S101: after the completion of all nodes upgrading of device cluster to be serviced, matching the upgrading log of each node in batches, Judge in the upgrading log with the presence or absence of the key message upgraded successfully.
Under normal conditions, each node can print upgrading log, the version letter comprising upgrading in log after the completion of upgrading Information etc. whether ceasing, upgrade successfully.Based on this, the embodiment of the present application, according to the process of upgrading guidance, has upgraded in all nodes Cheng Hou matches the upgrading log of each node in batches, judges in the upgrading log with the presence or absence of the key message upgraded successfully. The key message is the necessary information upgraded successfully.
In the specific implementation, remote access upgrade node can be write and match the script of upgrading log, with what is upgraded successfully Key message is occurrence, and with above-mentioned script, whether the upgrading log matched in each upgrade node in batches is upgraded successfully Key message.
Step S102: if there are the key messages in the upgrading log of first node, it is determined that the first node liter Grade success;
Step S103: if the key message is not present in the upgrading log of first node, it is determined that the first node Upgrading failure.
In the embodiment of the present application, if illustrating first node there are the key message in the upgrading log of first node It upgrades successfully;The key message if it does not exist illustrates first node upgrading failure, wherein the first node is all sections Any node in point.
In the specific implementation, after determining the first node upgrading failure, further includes: export the section of the first node Point information, facilitates operator to determine therefrom that the node for needing to upgrade again.
In the embodiment of the present application, judged under extensive node by the method for matching upgrading log in each upgrade node Whether each node upgrades successfully after upgrading.If any the node of upgrading failure, the nodal information of output upgrading failure facilitates behaviour The node for needing to upgrade again is determined therefrom that as personnel.
Corresponding with above method embodiment, present invention also provides in a kind of upgrading detection device based on log.
Referring to FIG. 2, Fig. 2 is a kind of upgrading detection device signal based on log that the application specific embodiment provides Figure, as shown in Fig. 2, it is mainly comprised the following modules.
Matching module 201 matches the liter of each node after the completion of all nodes upgrading of device cluster to be serviced in batches Level logs judge in the upgrading log with the presence or absence of the key message upgraded successfully.
Determining module 202, if for there are the key messages in the upgrading log of first node, it is determined that described first Node upgrades successfully;
If the key message is not present in the upgrading log of first node, it is determined that the first node upgrading failure;
Wherein, the first node is any node in all nodes.
In an alternative embodiment, described device further include:
Output module, for exporting the nodal information of the first node.
In an alternative embodiment, the matching module, is specifically used for:
After the completion of all nodes upgrading of device cluster to be serviced, batch matches each node by way of remote access Upgrade log, judges in the upgrading log with the presence or absence of the key message upgraded successfully.
In another specific embodiment of the application, the embodiment of the present application provides a kind of computer-readable memory, Computer program is stored on the computer storage, the computer program realizes above-mentioned specific reality when being executed by processor The step of applying the upgrade detection method based on log in mode.
In a kind of specific embodiment of the application, the embodiment of the present application provides a kind of computer equipment, comprising:
Memory, for storing computer program;
Processor realizes the upgrading based on log in above-mentioned specific embodiment when for executing the computer program The step of detection method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of equipment and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of equipment or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall equipment or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
System and method, computer storage are monitored to a kind of server power-up state provided herein above and set Standby to be described in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the general skill of this field Art personnel, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this Description should not be construed as the limitation to the application.

Claims (8)

1. a kind of upgrade detection method based on log characterized by comprising
After the completion of all nodes upgrading of device cluster to be serviced, the upgrading log of each node is matched in batches, judges the upgrading With the presence or absence of the key message upgraded successfully in log;
If in the upgrading log of first node, there are the key messages, it is determined that the first node upgrades successfully;
If the key message is not present in the upgrading log of first node, it is determined that the first node upgrading failure;
Wherein, the first node is any node in all nodes.
2. the method according to claim 1, wherein also being wrapped after determining the first node upgrading failure It includes:
Export the nodal information of the first node.
3. being completed the method according to claim 1, wherein all nodes of the device cluster to be serviced upgrade Afterwards, the upgrading log for matching each node in batches judges in the upgrading log with the presence or absence of the key message upgraded successfully, packet It includes:
After the completion of all nodes upgrading of the device cluster to be serviced, batch matches each node by way of remote access Upgrade log, judges in the upgrading log with the presence or absence of the key message upgraded successfully.
4. a kind of upgrading detection device based on log characterized by comprising
Matching module matches the upgrading log of each node after the completion of all nodes upgrading of device cluster to be serviced in batches, Judge in the upgrading log with the presence or absence of the key message upgraded successfully;
Determining module, if for there are the key messages in the upgrading log of first node, it is determined that the first node liter Grade success;
If the key message is not present in the upgrading log of first node, it is determined that the first node upgrading failure;
Wherein, the first node is any node in all nodes.
5. device according to claim 4, which is characterized in that further include:
Output module, for exporting the nodal information of the first node.
6. device according to claim 4, which is characterized in that the matching module is specifically used for:
After the completion of all nodes upgrading of device cluster to be serviced, batch matches the upgrading of each node by way of remote access Log judges in the upgrading log with the presence or absence of the key message upgraded successfully.
7. a kind of computer storage, which is characterized in that be stored with computer program, the calculating on the computer storage Machine program realizes step as described in any one of claims 1 to 3 when being executed by processor.
8. a kind of computer equipment characterized by comprising
Memory, for storing computer program;
Processor realizes step as described in any one of claims 1 to 3 when for executing the computer program.
CN201810993610.4A 2018-08-29 2018-08-29 A kind of upgrade detection method based on log, device, memory and equipment Pending CN109218129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810993610.4A CN109218129A (en) 2018-08-29 2018-08-29 A kind of upgrade detection method based on log, device, memory and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810993610.4A CN109218129A (en) 2018-08-29 2018-08-29 A kind of upgrade detection method based on log, device, memory and equipment

Publications (1)

Publication Number Publication Date
CN109218129A true CN109218129A (en) 2019-01-15

Family

ID=64985578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810993610.4A Pending CN109218129A (en) 2018-08-29 2018-08-29 A kind of upgrade detection method based on log, device, memory and equipment

Country Status (1)

Country Link
CN (1) CN109218129A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168966A (en) * 2021-12-07 2022-03-11 哈尔滨利云科技有限公司 Big data analysis-based security protection upgrade mining method and information security system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859125A (en) * 2006-03-31 2006-11-08 华为技术有限公司 System and its method for central remote automatic upgrading software
JP2014225124A (en) * 2013-05-16 2014-12-04 ソフトバンクモバイル株式会社 Failure monitoring system, failure monitoring method, and failure monitoring program
CN105653318A (en) * 2015-12-24 2016-06-08 北京奇虎科技有限公司 Software upgrade method, device and system
CN106843957A (en) * 2017-01-17 2017-06-13 青岛海信移动通信技术股份有限公司 System firmware upgrade method and device
CN106980565A (en) * 2017-03-17 2017-07-25 北京潘达互娱科技有限公司 Escalation process monitoring method and device
CN107634860A (en) * 2017-10-09 2018-01-26 上海新炬网络信息技术股份有限公司 A kind of weblogic clusters patch batch automatically updating method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859125A (en) * 2006-03-31 2006-11-08 华为技术有限公司 System and its method for central remote automatic upgrading software
JP2014225124A (en) * 2013-05-16 2014-12-04 ソフトバンクモバイル株式会社 Failure monitoring system, failure monitoring method, and failure monitoring program
CN105653318A (en) * 2015-12-24 2016-06-08 北京奇虎科技有限公司 Software upgrade method, device and system
CN106843957A (en) * 2017-01-17 2017-06-13 青岛海信移动通信技术股份有限公司 System firmware upgrade method and device
CN106980565A (en) * 2017-03-17 2017-07-25 北京潘达互娱科技有限公司 Escalation process monitoring method and device
CN107634860A (en) * 2017-10-09 2018-01-26 上海新炬网络信息技术股份有限公司 A kind of weblogic clusters patch batch automatically updating method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168966A (en) * 2021-12-07 2022-03-11 哈尔滨利云科技有限公司 Big data analysis-based security protection upgrade mining method and information security system
CN114168966B (en) * 2021-12-07 2022-07-19 深圳市晖拓信息科技有限公司 Big data analysis-based security protection upgrade mining method and information security system

Similar Documents

Publication Publication Date Title
US10565077B2 (en) Using cognitive technologies to identify and resolve issues in a distributed infrastructure
CN103458086B (en) A kind of smart mobile phone and fault detection method thereof
CN105357038A (en) Method and system for monitoring virtual machine cluster
US10331428B1 (en) Automated firmware update management on huge big-data clusters
CN103412769A (en) External card parameter configuration method, equipment and system
CN104965691A (en) Method, apparatus and system for configuring page elements of a webpage
CN104765621A (en) Method and system for deploying program on cluster node
CN105242990A (en) Cloud platform based data backup method and apparatus
CN103973470A (en) Cluster management method and equipment for shared-nothing cluster
CN109614376A (en) The update method and NAS configuration node controller of NAS node profile
CN103970655A (en) Server automatic cluster testing method based on expect
CN103559124A (en) Fast fault detection method and device
CN106909429A (en) A kind of synchronous upgrade method and device
CN105591778A (en) Method and system for updating configuration file in distributed system
CN109783390A (en) PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium
CN112925653B (en) Virtualization cluster expansion method, related equipment and computer readable storage medium
CN104348905A (en) Method and device for pushing message in off-line way
CN109218129A (en) A kind of upgrade detection method based on log, device, memory and equipment
CN116149713B (en) Program upgrading method and device for all-level equipment under tree-type heterogeneous network
CN112804099A (en) Parameter batch configuration method and device, computer equipment and readable storage medium
CN104407808A (en) Method and device for writing in data
CN110096226B (en) Disk array deployment method and device
CN106204031A (en) card application processing method and device
CN114647531B (en) Failure solving method, failure solving system, electronic device, and storage medium
CN106708541A (en) Version upgrading processing method and apparatus

Legal Events

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

Application publication date: 20190115

RJ01 Rejection of invention patent application after publication