CN115022150B - Network emergency method and device - Google Patents

Network emergency method and device Download PDF

Info

Publication number
CN115022150B
CN115022150B CN202210422808.3A CN202210422808A CN115022150B CN 115022150 B CN115022150 B CN 115022150B CN 202210422808 A CN202210422808 A CN 202210422808A CN 115022150 B CN115022150 B CN 115022150B
Authority
CN
China
Prior art keywords
script
target
processed
network
network fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210422808.3A
Other languages
Chinese (zh)
Other versions
CN115022150A (en
Inventor
汤文达
张升
王尹哲
夏炜
叶奇青
李思远
李润庭
岑奭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202210422808.3A priority Critical patent/CN115022150B/en
Publication of CN115022150A publication Critical patent/CN115022150A/en
Application granted granted Critical
Publication of CN115022150B publication Critical patent/CN115022150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/20Network management software packages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method and a device for relieving network equipment faults, wherein the method comprises the following steps: determining a bottom layer script related to a network fault to be processed and parameters to be complemented corresponding to the bottom layer script according to the network fault to be processed of target equipment; acquiring a parameter value corresponding to the parameter to be complemented, and complementing the parameter to be complemented of the bottom layer script according to the parameter value to obtain a first script; displaying codes of the first script on a terminal display; receiving a script modification instruction aiming at the code, and modifying the first script based on the script modification instruction to obtain a target script, wherein the script modification instruction is used for modifying the first script into the target script applicable to the network fault to be processed; and sending the target script to the target equipment so that the target equipment can relieve the network fault to be processed by using the target script. The method and the device solve the problem that the network fault can be rapidly solved under the condition that the script code for relieving the network fault is not corresponding to the target equipment.

Description

Network emergency method and device
Technical Field
The application relates to the technical field of computer network security, in particular to a network emergency method and device.
Background
With the development of technology, many industries (such as finance and communication) cannot operate normally, for enterprises with large user base and complex service systems, once a network system has a problem, emergency response to a network fault point must be performed in a short time and the problem must be solved, otherwise, immeasurable loss may be caused.
Network emergency is generally divided into three steps, namely firstly, according to the network fault troubleshooting problem, defining a solution, secondly, according to the solution, writing an execution script corresponding to the network equipment with the fault, and finally, executing the script on the corresponding network equipment so as to solve the network fault problem.
In practice, once a network fault occurs, if script writing is performed on site, the time is too long, and the response speed is too slow, so an automatic script configuration method is generally used at present, and the response speed is improved. Specifically, various network emergency script codes are stored in the rear end of the server in advance, when a network problem occurs, an operation and maintenance personnel can generate a complete script according to the input parameter value and the script code of the rear end corresponding to the parameter value by inputting the parameter value in the front end, issue the complete step to network equipment with faults and execute the complete script, so that emergency treatment of the network faults can be realized. The automatic script configuration method omits the process of editing the script on site, and achieves the effect of quick response.
However, the existing automatic script configuration method is poor in flexibility, because the back-end script codes are packaged, if the parameter values of the front end and the back-end script codes are combined, network faults cannot be solved, only new script codes can be packaged again, and once the situation occurs, the speed of emergency response is seriously affected.
Disclosure of Invention
The embodiment of the application provides a method for relieving network equipment faults, which solves the problem that when script codes cannot be completely matched with network equipment with faults, the network faults can be relieved rapidly.
In view of this, a first aspect of the present application provides a method of relieving a network device from a failure, the method comprising:
determining a bottom layer script related to a network fault to be processed and parameters to be complemented corresponding to the bottom layer script according to the network fault to be processed of target equipment;
acquiring a parameter value corresponding to the parameter to be complemented, and complementing the parameter to be complemented of the bottom layer script according to the parameter value to obtain a first script;
displaying codes of the first script on a terminal display;
receiving a script modification instruction aiming at the code, and modifying the first script based on the script modification instruction to obtain a target script, wherein the script modification instruction is used for modifying the first script into the target script applicable to the network fault to be processed;
and sending the target script to the target equipment so that the target equipment can relieve the network fault to be processed by using the target script.
A second aspect of the present application provides an apparatus for relieving a network device failure, the apparatus comprising:
the first determining module is used for determining a bottom layer script related to the network fault to be processed and the parameters to be complemented corresponding to the bottom layer script according to the network fault to be processed of the target equipment;
the completion module is used for obtaining a parameter value corresponding to the parameter to be completed, and completing the parameter to be completed of the bottom layer script according to the parameter value to obtain a first script;
the display module is used for displaying codes of the first script on a terminal display;
the modification module is used for receiving a script modification instruction aiming at the code, modifying the first script based on the script modification instruction to obtain a target script, wherein the script modification instruction is used for modifying the first script into the target script applicable to the network fault to be processed;
and the sending module is used for sending the target script to the target equipment so that the target equipment can release the network fault to be processed by using the target script.
From the above technical solutions, the embodiments of the present application have the following advantages:
according to the method and the device for processing the network emergency response, the codes of the first script formed by the parameter values and the bottom script are displayed on the user terminal display completely, a user can judge whether the codes are correct through the displayed complete codes, and under the condition that the codes are wrong, the user can directly modify the codes corresponding to the bottom script on the terminal display, so that the target script is obtained, finally the target script is sent to target equipment, and the target script is executed on the target equipment, so that the purpose of responding the network emergency is achieved. The embodiment of the application solves the problem that in the related art, under the condition that the first script is not suitable for releasing the target network equipment, the underlying script cannot be modified because the underlying script is encapsulated and solidified.
Drawings
Fig. 1 is an application scenario of a method for removing a network device failure according to an embodiment of the present application;
fig. 2 is a flowchart of a method for removing a network device failure according to an embodiment of the present application;
fig. 3 is a scene list provided in an embodiment of the present application;
fig. 4 is another flowchart of a method for removing a network device failure according to an embodiment of the present application;
FIG. 5 is a web interface diagram of a selection device provided by an embodiment of the present application;
FIG. 6 is a web interface diagram for prompting for parameter values provided by an embodiment of the present application;
FIG. 7 is a web interface diagram of a complete script for a callback provided by an embodiment of the present application;
fig. 8 is a schematic diagram of an apparatus for removing a network device failure according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it is to be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and examples of the present application are for illustrative purposes only and are not intended to limit the scope of the present application.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this application are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
In the related art, when a network device fails, an operation and maintenance person receives a network failure alarm, and the operation and maintenance person performs network emergency treatment aiming at the network failure alarm. In the process of network emergency, operators typically use an automated script configuration method to relieve network equipment failure. Specifically, the operation and maintenance personnel can input a parameter value on a terminal display at the front end, can automatically call a script code corresponding to the parameter value at the rear end according to the input parameter value, and then combines the input parameter value and the corresponding script code to generate a complete script. And issuing the complete script to the corresponding network equipment with the fault, and executing the complete script to release the fault of the network equipment.
However, since the script code called from the back-end is encapsulated, a new script code needs to be re-encapsulated once the parameter values and the corresponding script code called are combined to fail to solve the network failure. The reason why the network failure cannot be solved in combination is that, for example, there are two devices a and B with the same specific function but different brands, only the script code corresponding to the device a is stored in the back end, when the network failure occurs in the device B, only the script code closest to the device B stored in the back end, that is, the script code corresponding to the device a is called, and when the parameter value is input by the user, the complete script code obtained finally is obviously the complete script code only aiming at the device a, and the script code is not suitable for solving the network failure of the device B. All obviously achieving the objective of not removing network failures. In addition, the operation and maintenance personnel cannot see the last generated complete script code in the whole process, so that invalid fault processing is easier to be conducted by the operation and maintenance personnel.
Aiming at the technical problems, the embodiment of the application provides a method for relieving network equipment faults, which utilizes parameter values to complement a bottom layer script, generates a first script, displays complete codes of the first script on a terminal display, edits the bottom layer script online if an operation and maintenance person finds that the bottom layer script is wrong, and sends the edited and modified first script to target equipment to relieve network faults.
Specifically, after a network fault alarm is received, determining a bottom layer script corresponding to the network fault and a parameter for complementing the bottom layer script according to the network fault alarm, correspondingly displaying the parameter on a terminal device, enabling an operation and maintenance person to complement the bottom layer script according to the parameter input parameter value, obtaining a first script, and displaying script codes of the first script on a terminal display completely, namely enabling the operation and maintenance person to see the complete codes of the first script formed by the parameter value and the bottom layer script on the terminal display, if the bottom layer script has errors, enabling the operation and maintenance person to directly modify the bottom layer script, finally obtaining a target script, and utilizing the target script to remove the network fault of the target device.
Compared with the related art, the method and the device can display complete script codes on the terminal display, and can modify the codes, so that when the script codes cannot be completely matched with network equipment with faults, the network faults can be rapidly relieved.
In order to facilitate understanding of the technical solution provided by the embodiments of the present application, the method for removing the network device failure provided by the embodiments of the present application is described below in conjunction with an actual application scenario.
Referring to fig. 1, as shown in fig. 1, an application scenario of the network device failure relieving method includes a terminal 110, a fort machine 120, and a network device 130, where the terminal 110 is a computer used by a maintainer for emergency treatment of a network failure. The bastion machine 120 is a device for storing an underlying script and performing unified network emergency management on all network devices. The network device 130 is a target device that fails and waits for the failure to be removed.
Specifically, when a network alarm occurs, an operator invokes parameters of an underlying script and a complement underlying script corresponding to the network device 130 stored in the bastion machine through the terminal 110, the operator inputs corresponding parameter values through the parameters displayed by the terminal 110, the terminal 110 generates a first script according to the received parameter values and the underlying script, and displays the first script on a display of the terminal 110, if the underlying script does not correspond to a fault occurring in the network device 130, the operator directly modifies and edits the first script on the display of the terminal 110 to obtain a target script, the terminal 110 uploads the target script to the bastion machine 120, and issues the target script to the network device 130 through the bastion machine 120, and the network device 130 executes the target script so as to relieve the network fault of the network device 130.
It should be understood that the application scenario of fig. 1 is only an example, in practical application, the terminal 110 may store the underlying script and parameters, and the terminal 110 may directly issue the target script to the network device 130 without passing through the fort machine 120. The application scenario to which the method for removing the network device failure provided in the embodiment of the present application is applicable is not limited.
The method for relieving the network equipment fault provided by the application is described below through an embodiment.
Referring to fig. 2, for convenience of description, the following embodiments will be described taking a terminal seat execution body as an example. As shown in fig. 2, the method for relieving the network device from the fault comprises the following steps:
s101: and determining the bottom layer script related to the network fault to be processed and the parameters to be complemented corresponding to the bottom layer script according to the network fault to be processed of the target equipment.
When the operation and maintenance personnel receive the network fault alarm, according to the network fault alarm prompt, the operation and maintenance personnel can select a scene corresponding to the network fault to be processed on the terminal display, and according to the corresponding scene, the bottom layer script corresponding to the scene and the parameter to be complemented corresponding to the bottom layer script can be obtained. The embodiment of the application classifies different scenes aiming at different network faults, and the scenes are as follows: the embodiment of the application summarizes script codes with commonality and parameters with variability for each scene, such as abnormal router switch, firewall faults, load balancing switching and the like. For example, if a function of a certain type of device fails, most of script codes are the same for different types of devices, and only individual parameters are different. When the operation and maintenance personnel select the scene, the corresponding bottom layer script and the parameters to be complemented corresponding to the bottom layer script are unique and can be determined.
In addition, in order to improve operability of operation and maintenance personnel and cover common network fault problems, the embodiment of the application can divide scenes into a primary scene and a secondary scene. As shown in Table one, each class of scenes may contain multiple secondary scenes.
List one scenario list to relieve network device failures
Aiming at different scenes in the first embodiment, the embodiment of the application can be displayed on a web interface through the terminal, and when a network fault alarm occurs, operation and maintenance personnel can conveniently select the corresponding scene. The scene displayed on the web interface is shown in fig. 3, and the operator can directly select the corresponding scene on the web interface.
S102: and acquiring a parameter value corresponding to the parameter to be complemented, and complementing the parameter to be complemented of the bottom layer script according to the parameter value to obtain a first script.
After obtaining parameters to be complemented corresponding to network faults, the operation and maintenance personnel inputs parameter values corresponding to the parameters to be complemented in the terminal according to the corresponding parameters to be complemented, and the terminal complements the bottom layer script by using the obtained parameter values to obtain a first script. The first script is a script suitable for canceling the network failure to be processed or a script closest to the script suitable for canceling the network failure to be processed among the callable scripts.
S103: and displaying the code of the first script on a terminal display.
According to the embodiment of the application, the complete code of the first script is required to be displayed on the terminal display, so that the operation and maintenance personnel can conveniently browse the code, and the operation and maintenance personnel can judge whether the first script is a script suitable for relieving the network fault to be processed.
S104: and receiving a script modification instruction aiming at the code, and modifying the first script based on the script modification instruction to obtain a target script, wherein the script modification instruction is used for modifying the first script into the target script applicable to the network fault to be processed.
When the operation and maintenance personnel judges that the first script is not suitable for relieving the network fault to be processed, the operation and maintenance personnel can directly modify the code part to be modified on the display, and based on the modification of the operation and maintenance personnel, the terminal can receive a corresponding script modification instruction. The terminal can modify the first script according to the script modification instruction to finally obtain the target script.
S105: and sending the target script to the target equipment so that the target equipment can release the network fault to be processed by using the target script.
After the target script is determined, the terminal can directly issue the target script to the target equipment, and after the target equipment receives the target script, the target script is executed so as to achieve the purpose of relieving the network fault to be processed.
Optionally, if the script confirmation instruction is received, determining that the first script is a script applicable to the network fault to be processed, taking the first script as a target script, and executing the step of sending the target script to the target device.
When the operation and maintenance personnel judge that the first script is suitable for relieving the network fault to be treated, the confirmation button can be directly clicked on the terminal display, and the relieving of the network fault can be realized without modifying the first script. Based on the confirmation operation of the operation and maintenance personnel, the terminal server can receive a script confirmation instruction. And the server confirms that the first script is the target script through the received script confirmation instruction. Therefore, the terminal equipment can issue the target script to the target equipment so as to achieve the purpose of relieving the network fault to be processed.
According to the method and the device for processing the network fault, the code of the first script formed by the parameter value and the bottom script is displayed on the terminal display completely, a user can check the complete code of the first script through the terminal display, if the code is not suitable for solving the network fault to be processed, the user can directly modify the code corresponding to the bottom script on the terminal display, so that the target script is obtained, finally the target script is sent to target equipment, and the target script is executed on the target equipment, so that the purpose of relieving the network fault to be processed is achieved. The embodiment of the application solves the problem that in the related art, under the condition that the first script is not suitable for releasing the target network equipment, the underlying script cannot be modified because the underlying script is encapsulated and solidified. The embodiment of the application perfects a network emergency scheme.
In addition, when the complete code of the first script is displayed on the terminal display, if the user judges that the code can solve the network fault to be processed, the user can directly send a script confirmation instruction to the terminal display, and directly send the script to the target equipment under the condition that the first script is not modified so as to relieve the network fault to be processed of the target equipment. According to the method and the device for processing the network equipment fault, whether the first script is the target script is judged, if not, the first script is confirmed to be the target script, modification of the first script is not needed, the first script can be directly utilized to remove the network fault to be processed, and the processing flow of removing the network equipment fault is simplified.
Besides network emergency by using the terminal, the operation and maintenance personnel can usually finish other respective works by using the terminal, so that if a large number of scripts for relieving the network equipment faults are stored in the terminal, the running speed of the terminal can be reduced, in addition, the scripts for relieving the network equipment faults are inevitably updated along with the technical development, if a large number of scripts for relieving the network equipment faults are stored in the terminal, the corresponding operation and maintenance personnel are required to update at the terminal when the scripts are required to be updated, and the extra workload of the operation and maintenance personnel is caused. According to the embodiment of the application, a large number of scripts for relieving the network equipment faults can be uniformly stored in the fort machine, and the fort machine is used for uniformly managing the relieving the network equipment faults.
In another embodiment of the present application, the underlying script is stored in a fort machine, which is also referred to as a jump board machine, which is a network device that can operate remote devices in batches as a jump board.
Determining, according to the network fault to be processed of the target device, an underlying script related to the network fault to be processed and parameters to be complemented corresponding to the underlying script, including the following steps S201 to S202:
s201: and calling the underlying script corresponding to the network fault to be processed to the fort machine according to the network fault to be processed of the target equipment.
When a network fault alarm occurs, an operation and maintenance person can select a corresponding scene at the terminal according to the network fault to be processed, and the terminal can call the bottom layer script corresponding to the scene stored in the fort machine according to the acquired scene because each scene corresponds to only one bottom layer script. The bastion machine can manage network faults aiming at all network devices, different network faults correspond to different bottom scripts, a large number of bottom scripts can be brought into a rule base for convenient management, namely, the rule base is stored and the bastion machine is called from the rule base in the bastion machine when a certain bottom script needs to be called.
S202: and analyzing the bottom layer script to obtain parameters to be complemented corresponding to the bottom layer script.
After the terminal obtains the bottom layer script called by the fort machine, because the parameters to be complemented for complementing the bottom layer script corresponding to the bottom layer script need to be displayed for the operation and maintenance personnel, script analysis is needed to be carried out on the called bottom layer script so as to obtain the parameters to be complemented, the parameters are correspondingly displayed on a terminal display, and the operation and maintenance personnel can be conveniently guided to input corresponding parameter values.
In one possible way, the parameters to be complemented may be achieved by:
after the operation and maintenance personnel select a corresponding scene on the terminal computer, the terminal can obtain a corresponding bottom layer script aiming at the scene, and after the corresponding bottom layer script is obtained, the script can be analyzed through the following data structure so as to obtain parameters to be complemented corresponding to the bottom layer script.
The data structure has three attributes, namely parameters, labels and script contents, wherein the parameters are script parts which need operation and maintenance personnel to input to be complemented. The tag contains a plurality of key values, each key value corresponding to a unique script content. The script content is made up of one or more parameters and a fixed script portion. When the corresponding scene is selected, a unique corresponding bottom script exists. The corresponding label key value and script content in the bottom layer script can be obtained first, the key value in the label is corresponding to the parameter key value in the script content, and finally the parameters to be complemented corresponding to the bottom layer script are generated.
It should be noted that, the parameter to be complemented is combined with the bottom script through the &symbol, and after the parameter value is input by the operation and maintenance personnel, the complete code of the first script can be obtained.
Meanwhile, in the embodiment of the present application, the sending of the target script to the target device may also include the following steps:
and sending the target script to the fort machine so that the fort machine can issue the target script to the target device.
After obtaining the target script, the terminal may first upload the target script to the fort machine, and then issue the target script to the target device through the fort machine.
Optionally, a modification log for the underlying script is recorded in the fort machine, where the modification log is used to identify modification content corresponding to the script modification instruction.
The fort may also have a logging function in order to facilitate future queries by the operation and maintenance personnel to modify the code's log. After the terminal uploads the target script to the fort machine, the fort machine can record a log, wherein the recorded log comprises a modification log, and the modification log is used for recording the modification of the first script.
According to the embodiment of the application, the bottom layer scripts are called from the bastion machine, all the bottom layer scripts for relieving the network faults are uniformly stored in the bastion machine, when the network faults occur, operation and maintenance personnel only need to call the bottom layer scripts corresponding to the network faults to be processed, a large number of bottom layer scripts are not required to be stored in the terminal, the storage pressure of the terminal is reduced, irregular updating of the bottom layer scripts is also facilitated, and uniform management of the bottom layer scripts is achieved. In addition, the fort machine can record a log, after the operation and maintenance personnel modify the first script, the fort machine can record a modification log and record the modification log, so that the operation and maintenance personnel can conveniently inquire the modification script record in the future, and once the script is modified in error, the operation and maintenance personnel can conveniently find the reason.
Before issuing the target script, the embodiment of the application can also determine the network address of the target device so as to determine which network device has a fault, and issue the target script to the network device.
Based on the above embodiments, in another embodiment of the present application, sending the target script to the target device may include the following steps S301 to S302:
s301: a network address of the target device is obtained.
Before issuing the target script to the target device, the network address of the target device needs to be acquired first, so that the terminal or the bastion machine can definitely send the target script to which device. The obtained network address may be an IP address, or may be another address for identifying the target device in the internet, which is not particularly limited herein.
S302: and sending the target script to the target equipment by using the network address.
And sending the target script to the target equipment based on the acquired network address of the target equipment, and executing the target script after the target equipment acquires the target script so as to relieve the network fault to be processed.
The step of obtaining the network address of the target device and the other steps have no specific sequence, and the step is only required to be executed before the step of sending the target script to the target device.
In one embodiment of the present application, the network address of the target device is acquired and executed after the scene is selected, as shown in fig. 4, the embodiment of the present application may include the following steps S401 to S410: :
s401: when a network failure alarm is received, the operation and maintenance personnel can select a scene corresponding to the network failure alarm on the terminal display. Each scene is associated with a unique bottom layer script and parameters to be complemented corresponding to the bottom layer script. When the scene is selected, the associated bottom layer script and the parameters to be complemented corresponding to the bottom layer script are determined at the same time.
As shown in fig. 5, in one case, the scenario includes a primary scenario and a secondary scenario, according to the network fault alarm, the operation and maintenance personnel selects a route switch in the primary scenario, and the secondary scenario selects port isolation in the route switch, that is, the current network fault to be processed is that the port isolation function of the route switch has a fault. After the scene is selected, the bullet frame of the selected target equipment is directly popped up for the operation and maintenance personnel to select the target equipment.
S402: and the operation and maintenance personnel select target equipment from the equipment associated with the scene, and the terminal obtains the network address of the target equipment according to the equipment selected by the operation and maintenance personnel.
As shown in fig. 5, the operator may select a target device in an entry or drop-down box in the bullet box.
S403: and correspondingly displaying the parameters to be complemented corresponding to the bottom layer script on a terminal display so that operation and maintenance personnel can input corresponding parameter values according to the parameters to be complemented.
As shown in fig. 6, the terminal pops up a corresponding popup frame of the parameter to be complemented, and the operator inputs the port number ETH6/1 according to the selected scene, wherein the port number ETH6/1 is the parameter value to be input. And supplementing the parameter value ETH6/1 into a corresponding bottom layer script to obtain a first script.
S404: and calling the bottom layer script corresponding to the scene to the terminal by the fort machine.
S405: and complementing the bottom layer script by using the input parameter value to obtain a first script, and displaying the complete code of the first script back to the terminal display.
As shown in fig. 7, the complete code of the execution script is displayed on the terminal:
config t
Interface ETH6/1
Shutdown
the execution script is a first script, the corresponding parameter value is ETH6/1, and an operation and maintenance person can judge that the bottom script has error through the displayed complete script, and if the bottom script has error, an editing button can be clicked to modify.
S406: the operation and maintenance personnel judges whether the first script needs to be modified so as to modify the code into the code suitable for the network fault to be processed, if the underlying script needs to be modified, the step S407 is entered, and if the underlying script does not need to be modified, the first script is a target script, and the step S408 is entered.
S407: the underlying script is modified to convert the first script to a target script.
S408: uploading the target script to the fort machine.
S409: the log is recorded in the fort machine so as to record the process of modifying the first script, thereby facilitating the inquiry of the modification record by the operation and maintenance personnel in the future.
S410: the fort machine issues a target script to the target device so that the target device executes the target script and the network fault to be processed is relieved.
Accordingly, as shown in fig. 8, the present application further provides an apparatus for relieving a network device fault, where the apparatus includes:
the first determining module 41 is configured to determine, according to a network failure to be processed of the target device, an underlying script related to the network failure to be processed and parameters to be complemented corresponding to the underlying script.
And the complementing module 42 is configured to obtain a parameter value corresponding to the parameter to be complemented, and complement the parameter to be complemented of the underlying script according to the parameter value, so as to obtain a first script.
And a display module 43 for displaying the code of the first script on the terminal display.
The modification module 44 is configured to receive a script modification instruction for the code, modify the first script based on the script modification instruction to obtain a target script, and modify the first script into a target script applicable to the network failure to be processed.
And the sending module 45 is used for sending the target script to the target device so that the target device can release the network fault to be processed by using the target script.
Optionally, the apparatus further comprises:
and the judging module is used for determining the first script as a script applicable to the network fault to be processed if the script confirmation instruction is received, taking the first script as a target script, and executing the step of sending the target script to the target equipment.
Optionally, the underlying script is stored in the fort machine.
The first determination module is to:
and calling the underlying script corresponding to the network fault to be processed to the fort machine according to the network fault to be processed of the target equipment.
And analyzing the bottom layer script to obtain parameters to be complemented corresponding to the bottom layer script.
The sending module is used for:
and sending the target script to the fort machine so that the fort machine can issue the target script to the target device.
Optionally, a modification log for the underlying script is recorded in the fort machine, where the modification log is used to identify modification content corresponding to the script modification instruction.
Optionally, the sending module is configured to:
a network address of the target device is obtained.
And sending the target script to the target equipment by using the network address.
The names of messages or information interacted between the various devices in the embodiments of the present application are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be clear to those skilled in the art that, for the sake of brevity and conciseness of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. various media for storing computer program.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A method of relieving a network device failure, the method comprising:
determining a bottom layer script related to a network fault to be processed and parameters to be complemented corresponding to the bottom layer script according to the network fault to be processed of target equipment;
acquiring a parameter value corresponding to the parameter to be complemented, and complementing the parameter to be complemented of the bottom layer script according to the parameter value to obtain a first script, wherein the first script is a script suitable for relieving the network fault to be processed or is the closest to the script suitable for relieving the network fault to be processed in a callable script;
displaying codes of the first script on a terminal display;
receiving a script modification instruction aiming at the code, and modifying the first script based on the script modification instruction to obtain a target script, wherein the script modification instruction is used for modifying the first script into the target script applicable to the network fault to be processed;
and sending the target script to the target equipment so that the target equipment can relieve the network fault to be processed by using the target script.
2. The method of claim 1, wherein the method further comprises:
and if a script confirmation instruction is received, determining that the first script is a script applicable to the network fault to be processed, taking the first script as the target script, and executing the step of sending the target script to the target equipment.
3. The method of claim 1 wherein the underlying script is stored at a fort machine;
determining, according to the network fault to be processed of the target device, an underlying script related to the network fault to be processed and the parameter to be complemented corresponding to the underlying script, including:
calling the bottom layer script corresponding to the network fault to be processed to the fort machine according to the network fault to be processed of the target equipment;
analyzing the bottom layer script to obtain the parameters to be complemented corresponding to the bottom layer script;
the sending the target script to the target device includes:
and sending the target script to the fort machine so that the fort machine can issue the target script to the target equipment.
4. The method of claim 3 wherein a modification log for the underlying script is recorded in the bastion engine, the modification log identifying modification content corresponding to the script modification instructions.
5. The method of claim 1, wherein the sending the target script to the target device comprises:
acquiring a network address of the target equipment;
and sending the target script to the target equipment by utilizing the network address.
6. An apparatus for relieving a network device failure, the apparatus comprising:
the first determining module is used for determining a bottom layer script related to the network fault to be processed and parameters to be complemented corresponding to the bottom layer script according to the network fault to be processed of the target equipment;
the completion module is used for obtaining a parameter value corresponding to the parameter to be completed, and completing the parameter to be completed of the bottom layer script according to the parameter value to obtain a first script, wherein the first script is a script suitable for relieving the network fault to be processed or a script closest to the script suitable for relieving the network fault to be processed in a callable script;
the display module is used for displaying codes of the first script on a terminal display;
the modification module is used for receiving a script modification instruction aiming at the code, modifying the first script based on the script modification instruction to obtain a target script, wherein the script modification instruction is used for modifying the first script into the target script applicable to the network fault to be processed;
and the sending module is used for sending the target script to the target equipment so that the target equipment can release the network fault to be processed by using the target script.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the judging module is used for determining the first script to be a script applicable to the network fault to be processed if a script confirmation instruction is received, taking the first script as the target script, and triggering the transmitting module.
8. The apparatus of claim 6 wherein the underlying script is stored at a fort machine;
the first determining module is configured to:
calling the bottom layer script corresponding to the network fault to be processed to the fort machine according to the network fault to be processed of the target equipment;
analyzing the bottom layer script to obtain the parameters to be complemented corresponding to the bottom layer script;
the sending module is used for:
and sending the target script to the fort machine so that the fort machine can issue the target script to the target equipment.
9. The apparatus of claim 8, wherein a modification log for the underlying script is recorded in the bastion engine, the modification log identifying modification content corresponding to the script modification instructions.
10. The apparatus of claim 9, wherein the transmitting module is to:
acquiring a network address of the target equipment;
and sending the target script to the target equipment by utilizing the network address.
CN202210422808.3A 2022-04-21 2022-04-21 Network emergency method and device Active CN115022150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210422808.3A CN115022150B (en) 2022-04-21 2022-04-21 Network emergency method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210422808.3A CN115022150B (en) 2022-04-21 2022-04-21 Network emergency method and device

Publications (2)

Publication Number Publication Date
CN115022150A CN115022150A (en) 2022-09-06
CN115022150B true CN115022150B (en) 2024-04-12

Family

ID=83067391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210422808.3A Active CN115022150B (en) 2022-04-21 2022-04-21 Network emergency method and device

Country Status (1)

Country Link
CN (1) CN115022150B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11298476A (en) * 1998-04-13 1999-10-29 Ddi Corp Network fault detection system, network device and network management device
CN101494573A (en) * 2009-03-17 2009-07-29 杭州华三通信技术有限公司 Method, system and equipment for diagnosing failure
CN103530227A (en) * 2013-09-24 2014-01-22 福州开发区星云电子自动化有限公司 Open type script programming system
CN103795556A (en) * 2012-10-30 2014-05-14 华为技术有限公司 Failure processing method and network switch
CN107104838A (en) * 2017-05-15 2017-08-29 北京奇艺世纪科技有限公司 A kind of information processing method, server and terminal
CN110086827A (en) * 2019-05-14 2019-08-02 重庆商勤科技有限公司 A kind of SQL injection method of calibration, server and system
CN111045695A (en) * 2019-12-15 2020-04-21 北京浪潮数据技术有限公司 WebLogic middleware deployment device, method, equipment and medium
CN112130852A (en) * 2020-08-12 2020-12-25 当家移动绿色互联网技术集团有限公司 Operation method and device of online editing platform and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9819569B2 (en) * 2013-02-28 2017-11-14 Entit Software Llc Transport script generation based on a user interface script

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11298476A (en) * 1998-04-13 1999-10-29 Ddi Corp Network fault detection system, network device and network management device
CN101494573A (en) * 2009-03-17 2009-07-29 杭州华三通信技术有限公司 Method, system and equipment for diagnosing failure
CN103795556A (en) * 2012-10-30 2014-05-14 华为技术有限公司 Failure processing method and network switch
CN103530227A (en) * 2013-09-24 2014-01-22 福州开发区星云电子自动化有限公司 Open type script programming system
CN107104838A (en) * 2017-05-15 2017-08-29 北京奇艺世纪科技有限公司 A kind of information processing method, server and terminal
CN110086827A (en) * 2019-05-14 2019-08-02 重庆商勤科技有限公司 A kind of SQL injection method of calibration, server and system
CN111045695A (en) * 2019-12-15 2020-04-21 北京浪潮数据技术有限公司 WebLogic middleware deployment device, method, equipment and medium
CN112130852A (en) * 2020-08-12 2020-12-25 当家移动绿色互联网技术集团有限公司 Operation method and device of online editing platform and electronic equipment

Also Published As

Publication number Publication date
CN115022150A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
US9727407B2 (en) Log analytics for problem diagnosis
US20170315796A1 (en) Application deployment for data intake and query system
JPH01243135A (en) Problem processing system
US8412808B2 (en) Method and framework for service-based remote support delivery
US20140351408A1 (en) Utilizing augmented reality for locating computer hardware associated to a reported incident
CN115022150B (en) Network emergency method and device
US8402125B2 (en) Method of managing operations for administration, maintenance and operational upkeep, management entity and corresponding computer program product
US20220100594A1 (en) Infrastructure monitoring system
CN116016209A (en) Network automation method and device
WO2016130337A1 (en) System and method for automating network management tasks
EP0471636B1 (en) Flexible service network for computer systems
CN109828765B (en) Method for upgrading online service, general routing platform and storage medium
CN109376030A (en) System for capturing embedded OS exception
US20240195680A1 (en) Script discrimination apparatus, script discrimination method and script discrimination system
US20240070005A1 (en) Real-Time Fault Management (RFM)
CN117609973B (en) Registration center nano-tube method, system, device and server
US20240107340A1 (en) Network management apparatus and network management method
US8595172B2 (en) Ensuring high availability of services via three phase exception handling
EP0471638B1 (en) Problem prevention on a computer system in a service network of computer systems
CN118101055A (en) Fault detection method and device based on gateway product and electronic equipment
CN112256270A (en) Login operation information management method and device
CN118282998A (en) Message middleware operation and maintenance method and device and communication system
CN118245133A (en) Method, apparatus, device, medium and program product for configuring environment variables
JP2000231500A (en) Fault analyzer
CN114626839A (en) Payment channel monitoring method and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant