Automatic inspection method and device based on dynamic code configuration

The automatic inspection method with dynamic code configuration solves the problem of low efficiency of traditional IT equipment inspections, enables flexible issuance and analysis of customized inspection tasks and instructions for IT operation and maintenance personnel, and improves the flexibility of the inspection system. and efficiency, reducing manual misjudgments and improving the accuracy of analysis results.

CN114611729BActive Publication Date: 2024-10-18广州市申迪计算机系统有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210265417.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-17
Publication Date
2024-10-18
Estimated Expiration
2042-03-17

AI Technical Summary

Technical Problem

Traditional IT equipment inspections rely on manual operations and are inefficient. The automated inspection system needs to rely on the development and online process to add inspection indicators, equipment types and task modifications, resulting in low efficiency.

Method used

Adopting an automatic inspection method based on dynamic code configuration, through the inspection task management module, the dynamic code interpreter for command delivery, the inspection plan scheduler, the unified delivery and result recovery channel, and the dynamic code engine for inspection result analysis , realizes the flexible issuance, execution and analysis of customized inspection tasks and instructions for IT operation and maintenance personnel, supports JSON, SQL and JavaScript scripts, and combines with the Nashorn JavaScript engine for result processing and early warning notifications.

Benefits of technology

It enables IT operation and maintenance personnel to quickly develop and launch new inspection indicators in real time, improves the flexibility of the automated inspection system and the efficiency of task launch, reduces manual misjudgments, and improves the accuracy and efficiency of analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114611729B_ABST
    Figure CN114611729B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic inspection method and equipment based on dynamic code configuration, the method comprising the following steps: the first step: an inspection task management module; the second step: a dynamic code interpreter for issuing instructions; the third step: an inspection plan scheduler; the fourth step: a unified inspection issuance and result recovery channel; the fifth step: a dynamic code engine for analyzing inspection results; the sixth step: an inspection result warning; the present invention can meet the needs of automated inspection of massive equipment while providing IT operation and maintenance personnel with a light-code task management method, and can flexibly enable IT operation and maintenance personnel to quickly develop new inspection indicators on their own and put them online in real time through the development of dynamic codes, thereby improving the flexibility of the automated inspection system and the online efficiency of inspection tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an automatic inspection method, and in particular to an automatic inspection method and equipment based on dynamic code configuration, belonging to the technical field of IT operation and maintenance. Background Art

[0002] IT operation and maintenance personnel need to understand the operating status of network equipment, servers and other equipment that carry important business during operation, so as to promptly discover defects and safety hazards in the equipment, and then take effective measures to ensure equipment safety and improve operating efficiency.

[0003] Traditionally, the general method used for equipment inspection is manual inspection, that is, the inspection personnel log in to each IT device separately, execute the predetermined inspection instructions, and determine whether there are any abnormalities after obtaining the results. The inspection process mainly relies on manual work, so the inspection efficiency is low.

[0004] Later, automatic inspection systems gradually provided automated inspection capabilities. The system first collected user inspection requirements, and developed and compiled automated execution tasks for each inspection requirement, and performed inspection operations according to the plan and the predetermined tasks. This method required new inspection indicators, new inspection equipment types, and the handling of inspection results, etc. It relied on the method of raising requirements, arranging development, and then launching online. It was time-consuming and laborious to modify inspection tasks or launch new inspection indicators. Summary of the invention

[0005] The purpose of the present invention is to provide an automatic inspection method and device based on dynamic code configuration to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: an automatic inspection method based on dynamic code configuration, comprising the following steps:

[0007] Step 1: Inspection Task Management Module

[0008] Dynamic management of inspection equipment and inspection tasks is achieved. IT operation and maintenance personnel can create inspection tasks on demand. The key fields of the task management module include:

[0009] Task name: fill in the defined task command;

[0010] Task classification: fill in the defined task classification (such as business category, basic indicator category);

[0011] Task subclass: custom task subclass;

[0012] Dynamic script type: including CMD / SQL / Javascript;

[0013] Task executor: Inspection plan scheduler selection and configuration;

[0014] Result processor: process the result;

[0015] Command issuing dynamic code block: The issued dynamic code block is written, and various inspection instructions can be flexibly issued through simple code writing;

[0016] Result parsing dynamic code block: Processing of text content returned by the device, through simple code writing, flexible parsing and processing of various return results can be achieved;

