CN111327658B - Conflict type man-machine command interaction channel parallel work control method and device - Google Patents

Conflict type man-machine command interaction channel parallel work control method and device Download PDF

Info

Publication number
CN111327658B
CN111327658B CN201811535848.9A CN201811535848A CN111327658B CN 111327658 B CN111327658 B CN 111327658B CN 201811535848 A CN201811535848 A CN 201811535848A CN 111327658 B CN111327658 B CN 111327658B
Authority
CN
China
Prior art keywords
network element
interaction
task management
management file
element device
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
CN201811535848.9A
Other languages
Chinese (zh)
Other versions
CN111327658A (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.)
China Mobile Group Shandong Co Ltd
Original Assignee
China Mobile Group Shandong Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Shandong Co Ltd filed Critical China Mobile Group Shandong Co Ltd
Priority to CN201811535848.9A priority Critical patent/CN111327658B/en
Publication of CN111327658A publication Critical patent/CN111327658A/en
Application granted granted Critical
Publication of CN111327658B publication Critical patent/CN111327658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/0893Assignment of logical groups to network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a method and a device for controlling parallel work of conflict type human-computer command interaction channels, wherein the method comprises the following steps: acquiring activation indicating information; if the task management file is locked by the target interaction channel, selecting one network element device with an empty current state from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device and issues an execution command to the target network element device; and updating and releasing the task management file and generating activation indication information. According to the conflict type man-machine command interaction channel parallel work control method and device provided by the embodiment of the invention, the interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that the network element equipment is automatically connected, the execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, and the working efficiency of the workers is improved.

Description

