Equipment operation and maintenance management method and system based on script definition business process

Through the method of defining business processes based on scripts, the problem of high coupling between program code and business processes in the existing technology is solved, and the flexibility and accuracy of equipment operation and maintenance management is realized, and the equipment is adapted to new brands and models.

CN119398740APending Publication Date: 2025-02-07STATE GRID XINJIANG ELECTRIC POWER CO LTD CHANGJI POWER SUPPLY CO
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411380475.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the existing equipment operation and maintenance management methods, the program code and business processes are highly coupled, resulting in difficulty in code adjustment and poor adaptability of new brand models equipment.

Method used

The method of defining business processes based on scripts is adopted, and the corresponding script files are determined by obtaining device attribute information and business function information, and connected and tested with the target operation and maintenance equipment according to the process step information to realize operation and maintenance management.

Benefits of technology

The changes in business process steps can be quickly realized without modifying the program code, which improves the accuracy and adaptability of equipment operation and maintenance management and reduces the difficulty of operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119398740A_ABST
    Figure CN119398740A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment operation and maintenance management method and system based on a script definition business process, and relates to the field of equipment operation and maintenance management. Various step types and combined processes are defined for equipment of different brands and models by compiling a script file, and program codes do not need to be modified; and the change of the business process steps can be quickly realized by modifying the device script, so that the accuracy of device operation and maintenance management is improved. The method comprises the following steps: when an operation and maintenance management request is detected, acquiring equipment attribute information and at least one piece of service function information carried by the operation and maintenance management request, determining a script file corresponding to the equipment attribute information in a database, extracting process step information corresponding to each piece of service function information in the script file, and storing the extracted process step information in the database; and obtaining at least one piece of process step information, connecting with target operation and maintenance equipment corresponding to the equipment attribute information by adopting a preset connection mode, and if the connection is determined to be completed, testing the target operation and maintenance equipment according to each piece of process step information to obtain an operation and maintenance management result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of equipment operation and maintenance management, and in particular to an equipment operation and maintenance management method and system based on script-defined business processes. Background Art

[0002] With the development of IT information equipment operation and maintenance management, the collection and control of equipment operation status information often requires the use of remote (such as SSH, Telnet, etc.) or local interface (such as Console port) to log in to the device, and then complete it through the corresponding commands. However, due to the wide variety of IT information equipment types, brands, and models, the command style, configuration steps, parameter settings, and many other aspects of the equipment of different manufacturers vary greatly, and the equipment of the same manufacturer also varies due to different models. Even the same model of equipment from the same manufacturer sometimes varies due to different software versions, making equipment operation and maintenance management more difficult.

[0003] In the related art, the existing equipment command processes involved in the business module are usually sorted out to form a business process that can adapt to the command operation steps of various existing equipment, and then the business process is written in the form of program code. During the operation of the system, the command content, command parameters and other information of each device are called as parameters, thereby realizing the information collection and control of the existing equipment by the operation and maintenance management. However, the applicant recognizes that the business process is solidified in the program code. If the command operation steps of a new brand and model of equipment are different from the original business process, or the original business process changes due to functional adjustments, then the business process code needs to be re-modified and compiled, which is not only time-consuming and labor-intensive, but also has the risk of bugs caused by code modification errors. Therefore, the existing equipment operation and maintenance methods have the characteristics of high coupling between program code and business process, which will cause difficulties in code adjustment and poor adaptability to new brands and models of equipment in the future. Summary of the invention

[0004] In view of this, the present application provides a device operation and maintenance management method and system based on script-defined business processes. The main purpose is to solve the problem that the existing equipment operation and maintenance methods have the characteristics of high coupling between program code and business processes, which will cause difficulty in code adjustment and poor adaptability to new brands and models of equipment in the future.

[0005] According to the first aspect of the present application, there is provided a device operation and maintenance management method based on script-defined business processes, the method comprising:

[0006] When an operation and maintenance management request is detected, obtaining device attribute information and at least one business function information carried in the operation and maintenance management request;

[0007] Determine in a database a script file corresponding to the device attribute information, extract in the script file process step information corresponding to each of the business function information, and obtain at least one process step information;

[0008] Connecting to the target operation and maintenance device corresponding to the device attribute information using a preset connection method;

[0009] If it is determined that the connection with the target operation and maintenance device is completed, the target operation and maintenance device is tested according to each process step information to obtain an operation and maintenance management result, and the operation and maintenance management result is sent to the user who initiated the operation and maintenance management request.

[0010] Optionally, when an operation and maintenance management request is detected, before obtaining device attribute information and at least one business function information carried in the operation and maintenance management request, the method further includes:

[0011] Extracting a plurality of device attribute information to be selected and a plurality of service function information to be selected from the database, and sending the plurality of device attribute information to be selected and the plurality of service function information to be selected to a terminal held by a user;

[0012] The device attribute information and the at least one business function information selected by the user from the multiple device attribute information to be selected and the multiple business function information to be selected based on the terminal held by the user are obtained, and an operation and maintenance management request carrying the device attribute information and the at least one business function information is generated.

[0013] Optionally, before determining in the database the script file corresponding to the device attribute information, the method further includes:

[0014] Acquire device attribute information of a new device and at least one business process step uploaded by a user based on a terminal held by the user, and generate a specified script file using the device attribute information of the new device and the at least one business process step;

[0015] A specified format is obtained, the specified script file is parsed according to the specified format, and the parsed specified script file is stored in the database.

[0016] Optionally, before determining in the database the script file corresponding to the device attribute information, the method further includes:

[0017] When a script file modification request is detected, obtaining target device attribute information carried in the script file modification request;

[0018] Extracting a target script file corresponding to the target device attribute information from the database, and sending the target script file to a user who initiates the script file modification request;

[0019] The modified target script file based on the feedback of the terminal held by the user is obtained, and the modified target script file is stored in the database.