[0017] Step 2: Dynamic code interpreter issued by command,

[0018] S201: Instruction issuance dynamic code interpreter supports common types:

[0019] JSON format, supports custom encapsulation of complex and multiple inspection instructions, and compiles them in JSON format;

[0020] S202: SQL statement format:

[0021] After logging into the device, the system supports SQL query of the database, and the result interpreter analyzes the query results to determine whether there are any abnormalities for automatic inspection.

[0022] Step 3: Inspection plan scheduler:

[0023] The inspection plan scheduler implements flexible periodic or one-time inspection task scheduling configuration according to the dimensions of seconds, minutes, hours, days, months, weeks, and years;

[0024] Step 4: Unified inspection distribution and result collection channel:

[0025] The unified inspection delivery and result collection channel has built-in common IT equipment connection methods, such as SSH login, TELENT login, webservice protocol docking, HTTP restful API interface docking. The inspection task is finally delivered to the device through a unified delivery channel for automatic execution, and the execution result is returned in the form of text content;

[0026] Step 5: Dynamic code engine for inspection result analysis:

[0027] A new JavaScript engine in Java 8 named “Nashorn” was introduced. Nashorn is based on Da VinciMachine, a project that aims to add dynamic language support to the JVM. Nashorn is a great milestone in making hybrid software easier than before. The engine’s great features enable you to have full-duplex communication between your Java code and javascript.

[0028] By modifying the JS code engine, IT operation and maintenance personnel can configure the code logic of the command access results on the function page, write a small amount of code to extract key indicators and logical judgments from the accessed text content, and extract the inspection results they expect. It can dynamically compile and embed the automated analysis execution of the entire automated inspection device system without the need to compile and publish the system for online use.

[0029] Step 6: Inspection result warning:

[0030] By defining the inspection results after dynamic code parsing, multiple feedback methods are provided:

[0031] The system is visualized to directly display the completion status of the inspection items corresponding to each device and whether it is in monitoring status;

[0032] Result email push: The system can push the inspection result email notification to the task leader through the configured notification email address and the POP3 protocol, connecting to the email server;

[0033] SMS warning push: The system can push SMS notifications of inspection results to the task leader via the configured notification mobile phone number.

[0034] The present invention also discloses an automatic inspection device based on dynamic code configuration, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the automatic inspection method based on dynamic code configuration.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] 1. The present invention provides an automatic inspection method based on dynamic code configuration, which can meet the needs of automated inspection of massive equipment while providing a light-code task management method for IT operation and maintenance personnel. Through the development of dynamic code, it can flexibly enable IT operation and maintenance personnel to quickly develop new inspection indicators on their own and put them online in real time, thereby improving the flexibility of the automated inspection system and the online efficiency of inspection tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a schematic diagram of Embodiment 1 of the present invention;

[0038] Figure 2 This is a code diagram of Embodiment 2 of the present invention. Figure 1 ;

[0039] Figure 3 This is a schematic diagram of the second embodiment of the present invention. Figure 1 ;

[0040] Figure 4 This is a code diagram of the second embodiment of the present invention. Figure 2 ;

[0041] Figure 5 This is a schematic diagram of the second embodiment of the present invention. Figure 2 ;

[0042] Figure 6 This is a schematic diagram of Embodiment 3 of the present invention;

[0043] Figure 7 is a schematic diagram of Embodiment 5 of the present invention;

[0044] Figure 8 is a schematic diagram of Embodiment 5 of the present invention;

[0045] Fig. 9 It is a schematic diagram of the framework of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] See also Figure 1-9 The present invention provides a technical solution for an automatic inspection method based on dynamic code configuration:

[0048] Embodiment 1

[0049] like Figure 1 and Figure 9 As shown:

[0050] Inspection task management module

[0051] Dynamic management of inspection equipment and inspection tasks is achieved. IT operation and maintenance personnel can create inspection tasks on demand. The key fields of the task management module include:

[0052] Task name: Fill in the defined task command

[0053] Task classification: Fill in the defined task classification (such as business category, basic indicator category)

[0054] Task subclass: Customize the task subclass.

[0055] Dynamic script type: including CMD / SQL / Javascript

[0056] Task executor: Inspection plan scheduler selection configuration.

[0057] Result processor: process the result;

[0058] Command issuing dynamic code block: The issued dynamic code block is written, and through simple code writing, various inspection instructions can be flexibly issued.