Conflict type man-machine command interaction channel parallel work control method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for controlling parallel work of conflict type man-machine command interaction channels.
Background
In the debugging, testing and maintenance operations of communication network equipment, various man-machine command interaction terminal software is used for connecting the equipment, and man-machine commands are sent to modify the software and hardware configuration and processing behaviors of the network element equipment. The man-machine command interactive terminal software is called interactive software for short, and one part of the interactive software is multi-channel man-machine command interactive terminal software supporting a programming function. These software can open multiple man-machine command interaction channels (windows) at the same time for man-machine command interaction with the network element devices. The man-machine command interaction channel is called interaction channel for short, each interaction channel can be set to be independently connected with a certain network element device to execute a certain man-machine command or a man-machine command set (file).
In the prior art, when interactive software is used, each interactive channel is independent and has no relation with each other. When a plurality of network element devices are operated, an operator is required to manually connect each network element device one by one through an interaction channel, and a plurality of interaction channels of interaction software cannot fully and automatically utilize connection resources and cooperatively play a role according to the requirements of the operator. That is, when an operator manually connects the network element devices through the interaction channel, or when one network element device is operated by using the same interaction channel and is switched to another network element device, the interaction channel is always in an "idle" state for a while.
Therefore, when the interactive software in the prior art is used, the existing interactive channel connection resources cannot be automatically and fully utilized, all network element devices cannot be automatically, dynamically and parallelly connected and instructions cannot be executed according to the intention of an operator, and the operating efficiency of the interactive software is low.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for controlling concurrent work of conflicting cmoss that overcome or at least partially solve the above problems.
In order to solve the foregoing technical problem, in one aspect, an embodiment of the present invention provides a method for controlling parallel work of a conflict type human-computer command interaction channel, where the method includes:
acquiring activation indicating information, wherein the activation indicating information is generated by a last interaction channel and is used for indicating all idle interaction channels to try to lock a task management file, and the task management file is used for recording the current states of all network element devices;
if the task management file is locked by the target interaction channel, selecting one network element device with an empty current state from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device, and issuing an execution command to the target network element device;
and updating and releasing the task management file, and generating activation indication information for indicating all idle interaction channels to try to lock the updated task management file next time.
On the other hand, an embodiment of the present invention provides a conflict type device for controlling parallel work of human-computer command interaction channels, including:
an obtaining module, configured to obtain activation indication information, where the activation indication information is generated by a previous interaction channel and is used to indicate that all idle interaction channels attempt to lock a task management file, and the task management file is used to record current states of all network element devices;
the selection module is used for selecting one network element device with an empty current state from the task management file as a target network element device if the task management file is judged and known to be locked by a target interaction channel, so that the target interaction channel is connected with the target network element device, and an execution command is issued to the target network element device;
and the release module is used for updating and releasing the task management file and generating activation indication information so as to indicate all idle interaction channels to try to lock the updated task management file next time.
In another aspect, an embodiment of the present invention provides an electronic device, including:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the methods described above.
In yet another aspect, the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the above-mentioned method.
According to the conflict type man-machine command interaction channel parallel work control method and device provided by the embodiment of the invention, the interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, the interaction channels are mutually associated, so that the network element equipment is automatically connected, the execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
Drawings
FIG. 1 is a diagram illustrating a method for controlling parallel operations of conflicting commands for interactive channels in a human-computer system according to an embodiment of the present invention;
FIG. 2 is a logic flow diagram of concurrent work control of conflicting human-machine command interaction channels according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a conflict type parallel work control apparatus for human-computer command interaction channels according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a conflict type human-computer command interaction channel parallel work control method according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides a conflict type human-computer command interaction channel parallel work control method, an execution main body of which is a conflict type human-computer command interaction channel parallel work control device, hereinafter referred to as a control device, and the method includes:
step S101, acquiring activation indicating information, wherein the activation indicating information is generated by a last interactive channel and is used for indicating all idle interactive channels to try to lock task management files, and the task management files are used for recording the current states of all network element devices;
step S102, if judging that the task management file is locked by the target interaction channel, selecting a network element device with an empty current state from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device, and issuing an execution command to the target network element device;
and step S103, updating and releasing the task management file, and generating activation indication information for indicating all idle interaction channels to try to lock the updated task management file next time.
Specifically, fig. 2 is a logic flow diagram of the conflict type human-computer command interaction channel parallel work control provided in the embodiment of the present invention, and as shown in fig. 2, the conflict type human-computer command interaction channel parallel work control method provided in the embodiment of the present invention makes interaction channels associated with each other by performing programmable design on interaction software and comprehensively considering the working states of different interaction channels, thereby implementing automatic connection of network element devices, automatic issuing of execution commands, and implementing full-automatic operation of interaction software.
Firstly, a first interactive channel initiates a parallel task, for example, interactive channel A, stores the name or number of the network element equipment needing to be operated into a network element equipment list, writes the network element equipment list into a task management file, and initializes the task management file. The task management file is used for recording the states of all the network element devices, the states of the network element devices comprise empty, occupied and completed, if no interactive channel is connected with a certain network element device, the state of the network element device is empty, if the existing interactive channel is connected with the certain network element device but the execution command is not completed yet, the state of the network element device is occupied, and if all the execution commands are executed on the certain network element device through the interactive channel, the state of the network element device is completed.
The interactive channel A initializes the parallel task, marks that the parallel channel is activated after the task management file is generated, then the interactive channel A immediately locks the task management file, and when the task management file is locked, other interactive channels can not read and write the task management file temporarily.
Then, one network element device, for example, the network element device A1, is selected from the network element device list in the task management file, so that the interaction channel a is connected with the network element device A1, and an execution command is issued to the network element device A1.
And updating the state of the network element equipment A1 from empty to occupied while the interactive channel A is connected with the network element equipment A1.
And then releasing the updated task management file, generating activation indication information, and reactivating the parallel channel, wherein the activation indication information is used for indicating all idle interaction channels to try to lock the task management file.
All the interaction channels can receive the activation indication information generated by the interaction channel A (the last interaction channel), and after the activation indication information is acquired, the task management file is tried to be locked, namely, all the interaction channels rob the task management file.
The interaction channel which firstly locks the task management file has the right of reading and writing the task management file, and when the task management file is locked, other interaction channels can not read and write the task management file temporarily.
If the task management file is locked by the target interaction channel (next interaction channel) is judged and known, selecting one network element device with an empty current state from the task management file as the target network element device, for example, selecting the network element device A2 for the target interaction channel to be connected with the network element device A2, and issuing an execution command to the network element device A2. It should be noted that: if a certain network element device establishes a connection with any interactive channel, the network element device cannot establish a connection with the network element device through other interactive channels when the network element device is in an occupied or finished state. For example, the interaction channel a has already established a connection with the network element device A1, and other interaction channels cannot establish a connection with the interaction channel a any more.
And updating the state of the network element equipment A2 from null to occupied while the target intercommunication is connected with the network element equipment A2.
And then releasing the updated task management file, generating activation indication information, and reactivating the parallel channel, wherein the activation indication information is used for indicating all idle interaction channels to try to lock the task management file.
And after the next interactive channel locks the task management file, selecting one network element device with an empty current state as a target network element device for the next interactive channel to connect the target network element device and issuing an execution command to the target network element device until the states of all network element devices in a network element device list in the task management file are all non-empty, thereby realizing the automatic connection of the interactive channels and automatically issuing the execution command to the network element device.
The conflict type means that the corresponding relationship between the interaction channel and the network element device is not preset, after the task management file is released, all idle interaction channels can try to lock the task management file, when the task management file is locked, other interaction channels can not read and write the task management file temporarily, and a time is needed to wait for a certain time, so that a conflict exists to a certain extent, however, the network element device in an empty state is selected, and the time for establishing connection with the network element device is short, generally several milliseconds, and the efficiency is not affected.
Moreover, the issuing of the execution command to the network element device may be an execution command file (an execution command set including a series of execution commands), where the execution commands in the execution command file are not sequentially associated from front to back, and on the premise that the connected device supports simultaneous connection of multiple terminals, the execution command set may also replace a device name list, so as to implement parallel execution of commands of the same device.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
On the basis of the above embodiment, further, the previous interaction channel and the target interaction channel are the same interaction channel.
Specifically, after the task management file is released by the previous interaction channel, all idle interaction channels can try to lock the task management file, and when the task management file is locked, other interaction channels cannot read and write the task management file temporarily.
The last interaction channel and the target interaction channel may be the same interaction channel.
For example, the previous interaction channel is an interaction channel a, after the activation indication information generated by the interaction channel a, the interaction channel a may also attempt to lock the task management file, and if the interaction channel a has completed all the execution commands that need to be issued to the network element device A1, the interaction channel a successfully locks the task management file again, and at this time, the previous interaction channel and the target interaction channel are both the interaction channel a.
And the interaction channel A successfully locks the task management file again, and if the network element equipment A2 is selected as target network element equipment.
And updating the state of the network element equipment A2 from empty to occupied while the interactive channel A is connected with the network element equipment A2, and updating the state of the network element equipment A1 from occupied to finished.
And then releasing the updated task management file, generating activation indication information, and reactivating the parallel channel, wherein the activation indication information is used for indicating all idle interaction channels to try to lock the task management file.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
On the basis of the above embodiments, further, the previous interaction channel and the target interaction channel are two different interaction channels of the same interaction software.
In particular, interactive software can generally open multiple interactive channels (windows) simultaneously for man-machine command interaction with network element devices.
The conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention comprises the steps that the last interaction channel releases an updated task management file and generates activation indication information, the parallel channels are automatically activated to indicate all idle interaction channels to try to lock the task management file, after the next interaction channel locks the task management file, a network element device with the current state being empty is selected as a target network element device, the next interaction channel is connected with the target network element device, and an execution command is issued to the target network element device until the states of all network element devices in a network element device list in the task management file are all non-empty, so that the network element devices are automatically connected through the interaction channels, and the execution command is automatically issued to the network element device.
The last interactive channel and the target interactive channel (next interactive channel) may be two interactive channels of the same interactive software.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
On the basis of the above embodiments, further, the previous interaction channel is an interaction channel of first interaction software in a target terminal, and the target interaction channel is an interaction channel of second interaction software in the target terminal.
In particular, interactive software can generally open multiple interactive channels (windows) at the same time for human-machine command interaction with network element devices.
The conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention comprises the steps that the last interaction channel releases an updated task management file and generates activation indication information, the parallel channels are automatically activated to indicate all idle interaction channels to try to lock the task management file, after the next interaction channel locks the task management file, a network element device with the current state being empty is selected as a target network element device, the next interaction channel is connected with the target network element device, and an execution command is issued to the target network element device until the states of all network element devices in a network element device list in the task management file are all non-empty, so that the network element devices are automatically connected through the interaction channels, and the execution command is automatically issued to the network element device.
Usually, in consideration of factors such as the minimum configuration of a terminal memory and a processor for installing a program, connection bandwidth, and the like, an interactive software designer often limits the number of interactive channels that can be simultaneously opened, and only allows a current terminal to run one program instance.
In case the terminal memory, the processor processing capacity and the connection bandwidth are large enough, other interactive software supporting programming functions may be introduced in order to break through the limitation that only one program instance is allowed to run on one terminal. The last interactive channel is the interactive channel of the first interactive software in the target terminal, and the target interactive channel (the next interactive channel) is the interactive channel of the second interactive software in the target terminal.
That is, a plurality of interactive software are run on the same terminal, and different interactive software share a task management file, a device list and an execution command file. Therefore, parallel command channel expansion on a plurality of interactive software of the same terminal is realized, and the execution efficiency of tasks is further expanded.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
On the basis of the above embodiments, further, the previous interaction channel is an interaction channel of interaction software in the first terminal, and the target interaction channel is an interaction channel of interaction software in the second terminal.
In particular, interactive software can generally open multiple interactive channels (windows) simultaneously for man-machine command interaction with network element devices.
The conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention comprises the steps that the last interaction channel releases an updated task management file, an activation indication message is generated, the parallel channels are automatically activated, all idle interaction channels are indicated to try to lock the task management file, after the next interaction channel locks the task management file, a network element device with the current empty state is selected as a target network element device, the next interaction channel is used for connecting the target network element device, and an execution command is issued to the target network element device until the states of all network element devices in a network element device list in the task management file are all non-empty, so that the automatic connection of the network element devices of the interaction channels is realized, and the execution command is automatically issued to the network element device.
Usually, in consideration of factors such as the minimum configuration of a terminal memory and a processor for installing a program, connection bandwidth, and the like, an interactive software designer often limits the number of interactive channels that can be simultaneously opened, and only allows a current terminal to run one program instance.
In order to expand the execution efficiency of the task, it may be considered that a plurality of terminals are associated and cooperate, so that the previous interaction channel is an interaction channel of interaction software in the first terminal, and the target interaction channel (the next interaction channel) is an interaction channel of interaction software in the second terminal.
That is, the interactive software is run on different terminals at the same time, and the task management file, the device list and the execution command file are shared among the interactive software on different terminals. Therefore, parallel command channel expansion on interactive software of different terminals is realized, and the execution efficiency of tasks is further expanded.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
On the basis of the above embodiments, further, the second terminal obtains the activation indication information through network sharing.
Specifically, in order to extend the execution efficiency of the task, it may be considered that a plurality of terminals are associated and cooperate with each other, so that the previous interaction channel is an interaction channel of the interaction software in the first terminal, and the target interaction channel (next interaction channel) is an interaction channel of the interaction software in the second terminal.
That is, the interactive software is run on different terminals at the same time, and the task management file, the device list, and the execution command file are shared among the interactive software on different terminals. Therefore, parallel command channel expansion on interactive software of different terminals is realized, and the execution efficiency of tasks is further expanded.
The sharing file protocol of the computer network is utilized to realize the sharing of the task management file, the equipment list and the execution command file among the interactive software on different terminals, so that the terminals interconnected on the network can access the terminals for storing the task management file and the command file, read data and repair the content of the task management file, thereby realizing the multi-terminal distribution of tasks.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
On the basis of the foregoing embodiments, further, the condition that the target interaction channel can successfully lock the task management file at least includes that the issuing of the execution command of the selected network element device when the task management file is locked last time is completed.
Specifically, after the task management file is released by the previous interaction channel, all idle interaction channels can try to lock the task management file, and when the task management file is locked, other interaction channels cannot read and write the task management file temporarily.
The condition that the target interaction channel can successfully lock the task management file at least comprises that the issuing of the execution command of the selected network element equipment when the task management file is locked last time is finished. If the target interaction channel does not complete the issuing of the execution command of the selected network element equipment when the task management file is locked last time, the target interaction channel is in a busy state, the task management file cannot be successfully locked by the target interaction channel, and the task management file can be successfully locked in a mode of trying to lock the task management file only if the target interaction channel is in an idle state after the target interaction channel completes the issuing of the execution command of the selected network element equipment when the task management file is locked last time.
For example, the interaction channel a selects the network element device A1 when locking the task management file value last time, and after the activation indication information generated by the interaction channel a, the interaction channel a may also attempt to lock the task management file, but if the interaction channel a also completes all execution commands that need to be issued to the network element device A1, the interaction channel a will successfully lock the task management file again. Only when the interaction channel a has completed all the execution commands to be issued to the network element device A1 and is in an idle state, the task management file can be successfully locked again by attempting to lock the task management file.
According to the conflict type man-machine command interaction channel parallel work control method provided by the embodiment of the invention, interaction software is subjected to programmable design, the working states of different interaction channels are comprehensively considered, and the interaction channels are mutually associated, so that network element equipment is automatically connected, an execution command is automatically issued, the full-automatic operation of the interaction software is realized, the operation efficiency is improved, the operation steps of workers are simplified, the labor intensity of the workers is reduced, the working time of the workers is saved, and the working efficiency of the workers is improved.
Finally, the description is made by way of an example:
setting: 1. there are three interaction channels, which are: A. b, C;
2. there are six network element devices, which are: a1, A2, B1, B2, C1, C2;
3. the command channel A is a channel for initiating parallel tasks.
Table 1 shows specific steps of the conflict type human-computer command interaction channel parallel work control method, and the specific steps are shown in table 1.
Table 1 shows the detailed steps of the conflict type human-computer command interaction channel parallel work control method
Figure BDA0001906844770000111
Fig. 3 is a schematic diagram of a conflict type human-computer command interaction channel parallel work control device according to an embodiment of the present invention, and as shown in fig. 3, an embodiment of the present invention provides a conflict type human-computer command interaction channel parallel work control device for executing a method described in any of the above embodiments, which specifically includes an obtaining module 301, a selecting module 302, and a releasing module 303, where:
the obtaining module 301 is configured to obtain activation instruction information, where the activation instruction information is generated by a previous interaction channel and is used to instruct all idle interaction channels to attempt to lock a task management file, and the task management file is used to record current states of all network element devices; the selecting module 302 is configured to select, if it is determined that the task management file is locked by the target interaction channel, one network element device in an empty current state from the task management file as a target network element device, so that the target interaction channel is connected to the target network element device, and issue an execution command to the target network element device; the releasing module 303 is configured to update and release the task management file, and generate activation indication information for indicating all idle interaction channels to attempt to lock the updated task management file next time.
Specifically, fig. 2 is a logic flow diagram of the conflict type human-computer command interaction channel parallel work control provided in the embodiment of the present invention, and as shown in fig. 2, the conflict type human-computer command interaction channel parallel work control apparatus provided in the embodiment of the present invention makes interaction channels associated with each other by performing programmable design on interaction software and comprehensively considering the working states of different interaction channels, thereby implementing automatic connection of network element devices, automatic issuing of execution commands, and full-automatic operation of interaction software.
Firstly, a first interactive channel initiates a parallel task, for example, interactive channel A, stores the name or number of the network element equipment needing to be operated into a network element equipment list, writes the network element equipment list into a task management file, and initializes the task management file. The task management file is used for recording the states of all the network element devices, the states of the network element devices comprise empty, occupied and completed, if no interactive channel is connected with a certain network element device, the state of the network element device is empty, if the existing interactive channel is connected with the certain network element device but the execution command is not completed yet, the state of the network element device is occupied, and if all the execution commands are executed on the certain network element device through the interactive channel, the state of the network element device is completed.
The interaction channel A initializes the parallel task, marks that the parallel channel is activated after the task management file is generated, then the interaction channel A immediately locks the task management file, and when the task management file is locked, other interaction channels can not read and write the task management file temporarily.
Then, one network element device, for example, the network element device A1, is selected from the network element device list in the task management file, so that the interaction channel a is connected with the network element device A1, and an execution command is issued to the network element device A1.
And updating the state of the network element equipment A1 from null to occupied while the interactive channel A is connected with the network element equipment A1.
And then releasing the updated task management file, generating activation indication information, and reactivating the parallel channel, wherein the activation indication information is used for indicating all idle interaction channels to try to lock the task management file.
All the interaction channels can receive the activation indication information generated by the interaction channel a (the previous interaction channel), and after the activation indication information is acquired by the acquisition module 301, the task management file is attempted to be locked, that is, all the interaction channels rob the task management file.
The interaction channel which firstly locks the task management file has the right of reading and writing the task management file, and when the task management file is locked, other interaction channels can not read and write the task management file temporarily.
If it is determined that the task management file is locked by the target interaction channel (next interaction channel), a network element device in an empty state is selected from the task management file as a target network element device through the selection module 302, for example, the network element device A2 is selected, so that the target interaction channel is connected to the network element device A2, and an execution command is issued to the network element device A2. It should be noted that: if a certain network element device establishes a connection with any interactive channel, the network element device cannot establish a connection with the network element device through other interactive channels when the network element device is in an occupied or finished state. For example, the interaction channel a has already established a connection with the network element device A1, and other interaction channels cannot establish a connection with the interaction channel a any more.
While the target interworking is connected to the network element device A2, the state of the network element device A2 is updated from empty to occupied by the release module 303.
And then releasing the updated task management file, generating activation indication information, and reactivating the parallel channel, wherein the activation indication information is used for indicating all idle interaction channels to try to lock the task management file.
And after the next interactive channel locks the task management file, selecting one network element device with an empty current state as a target network element device for the next interactive channel to connect the target network element device and issuing an execution command to the target network element device until the states of all network element devices in a network element device list in the task management file are all non-empty, thereby realizing the automatic connection of the interactive channels and automatically issuing the execution command to the network element device.
The conflict type means that the corresponding relation between the interaction channel and the network element device is not preset, after the task management file is released, all idle interaction channels can try to lock the task management file, when the task management file is locked, other interaction channels can not read and write the task management file temporarily, and a time is needed to wait for one time, so that a conflict exists to a certain extent, but the network element device in an empty state is selected, and the time for establishing connection with the network element device is short, generally several milliseconds, so that the efficiency is not affected, on the contrary, because of the conflict type working mode, the interaction channel with high task processing efficiency is connected with relatively more network element devices, and the interaction channel with low task processing efficiency is connected with relatively less network element devices, so that the interaction access can not be in an idle state at any time, and the task processing efficiency is greatly improved.
Moreover, the issuing of the execution command to the network element device may be an execution command file (an execution command set including a series of execution commands), where the execution commands in the execution command file are not sequentially associated from front to back, and on the premise that the connected device supports simultaneous connection of multiple terminals, the execution command set may also replace a device name list, so as to implement parallel execution of commands of the same device.
The conflict type man-machine command interaction channel parallel work control device provided by the embodiment of the invention can realize the mutual association between the interaction channels by carrying out programmable design on the interaction software and comprehensively considering the working states of different interaction channels, thereby realizing the automatic connection of network element equipment, automatically issuing the execution command, realizing the full-automatic operation of the interaction software, improving the operation efficiency, simplifying the operation steps of workers, reducing the labor intensity of the workers, saving the working time of the workers and improving the working efficiency of the workers.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device includes: a processor 401, a memory 402, and a bus 403;
wherein, the processor 401 and the memory 402 complete the communication with each other through the bus 403;
processor 401 is configured to call program instructions in memory 402 to perform the methods provided by the method embodiments described above, including, for example:
acquiring activation indicating information, wherein the activation indicating information is generated by a last interaction channel and is used for indicating all idle interaction channels to try to lock task management files, and the task management files are used for recording the current states of all network element devices;
if the task management file is judged and known to be locked by the target interaction channel, selecting one network element device with the current state being empty from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device, and issuing an execution command to the target network element device;
and updating and releasing the task management file, and generating activation indication information for indicating all idle interaction channels to try to lock the updated task management file next time.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, including:
acquiring activation indicating information, wherein the activation indicating information is generated by a last interaction channel and is used for indicating all idle interaction channels to try to lock a task management file, and the task management file is used for recording the current states of all network element devices;
if the task management file is locked by the target interaction channel, selecting one network element device with an empty current state from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device, and issuing an execution command to the target network element device;
and updating and releasing the task management file, and generating activation indication information for indicating all idle interaction channels to try to lock the updated task management file next time.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include:
acquiring activation indicating information, wherein the activation indicating information is generated by a last interaction channel and is used for indicating all idle interaction channels to try to lock task management files, and the task management files are used for recording the current states of all network element devices;
if the task management file is locked by the target interaction channel, selecting one network element device with an empty current state from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device, and issuing an execution command to the target network element device;
and updating and releasing the task management file, and generating activation indication information for indicating all idle interaction channels to try to lock the updated task management file next time.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatuses and devices are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A conflict type man-machine command interaction channel parallel work control method is characterized by comprising the following steps:
acquiring activation indicating information, wherein the activation indicating information is generated by a last interaction channel and is used for indicating all idle interaction channels to try to lock a task management file, the task management file is used for recording the current states of all network element devices, and the initial activation indicating information is as follows: a first interactive channel initiates and initializes a parallel task, after a task management file is generated, a network element device is selected from a network element device list of the task management file for connection, the state of the selected network element device is updated from empty to occupied, and the updated task management file is released and activation indication information is generated;
if the task management file is locked by the target interaction channel, selecting one network element device with an empty current state from the task management file as a target network element device, so that the target interaction channel is connected with the target network element device, and issuing an execution command to the target network element device;
and updating and releasing the task management file, and generating activation indication information for indicating all idle interaction channels to try to lock the updated task management file next time.
2. The method of claim 1, wherein the previous interaction channel and the target interaction channel are the same interaction channel.
3. The method of claim 1, wherein the previous interaction channel and the target interaction channel are two different interaction channels of the same interaction software.
4. The method according to claim 1, wherein the previous interaction channel is an interaction channel of first interaction software in a target terminal, and the target interaction channel is an interaction channel of second interaction software in the target terminal.
5. The method according to claim 1, wherein the previous interaction channel is an interaction channel of interaction software in a first terminal, and the target interaction channel is an interaction channel of interaction software in a second terminal.
6. The method according to claim 5, wherein the second terminal obtains the activation indication information through network sharing.
7. The method according to claim 1, wherein the condition that the target interaction channel can successfully lock the task management file at least includes that the issuing of the execution command of the selected network element device when the task management file was last locked has been completed.
8. A conflict type man-machine command interaction channel parallel work control device is characterized by comprising:
an obtaining module, configured to obtain activation indication information, where the activation indication information is generated by a previous interaction channel and is used to indicate that all idle interaction channels attempt to lock a task management file, where the task management file is used to record current states of all network element devices, and an initial activation indication information is: a first interactive channel initiates and initializes a parallel task, after a task management file is generated, a network element device is selected from a network element device list of the task management file for connection, the state of the selected network element device is updated from empty to occupied, and the updated task management file is released and activation indication information is generated;
the selection module is used for selecting one network element device with an empty current state from the task management file as a target network element device if the task management file is judged and known to be locked by a target interaction channel, so that the target interaction channel is connected with the target network element device, and an execution command is issued to the target network element device;
and the releasing module is used for updating and releasing the task management file and generating activation indication information so as to indicate all idle interaction channels to try to lock the updated task management file next time.
9. An electronic device, comprising:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN201811535848.9A 2018-12-14 2018-12-14 Conflict type man-machine command interaction channel parallel work control method and device Active CN111327658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535848.9A CN111327658B (en) 2018-12-14 2018-12-14 Conflict type man-machine command interaction channel parallel work control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535848.9A CN111327658B (en) 2018-12-14 2018-12-14 Conflict type man-machine command interaction channel parallel work control method and device

