CN109324549B - Dual-master control equipment configuration method and dual-master control equipment - Google Patents

Dual-master control equipment configuration method and dual-master control equipment Download PDF

Info

Publication number
CN109324549B
CN109324549B CN201811160052.XA CN201811160052A CN109324549B CN 109324549 B CN109324549 B CN 109324549B CN 201811160052 A CN201811160052 A CN 201811160052A CN 109324549 B CN109324549 B CN 109324549B
Authority
CN
China
Prior art keywords
control board
configuration
main control
standby
execution result
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
CN201811160052.XA
Other languages
Chinese (zh)
Other versions
CN109324549A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201811160052.XA priority Critical patent/CN109324549B/en
Publication of CN109324549A publication Critical patent/CN109324549A/en
Application granted granted Critical
Publication of CN109324549B publication Critical patent/CN109324549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The application provides a double-master control equipment configuration method and double-master control equipment, wherein the double-master control equipment comprises a main master control board and a standby master control board, and the method comprises the following steps: after receiving a configuration command of a user, the main control board sends the configuration command to the standby main control board; after the main control board and the standby main control board respectively execute the configuration commands, if the execution results of the configuration commands of the main control board and the standby main control board are different, the configuration rollback file of the main control board with the failed execution result of the configuration commands is sent to the main control board with the successful execution result of the configuration commands, and the main control board with the successful execution result of the configuration commands executes the configuration rollback operation according to the configuration rollback file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent. The method and the device aim to solve the problem that in the prior art, when any one of a main control board or a standby main control board generates errors when executing a configuration command, the corresponding configuration of the standby main control board and the main control board is inconsistent, and service interruption is caused.

Description