[0059] Result parsing dynamic code block: The device returns text content processing, and implements flexible parsing and processing of various return results through simple code writing.

[0060] Embodiment 2

[0061] Dynamic code interpreter issued by command:

[0062] The dynamic code interpreter for command delivery supports common types:

[0063] JSON format:

[0064] Supports custom encapsulation of complex and multiple inspection instructions, compiled in JSON format.

[0065] like Figures 2 to 5 As shown:

[0066] It means that the inspection command needs to execute 12 instructions after logging into the device, and finally collect the results to the interpreter for processing to complete a complete inspection task. The cmds array contains the instructions that need to be issued in sequence.

[0067] SQL statement format:

[0068] After logging into the device, the system can query the database using SQL, and the result interpreter can analyze the query result to determine whether it is abnormal or not to perform automatic inspection. Figure 6 The following is an example of SQL query editing after logging into a certain inspection device:

[0069] Embodiment 3

[0070] Inspection plan scheduler:

[0071] The inspection plan scheduler implements flexible periodic or one-time inspection task scheduling configuration according to the dimensions of seconds, minutes, hours, days, months, weeks, and years.

[0072] like Figure 6 As shown:

[0073] For example: *30 10*1 / 5*

[0074] Indicates (from back to front)

[0075] [Monday to Friday] [Specified month] [Unspecified day] [10:00 a.m.] [30 minutes] [Specified second] in [Specified year];

[0076] Another example: 00 00 00*10,11,12 1#5 2018

[0077] It means to execute the task at 0:0:0:0 on the first Friday of October, November, and December 2018.

[0078] Embodiment 4

[0079] Unified inspection delivery and result collection channel:

[0080] The unified inspection delivery and result collection channel has built-in common IT equipment connection methods, such as SSH login, TELENT login, webservice protocol docking, HTTP restful API interface docking. The inspection task is finally delivered to the device through a unified delivery channel for automatic execution, and the execution result is returned in the form of text content;

[0081] Embodiment 5

[0082] Dynamic code engine for inspection result analysis:

[0083] A new JavaScript engine in Java 8 named "Nashorn" was introduced. Nashorn is based on Da VinciMachine, a project that aims to add dynamic language support to the JVM. Nashorn is a great milestone in making hybrid software easier than before. The outstanding features of this engine enable you to have full duplex communication between Java (any other compiled language) code and javascript.

[0084] By modifying the JS code engine, IT operation and maintenance personnel can configure the code logic of the command access results on the function page, and write a small amount of code to extract key indicators and logical judgments in the accessed text content to extract the expected inspection results. It can dynamically compile and embed the automated analysis and execution of the entire automated inspection device system without the need to compile and release the system for online use.

[0085] like Figure 7 As shown in the figure, in the result processing code, the inspectors only need to write the processing logic in the analysis function to complete the dynamic interpretation of the inspection results, and it will take effect in real time without recompiling and deploying the system.

[0086] Embodiment 6

[0087] Inspection result warning:

[0088] By defining the inspection results after dynamic code parsing, multiple feedback methods are provided:

[0089] The system is visualized to directly display the completion status of the inspection items corresponding to each device and whether it is in monitoring status;

[0090] Result email push: The system can push the inspection result email notification to the task leader through the configured notification email address and the POP3 protocol, connecting to the email server;

[0091] SMS warning push: The system can push SMS notifications of inspection results to the task leader via the configured notification mobile phone number.

[0092] An embodiment of the present invention also discloses an automatic inspection device based on dynamic code configuration, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the automatic inspection method based on dynamic code configuration.

[0093] In the automatic inspection device based on dynamic code configuration, the processor is communicatively connected with dynamic code inspection units of multiple dynamic code inspection ranges; the machine-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, the at least one program, the code set or instruction set is loaded and executed by the processor to implement the automatic inspection method based on dynamic code configuration, and the method also includes:

[0094] Obtain a code verification feature array corresponding to a dynamic code query range 1 corresponding to the dynamic code inspection unit in a dynamic code query path dynamic code query path 1, the dynamic code query path dynamic code query path 1 is a dynamic code query path when the dynamic code inspection unit detects an object code range with a code error node at the dynamic code query range 1, the code verification feature array includes at least one dynamic code query range 2, each dynamic code query range 2 has a code query feature relativity between the corresponding second dynamic code query path and the dynamic code query range 1, and the second dynamic code query path is a linkage dynamic code query path of the dynamic code query path dynamic code query path 1;