Publications (2)

Publication Number Publication Date
CN111327658A CN111327658A (en) 2020-06-23
CN111327658B true CN111327658B (en) 2022-12-09

Family

ID=71168758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535848.9A Active CN111327658B (en) 2018-12-14 2018-12-14 Conflict type man-machine command interaction channel parallel work control method and device

Country Status (1)

Country Link
CN (1) CN111327658B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5296960B2 (en) * 2005-06-17 2013-09-25 日本電気株式会社 File version management device
US8424009B2 (en) * 2009-12-04 2013-04-16 Microsoft Corporation Lock resolution for distributed durable instances
CN105207799A (en) * 2014-06-23 2015-12-30 中兴通讯股份有限公司 Batch command executing method and device
CN106469150B (en) * 2015-08-14 2019-10-08 阿里巴巴集团控股有限公司 File read/write method, device and system
US9785471B1 (en) * 2016-09-27 2017-10-10 International Business Machines Corporation Execution of serialized work data with interlocked full area instructions
CN107015855B (en) * 2017-03-14 2020-10-30 微梦创科网络科技(中国)有限公司 Asynchronous service centralized scheduling method and device supporting time strategy

Also Published As

Publication number Publication date
CN111327658A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN105487924A (en) Batch processing controlling method and device
CN102253860A (en) Asynchronous operation method and asynchronous operation management device
CN103634379A (en) Management method for distributed storage space and distributed storage system
CN110413328B (en) PXE function enabling method and device for network card port and related equipment
CN116414521A (en) Virtual machine remote command interaction method, device and medium for distributed heterogeneous shooting ranges
CN111327658B (en) Conflict type man-machine command interaction channel parallel work control method and device
CN112732556B (en) Automatic testing method, device, equipment and storage medium of distributed system
EP4012983A1 (en) Can filter combining method, device, and can controller
CN108536541B (en) Process engine object processing method and device
CN115840642A (en) Edge resource processing method, device, system, equipment and medium
CN111327439B (en) Non-conflict man-machine command interaction channel parallel work control method and device
CN112632032B (en) Data migration method and device, storage medium and terminal equipment
CN113722045A (en) Cluster application deployment method and device
CN112286894A (en) Log generation method and device and readable storage medium
US10374907B2 (en) Fine-granularity resource control method and apparatus
CN110209641A (en) A kind of trunking service processing method and device applied in more controlled storage systems
CN115543343B (en) Variable cross-thread operation method and device
JP2005250722A (en) Sequential execution method for input/output dynamic reconfiguration
WO2016139728A1 (en) Communication equipment setting device
CN112702269B (en) SDN and non-SDN intercommunication method and intercommunication system
CN111861381A (en) Multi-fund channel access method and system
CN112148384B (en) SCA waveform component loading method and device, readable medium and electronic equipment
CN112799732A (en) Display screen display method based on plug-in and related device
JPH0335342A (en) Transfer system for inter-independent program take-over information
CN114037306A (en) Method, system and storage medium for realizing RPA foreground and background robots

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