Dual-master control equipment configuration method and dual-master control equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a dual master control device configuration method and a dual master control device.
Background
Currently, dual master devices are widely used. The dual main control device includes two main control boards, which are a main control board and a standby control board, wherein the main control board is responsible for communicating with all interface boards (for example, sending various table entries, receiving and sending messages, responding various events, etc.), and controlling the operation of the entire dual main control device. When the main control board normally operates, the standby main control board does not communicate with the interface board and does not interfere the operation of the whole dual-main control equipment, and only receives backup data (including single board information, interface information, various configurations, various table entries and storage position information of the table entries in the interface board chip) backed up by the main control board. When the main control board fails, the standby main control board is switched into a new main control board to control the operation of the whole double main control equipment, and the standby main control board receives the backup data of the main control board, so that all the work of the original main control board can be seamlessly taken over. However, if the configuration corresponding to the standby main control board is inconsistent with the configuration corresponding to the main control board, the standby main control board may not continue to control the normal operation of the whole device after being switched to the main control board, thereby causing serious consequences such as service interruption.
Generally, when a user modifies the configuration of the dual-master control device, the master control board and the standby control board respectively execute the same configuration command and go through the same flow, so as to ensure that the standby control board can have the same configuration data as the master control board. However, when any one of the main control board and the standby control board performs the configuration command, an error occurs, which may cause the configuration corresponding to the standby control board to be inconsistent with the configuration corresponding to the main control board, thereby causing serious consequences such as service interruption. For example: some modules (e.g., acl) require the user to configure the issuing chip, but the standby main control board cannot access the chip, so all operations of accessing the chip on the standby main control board return success. At this time, if the table entry issuing chip fails, the main control board enters a configuration rollback flow, the configuration is restored to the configuration state before the issuing, and the standby main control board directly returns to the success due to the operation of accessing the chip, so that the configuration is normally issued, and the configuration corresponding to the standby main control board is inconsistent with the configuration corresponding to the main control board.
Disclosure of Invention
In view of this, the present application provides a dual master control device configuration method and a dual master control device, so as to solve the technical problem in the prior art that when any one of a main master control board or a standby master control board executes a configuration command, an error occurs, and thus, the configuration corresponding to the standby master control board is inconsistent with the configuration corresponding to the main master control board, which causes service interruption.
According to a first aspect of an embodiment of the present application, a dual master control device configuration method is provided, where the dual master control device includes a master control board and a standby master control board, and the method includes:
after receiving a configuration command of a user, the main control board sends the configuration command to the standby main control board;
the main control board and the standby main control board respectively execute the configuration commands, if the execution results of the configuration commands of the main control board and the standby main control board are different, the configuration rollback file of the main control board with the failed execution result of the configuration commands is sent to the main control board with the successful execution result of the configuration commands, and the main control board with the successful execution result of the configuration commands executes the configuration rollback operation according to the configuration rollback file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent.
In some examples, after the standby control board executes the configuration command, the method includes:
and the standby main control board sends the execution result of the configuration command to the main control board.
In some examples, if the master control board whose execution result of the configuration command is failed is the standby master control board, the master control board whose execution result of the configuration command is successful is the master control board;
the sending the configuration rollback file of the main control panel with the failed execution result of the configuration command to the main control panel with the successful execution result of the configuration command, wherein the main control panel with the successful execution result of the configuration command executes the configuration rollback operation according to the configuration rollback file, and comprises the following steps:
the main master control board sends a request for acquiring a configuration rollback file to the standby master control board;
the standby main control board receives the request, generates a configuration rollback file and sends the configuration rollback file to the main control board;
and after receiving the configuration rollback file, the main control board executes configuration rollback operation according to the configuration rollback file.
In some examples, if the master control board whose execution result of the configuration command is failed is the master control board, the master control board whose execution result of the configuration command is successful is the standby master control board;
the sending the configuration rollback file of the main control panel with the failed execution result of the configuration command to the main control panel with the successful execution result of the configuration command, wherein the main control panel with the successful execution result of the configuration command executes the configuration rollback operation according to the configuration rollback file, and comprises the following steps:
the main master control board generates a configuration rollback file and sends the configuration rollback file to the standby master control board;
and after receiving the configuration rollback file, the standby main control board executes configuration rollback operation according to the configuration rollback file.
In some examples, the method further comprises the steps of:
and if the execution results of the configuration commands of the main control board and the standby main control board are the same and the execution results of the configuration commands are successful, returning a response result of successful execution of the configuration commands.
In some examples, the method further comprises the steps of:
and if the execution results of the configuration commands of the main control board and the standby main control board are the same and the execution results of the configuration commands are all failures, returning a response result of the failure of the execution of the configuration commands.
In some examples, the configuration rollback file is generated according to a configuration command corresponding to the current configuration of the failed main control panel as a result of execution of the configuration command.
In a second aspect of the present application, a dual master device is provided, the device comprising: a main control board and a standby main control board;
the main control board is used for executing the configuration command after receiving the configuration command of the user and sending the configuration command to the standby main control board; and comparing the execution results of the configuration commands of the main control board and the standby main control board, if the execution results of the configuration commands of the main control board and the standby main control board are different, sending the configuration rollback file of the main control board with the failed execution result of the configuration commands to the main control board with the successful execution result of the configuration commands, and executing the configuration rollback operation by the main control board with the successful execution result of the configuration rollback file according to the configuration rollback file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent.
The standby main control board is used for executing the configuration command and generating a configuration command execution result.
In some examples, if the main control board whose execution result of the configuration command is failed is the standby main control board, the main control board whose execution result of the configuration command is successful is the main control board;
the main master control board is specifically used for sending a request for acquiring a configuration rollback file to the standby master control board; after receiving the configuration rollback file, executing configuration rollback operation according to the configuration rollback file;
and the standby main control board is specifically used for receiving the request, generating a configuration rollback file and sending the configuration rollback file to the main control board.
In some examples, if the master control board whose execution result of the configuration command is failed is the master control board, the master control board whose execution result of the configuration command is successful is the standby master control board;
the main control board is used for generating a configuration rollback file and sending the configuration rollback file to the standby main control board;
and the standby main control board is specifically used for executing configuration rollback operation according to the configuration rollback file after receiving the configuration rollback file.
After receiving a configuration command of a user through a main control board, the embodiment of the application sends the configuration command to a standby main control board; after the main control board and the standby main control board execute the configuration command, if the execution results of the configuration command of the main control board and the standby main control board are different, the configuration rollback file of the main control board with the failed execution result of the configuration command is sent to the main control board with the successful execution result of the configuration command, and the main control board with the successful execution result of the configuration rollback operation executes the configuration rollback operation according to the configuration file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent. Even if any one of the main control board or the standby main control board has an error in executing the command, the consistency of the device configuration corresponding to the main control board and the controlled board can be ensured, so that the serious problem that the service interruption is caused because the standby main control board cannot continuously control the normal operation of the whole machine after being switched to the main control board due to the fact that the configuration corresponding to the standby main control board is inconsistent with the configuration corresponding to the main control board is solved.
Drawings
Fig. 1 is a flowchart illustrating a dual master control device configuration method according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating an implementation of a configuration rollback operation according to an exemplary embodiment of the present application;
fig. 3 is a flowchart illustrating another dual master configuration method according to an exemplary embodiment of the present application;
fig. 4 is a flowchart illustrating another dual master control device configuration method according to an exemplary embodiment of the present application;
fig. 5 is a hardware structure diagram of a dual master device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The method and the device aim to solve the technical problem that in the prior art, when any one of a main control board or a standby main control board executes a configuration command, the configuration corresponding to the standby main control board is inconsistent with the configuration corresponding to the main control board, and service interruption is caused. The present application provides a dual master control device configuration scheme, which is a flowchart of a dual master control device configuration method with reference to fig. 1, where the dual master control device configuration method includes:
s110: a main control board receives a configuration command of a user;
s120: the main master control board executes the configuration command;
s130: the main control board sends the configuration command to a standby main control board;
s140: the standby main control board executes the configuration command;
s150: if the execution results of the configuration commands of the main control board and the standby main control board are different, sending the configuration rollback file of the main control board with the failed execution result of the configuration commands to the main control board with the successful execution result of the configuration commands;
s160: and the main control board with the successful configuration execution result executes configuration rollback operation according to the configuration file so as to enable the equipment configurations corresponding to the main control board and the standby main control board to be consistent.
The method in the embodiment of the present application is applied to a dual master control device, where the dual master control device may be a frame device, and the frame device is a distributed device. The distributed equipment is equipment which combines a plurality of computers in a certain mode (physically or logically) in order to break the upper limit of the computing capacity which can be reached by single computer equipment (centralized equipment); a problem with huge calculation amount is decomposed into a plurality of subproblems which are respectively handed to a plurality of members of the equipment for processing, and after all the subproblems are calculated, the subproblems are converged into a total result to be returned to a problem submitter. Such devices are known as distributed devices and this manner of computation is known as distributed computing. The computing power of the distributed device is equal to the sum of the computing power of all member devices (except for the small amount of performance consumed by member device internal interactions) and thus the performance is better.
The main control board provided by the embodiment of the application can be used for controlling the operation of the whole dual-main control device, uniformly managing configuration issuing and state display of all board cards (including service boards, interface boards and the like), and/or uniformly storing all configuration files of the dual-main control device. The main control board can be provided with a CPU and a CF (compact flash) card for storing configuration files. In some examples, the main control board may also have a switch chip. The dual main control device comprises two main control boards, and the two main control boards are divided into a main control board and a standby main control board according to the working state. The main control board is used for communicating with all the interface boards and controlling the operation of the whole double main control equipment; the standby main control board is a standby board. In some examples, the main control board and the standby control board may be identical single boards.
The configuration rollback operation is executed when the execution of the configuration command fails, and the configuration rollback refers to rollback of the current configuration of the dual master control device to a configuration state in a specified configuration file. In some examples, the configuration file used for configuration rollback is a cfg file that is generated by executing a configuration role save command, all of which are made up of command line executable commands. The file supports export, import, and editing from the device. The administrator can export the generated configuration file from the device and then edit the configuration file, add the required configuration command into the configuration file and then import the configuration file into the dual-master control device, and then rollback the current configuration of the device to the configuration state specified in the imported configuration file by using the configuration rollback function, so that batch configuration of the dual-master control device (namely, configuration of all or part of the boards of the dual-master control device) can be realized.
To this end, in the scheme shown in fig. 1, after receiving a configuration command of a user through a main control board, the configuration command is sent to a standby main control board; after the main control board and the standby main control board execute the configuration command, if the execution results of the configuration command of the main control board and the standby main control board are different, the configuration rollback file of the main control board with the failed execution result of the configuration command is sent to the main control board with the successful execution result of the configuration command, and the main control board with the successful execution result of the configuration rollback operation executes the configuration rollback operation according to the configuration file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent. Even if any one of the main control board or the standby main control board has an error in executing the command, the consistency of the device configuration corresponding to the main control board and the controlled board can be ensured, so that the serious problem that the service interruption is caused because the standby main control board cannot continuously control the normal operation of the whole machine after being switched to the main control board due to the fact that the configuration corresponding to the standby main control board is inconsistent with the configuration corresponding to the main control board is solved.
In an example, the main control board whose execution result of the configuration command is successful executes the configuration rollback operation, and referring to fig. 2, the specific steps of executing the configuration rollback operation are as follows:
s210: backing up the current configuration of the double main control devices into a specified configuration file;
s220: rolling back the current configuration file according to the configuration rollback file sent by the main control board with the failure configuration command execution result;
s230: and comparing the difference between the current configuration file and the specified configuration file, and executing corresponding processing according to the difference.
Step S230 may be performed by the system. Step S230 may specifically be: reading all configuration commands in the current configuration file one by one in sequence, and comparing with all configuration commands in the specified configuration file;
if the configuration instruction exists in the current configuration file but does not exist in the specified configuration file, executing a reverse configuration command corresponding to the configuration command;
if the configuration instruction exists in the current configuration file and the specified configuration file at the same time, no processing is performed;
reading configuration commands in the appointed configuration file one by one in sequence, and comparing the configuration commands with all configuration commands of the current configuration file;
if the configuration instruction exists in the specified configuration file but does not exist in the current configuration file, executing the configuration command;
and if the configuration instruction exists in the current configuration file and the specified configuration file at the same time, not processing.
And after the steps are executed, finishing the configuration rollback operation.
In an example, the configuration rollback file is generated according to a configuration command corresponding to the current configuration of the failed main control board as a result of executing the configuration command.
In some examples, the steps S110 and S130 may be: after the user configures the dual master control devices through the command line, the main master control board receives the configuration command of the user, and the main master control sends the configuration command to the standby master control through socket communication.
In some examples, after the standby main control board executes the configuration command in step S140, the standby main control board may send an execution result of the configuration command to the main control board, so that the main control board compares the execution result of the configuration command with the received execution result of the configuration command sent by the standby main control board, and executes a corresponding operation according to the comparison result. The execution results of the configuration commands of the main control board and the standby main control board are different, and the first condition is that: the execution result of the configuration command of the main control board is failure, and the execution result of the configuration command of the standby main control board is success; in the second case, the execution result of the configuration command of the main control board is successful, and the execution result of the configuration command of the standby control board is failed. The above two cases are described by specific examples.
For the first case, referring to fig. 3, a flowchart of another dual master control device configuration method exemplarily shown in the embodiment of the present application is shown, where the steps of the dual master control device configuration method include:
s110: a main control board receives a configuration command of a user;
s120: the main master control board executes the configuration command;
s130: the main control board sends the configuration command to the standby main control board;
s140: the standby main control board executes the configuration command;
in some examples, after the standby main control board executes the configuration command, the standby main control board may send an execution result of the configuration command to the main control board, and the main control board compares the execution result of the configuration command with a received execution result of the configuration command sent by the standby main control board.
S310: if the execution result of the configuration command of the main control board is successful, the execution result of the configuration command of the standby main control board is failed;
s320: the main master control board sends a request for acquiring a configuration rollback file to the standby master control board;
s330: the standby main control board receives the request, generates a configuration rollback file and sends the configuration rollback file to the main control board;
s340: and after receiving the configuration rollback file, the main control board executes configuration rollback operation according to the configuration rollback file.
In this step, after receiving the configuration rollback file, the main control board uses a configuration rollback operation to rollback the configuration of the main control board to the configuration state specified by the configuration file of the standby control board, and then returns a response result indicating that the execution of the configuration command fails.
For the second case, referring to fig. 4, a flowchart of another dual master control device configuration method exemplarily shown in the embodiment of the present application is shown, where the steps of the dual master control device configuration method include:
s110: a main control board receives a configuration command of a user;
s120: the main master control board executes the configuration command;
s130: the main control board sends the configuration command to the standby main control board;
s140: the standby main control board executes the configuration command;
in some examples, after the standby main control board executes the configuration command, the standby main control board may send an execution result of the configuration command to the main control board, and the main control board compares the execution result of the configuration command with a received execution result of the configuration command sent by the standby main control board.
S410: if the execution result of the configuration command of the main control board is failure, the execution result of the configuration command of the standby main control board is success;
s420: the main master control board generates a configuration rollback file and sends the configuration rollback file to the standby master control board;
s430: and after receiving the configuration rollback file, the standby main control board executes configuration rollback operation according to the configuration rollback file.
In this step, after receiving the configuration rollback file, the standby main control board uses a configuration rollback operation to rollback the configuration of the standby main control board to the configuration state specified by the configuration file of the main control board, and then returns a response result indicating that the execution of the configuration command fails.
In some examples, if the execution results of the configuration commands of the main control board and the standby control board are the same, and the execution results of the configuration commands are both successful, a response result indicating that the execution of the configuration commands is successful is returned.
In some examples, if the execution results of the configuration commands of the main control board and the standby control board are the same and the execution results of the configuration commands are both failed, the main control board and the standby control board may respectively perform configuration rollback and return a response result that the configuration commands failed to execute the configuration commands.
Corresponding to the foregoing embodiment of the dual master control device configuration method, the present application also provides an embodiment of a dual master control device.
Referring to fig. 5, the dual master device 500 includes: the method comprises the following steps: a main control board 510 and a standby main control board 520;
the main control board 510 is configured to execute the configuration command after receiving the configuration of the user, and send the configuration command to the standby control board; and comparing the execution results of the configuration commands of the main control board and the standby main control board, if the execution results of the configuration commands of the main control board and the standby main control board are different, sending the configuration rollback file of the main control board with the failed execution result of the configuration commands to the main control board with the successful execution result of the configuration commands, and executing the configuration rollback operation by the main control board with the successful execution result of the configuration rollback file according to the configuration rollback file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent.
The standby main control board 520 is configured to execute the configuration command and generate a configuration command execution result.
In some examples, if the main control board whose execution result of the configuration command is failed is the standby main control board, the main control board whose execution result of the configuration command is successful is the main control board;
the main control board 510 is specifically configured to send a request for obtaining a configuration rollback file to the standby control board; after receiving the configuration rollback file, executing configuration rollback operation according to the configuration rollback file;
the standby main control board 520 is specifically configured to receive the request, generate a configuration rollback file, and send the configuration rollback file to the main control board.
In some examples, if the master control board whose execution result of the configuration command is failed is the master control board, the master control board whose execution result of the configuration command is successful is the standby master control board;
the main control board 510 is specifically configured to generate a configuration rollback file, and send the configuration rollback file to the standby main control board;
the standby main control board 520 is specifically configured to, after receiving the configuration rollback file, execute a configuration rollback operation according to the configuration rollback file.
In some examples, after the standby main control board executes the configuration command, the standby main control board is further configured to send an execution result of the configuration command to a main control board.
In some examples, the configuration rollback file is generated according to a configuration command corresponding to the current configuration of the failed main control panel as a result of execution of the configuration command.
For the apparatus embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, and some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A configuration method of dual master control equipment is characterized in that the dual master control equipment comprises a main master control board and a standby master control board, and the method comprises the following steps:
after receiving a configuration command of a user, the main control board sends the configuration command to the standby main control board;
the main control board and the standby main control board respectively execute the configuration commands, if the execution results of the configuration commands of the main control board and the standby main control board are different, the configuration rollback file of the main control board with the failed execution result of the configuration commands is sent to the main control board with the successful execution result of the configuration commands, and the main control board with the successful execution result of the configuration commands executes the configuration rollback operation according to the configuration rollback file, so that the equipment configurations corresponding to the main control board and the standby main control board are consistent.
2. The method according to claim 1, wherein after the standby control board executes the configuration command, the method comprises the steps of:
and the standby main control board sends the execution result of the configuration command to the main control board.
3. The method according to claim 1 or 2, wherein if the master control board whose execution result of the configuration command is failed is the standby master control board, the master control board whose execution result of the configuration command is successful is the master control board;
the sending the configuration rollback file of the main control panel with the failed execution result of the configuration command to the main control panel with the successful execution result of the configuration command, wherein the main control panel with the successful execution result of the configuration command executes the configuration rollback operation according to the configuration rollback file, and comprises the following steps:
the main master control board sends a request for acquiring a configuration rollback file to the standby master control board;
the standby main control board receives the request, generates a configuration rollback file and sends the configuration rollback file to the main control board;
and after receiving the configuration rollback file, the main control board executes configuration rollback operation according to the configuration rollback file.
4. The method according to claim 1 or 2, wherein if the main control board whose execution result of the configuration command is failure is the main control board, the main control board whose execution result of the configuration command is success is the standby main control board;
the sending the configuration rollback file of the main control panel with the failed execution result of the configuration command to the main control panel with the successful execution result of the configuration command, wherein the main control panel with the successful execution result of the configuration command executes the configuration rollback operation according to the configuration rollback file, and comprises the following steps:
the main master control board generates a configuration rollback file and sends the configuration rollback file to the standby master control board;
and after receiving the configuration rollback file, the standby main control board executes configuration rollback operation according to the configuration rollback file.
5. The method according to claim 1 or 2, characterized in that the method further comprises the step of:
and if the execution results of the configuration commands of the main control board and the standby main control board are the same and the execution results of the configuration commands are successful, returning a response result of successful execution of the configuration commands.
6. The method according to claim 1 or 2, characterized in that the method further comprises the step of:
and if the execution results of the configuration commands of the main control board and the standby main control board are the same and the execution results of the configuration commands are all failures, returning a response result of the failure of the execution of the configuration commands.
7. The method according to claim 1 or 2, wherein the configuration rollback file is generated for the configuration command corresponding to the current configuration of the failed main control board according to the execution result of the configuration command.
8. A dual master device, the device comprising: a main control board and a standby main control board;
the main control board is used for executing the configuration command after receiving the configuration command of the user and sending the configuration command to the standby main control board; comparing the execution results of the configuration commands of the main control board and the standby main control board, if the execution results of the configuration commands of the main control board and the standby main control board are different, sending the configuration rollback file of the main control board with the failed execution result of the configuration commands to the main control board with the successful execution result of the configuration commands, and executing the configuration rollback operation by the main control board with the successful execution result of the configuration rollback file according to the configuration rollback file so as to enable the equipment configurations corresponding to the main control board and the standby main control board to be consistent;
the standby main control board is used for executing the configuration command and generating a configuration command execution result.
9. The device according to claim 8, wherein if the master control board whose execution result of the configuration command is failed is the standby master control board, the master control board whose execution result of the configuration command is successful is the master control board;
the main master control board is specifically used for sending a request for acquiring a configuration rollback file to the standby master control board; after receiving the configuration rollback file, executing configuration rollback operation according to the configuration rollback file;
and the standby main control board is specifically used for receiving the request, generating a configuration rollback file and sending the configuration rollback file to the main control board.
10. The device according to claim 8, wherein if the master control board whose execution result of the configuration command is failed is the master control board, the master control board whose execution result of the configuration command is successful is the standby master control board;
the main control board is used for generating a configuration rollback file and sending the configuration rollback file to the standby main control board;
and the standby main control board is specifically used for executing configuration rollback operation according to the configuration rollback file after receiving the configuration rollback file.
CN201811160052.XA 2018-09-30 2018-09-30 Dual-master control equipment configuration method and dual-master control equipment Active CN109324549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811160052.XA CN109324549B (en) 2018-09-30 2018-09-30 Dual-master control equipment configuration method and dual-master control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811160052.XA CN109324549B (en) 2018-09-30 2018-09-30 Dual-master control equipment configuration method and dual-master control equipment

