CN113132177A - Emergency drilling automation realization method, device, equipment and medium - Google Patents
Emergency drilling automation realization method, device, equipment and medium Download PDFInfo
- Publication number
- CN113132177A CN113132177A CN202010027483.XA CN202010027483A CN113132177A CN 113132177 A CN113132177 A CN 113132177A CN 202010027483 A CN202010027483 A CN 202010027483A CN 113132177 A CN113132177 A CN 113132177A
- Authority
- CN
- China
- Prior art keywords
- network
- network port
- emergency drilling
- closed
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005553 drilling Methods 0.000 title claims abstract description 131
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012360 testing method Methods 0.000 claims abstract description 98
- 230000015654 memory Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 230000015556 catabolic process Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention provides an automatic emergency drilling implementation method, device, equipment and medium. The method comprises the following steps: acquiring an emergency drilling target task; connecting network equipment corresponding to the emergency drilling target task, wherein the network equipment comprises at least two network ports, and each of the at least two network ports has a service application address; determining a network port to be closed of the current network equipment according to a preset network port test sequence of the network equipment; and closing the network port to be closed, and carrying out service dial testing on the service corresponding to the closed network port. The embodiment of the invention can make the automatic service test practical, improve the test efficiency and reduce the test cost.
Description
Technical Field
The invention relates to the technical field of networks, in particular to an emergency drilling automation realization method, device, equipment and a computer readable storage medium.
Background
With the development of the telecommunication industry, basic services are more and more, the corresponding network scale is more and more huge, and more service hosts are connected to network equipment. At present, a host basically carries the load in a cluster or virtualization manner. In order to discover in advance whether a cluster architecture or a virtualization architecture can be used as a main/standby mode promised at the beginning of design, that is, once one host computer is down, the rest devices can immediately bear the initial purpose of service, discover system hidden dangers as soon as possible, and reduce service withdrawal risks, which is a problem to be solved urgently in current maintenance work.
However, in practical situations, the maintenance personnel are not enough, the daily time is occupied by many other matters, and the work is verified and hidden dangers are found without enough time and energy, so that the daily risk is increased due to the dragging of the work. Moreover, a complete emergency drilling closed-loop flow which is realized automatically cannot be formed at present.
Disclosure of Invention
The embodiment of the invention provides an automatic emergency drilling implementation method, device and equipment and a computer readable storage medium, which can make automatic service testing practical, improve testing efficiency and reduce testing cost.
In a first aspect, an embodiment of the present invention provides an automated emergency drilling implementation method, where the method includes: acquiring an emergency drilling target task; connecting network equipment corresponding to the emergency drilling target task, wherein the network equipment comprises at least two network ports, and each of the at least two network ports has a service application address; determining a network port to be closed of the current network equipment according to a preset network port test sequence of the network equipment; and closing the network port to be closed, and carrying out service dial testing on the service corresponding to the closed network port.
In some implementations of the first aspect, obtaining the emergency drill goal task includes: acquiring at least one emergency drilling task, wherein each emergency drilling task comprises time for executing the emergency drilling task; and determining the emergency drilling task corresponding to the time consistent with the current time as an emergency drilling target task.
In some implementations of the first aspect, the emergency drill goal task includes an address of a network device; the network equipment corresponding to the emergency drilling target task is connected, and the network equipment comprises: the network device is connected by using a Secure Shell (SSH) protocol and an address of the network device.
In some implementations of the first aspect, closing the network port to be closed includes: and closing the network port to be closed according to a preset operation instruction.
In some implementation manners of the first aspect, performing service dial testing on a service corresponding to a closed network port includes: and carrying out service dial testing on the service corresponding to the closed network port according to the preset dial testing keyword of the service corresponding to the closed network port.
In some implementations of the first aspect, before determining the network port to be closed of the current network device according to the preset network port test sequence of the network device, the method further includes: and setting a preset network port test sequence of the network equipment according to the network port of the network equipment.
In some implementation manners of the first aspect, after performing service dial test on a service corresponding to a closed network port, the method further includes: and starting the closed network port, and carrying out service dial testing on the service corresponding to the started network port.
In some implementations of the first aspect, prior to initiating the closed network port, the method further comprises: generating a first log file; after the service dial testing is performed on the service corresponding to the started network port, the method further includes: a second log file is generated.
In a second aspect, an embodiment of the present invention provides an automatic emergency drilling implementation apparatus, where the apparatus includes: the acquisition module is used for acquiring an emergency drilling target task; the device comprises a connecting module, a processing module and a processing module, wherein the connecting module is used for connecting network equipment corresponding to an emergency drilling target task, the network equipment comprises at least two network ports, and each of the at least two network ports has a service application address; the determining module is used for determining a network port to be closed of the current network equipment according to a preset network port testing sequence of the network equipment; and the closing module is used for closing the network port to be closed and carrying out service dial test on the service corresponding to the closed network port.
In some implementations of the second aspect, the obtaining module is specifically configured to: acquiring at least one emergency drilling task, wherein each emergency drilling task comprises time for executing the emergency drilling task; and determining the emergency drilling task corresponding to the time consistent with the current time as an emergency drilling target task.
In some implementations of the second aspect, the emergency drill goal task includes an address of a network device; the connection module is specifically configured to: and connecting the network equipment by utilizing the SSH and the address of the network equipment.
In some implementations of the second aspect, the shutdown module is specifically configured to: and closing the network port to be closed according to a preset operation instruction.
In some implementations of the second aspect, the shutdown module is specifically configured to: and carrying out service dial testing on the service corresponding to the closed network port according to the preset dial testing keyword of the service corresponding to the closed network port.
In some implementations of the second aspect, the apparatus further comprises: the setting module is used for setting the preset network port test sequence of the network equipment according to the network port of the network equipment before determining the network port to be closed of the current network equipment according to the preset network port test sequence of the network equipment.
In some implementations of the second aspect, the apparatus further comprises: and the starting module is used for starting the closed network port after carrying out service dial testing on the service corresponding to the closed network port and carrying out service dial testing on the service corresponding to the started network port.
In some implementations of the second aspect, the apparatus further comprises: the generation module is used for generating a first log file before starting the closed network port;
the generation module is further to: and after the service corresponding to the started network port is subjected to service dial testing, generating a second log file.
In a third aspect, an embodiment of the present invention provides an emergency drilling automation implementation device, where the device includes: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the method for automated emergency drilling as described in the first aspect or any of the implementations of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the method for implementing emergency drilling automation in the first aspect or any one of the realizable manners of the first aspect is implemented.
According to the method, the device, the equipment and the computer readable storage medium for realizing the automation of the emergency drilling, provided by the embodiment of the invention, through the way of automatically executing the target task of the emergency drilling, according to the preset network port test sequence of the network equipment, the network port of the network equipment is closed, the downtime of the business equipment is simulated, and the business service dial test is carried out after the downtime, so that the aim of automation of the emergency drilling is fulfilled.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an emergency drilling automation implementation system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an automated emergency drilling implementation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an automatic emergency drilling implementation apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an emergency drilling automation implementation device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
At present, after a main node is down, a plurality of important systems are maintained, and a standby node does not bear services according to expectation, so that serious complaints are caused. Moreover, because the personnel is limited during the drilling, the operation content of the drilling equipment is more, so that a plurality of sets of equipment cannot be manually drilled, and the effect of the drilling equipment on one day is often limited.
In view of the above, embodiments of the present invention provide a method, an apparatus, a device, and a computer-readable storage medium for implementing automation of emergency drilling, which implement, in an automatic emergency drilling target task execution manner, according to a preset network port test sequence of a network device, network port shutdown of the network device, simulation of downtime of a service device, and service dial test after downtime, thereby implementing automation of emergency drilling, and not only enable an automatic service test to be practical, improve test efficiency, and reduce test cost, but also discover hidden dangers of multiple sets of clusters and virtualization platforms in advance, and provide a basis for future optimization.
In the embodiment of the invention, the automatic emergency drilling implementation method mainly relates to protocol interfaces, network equipment command interaction, association of network equipment, ports and service application addresses, setting of emergency drilling tasks, execution of emergency drilling target tasks and the like.
It can be understood that the method can be applied to an emergency drilling automation implementation system, where the emergency drilling automation implementation system is shown in fig. 1, and fig. 1 is a schematic structural diagram of an emergency drilling automation implementation system provided in an embodiment of the present invention. As shown in fig. 1, the emergency drilling automation implementation system may include a function module 1, a function module 2, a function module 3, a function module 4, a function module 5, and a function module 6.
The functional module 1 is configured to preset an interface with a network device, and specifically, may pre-establish a capability of an emergency drilling platform to call the network device, where the emergency drilling platform may realize a connection with the network device by calling a Secure Shell protocol (SSH).
The functional module 2 is configured to preset an operation instruction executed after the network device is connected, and specifically, may preset an operation instruction sequentially executed after the network device is connected to the network device, so that, after the network device is connected to the network device, a corresponding operation may be automatically executed according to the preset operation instruction, thereby implementing an automated process. The information required for setting is network equipment management address, user prompt, user name, user prompt, user password, network login mode, user prompt, logged-in network port, user prompt and port start-stop command. After the setting of the information is completed, the information is saved in a database, and optionally, the information can be stored in the form of a database table.
The functional module 3 is configured to preset associations between network devices, ports, and service application addresses, and specifically, may preset associations between network devices, network ports, and service application addresses hung on the network ports, where a network device may include at least two network ports, and each of the at least two network ports has one service application address. It is known that one service application address corresponds to one service, and one service may correspond to a plurality of service application addresses. That is to say the network device can connect at least two service hosts for the same service via a service application address on a network port. Meanwhile, a preset port starting sequence of the network device may also be preset, and optionally, a preset network port testing sequence of the network device may be set according to the network port of the network device. In addition, a preset dial testing keyword of a service corresponding to the network port can be preset. After the setting of the information is completed, the information is saved in a database, and optionally, the information can be stored in the form of a database table.
The function module 4 is used for presetting an emergency drilling task and executing an emergency drilling target task, and specifically, the emergency drilling task is a part which can be automatically executed. The module can set the time for the emergency drilling task to automatically execute the emergency drilling task. Wherein the emergency drill task is associated with the logic of the functional modules 1, 2, 3. Here, there may be more than one emergency drilling task, each of the emergency drilling tasks includes a time for performing the emergency drilling task, and the emergency drilling task corresponding to a time coinciding with the current time may be determined as the emergency drilling target task and then performed.
The functional module 5 is used for service dial testing, specifically, the service dial testing is a verification operation performed on whether a service is normally performed after an emergency drilling target task is executed.
The function module 6 is used to output log information data, and specifically, a log file during emergency drilling may be generated and stored. The log information in the log file may include information such as a drilling network device name, a network management address, a network port, a host IP, a service name, a service function name, emergency drilling time, a task name, device operation command details, a service responsible person, and a drilling responsible person.
The following describes an automated emergency drilling implementation method provided by the embodiment of the invention with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of an emergency drilling automation implementation method according to an embodiment of the present invention. As shown in fig. 2, the emergency drilling automation implementation method 100 may include S110 to S140.
And S110, acquiring an emergency drilling target task.
Specifically, at least one emergency drilling task may be obtained, each emergency drilling task includes time for executing the emergency drilling task, and the emergency drilling task corresponding to the time consistent with the current time is determined as the emergency drilling target task. That is, the emergency drilling task corresponding to the time for executing the emergency drilling task that coincides with the current time is determined as the emergency drilling target task.
The emergency drilling task may be preset and used to test whether at least two service hosts connected to the network device are in a period in which some of the hosts are down, and the remaining hosts may continue to carry services. The service host may use a cluster or virtualization mode to carry out service bearer.
And S120, connecting the network equipment corresponding to the emergency drilling target task.
The emergency drilling target task may include an address of the network device, where the address of the network device refers to a network address of the network device in the network, and the network device may be connected by using the address of the SSH and the network device. The network device includes at least two network ports, each of the at least two network ports has a service application address, that is, one network port may correspond to one service host for carrying a service, that is, one network port is connected to one service host.
S130, determining the network port to be closed of the current network device according to the preset network port test sequence of the network device.
The preset network port test sequence of the network device may represent a test sequence of the network ports, and may be preset. As an example, before determining the network port to be closed of the current network device according to the preset network port test sequence of the network device, the preset network port test sequence of the network device may be set according to the network port of the network device.
As a specific example, the preset network port test sequence is a-B-C-D, which can be expressed as first testing (closing) the a port, second testing (closing) the B port, third testing (closing) the C port, and finally testing (closing) the D port. That is, the network port to be closed of the current network device is an a port. It can be understood that the testing (closing) of the port is to disconnect the port from the connected service host, and simulate the downtime of the service host.
S140, closing the network port to be closed, and carrying out service dial test on the service corresponding to the closed network port.
Specifically, the network port to be closed may be closed according to a preset operation instruction, and a service dial test may be performed on the service corresponding to the closed network port according to a preset dial test keyword of the service corresponding to the closed network port, and a test state (normal or abnormal) may be returned. That is, it can be determined whether other remaining hosts can continue to carry traffic after the port is disconnected from the connected traffic host.
According to the method for realizing the emergency drilling automation, the network ports of the network equipment are closed, the business equipment downtime is simulated, the business dial test is carried out after the downtime according to the preset network port test sequence of the network equipment in an automatic execution mode of the emergency drilling target task, and further the purpose of realizing the emergency drilling automation is achieved.
In some embodiments, after performing service dial testing on the service corresponding to the closed network port, the emergency drilling automation implementation method 100 may further include S150, starting the closed network port, and performing service dial testing on the service corresponding to the started network port. Specifically, according to the preset dial testing keyword of the service corresponding to the started network port, the service corresponding to the started network port is subjected to service dial testing, and a test state (normal or abnormal) can be returned. The specific process is similar to step S140 and will not be described herein. It can be understood that, by repeating steps S130-S150, each network port of the network device can be tested, so that the network port of the network device can be started or stopped, the downtime and the recovery of the service device can be simulated, and the downtime and the recovery respectively perform service dial-up test, thereby achieving the purpose of emergency drilling automation, making the service automation test practical, improving the test efficiency, and reducing the test cost.
In some embodiments, a first log file may be generated and stored prior to initiating the closed network port. After the service corresponding to the started network port is subjected to service dial testing, a second log file can be generated and stored. The log file can be used for generating a related report after emergency drilling is finished, and a basis is provided for subsequent analysis and optimization.
The method for implementing automation of emergency drilling provided by the embodiment of the present invention is specifically described below, by taking an example that 1 network port of a certain network device is started and stopped corresponding to 1 service host, that is, how to simulate a specific flow of a certain service device going down and recovering a scene in a real scene.
The concrete description is as follows:
step 1, at least one emergency drilling task is obtained, and each emergency drilling task comprises time for executing the emergency drilling task.
And 2, determining the emergency drilling task corresponding to the time consistent with the current time as an emergency drilling target task, and executing the emergency drilling target task.
And 3, connecting the network equipment by utilizing the SSH and the address of the network equipment.
And 4, checking a preset network port test sequence of the network equipment.
And step 5, determining the network port to be closed of the current network equipment according to the preset network port test sequence of the network equipment.
And 6, closing the network port to be closed according to a preset operation instruction, carrying out service dial testing on the service corresponding to the closed network port according to a preset dial testing keyword of the service corresponding to the closed network port, and returning a testing result (normal or abnormal).
And 7, recording the log into a specific log document.
And 8, starting the closed network port, carrying out service dial testing on the service corresponding to the started network port according to the preset dial testing keyword of the service corresponding to the started network port, and returning to a testing state (normal or abnormal).
And 9, recording the log into a specific log document.
And (3) when the start-stop simulation equipment of one network port is down and the recovery process is finished under the real environment, repeating the steps 2-9 to test all the network ports of all the network equipment.
Fig. 3 is a schematic structural diagram of an emergency drilling automation implementation apparatus according to an embodiment of the present invention, and as shown in fig. 3, the emergency drilling automation implementation apparatus 200 may include: an obtaining module 210, a connecting module 220, a determining module 230, and a closing module 240.
The obtaining module 210 is configured to obtain an emergency drilling target task. The connection module 220 is configured to connect a network device corresponding to the emergency drilling target task, where the network device includes at least two network ports, and each of the at least two network ports has a service application address. The determining module 230 is configured to determine a network port to be closed of the current network device according to a preset network port testing sequence of the network device. The closing module 240 is configured to close a network port to be closed, and perform service dial test on a service corresponding to the closed network port.
In some embodiments, the obtaining module 210 is specifically configured to obtain at least one emergency drilling task, where each emergency drilling task includes a time for executing the emergency drilling task, and determine an emergency drilling task corresponding to a time consistent with a current time as an emergency drilling target task.
In some embodiments, the emergency drill goal task includes an address of the network device. The connection module 220 is specifically configured to connect the network device with the address of the network device using the secure shell protocol SSH.
In some embodiments, the closing module 240 is specifically configured to close the network port to be closed according to a preset operation instruction.
In some embodiments, the closing module 240 is specifically configured to perform service dial testing on a service corresponding to a closed network port according to a preset dial testing keyword of the service corresponding to the closed network port.
In some embodiments, the apparatus 200 further comprises: the setting module 250 is configured to set a preset network port test sequence of the network device according to the network port of the network device before determining the network port to be closed of the current network device according to the preset network port test sequence of the network device.
In some embodiments, the apparatus 200 further comprises: the starting module 260 is configured to start the closed network port after performing service dial testing on the service corresponding to the closed network port, and perform service dial testing on the service corresponding to the started network port.
In some embodiments, the apparatus 200 further comprises: a generating module 270, configured to generate a first log file before starting the closed network port;
the generating module 270 is further configured to generate a second log file after performing service dial test on the service corresponding to the started network port.
According to the automatic emergency drilling implementation device, the network ports of the network equipment are closed, the breakdown of the service equipment is simulated, the service dial test is performed after the breakdown according to the preset network port test sequence of the network equipment in an automatic emergency drilling target task execution mode, and further the purpose of emergency drilling automation is achieved.
It can be understood that the emergency drilling automation implementation apparatus 200 according to the embodiment of the present invention may correspond to the execution main body of the emergency drilling automation implementation method in fig. 2 according to the embodiment of the present invention, and specific details of operations and/or functions of each module/unit of the emergency drilling automation implementation apparatus 200 may refer to the descriptions of the corresponding parts in the emergency drilling automation implementation method in fig. 2 according to the embodiment of the present invention, and are not described herein again for brevity.
Fig. 4 is a schematic diagram of a hardware structure of an emergency drilling automation implementation device according to an embodiment of the present invention.
As shown in fig. 4, the emergency drilling automation realization device 300 in the present embodiment includes an input device 301, an input interface 302, a central processing unit 303, a memory 304, an output interface 305, and an output device 306. The input interface 302, the central processing unit 303, the memory 304, and the output interface 305 are connected to each other through a bus 310, and the input device 301 and the output device 306 are connected to the bus 310 through the input interface 302 and the output interface 305, respectively, and further connected to other components of the emergency drilling automation implementation device 300.
Specifically, the input device 301 receives input information from the outside and transmits the input information to the central processor 303 through the input interface 302; central processor 303 processes the input information based on computer-executable instructions stored in memory 304 to generate output information, stores the output information temporarily or permanently in memory 304, and then transmits the output information to output device 306 through output interface 305; the output device 306 outputs the output information to the outside of the emergency drilling automation implementation device 300 for use by the user.
In one embodiment, the emergency drill automation implementing apparatus 300 shown in fig. 4 includes: a memory 304 for storing programs; and a processor 303, configured to execute a program stored in the memory to execute the emergency drilling automation implementation method provided in the embodiment shown in fig. 2.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium has computer program instructions stored thereon; the computer program instructions, when executed by the processor, implement the method for automated emergency drilling provided by the embodiment shown in fig. 2.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuits, semiconductor Memory devices, Read-Only memories (ROMs), flash memories, erasable ROMs (eroms), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (11)
1. An automatic emergency drilling implementation method is characterized by comprising the following steps:
acquiring an emergency drilling target task;
connecting network equipment corresponding to the emergency drilling target task, wherein the network equipment comprises at least two network ports, and each of the at least two network ports has a service application address;
determining a network port to be closed of the current network equipment according to a preset network port test sequence of the network equipment;
and closing the network port to be closed, and carrying out service dial testing on the service corresponding to the closed network port.
2. The method of claim 1, wherein the obtaining of the emergency drilling goal task comprises:
acquiring at least one emergency drilling task, wherein each emergency drilling task comprises time for executing the emergency drilling task;
and determining the emergency drilling task corresponding to the time consistent with the current time as the emergency drilling target task.
3. The method of claim 1, wherein the emergency drilling goal task comprises an address of the network device;
the network equipment connected with the corresponding emergency drilling target task comprises:
and connecting the network equipment by utilizing a secure shell protocol (SSH) and the address of the network equipment.
4. The method of claim 1, wherein closing the network port to be closed comprises:
and closing the network port to be closed according to a preset operation instruction.
5. The method of claim 1, wherein the performing service dial testing on the service corresponding to the closed network port comprises:
and carrying out service dial testing on the service corresponding to the closed network port according to the preset dial testing keyword of the service corresponding to the closed network port.
6. The method according to any one of claims 1 to 5, wherein before determining the network port to be closed of the network device currently according to the preset network port test sequence of the network device, the method further comprises:
and setting a preset network port test sequence of the network equipment according to the network port of the network equipment.
7. The method according to any of claims 1-5, wherein after performing service dial test on the service corresponding to the network port after being closed, the method further comprises:
and starting the closed network port, and carrying out service dial testing on the service corresponding to the started network port.
8. The method of claim 7, wherein prior to initiating the closed network port, the method further comprises:
generating a first log file;
after the service dial testing is performed on the service corresponding to the started network port, the method further includes:
a second log file is generated.
9. An automatic realization device for emergency drilling, which is characterized in that the device comprises:
the acquisition module is used for acquiring an emergency drilling target task;
the connection module is used for connecting network equipment corresponding to the emergency drilling target task, wherein the network equipment comprises at least two network ports, and each of the at least two network ports has a service application address;
the determining module is used for determining a network port to be closed of the current network equipment according to a preset network port testing sequence of the network equipment;
and the closing module is used for closing the network port to be closed and carrying out service dial test on the service corresponding to the closed network port.
10. An automated emergency drill implementation device, comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method for automated emergency drilling according to any one of claims 1 to 8.
11. A computer-readable storage medium, having stored thereon computer program instructions, which, when executed by a processor, implement the method for automated emergency drilling according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010027483.XA CN113132177A (en) | 2020-01-10 | 2020-01-10 | Emergency drilling automation realization method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010027483.XA CN113132177A (en) | 2020-01-10 | 2020-01-10 | Emergency drilling automation realization method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113132177A true CN113132177A (en) | 2021-07-16 |
Family
ID=76770901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010027483.XA Pending CN113132177A (en) | 2020-01-10 | 2020-01-10 | Emergency drilling automation realization method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113132177A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101448277A (en) * | 2008-12-30 | 2009-06-03 | 中国移动通信集团北京有限公司 | Method, system and device for processing wireless access network faults |
US7990994B1 (en) * | 2004-02-13 | 2011-08-02 | Habanero Holdings, Inc. | Storage gateway provisioning and configuring |
US20110270970A1 (en) * | 2010-04-29 | 2011-11-03 | Hon Hai Precision Industry Co., Ltd | Network device testing system and method |
CN102684946A (en) * | 2012-05-25 | 2012-09-19 | 中国舰船研究设计中心 | Dual-network-interface-card switching performance testing method for information integration system |
CN204121655U (en) * | 2013-11-18 | 2015-01-28 | 重庆和航安全技术服务有限公司 | There is the fire-fighting water supply network intelligent inspection system of combat exercise |
CN104378265A (en) * | 2014-12-15 | 2015-02-25 | 中铁二十五局集团电务工程有限公司 | Testing method for railway information redundant network links |
CN105933919A (en) * | 2016-06-14 | 2016-09-07 | 上海斐讯数据通信技术有限公司 | Method and system for testing wireless transmission device |
CN107766502A (en) * | 2017-10-20 | 2018-03-06 | 上海新炬网络信息技术股份有限公司 | A kind of Oracle RAC databases disaster tolerance switches drilling method |
CN109743235A (en) * | 2019-03-20 | 2019-05-10 | 浪潮商用机器有限公司 | A method, device and medium for testing network performance of network card in network equipment |
CN208907977U (en) * | 2018-09-29 | 2019-05-28 | 西门子电站自动化有限公司 | For detecting the simulator in control system protection circuit |
CN109962823A (en) * | 2017-12-26 | 2019-07-02 | 迈普通信技术股份有限公司 | A kind of automatization test system and method for network application scene |
-
2020
- 2020-01-10 CN CN202010027483.XA patent/CN113132177A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7990994B1 (en) * | 2004-02-13 | 2011-08-02 | Habanero Holdings, Inc. | Storage gateway provisioning and configuring |
CN101448277A (en) * | 2008-12-30 | 2009-06-03 | 中国移动通信集团北京有限公司 | Method, system and device for processing wireless access network faults |
US20110270970A1 (en) * | 2010-04-29 | 2011-11-03 | Hon Hai Precision Industry Co., Ltd | Network device testing system and method |
CN102684946A (en) * | 2012-05-25 | 2012-09-19 | 中国舰船研究设计中心 | Dual-network-interface-card switching performance testing method for information integration system |
CN204121655U (en) * | 2013-11-18 | 2015-01-28 | 重庆和航安全技术服务有限公司 | There is the fire-fighting water supply network intelligent inspection system of combat exercise |
CN104378265A (en) * | 2014-12-15 | 2015-02-25 | 中铁二十五局集团电务工程有限公司 | Testing method for railway information redundant network links |
CN105933919A (en) * | 2016-06-14 | 2016-09-07 | 上海斐讯数据通信技术有限公司 | Method and system for testing wireless transmission device |
CN107766502A (en) * | 2017-10-20 | 2018-03-06 | 上海新炬网络信息技术股份有限公司 | A kind of Oracle RAC databases disaster tolerance switches drilling method |
CN109962823A (en) * | 2017-12-26 | 2019-07-02 | 迈普通信技术股份有限公司 | A kind of automatization test system and method for network application scene |
CN208907977U (en) * | 2018-09-29 | 2019-05-28 | 西门子电站自动化有限公司 | For detecting the simulator in control system protection circuit |
CN109743235A (en) * | 2019-03-20 | 2019-05-10 | 浪潮商用机器有限公司 | A method, device and medium for testing network performance of network card in network equipment |
Non-Patent Citations (4)
Title |
---|
刘少武,: ""移动交换网应急保障数据监测系统设计与实现"", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
叶长根等,: ""移动互联网流量网关应急放通机制创新"", 《电信技术》 * |
宋亚丽,: ""河南移动11期软交换设备优化和容灾测试"", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
谭旺生,: ""本地网MSC N+1容灾备份方案的实现与应用"", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109361562B (en) | Automatic testing method based on associated network equipment access | |
CN107566165B (en) | Method and system for discovering and deploying available resources of power cloud data center | |
CN100570580C (en) | Simple network management protocol software testing device and testing method | |
CN112579455B (en) | Automatic interface testing method and device, electronic equipment and storage medium | |
CN110688305B (en) | Test environment synchronization method, device, medium and electronic equipment | |
CN107621963B (en) | Software deployment method, software deployment system and electronic equipment | |
CN105245392A (en) | Method and device for base line checking and repairing | |
CN112988555A (en) | Interface test method, device, equipment and storage medium | |
CN114116288A (en) | Fault handling method, apparatus and computer program product | |
CN108875368A (en) | A kind of safety detection method, apparatus and system | |
CN111506641A (en) | Data management method, data acquisition platform, data management system and storage medium | |
CN116303069A (en) | Test method, device, upper computer, system and medium of vehicle-mounted terminal | |
CN110413523B (en) | Drainage testing method, drainage testing middle table and computer readable storage medium | |
CN118802520B (en) | Nginx configuration detection method and device for network target range system | |
CN106598793B (en) | A test system and test method based on BIOS serial port log data | |
CN108009086A (en) | System automation test method with function study is decomposed based on use-case | |
CN113132177A (en) | Emergency drilling automation realization method, device, equipment and medium | |
CN116450400A (en) | Application program abnormality analysis method and device, electronic equipment and storage medium | |
CN116594826A (en) | A server testing method, device, electronic equipment and storage medium | |
CN116629173A (en) | Verification method and device of network chip, computer equipment and storage medium | |
CN116455869A (en) | Method and system for efficiently configuring public network domain name based on Kubernetes | |
CN115495195A (en) | Data processing method and device and related equipment | |
CN112667498B (en) | Server building method, device, computer equipment and readable storage medium | |
CN106972963A (en) | Enabling for business module enables control method after control method, collapse are restarted | |
CN116192807B (en) | A BMC IP acquisition method, device, 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210716 |
|
RJ01 | Rejection of invention patent application after publication |