[0095] Acquire each dynamic code query second range from the at least one dynamic code query second range of the code verification feature array, and monitor a dynamic code query information first chain associated with the dynamic code query first range in the dynamic code query first path and a dynamic code query information second chain associated with the dynamic code query second range in the corresponding second dynamic code query path within a set duration period;

[0096] Based on the pre-configured dynamic code operation status neurons, the dynamic code operation status in the first dynamic code query information chain and the dynamic code operation status in the second dynamic code query information chain are predicted respectively, and a first dynamic code operation status set in the first dynamic code query information chain and a second dynamic code operation status set in the second dynamic code query information chain are obtained respectively;

[0097] Determine the associated dynamic code operation status related to the code error node of the object code range from the first dynamic code operation status set and the second dynamic code operation status set, and after establishing a binding relationship between the associated dynamic code operation status and the object code range, send the associated dynamic code operation status and the object code range to the corresponding dynamic code inspection unit end. Using the solution in the above device, the troubleshooting efficiency is improved, and the situation of manual misjudgment can be improved, and the accuracy of the final analysis result can be improved.

[0098] In the description of the present invention, it is necessary to understand that the indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0099] In the present invention, unless otherwise clearly stipulated and limited, for example, it can be a fixed connection, a detachable connection, or an integrated one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, for ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0100] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An automatic inspection method based on dynamic code configuration, It is characterized in that Applied to automatic inspection equipment based on dynamic code configuration, including the following steps: Step 1: Inspection task management module; specifically includes: To achieve dynamic management of inspection equipment and inspection tasks, the task management module includes the following key fields: Task name: fill in the defined task command; Task category: Fill in the defined task category; Task subclass: custom task subclass; Dynamic script type: including CMD / SQL / Javascript; Task executor: Inspection plan scheduler selection and configuration; Result processor: process the result; Command issuing dynamic code block: The issued dynamic code block is written, and various inspection instructions can be flexibly issued through simple code writing; Result parsing dynamic code block: The device returns text content processing, and realizes flexible parsing and processing of various return results through simple code writing; Step 2: Dynamic code interpreter issued by the instruction; specifically includes: S201: Command issuance dynamic code interpreter supports common types: JSON format, supports custom encapsulation of complex and multiple inspection instructions, and compiles them in JSON format; S202: SQL statement format: Supports SQL query of the database after logging into the device, and performs automatic inspection by having the result interpreter analyze the query result to determine whether it is abnormal; Step 3: Inspection plan scheduler; specifically includes: The inspection plan scheduler implements flexible periodic or one-time inspection task scheduling configuration according to the dimensions of seconds, minutes, hours, days, months, weeks, and years; Step 4: Unified inspection distribution and result collection channel; specifically including: In the automatic inspection device based on dynamic code configuration, a unified inspection delivery and result collection channel is built in, including SSH login, TELENT login, webservice protocol docking, HTTP restful API interface docking. The inspection task is finally delivered to the device through a unified delivery channel for automatic execution, and the execution result is returned in the form of text content; Step 5: Dynamic code engine for inspection result analysis; specifically includes: Introducing a new JavaScript engine named "Nashorn" in Java 8 into the dynamic code engine for parsing inspection results. Nashorn is based on Da Vinci Machine. The new JavaScript engine "Nashorn" can perform full-duplex communication between Java code and JavaScript. Step 6: Early warning of inspection results; specifically including: By defining the inspection results after dynamic code parsing, multiple feedback methods are provided: The system is visualized to directly display the completion status of the inspection items corresponding to each device and whether it is in monitoring status; Result email push: The system can push the inspection result email notification to the task leader through the configured notification email address and the POP3 protocol, connecting to the email server; SMS warning push: The system can push SMS notifications of inspection results to the task leader via the configured notification mobile phone number.

2. An automatic inspection device based on dynamic code configuration, Features: It includes a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the automatic inspection method based on dynamic code configuration of claim 1.

Citation Information

Patent Citations

  • Method and system for realizing IT resource inspection automation through modular construction

    CN112286754A

  • Micro-service governance management platform inspection method and device, equipment and storage medium

    CN112561093A

  • Code execution method and device

    CN113568681A

  • System and method of fetching data from an external program

    US11093492B1