Publications (2)

Publication Number Publication Date
CN109324549A CN109324549A (en) 2019-02-12
CN109324549B true CN109324549B (en) 2020-08-04

Family

ID=65266593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811160052.XA Active CN109324549B (en) 2018-09-30 2018-09-30 Dual-master control equipment configuration method and dual-master control equipment

Country Status (1)

Country Link
CN (1) CN109324549B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290005A (en) * 2019-06-27 2019-09-27 杭州迪普信息技术有限公司 A kind of configuration variance detection method and device
CN110913001A (en) * 2019-11-27 2020-03-24 杭州迪普科技股份有限公司 Method, device and equipment for synchronizing dual-computer configuration
CN113630318B (en) * 2020-05-06 2023-05-12 华为技术有限公司 Message transmission method and frame type communication equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595768A (en) * 2013-10-28 2014-02-19 国家电网公司 Method for realizing configuration synchronization between virtualized devices
CN104184614A (en) * 2014-08-05 2014-12-03 杭州华三通信技术有限公司 Rollback configuration method and apparatus
CN105007293A (en) * 2015-05-25 2015-10-28 国家计算机网络与信息安全管理中心 Double master control network system and double writing method for service request therein

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1199675A (en) * 1983-03-31 1986-01-21 Canadian General Electric Company Limited Speed controller for mill drives and the like
JP4923990B2 (en) * 2006-12-04 2012-04-25 株式会社日立製作所 Failover method and its computer system.
CN102957546A (en) * 2011-08-17 2013-03-06 中兴通讯股份有限公司 Method, device and system for processing configuration
CN106878425A (en) * 2017-02-22 2017-06-20 浙江深大智能科技有限公司 A kind of method of the master control borad, gate and remote control for gate

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595768A (en) * 2013-10-28 2014-02-19 国家电网公司 Method for realizing configuration synchronization between virtualized devices
CN104184614A (en) * 2014-08-05 2014-12-03 杭州华三通信技术有限公司 Rollback configuration method and apparatus
CN105007293A (en) * 2015-05-25 2015-10-28 国家计算机网络与信息安全管理中心 Double master control network system and double writing method for service request therein