[0020] Optionally, testing the target operation and maintenance equipment according to each process step information to obtain an operation and maintenance management result includes:

[0021] For each of the process step information, extract a plurality of test instructions and a duration corresponding to each of the test instructions from the process step information, wherein the plurality of test instructions have a sequence;

[0022] Extracting a first test instruction from the multiple test instructions, and sending the first test instruction to the target operation and maintenance device;

[0023] If the return information transmitted by the target operation and maintenance device is received after the duration corresponding to the first test instruction, the next test instruction is sent to the target operation and maintenance device, and the operation is repeated until the last test instruction is sent to the target operation and maintenance device, thereby obtaining the test information corresponding to the process step information;

[0024] Each of the process step information is tested in turn to obtain the test information corresponding to each of the process step information, and the test information corresponding to each of the process step information is tested to obtain the operation and maintenance management result.

[0025] According to a second aspect of the present application, there is provided an equipment operation and maintenance management system based on script-defined business processes, the system comprising a process master control module, a communication interface, an operation and maintenance test module, and an information interaction module;

[0026] The process main control module is used to, when an operation and maintenance management request is detected, obtain the device attribute information and at least one business function information carried by the operation and maintenance management request, determine the script file corresponding to the device attribute information in the database, extract the process step information corresponding to each business function information in the script file, obtain at least one process step information, send the at least one process step information to the operation and maintenance test module, and receive the operation and maintenance management result transmitted by the operation and maintenance test module, and send the operation and maintenance management result to the information interaction module;

[0027] The communication interface is used to connect to the target operation and maintenance device corresponding to the device attribute information in a preset connection mode;

[0028] The operation and maintenance test module is used to test the target operation and maintenance equipment according to each process step information if it is determined that the connection with the target operation and maintenance equipment is completed, obtain the operation and maintenance management result, and send the operation and maintenance management result to the process main control module;

[0029] The information interaction module is used to send the operation and maintenance management result to the user who initiated the operation and maintenance management request.

[0030] Optionally, the information interaction module is used to extract multiple pieces of device attribute information to be selected and multiple pieces of service function information to be selected from the database, and send the multiple pieces of device attribute information to be selected and the multiple pieces of service function information to be selected to a terminal held by a user;

[0031] Obtain the device attribute information and the at least one business function information selected by the user from the multiple device attribute information to be selected and the multiple business function information to be selected based on the terminal held by the user, generate an operation and maintenance management request carrying the device attribute information and the at least one business function information, and send the operation and maintenance management request to the process main control module.

[0032] Optionally, the system further comprises a script parsing module;

[0033] The script parsing module is used to obtain device attribute information and at least one business process step of a new device uploaded by a user based on a terminal held by the user, generate a specified script file using the device attribute information of the new device and the at least one business process step, obtain a specified format, parse the specified script file according to the specified format, and store the parsed specified script file in the database;

[0034] The script parsing module is also used to, when a script file modification request is detected, obtain target device attribute information carried in the script file modification request, extract the target script file corresponding to the target device attribute information from the database, send the target script file to the user who initiated the script file modification request, obtain the modified target script file based on feedback from the terminal held by the user, and store the modified target script file in the database.

[0035] Optionally, the operation and maintenance test module includes a judgment execution unit, a command sending unit, and an information receiving unit;

[0036] The judgment execution unit is used for extracting a plurality of test instructions and a duration corresponding to each of the test instructions from the process step information for each of the process step information, and transmitting the plurality of test instructions and the duration corresponding to each of the test instructions to the command sending unit, wherein the plurality of test instructions have a sequence;

[0037] The command sending unit is used to extract the first test instruction from the multiple test instructions, send the first test instruction to the target operation and maintenance device, and when receiving the command issuing instruction transmitted by the judgment execution unit after the duration corresponding to the first test instruction, send the next test instruction to the target operation and maintenance device, and repeat the operation until the last test instruction is sent to the target operation and maintenance device;

[0038] The information receiving unit is used to receive the return information transmitted by the target operation and maintenance equipment, and transmit the return information to the execution judgment unit;

[0039] The judgment execution unit is used to generate a command issuing instruction using the return information when receiving the return information transmitted by the execution judgment unit, transmit the command issuing instruction to the command sending unit, and receive the return information transmitted by the information receiving unit after the last test instruction is sent to the target operation and maintenance device, and use the return information as the test information corresponding to the process step information;

[0040] The judgment execution unit is also used to test each of the process step information in turn to obtain the test information corresponding to each of the process step information, and to detect the test information corresponding to each of the process step information to obtain the operation and maintenance management result.

[0041] Optionally, the communication interface is used to obtain multiple connection modes and send the multiple connection modes to the terminal held by the user;

[0042] The preset connection mode selected by the user from the multiple connection modes based on the terminal held by the user is received, and the preset connection mode is used to connect to the target operation and maintenance device corresponding to the device attribute information, where the preset connection mode is one of a remote mode and a local mode.

[0043] By means of the above technical scheme, the present application provides a method and system for equipment operation and maintenance management based on script-defined business processes. When an operation and maintenance management request is detected, the present application obtains the equipment attribute information and at least one business function information carried by the operation and maintenance management request, determines the script file corresponding to the equipment attribute information in the database, extracts the process step information corresponding to each business function information in the script file, obtains at least one process step information, connects to the target operation and maintenance equipment corresponding to the equipment attribute information using a preset connection method, and after determining that the connection with the target operation and maintenance equipment is completed, tests the target operation and maintenance equipment according to each process step information to obtain the operation and maintenance management result, and sends the operation and maintenance management result to the user who initiated the operation and maintenance management request. By compiling script files to define various step types and combined processes for equipment of different brands and models, the current problems in equipment operation and maintenance management can be solved. Without modifying the program code, changes in business process steps can be quickly realized through equipment script modification, and it also has strong expansion adaptability for new equipment brands and models in the future, thereby improving the accuracy of equipment operation and maintenance management.

[0044] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0046] Figure 1 A schematic diagram of a method flow of equipment operation and maintenance management based on script-defined business processes provided in an embodiment of the present application is shown;

[0047] Figure 2A A schematic diagram of another method flow for equipment operation and maintenance management based on script-defined business processes provided in an embodiment of the present application is shown;

[0048] Figure 2B A schematic diagram of a step type provided in an embodiment of the present application is shown;

[0049] Figure 2C Another schematic diagram of step type provided in an embodiment of the present application is shown;

[0050] Figure 2D A schematic diagram of a process flow of a script-driven equipment operation and maintenance management method provided in an embodiment of the present application is shown;

[0051] Figure 3 A schematic diagram of the structure of an equipment operation and maintenance management system based on script-defined business processes provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0052] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0053] The present application embodiment provides a device operation and maintenance management method based on script-defined business processes, such as Figure 1 As shown, the method includes:

[0054] 101. When an operation and maintenance management request is detected, obtain device attribute information and at least one business function information carried in the operation and maintenance management request.

[0055] In order to solve the problem that the existing equipment operation and maintenance methods have the characteristics of high coupling between program code and business process, which will make code adjustment difficult and have poor adaptability to new brand and model equipment in the future, the present application proposes an equipment operation and maintenance management method based on script definition of business process. By constructing a unified script file, the process steps of the equipment operation and maintenance management function are written into the script file. When performing operation and maintenance tests on the equipment, the process steps of the functions to be tested by the operation and maintenance personnel can be directly extracted from the script file for operation and maintenance testing, thereby improving the efficiency and accuracy of equipment operation and maintenance. Moreover, when the original business process changes due to functional adjustments, there is no need to modify the program code. The changes in the business process steps can be quickly realized by modifying the equipment script. The executor of this application is a device operation and maintenance management system based on script-defined business processes. The device operation and maintenance management system relies on the computing power of the server to provide services to users. The server can be an independent server or a server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as servers for basic cloud computing such as big data and artificial intelligence platforms, so that the device operation and maintenance management system can provide device operation and maintenance management functions, facilitate operation and maintenance personnel to test operation and maintenance equipment, and improve the accuracy of equipment operation and maintenance.

[0056] In the embodiment of the present application, the operation and maintenance personnel interact with the equipment operation and maintenance management system to select the equipment attributes (such as type, brand, model, software version, etc.) and the business functions (such as login, view, configure, save, etc.) to be operated and maintained, and the equipment operation and maintenance management system generates an operation and maintenance management request using the equipment attributes and business functions selected by the operation and maintenance personnel. Therefore, when an operation and maintenance management request is detected, the equipment operation and maintenance management system obtains the equipment attribute information and at least one business function information carried in the operation and maintenance management request, and uses the equipment attribute information and at least one business function information to complete the operation and maintenance test.

[0057] 102. Determine a script file corresponding to the device attribute information in a database, extract process step information corresponding to each business function information in the script file, and obtain at least one process step information.

[0058] In an embodiment of the present application, the equipment operation and maintenance management system determines the script file corresponding to the equipment attribute information in the database, extracts the process step information corresponding to each business function information in the script file, and obtains at least one process step information. Among them, the script file includes equipment information, such as the type of equipment, manufacturer brand, model, software version, etc., and also includes the steps for commanding the equipment, such as the step sequence number, step type, command or action to be sent, parameters to be brought into the command to be sent, how long to wait after sending the current step command or action to start executing the next step, etc. By combining several functional processes to form an operation script file for the equipment, equipment operation and maintenance management functions such as login, viewing, configuration, saving, etc. can be completed, so that the equipment operation and maintenance management system can quickly implement equipment operation and maintenance testing.

[0059] 103. Use a preset connection method to connect to the target operation and maintenance device corresponding to the device attribute information.

[0060] In the embodiment of the present application, the equipment operation and maintenance management system uses a preset connection method to connect to the target operation and maintenance equipment corresponding to the equipment attribute information, wherein the connection method can be a remote method such as through SSH (Secure Shell, secure shell protocol), Telnet (a remote login client program based on TCP / IP protocol), etc., or a local method such as through the equipment Console (for network equipment configuration and management) port. It should be noted that the operation and maintenance personnel can select the connection method according to the specific operation and maintenance equipment to achieve connection with the operation and maintenance equipment.

[0061] 104. If it is determined that the connection with the target operation and maintenance equipment is completed, the target operation and maintenance equipment is tested according to each process step information to obtain the operation and maintenance management result, and the operation and maintenance management result is sent to the user who initiated the operation and maintenance management request.

[0062] In an embodiment of the present application, if the equipment operation and maintenance management system determines that the connection with the target operation and maintenance equipment is completed, the target operation and maintenance equipment is tested according to each process step information, such as sending the process step command action and judging and executing the process step according to the key information returned by the target operation and maintenance equipment, and obtaining the operation and maintenance management result after all the process steps are executed. Then, the equipment operation and maintenance management system sends the operation and maintenance management result to the user who initiated the operation and maintenance management request. The operation and maintenance management result can be completion, information prompt, error prompt, error exit, etc. The equipment operation and maintenance management system defines the business process based on the script file, and then realizes the equipment operation and maintenance function, so that the method has the characteristics of low coupling between the program code and the business process, no correlation between the operation and maintenance steps of different brands and models of equipment, and strong adaptability to the brands and models of existing and future equipment, which can improve the efficiency and accuracy of equipment operation and maintenance management.