Also Published As

Publication number Publication date
CN109324549A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
US8627028B2 (en) Method of constructing replication environment and storage system
CN109324549B (en) Dual-master control equipment configuration method and dual-master control equipment
CN102346779B (en) Distributed file system and master control node backup method
CN110807064B (en) Data recovery device in RAC distributed database cluster system
CN102597963B (en) Dynamic copies volume in cluster exchanges
CN105786405A (en) Online upgrading method, device and system
KR20110044858A (en) Maintain data indetermination in data servers across data centers
CN105468717A (en) Database operation method and device
US8255649B2 (en) Remote copy control method and system in storage cluster environment
CN102739451B (en) Method and device for updating master-slave switchover condition, server and system
JP2013114684A (en) System and method for managing virtual machine
US11803412B2 (en) Containerized application management system and management method
US20210089379A1 (en) Computer system
CN105117272A (en) Operating system manager, virtual machine and switching method between operating systems
KR20210040866A (en) File resource processing method and apparatus, device and medium
CN113254536A (en) Database transaction processing method, system, electronic device and storage medium
CN112181723A (en) Financial disaster recovery method and device, storage medium and electronic equipment
CN112199240A (en) Method for switching nodes during node failure and related equipment
CN113986450A (en) Virtual machine backup method and device
EP4027243A1 (en) Data recovery method and related device
CN101420329B (en) Method for upgrading communication system and communication system therefor
CN116974983A (en) Data processing method, device, computer readable medium and electronic equipment
CN112328429A (en) Hard disk snapshot method and device based on Openstack
KR101848356B1 (en) In-Memory Based Virtualization Service Providing System

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