[0063] The method provided in the embodiment of the present application, when an operation and maintenance management request is detected, obtains the device attribute information and at least one business function information carried by the operation and maintenance management request, determines the script file corresponding to the device attribute information in the database, extracts the process step information corresponding to each business function information in the script file, obtains at least one process step information, uses a preset connection method to connect with the target operation and maintenance device corresponding to the device attribute information, and after determining that the connection with the target operation and maintenance device is completed, tests the target operation and maintenance device according to each process step information to obtain the operation and maintenance management result, and sends the operation and maintenance management result to the user who initiated the operation and maintenance management request. By compiling script files to define various step types and combined processes for devices of different brands and models, the current problems in equipment operation and maintenance management can be solved. There is no need to modify the program code. The changes in business process steps can be quickly realized through the modification of the equipment script, and it also has strong expansion adaptability for new equipment brands and models in the future, thereby improving the accuracy of equipment operation and maintenance management.

[0064] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another device operation and maintenance management method based on script-defined business processes, such as Figure 2A As shown, the method includes:

[0065] 201. Obtain device attribute information and at least one business process step of a new device uploaded by a user based on a terminal held by the user, use the device attribute information of the new device and at least one business process step to generate a specified script file, parse the specified script file according to a specified format, and store the parsed specified script file in a database.

[0066] In an embodiment of the present application, the equipment operation and maintenance management system obtains the device attribute information and at least one business process step of the new device uploaded by the user based on the terminal held by the user, and uses the device attribute information and at least one business process step of the new device to generate a specified script file. Next, the equipment operation and maintenance management system parses the specified script file in a specified format, stores the parsed specified script file in a database, and extracts the device information and related business process step information in the script file by importing and parsing the device script file and stores it in the database, so that the subsequent equipment operation and maintenance management system can quickly extract the process step information for operation and maintenance testing. It should be noted that the equipment operation and maintenance management system compiles the equipment script file based on the equipment brand and model information and the operation and maintenance management business process steps. The compilation can be done manually or automatically using supporting tool software, and this application does not impose specific restrictions.

[0067] The equipment operation and maintenance management system completes the definition of equipment brand model information and operation and maintenance management business process steps by compiling script files. Therefore, considering the syntax structure, readability, flexibility, and parsing performance of the script files, the currently widely used data exchange formats such as JSON (JavaScript Object Notation) or XML (Extensible Markup Language) can be used. The following uses the XML format as an example to illustrate the script file:

[0068]

[0069]

[0070]

[0071] in, <device-info> Indicates the beginning of device attribute information.< / device-info> Indicates the end of device attribute information;

[0072] <device_type>< / device_type> Used to define the type of this device, such as switch, router, server, firewall, etc. This item cannot be empty;

[0073] <device_brand>< / device_brand> Used to define the manufacturer brand of this device, such as Huawei, H3C, Cisco, etc. This item cannot be empty;

[0074] <device_model>< / device_model> Used to define the model of this device. This item cannot be empty;

[0075] <soft_version>< / soft_version> Used to define the software version of this device. This item cannot be empty;

[0076] Based on the device attribute information, the device operation and maintenance management system can define script files for devices with different brand signals to perform operation and maintenance tests on these devices, without spending a lot of time writing test code, saving a lot of workload.

[0077] <process-name> Indicates the start of the functional process,< / process-name> Indicates the end of the functional process. The process-name should be named according to the business function completed by this process;

[0078] <step> Indicates the start of a step segment.< / step> Indicates the end of a step segment;

[0079] <step_order>< / step_order> Used to define the sequence number of this step. The sequence number of steps in a process starts from 1. This item cannot be empty;

[0080] <step_type>< / step_type> Used to define the step type of this step. This item cannot be empty;

[0081] <match_content>< / match_content> It is used to define the key information to be matched in the return information of the target operation and maintenance device. If this item is empty, it means that there is no need to match the return information, and the command or action defined in the step_content attribute is sent directly;

[0082] <step_content>< / step_content> It is used to define the command or action to be sent after matching the key information. This item cannot be empty.

[0083] <step_param>< / step_param> It is used to define the parameters to be included in the command to be sent. This item can be empty.

[0084] <wait_time>< / wait_time> It is used to define how long to wait after sending the current step command or action before executing the next step. The waiting time should be in milliseconds. This item cannot be empty.

[0085] It should be noted that, considering the performance differences of equipment of different brands and models, the time it takes for the target operation and maintenance equipment to return all the information after receiving a command varies. Even the same equipment may return information at different speeds after receiving different commands. Therefore, a waiting time attribute is added to the step attribute definition to ensure the accuracy of the operation and maintenance test.

[0086] Among them, Figure 2B , 2CAs shown in the figure, the steps for commanding devices during the operation and maintenance management process can be summarized into the following basic step types:

[0087] Type 1: Match key information based on the content returned by the device. If the match is successful, send the corresponding fixed command and then proceed to the next step;

[0088] Type 2: Match key information based on the content returned by the device. If the match is successful, send the corresponding fixed command, and then loop through this step until the key information fails to match, then exit the loop and proceed to the next step;

[0089] Type 3: Match key information based on the content returned by the device. If the match is successful, send the corresponding command with parameters and then proceed to the next step;

[0090] Type 4: Match key information based on the content returned by the device. If the match is successful, send the corresponding command with parameters, and then loop through this step until the key information fails to match, then exit the loop and proceed to the next step;

[0091] Type 5: Match key information based on the content returned by the device. If the match is successful, a prompt message is generated and the next step is performed.

[0092] Type 6: Match key information based on the content returned by the device. If the match is successful, a prompt message is generated and the process ends without executing the subsequent steps of the process, and then the next process is started; if the match is unsuccessful, the next step of the process is continued;

[0093] Type 7: Match key information based on the content returned by the device. If the match is successful, an error message will be generated and the process will be exited without executing subsequent processes. If the match is unsuccessful, the next step of the process will be executed.

[0094] Type 8: Perform matching judgment according to the set conditions. If it is true, execute the sub-steps contained in this step, and continue to the next step after the sub-steps are completed; if it is false, skip this step and continue to the next step;

[0095] Type 9: Some common operation steps can be defined as common processes, and the specified common processes can be called in other processes.

[0096] It should be noted that for<step_content>< / step_content> Attribute: When the step type is type 5, 6, or 7, it is the prompt message or error message to be generated; when the step type is type 8, it is set to a true judgment flag (true); when the step type is type 9, it is the name of the process to be called.

[0097] A process is formed by the arrangement and combination of the above-mentioned step types. Different processes correspond to different business functions in the operation and maintenance management system. The various business function command interaction processes between the operation and maintenance management system and the target operation and maintenance equipment can be realized through the association relationship between steps, processes and business functions. It also has the characteristics of low coupling between program code and business processes, no correlation between operation and maintenance steps of equipment of different brands and models, and strong adaptability to brands and models of existing and future equipment, which can improve the accuracy of equipment operation and maintenance management.

[0098] Optionally, when a script file modification request is detected, the equipment operation and maintenance management system obtains the target device attribute information carried by the script file modification request. Then, the equipment operation and maintenance management system extracts the target script file corresponding to the target device attribute information in the database, and sends the target script file to the user who initiated the script file modification request. Finally, the equipment operation and maintenance management system obtains the modified target script file based on the feedback from the user's terminal, and stores the modified target script file in the database. In this way, changes in business process steps can be quickly implemented through equipment script modification without modifying the program code, and it also has strong extensibility and adaptability to new equipment brands and models in the future, thereby improving the accuracy of equipment operation and maintenance management.

[0099] 202. Extract multiple device attribute information to be selected and multiple business function information to be selected from the database, send the multiple device attribute information to be selected and the multiple business function information to be selected to the terminal held by the user, obtain the device attribute information and at least one business function information selected by the user from the multiple device attribute information to be selected and the multiple business function information to be selected based on the terminal held by the user, and generate an operation and maintenance management request carrying the device attribute information and the at least one business function information.

[0100] In an embodiment of the present application, the operation and maintenance personnel interact with the operation and maintenance management system to select the device attributes (such as type, brand, model, software version, etc.) and the business functions (such as login, view, configuration, save, etc.) to be operated and managed this time. Specifically, the device operation and maintenance management system extracts multiple device attribute information to be selected and multiple business function information to be selected from the database, and sends the multiple device attribute information to be selected and the multiple business function information to be selected to the terminal held by the user. Then, the device operation and maintenance management system obtains the device attribute information and at least one business function information selected by the user based on the terminal held by the user from the multiple device attribute information to be selected and the multiple business function information to be selected, and generates an operation and maintenance management request carrying the device attribute information and at least one business function information.

[0101] 203. When an operation and maintenance management request is detected, obtain device attribute information and at least one business function information carried in the operation and maintenance management request.

[0102] In an embodiment of the present application, when an operation and maintenance management request is detected, the device operation and maintenance management system obtains the device attribute information and at least one business function information carried in the operation and maintenance management request, and uses the device attribute information and at least one business function information to complete the operation and maintenance test.

[0103] 204. Determine a script file corresponding to the device attribute information in a database, extract process step information corresponding to each business function information in the script file, and obtain at least one process step information.

[0104] In an embodiment of the present application, the equipment operation and maintenance management system determines the script file corresponding to the equipment attribute information in the database, extracts the process step information corresponding to each business function information in the script file, and obtains at least one process step information. The equipment operation and maintenance management system matches the equipment attribute information selected by the operation and maintenance personnel with the equipment attribute information of the script file in the database to determine the script file corresponding to the equipment attribute information. The script file includes the process steps of multiple business functions, and the equipment operation and maintenance management system extracts the process step information corresponding to the business function selected by the operation and maintenance personnel in the script file, which can facilitate unified management and improve the efficiency of operation and maintenance management.

[0105] 205. Connecting to the target operation and maintenance device corresponding to the device attribute information using a preset connection method.

[0106] In an embodiment of the present application, the equipment operation and maintenance management system uses a preset connection method to connect to the target operation and maintenance device corresponding to the device attribute information, wherein the connection method can be a remote method (such as through SSH, Telnet, etc.) or a local method (such as the device Console port), so that the equipment operation and maintenance management system can be connected to the target operation and maintenance device.

[0107] 206. If it is determined that the connection with the target operation and maintenance device is completed, the target operation and maintenance device is tested according to each process step information to obtain the operation and maintenance management result, and the operation and maintenance management result is sent to the user who initiated the operation and maintenance management request.

[0108] In an embodiment of the present application, the equipment operation and maintenance management system interacts and communicates with the equipment according to the extracted process step information, such as sending the process step command action, and judging and executing the process step according to the key information returned by the equipment. Specifically, for each process step information, the equipment operation and maintenance management system extracts multiple test instructions and the duration corresponding to each test instruction in the process step information, wherein the multiple test instructions have a sequence. Then, the equipment operation and maintenance management system extracts the first test instruction from the multiple test instructions and sends the first test instruction to the target operation and maintenance equipment; if the return information transmitted by the target operation and maintenance equipment is received after the duration corresponding to the first test instruction, the next test instruction is sent to the target operation and maintenance equipment, and the operation is repeated until the last test instruction is sent to the target operation and maintenance equipment, and the test information corresponding to the process step information is obtained. In this way, the equipment operation and maintenance management system tests each process step information in turn, obtains the test information corresponding to each process step information, detects the test information corresponding to each process step information, and obtains the operation and maintenance management results, such as completion, information prompt, error prompt, error exit, etc.

[0109] Based on the above process, a flowchart of a script-driven device operation and maintenance management method proposed in an embodiment of the present application is as follows:

[0110] like Figure 2D As shown, firstly, the equipment script file is compiled according to the equipment brand signal information and business process, the equipment script file is imported and parsed, and the relevant equipment information and process step information are extracted and stored in the database. Then, the operation and maintenance personnel interactively select the corresponding brand model equipment and business functions. Subsequently, the equipment operation and maintenance management system extracts the process step information of the corresponding equipment from the database and connects the equipment. Then, the equipment operation and maintenance management system interacts and communicates with the equipment according to the defined process step information. After the process step is executed, the result information is interactively output to the operation and maintenance personnel.

[0111] The method provided in the embodiment of the present application, when an operation and maintenance management request is detected, obtains the device attribute information and at least one business function information carried by the operation and maintenance management request, determines the script file corresponding to the device attribute information in the database, extracts the process step information corresponding to each business function information in the script file, obtains at least one process step information, uses a preset connection method to connect with the target operation and maintenance device corresponding to the device attribute information, and after determining that the connection with the target operation and maintenance device is completed, tests the target operation and maintenance device according to each process step information to obtain the operation and maintenance management result, and sends the operation and maintenance management result to the user who initiated the operation and maintenance management request. By compiling script files to define various step types and combined processes for devices of different brands and models, the current problems in equipment operation and maintenance management can be solved. There is no need to modify the program code. The changes in business process steps can be quickly realized through the modification of the equipment script, and it also has strong expansion adaptability for new equipment brands and models in the future, thereby improving the accuracy of equipment operation and maintenance management.

[0112] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a device operation and maintenance management system based on script-defined business processes, such as Figure 3 As shown, it includes process main control module, communication interface, operation and maintenance test module, and information interaction module;

[0113] The process master control module is used to obtain the device attribute information and at least one business function information carried by the operation and maintenance management request when an operation and maintenance management request is detected, determine the script file corresponding to the device attribute information in the database, extract the process step information corresponding to each business function information in the script file, obtain at least one process step information, send the at least one process step information to the operation and maintenance test module, and receive the operation and maintenance management results transmitted by the operation and maintenance test module, and send the operation and maintenance management results to the information interaction module. In this way, the process master control module can complete the core control functions such as system process scheduling, data extraction, input and output interaction, etc.

[0114] The communication interface is used to connect to the target operation and maintenance equipment corresponding to the equipment attribute information using a preset connection method. The communication interface can complete the connection and communication transmission function between the operation and maintenance management system and the operation and maintenance equipment. The interface connection method can be different types of interfaces such as Ethernet or serial port.

[0115] The operation and maintenance test module is used to test the target operation and maintenance equipment according to each process step information if it is determined that the connection with the target operation and maintenance equipment is completed, obtain the operation and maintenance management results, and send the operation and maintenance management results to the process main control module.

[0116] The information interaction module is used to send the operation and maintenance management results to the user who initiated the operation and maintenance management request.

[0117] Specifically, the information interaction module is also used to extract multiple device attribute information to be selected and multiple business function information to be selected from the database, and send the multiple device attribute information to be selected and multiple business function information to be selected to the terminal held by the user; obtain the device attribute information and at least one business function information selected by the user based on the terminal held by the user from the multiple device attribute information to be selected and multiple business function information to be selected, and generate an operation and maintenance management request carrying the device attribute information and at least one business function information, and send the operation and maintenance management request to the process main control module. In this way, the information interaction module can complete the functions of information parameter input and result information output between the equipment operation and maintenance management system and the operation and maintenance personnel.

[0118] Specifically, the system also includes a script parsing module.

[0119] The script parsing module is used to obtain the device attribute information and at least one business process step of the new device uploaded by the user based on the terminal held by the user, use the device attribute information of the new device and at least one business process step to generate a specified script file, obtain the specified format, parse the specified script file according to the specified format, and store the parsed specified script file in the database.

[0120] The script parsing module is also used to obtain the target device attribute information carried by the script file modification request when a script file modification request is detected, extract the target script file corresponding to the target device attribute information in the database, send the target script file to the user who initiated the script file modification request, obtain the modified target script file based on the feedback of the user's terminal, and store the modified target script file in the database. In this way, the script parsing module can complete the functions of file reading, format verification, content parsing, information storage, etc. of script files in a specified format (such as XML).

[0121] Specifically, the operation and maintenance test module includes a judgment execution unit, a command sending unit, and an information receiving unit.

[0122] The judgment execution unit is used to extract multiple test instructions and the duration corresponding to each test instruction from the process step information for each process step information, and transmit the multiple test instructions and the duration corresponding to each test instruction to the command sending unit, and the multiple test instructions have a sequence.

[0123] A command sending unit is used to extract the first test instruction from multiple test instructions, send the first test instruction to the target operation and maintenance equipment, and when a command issuing instruction transmitted by the judgment execution unit is received after the duration corresponding to the first test instruction, send the next test instruction to the target operation and maintenance equipment, and repeat the operation until the last test instruction is sent to the target operation and maintenance equipment.

[0124] The information receiving unit is used to receive the return information transmitted by the target operation and maintenance equipment, and transmit the return information to the execution judgment unit.

[0125] The judgment execution unit is used to generate a command issuing instruction using the return information when receiving the return information transmitted by the execution judgment unit, transmit the command issuing instruction to the command sending unit, and receive the return information transmitted by the information receiving unit after the last test instruction is sent to the target operation and maintenance equipment, and use the return information as the test information corresponding to the process step information.

[0126] The judgment execution unit is also used to test each process step information in turn to obtain the test information corresponding to each process step information, detect the test information corresponding to each process step information, and obtain the operation and maintenance management result.

[0127] Based on the above process, it is judged that the execution unit can complete the functions of step sequence, information comparison, result judgment, execution scheduling, etc. in several step information; the command sending unit can complete the functions of sending the command or action required for this step and time scheduling between the next step; the information receiving unit can complete the functions of receiving and verifying the information returned by the equipment in this step, so as to realize testing of the target operation and maintenance equipment.

[0128] Specifically, the communication interface is used to obtain multiple connection methods and send the multiple connection methods to the terminal held by the user; receive the preset connection method selected by the user based on the terminal held by the user from the multiple connection methods, and use the preset connection method to connect to the target operation and maintenance device corresponding to the device attribute information, wherein the preset connection method is one of a remote method and a local method.

[0129] Optionally, the system also includes a database module for completing functions such as storage, addition, deletion, modification and query of information data.

[0130] The following is a specific implementation description using the device operation and maintenance management system to log in and save the configuration of the H3C S3100V2 switch:

[0131] First, compile the script file according to the H3C S3100V2 switch device information and the business process steps for logging in and saving configurations. The content is as follows:

[0132]

[0133]

[0134]

[0135]

[0136] Next, the script parsing module imports and parses the script file of the H3C S3100V2 switch, and stores the parsed information in the database module, wherein the database module can use common mainstream databases such as Oracle, SQLServer, MySQL, PostgreSQL, etc.

[0137] Subsequently, the operation and maintenance personnel selected the H3C S3100V2 switch and the login and configuration saving service functions through the system's interactive interface, and entered the account and password for logging into the switch.

[0138] Then, the process master control module extracts the login (login-check) and configuration saving (device-config-save) process step information of the H3C S3100V2 switch device from the database module according to the information interactively input by the operation and maintenance personnel.

[0139] The equipment operation and maintenance management system connects to the H3C S3100V2 switch equipment through the communication interface.

[0140] After the device is connected, the judgment execution unit first executes the login process, the steps are as follows:

[0141] Step 1: The command sending unit sends a carriage return action to the device and proceeds to the next step after 200 milliseconds;

[0142] Step 2: If the information returned by the information receiving unit contains the keyword "Username:", the command sending unit sends the login account parameter (username) and proceeds to the next step after 200 milliseconds;

[0143] Step 3: If the information returned by the information receiving unit contains the keyword "Password:", the command sending unit sends the login password parameter (password) and proceeds to the next step after 200 milliseconds;

[0144] Step 4: If the information returned by the information receiving unit contains the keyword "Wrong password!", the process is terminated, and the information exchange module outputs the message "Device login failed!" to the operation and maintenance personnel; if it does not contain the keyword, the next step is performed after 200 milliseconds;

[0145] Step 5: If the information returned by the information receiving unit contains the keyword ">" (it should be noted that ">;" is the escape representation of the ">" symbol in XML), it means that the device has been logged in, and the information interaction module outputs the message "Device login successful!" to the operation and maintenance personnel; the device login process is completed.

[0146] Then, the judgment execution unit executes the configuration saving process, the steps are as follows:

[0147] Step 1: The command sending unit sends the command "save" to the device and proceeds to the next step after 200 milliseconds;

[0148] Step 2: If the information returned by the information receiving unit contains the keyword "Are you sure? [Y / N]:", the command sending unit sends the command "Y" and proceeds to the next step after 8000 milliseconds;

[0149] Step 3: If the information returned by the information receiving unit contains the keyword "saved to device successfully", it means that the configuration has been saved. The information exchange module outputs the message "Device configuration saved successfully!" to the operation and maintenance personnel, and the next step is performed after 200 milliseconds.

[0150] Step 4: If the information returned by the information receiving unit contains the keyword “>”, the command sending unit sends the command “quit” to log out, thus completing the configuration saving process.

[0151] By building a unified script file, the process steps of the equipment operation and maintenance management function are written into the script file. When performing operation and maintenance tests on the equipment, the process steps of the functions that the operation and maintenance personnel want to test can be directly extracted from the script file for operation and maintenance testing, thereby improving the efficiency and accuracy of equipment operation and maintenance. In addition, when the original business process changes due to functional adjustments, there is no need to modify the program code. Changes in business process steps can be quickly implemented by modifying the equipment script.

[0152] The system provided in the embodiment of the present application, when an operation and maintenance management request is detected, obtains the device attribute information and at least one business function information carried by the operation and maintenance management request, determines the script file corresponding to the device attribute information in the database, extracts the process step information corresponding to each business function information in the script file, obtains at least one process step information, uses a preset connection method to connect with the target operation and maintenance device corresponding to the device attribute information, and after determining that the connection with the target operation and maintenance device is completed, tests the target operation and maintenance device according to each process step information to obtain the operation and maintenance management result, and sends the operation and maintenance management result to the user who initiated the operation and maintenance management request. By compiling script files to define various step types and combined processes for devices of different brands and models, the current problems in equipment operation and maintenance management can be solved. There is no need to modify the program code. The changes in business process steps can be quickly realized through device script modification, and it also has strong expansion adaptability for new equipment brands and models in the future, thereby improving the accuracy of equipment operation and maintenance management.

[0153] It should be noted that for other corresponding descriptions of the functional units involved in the device operation and maintenance management system based on script-defined business processes provided in the embodiment of the present application, please refer to Figure 1 and FIG. 2A to FIG. 2D The corresponding description in will not be repeated here.

[0154] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

[0157] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.

[0158] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0159] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.

[0160] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.

Claims

1. A device operation and maintenance management method based on script-defined business processes, characterized in that: include: When an operation and maintenance management request is detected, obtaining device attribute information and at least one business function information carried in the operation and maintenance management request; Determine in a database a script file corresponding to the device attribute information, extract in the script file process step information corresponding to each of the business function information, and obtain at least one process step information; Connecting to the target operation and maintenance device corresponding to the device attribute information using a preset connection method; If it is determined that the connection with the target operation and maintenance device is completed, the target operation and maintenance device is tested according to each process step information to obtain an operation and maintenance management result, and the operation and maintenance management result is sent to the user who initiated the operation and maintenance management request.

2. The method according to claim 1, characterized in that When the operation and maintenance management request is detected, before obtaining the device attribute information and at least one business function information carried in the operation and maintenance management request, the method further includes: Extracting a plurality of device attribute information to be selected and a plurality of service function information to be selected from the database, and sending the plurality of device attribute information to be selected and the plurality of service function information to be selected to a terminal held by a user; The device attribute information and the at least one business function information selected by the user from the multiple device attribute information to be selected and the multiple business function information to be selected based on the terminal held by the user are obtained, and an operation and maintenance management request carrying the device attribute information and the at least one business function information is generated.

3. The method according to claim 1, characterized in that Before determining the script file corresponding to the device attribute information in the database, the method further includes: Acquire device attribute information of a new device and at least one business process step uploaded by a user based on a terminal held by the user, and generate a specified script file using the device attribute information of the new device and the at least one business process step; A specified format is obtained, the specified script file is parsed according to the specified format, and the parsed specified script file is stored in the database.

4. The method according to claim 1, characterized in that Before determining the script file corresponding to the device attribute information in the database, the method further includes: When a script file modification request is detected, obtaining target device attribute information carried in the script file modification request; Extracting a target script file corresponding to the target device attribute information from the database, and sending the target script file to a user who initiates the script file modification request; The modified target script file based on the feedback of the terminal held by the user is obtained, and the modified target script file is stored in the database.

5. The method according to claim 1, characterized in that The target operation and maintenance equipment is tested according to each process step information to obtain the operation and maintenance management result, including: For each of the process step information, extract a plurality of test instructions and a duration corresponding to each of the test instructions from the process step information, wherein the plurality of test instructions have a sequence; Extracting a first test instruction from the multiple test instructions, and sending the first test instruction to the target operation and maintenance device; If the return information transmitted by the target operation and maintenance device is received after the duration corresponding to the first test instruction, the next test instruction is sent to the target operation and maintenance device, and the operation is repeated until the last test instruction is sent to the target operation and maintenance device, thereby obtaining the test information corresponding to the process step information; Each of the process step information is tested in turn to obtain the test information corresponding to each of the process step information, and the test information corresponding to each of the process step information is tested to obtain the operation and maintenance management result.

6. A device operation and maintenance management system based on script-defined business processes, characterized in that: Including process master control module, communication interface, operation and maintenance test module, and information interaction module; The process main control module is used to, when an operation and maintenance management request is detected, obtain the device attribute information and at least one business function information carried by the operation and maintenance management request, determine the script file corresponding to the device attribute information in the database, extract the process step information corresponding to each business function information in the script file, obtain at least one process step information, send the at least one process step information to the operation and maintenance test module, and receive the operation and maintenance management result transmitted by the operation and maintenance test module, and send the operation and maintenance management result to the information interaction module; The communication interface is used to connect to the target operation and maintenance device corresponding to the device attribute information in a preset connection mode; The operation and maintenance test module is used to test the target operation and maintenance equipment according to each process step information if it is determined that the connection with the target operation and maintenance equipment is completed, obtain the operation and maintenance management result, and send the operation and maintenance management result to the process main control module; The information interaction module is used to send the operation and maintenance management result to the user who initiated the operation and maintenance management request.

7. The system according to claim 6, characterized in that The information interaction module is used to extract multiple pieces of device attribute information to be selected and multiple pieces of service function information to be selected from the database, and send the multiple pieces of device attribute information to be selected and the multiple pieces of service function information to be selected to the terminal held by the user; Obtain the device attribute information and the at least one business function information selected by the user from the multiple device attribute information to be selected and the multiple business function information to be selected based on the terminal held by the user, generate an operation and maintenance management request carrying the device attribute information and the at least one business function information, and send the operation and maintenance management request to the process main control module.

8. The system according to claim 6, characterized in that The system also includes a script parsing module; The script parsing module is used to obtain device attribute information and at least one business process step of a new device uploaded by a user based on a terminal held by the user, generate a specified script file using the device attribute information of the new device and the at least one business process step, obtain a specified format, parse the specified script file according to the specified format, and store the parsed specified script file in the database; The script parsing module is also used to, when a script file modification request is detected, obtain target device attribute information carried in the script file modification request, extract the target script file corresponding to the target device attribute information from the database, send the target script file to the user who initiated the script file modification request, obtain the modified target script file based on feedback from the terminal held by the user, and store the modified target script file in the database.

9. The system according to claim 6, characterized in that The operation and maintenance test module includes a judgment execution unit, a command sending unit, and an information receiving unit; The judgment execution unit is used for extracting a plurality of test instructions and a duration corresponding to each of the test instructions from the process step information for each of the process step information, and transmitting the plurality of test instructions and the duration corresponding to each of the test instructions to the command sending unit, wherein the plurality of test instructions have a sequence; The command sending unit is used to extract the first test instruction from the multiple test instructions, send the first test instruction to the target operation and maintenance device, and when receiving the command issuing instruction transmitted by the judgment execution unit after the duration corresponding to the first test instruction, send the next test instruction to the target operation and maintenance device, and repeat the operation until the last test instruction is sent to the target operation and maintenance device; The information receiving unit is used to receive the return information transmitted by the target operation and maintenance equipment, and transmit the return information to the execution judgment unit; The judgment execution unit is used to generate a command issuing instruction using the return information when receiving the return information transmitted by the execution judgment unit, transmit the command issuing instruction to the command sending unit, and receive the return information transmitted by the information receiving unit after the last test instruction is sent to the target operation and maintenance device, and use the return information as the test information corresponding to the process step information; The judgment execution unit is also used to test each of the process step information in turn to obtain the test information corresponding to each of the process step information, and to detect the test information corresponding to each of the process step information to obtain the operation and maintenance management result.

10. The system according to claim 6, characterized in that The communication interface is used to obtain multiple connection methods and send the multiple connection methods to the terminal held by the user; The preset connection mode selected by the user from the multiple connection modes based on the terminal held by the user is received, and the preset connection mode is used to connect to the target operation and maintenance device corresponding to the device attribute information, where the preset connection mode is one of a remote mode and a local mode.

Citation Information

Cited By

  • Script definition-based business process, business function and operation and maintenance system control method and related equipment

    CN121597179A