CN115225477A - Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium - Google Patents

Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN115225477A
CN115225477A CN202210848683.0A CN202210848683A CN115225477A CN 115225477 A CN115225477 A CN 115225477A CN 202210848683 A CN202210848683 A CN 202210848683A CN 115225477 A CN115225477 A CN 115225477A
Authority
CN
China
Prior art keywords
command
configuration
configuration command
execution
board
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.)
Granted
Application number
CN202210848683.0A
Other languages
Chinese (zh)
Other versions
CN115225477B (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.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software 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 Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202210848683.0A priority Critical patent/CN115225477B/en
Publication of CN115225477A publication Critical patent/CN115225477A/en
Application granted granted Critical
Publication of CN115225477B publication Critical patent/CN115225477B/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
    • 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/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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

Abstract

The application provides a configuration maintenance method and device for a frame type device, an electronic device and a storage medium, wherein the configuration maintenance method for the frame type device comprises the following steps: receiving a configuration command sent by a client; analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command; and judging an execution object of the configuration command based on the command type of the configuration command so as to enable the execution object to execute the configuration command. The method and the device can reduce the execution time of the configuration command and improve the configuration flexibility of the configuration command.

Description

Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium
Technical Field
The present application relates to the field of device operation and maintenance, and in particular, to a configuration maintenance method and apparatus for a frame device, an electronic device, and a storage medium.
Background
The frame type equipment generally comprises a main control service board, a standby control service board and a plurality of service boards, in order to keep the uniformity of configuration, the function maintenance of the equipment is mainly managed through the control service board, other service boards are maintained in a synchronous mode from the control board through an internal management channel, configuration information and management information among the service boards are mutually independent, the control service board is connected with the service boards through the internal management channel, configuration operation information is issued to the service boards through the internal management channel, and the service boards call corresponding configuration operation to complete configuration change.
At present, a common configuration and maintenance mode for a machine frame device is that a main control board performs command string analysis, extraction and configuration, and issues a command completed by execution to other board cards for analysis, extraction and configuration. And the main control board receives the execution results returned by other board cards and feeds the execution results back to the client, so that the configuration consistency of the main control board and other board cards is realized. However, the above method is that the subrack main control board synchronizes all commands to the standby control board and the service board, so there are the following disadvantages:
1. the master control board sends all commands to all service boards, and the waiting result is blocked from returning, so that the command execution time is prolonged;
2. the function of the main control board for issuing configuration to the specified board card cannot be met, and the configuration mode is inflexible.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for maintaining configuration of a frame device, an electronic device, and a storage medium, so as to reduce execution time of a configuration command and improve flexibility of configuration of the configuration command.
In a first aspect, the present invention provides a configuration maintenance method for a frame device, where the frame device includes a main control board, a standby control board, and a plurality of service boards, and the method is applied to the main control board, and the method includes:
receiving a configuration command sent by a client;
analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command;
and judging an execution object of the configuration command based on the command type of the configuration command so as to enable the execution object to execute the configuration command.
In the first aspect of the present application, after receiving a configuration command sent by a client, parsing the configuration command and determining a command type of the configuration command based on a parsing result of the configuration command, and further determining an execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command, so that in some scenarios, sending the configuration command to a qualified execution object can be implemented, instead of sending the configuration command to all execution objects.
Compared with the prior art, the execution object of the configuration command is judged according to the command type of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command can be improved. In addition, the configuration command can be issued to the appointed board card by judging the execution object of the configuration command, so that the configuration method has the advantage of more flexible configuration mode.
In the first aspect of the present application, as an optional implementation manner, the determining, based on a command type of the configuration command, an execution object of the configuration command, so that the execution object executes the configuration command includes:
when the command type of the configuration command is a global command, the execution objects of the configuration command are the main control board, the standby control board and all the service boards;
and, the method further comprises:
executing the global class command;
when the global command is successfully executed, distributing the global command to the standby control board and all the service boards, so that the standby control board and the service boards execute the global command;
receiving the execution result of the global class command returned by the standby control board and the service board within the preset blocking time;
and returning the execution result to the client.
In this optional embodiment, when the command type of the configuration command is a global command, the execution object of the configuration command may be determined to be the main control board, the standby control board, and all the service boards, and in addition, by executing the global command, when the global command is successfully executed, the global command may be distributed to the standby control board and all the service boards, so that the standby control board and the service boards execute the global command, and then the execution result for the global command may be returned by the standby control board and the service boards within a preset blocking time, and finally the execution result is returned to the client.
In the first aspect of the present application, as an optional implementation, the method further includes:
and when the execution of the global class command fails, returning error information to the client.
In this optional embodiment, when the execution of the global class command fails, an error message can be returned to the client to prompt an operator of the client.
In the first aspect of the present application, as an optional implementation manner, the determining, based on the command type of the configuration command, an execution object of the configuration command, so that the execution object executes the configuration command includes:
when the command type of the configuration command is a master/standby command, executing objects of the configuration command are the master control board and the standby control board;
and, the method further comprises:
executing the main/standby class command;
when the main/standby command is successfully executed, the main/standby command is issued to the standby control board, so that the standby control board executes the main/standby command;
receiving the execution result of the main/standby commands returned by the standby control board within the preset blocking time;
and returning the execution result to the client.
In this optional embodiment, when the command type of the configuration command is a primary/secondary type command, an execution object of the configuration command may be determined as the main control board and the secondary control board. Meanwhile, by executing the main/standby commands, when the main/standby commands are successfully executed, the main/standby commands can be issued to the standby control board, so that the standby control board executes the main/standby commands, and then by receiving an execution result of the main/standby commands returned by the standby control board within a preset blocking time, the execution result can be returned to the client.
In the first aspect of the present application, as an optional implementation, the method further includes:
and when the execution of the main/standby class command fails, returning error information to the client.
In this optional embodiment, when the execution of the primary/secondary command fails, an error message may be returned to the client to prompt an operator of the client.
In the first aspect of the present application, as an optional implementation manner, the determining, based on the command type of the configuration command, an execution object of the configuration command, so that the execution object executes the configuration command includes:
when the command type of the configuration command is a single board type command, identifying a board number carried in the configuration command;
determining an execution object in the plurality of service boards based on the board card number;
and, the method further comprises:
sending the single board type command to a service board corresponding to the board card number, so that the service board corresponding to the board card number executes the single board type command;
receiving a service board corresponding to the board card number within preset blocking time and returning an execution result aiming at the single board type command;
and returning the execution result to the client.
In this optional embodiment, when the command type of the configuration command is a single board type command, by identifying the board number carried in the configuration command, the execution object can be determined in the plurality of service boards based on the board number. On the other hand, the service board corresponding to the board number can execute the board type command by sending the lower part of the board type command to the service board corresponding to the board number, and the execution result for the board type command is returned by receiving the service board corresponding to the board number within the preset blocking time, so that the execution result can be returned to the client.
In the first aspect of the present application, as an optional implementation manner, the method further includes:
and judging whether the preset blocking time is overtime, and if so, returning an execution command overtime result to the client.
In this optional embodiment, by determining whether the preset blocking time is overtime, when the preset blocking time is overtime, an execution command overtime result is returned to the client to prompt an operator of the client.
In a second aspect, the present invention provides a configuration and maintenance apparatus for a frame device, where the frame device includes a main control board, a standby control board, and a plurality of service boards, and the apparatus is applied to the main control board, and the apparatus includes:
the receiving module is used for receiving a configuration command sent by the client;
the analysis module is used for analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command;
and the judging module is used for judging an execution object of the configuration command based on the command type of the configuration command so as to enable the execution object to execute the configuration command.
The device of the second aspect of the present application is capable of determining the command type of the configuration command based on the parsing result of the configuration command by parsing the configuration command after receiving the configuration command sent by the client, and further capable of determining the execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command can be improved. In addition, the configuration command can be issued to the designated board card by judging the execution object of the configuration command, so that the configuration method has the advantage of more flexible configuration.
In a third aspect, the present invention provides an electronic device comprising:
a processor; and
a memory configured to store machine-readable instructions that, when executed by the processor, perform a method of configuration maintenance of a subrack apparatus according to any of the preceding embodiments.
According to the electronic device of the third aspect of the present application, after receiving the configuration command sent by the client, the configuration maintenance method of the execution machine frame device can determine the command type of the configuration command based on the analysis result of the configuration command by analyzing the configuration command, and further can determine the execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command is improved. In addition, the configuration command can be issued to the appointed board card by judging the execution object of the configuration command, so that the configuration method has the advantage of more flexible configuration mode.
In a fourth aspect, the present invention provides a storage medium storing a computer program, the computer program being executed by a processor to perform the configuration maintenance method for a subrack apparatus according to any one of the preceding embodiments.
The storage medium of the fourth aspect of the present application, by using the configuration maintenance method of the execution machine frame device, after receiving the configuration command sent by the client, can determine the command type of the configuration command by parsing the configuration command and based on the parsing result of the configuration command, and further can determine the execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command, thereby in some scenarios, sending the configuration command to the eligible execution object for execution can be implemented, instead of sending the configuration command to all execution objects.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command is improved. In addition, the configuration command can be issued to the designated board card by judging the execution object of the configuration command, so that the configuration method has the advantage of more flexible configuration.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a configuration maintenance method for a frame device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a configuration maintenance device of a frame type device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart of a configuration maintenance method for a frame device according to an embodiment of the present disclosure, where the frame device includes a main control board, a standby control board, and a plurality of service boards, and the method is applied to the main control board. As shown in fig. 1, the method of the embodiment of the present application includes the following steps:
101. receiving a configuration command sent by a client;
102. analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command;
103. and judging an execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command.
In this embodiment of the present application, the client may be a PC device or a mobile terminal device, and this embodiment of the present application is not limited thereto. Further, the client may send a configuration instruction to the main control board through a UI or a CLI, where the UI (User Interface) refers to a User Interface and the CLI (command-line Interface) refers to a command line Interface.
In the embodiment of the application, the main control board can be in communication connection with the client through a wireless connection or a wired connection mode.
In the embodiment of the present application, the subrack device may include 2 service boards or more than 3 service boards, for example, the subrack device includes 4 service boards.
In this embodiment of the present application, the command type of the configuration command is one of a global command, a main/standby command, a board command, and a local command, where the global command refers to a command that needs to be executed by all boards, the main/standby command refers to a command that needs to be executed by a main control board and a standby control board, the board command refers to a command that needs to be executed by a specified board, and the local command refers to a command that needs to be executed by a current board.
In the embodiment of the present application, the main control board is a control management unit and is used for system management and configuration maintenance, the standby control board is also a control management unit and is used for system management and configuration maintenance, and the service board is a service processing unit and is used for network forwarding and security service processing.
In this embodiment, the board type command may be a command to check the status of a board card in a subrack. Further, the board type command may be a command for checking device information of the main control board, and the main/standby type command may be a service type command initiated only by the main and standby control boards, such as maintenance of administrator type configuration. The global class command may be a majority of configuration class commands, such as a query class command that opens a module statistic switch, and the like, and needs to be summarized.
In this embodiment of the present application, the execution object of the configuration command may include a main control board and a standby control board, and may also include the main control board, the standby control board, and a service board.
In the embodiment of the application, after the configuration command sent by the client is received, the configuration command is analyzed, the command type of the configuration command is determined based on the analysis result of the configuration command, and then the execution object of the configuration command can be judged based on the command type of the configuration command, so that the execution object executes the configuration command.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command is improved. In addition, the execution object of the configuration command is judged so that the execution object executes the configuration command, and then the configuration command can be issued to the specified board card, so that the configuration method has the advantage of being more flexible.
In the embodiment of the present application, as an example, it is assumed that, based on maintenance requirements, a configuration command a and a configuration command B need to be sent to a machine frame device through a client, where the configuration command a is used to check a state of a service board S1 in the machine frame device, and the configuration command B is used to check states of a main control board, a service board S1, and a service board S2 in the machine frame device, and then by determining types of the configuration command a and the configuration command B, the configuration command a can be issued only to the service board S1 for execution, and the configuration command B is issued to the main control board, the service board S1, and the service board S2 for execution, and then the configuration command a does not need to be executed in multiple boards, so that the main control board does not need to obtain an execution result of each service board and return the execution result of each service board to the client, and thus the number of interactions between the main control board and the client and the number of interactions between the service board can be reduced, and the execution efficiency of the configuration command a is higher. On the other hand, the main control board issues the configuration command a to the designated service board S1, so that the configuration mode is more flexible.
In the embodiment of the present application, as an optional implementation manner, step 103: based on the command type of the configuration command, judging an execution object of the configuration command so as to enable the execution object to execute the configuration command, and the method comprises the following sub-steps:
when the command type of the configuration command is a global command, the execution objects of the configuration command are the main control board, the standby control board and all the service boards. Correspondingly, the method of the embodiment of the application further comprises the following steps:
executing the global class command;
when the global command is successfully executed, the global command is distributed to the standby control board and all the service boards, so that the standby control board and the service boards execute the global command;
receiving the execution result of the global command returned by the standby control board and the service board within the preset blocking time;
and returning the execution result to the client.
In this optional embodiment, when the command type of the configuration command is a global command, the execution object of the configuration command can be determined as the main control board, the standby control board, and all the service boards, and in addition, by executing the global command, when the global command is successfully executed, the global command can be distributed to the standby control board and all the service boards, so that the standby control board and the service boards execute the global command, and then the execution result for the global command can be returned by receiving the standby control board and the service boards within the preset blocking time, and finally the execution result is returned to the client.
In the embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
and when the execution of the global class command fails, returning error information to the client.
In this optional embodiment, when the execution of the global class command fails, an error message can be returned to the client to prompt an operator of the client.
In this embodiment of this application, as an optional implementation manner, the step 103, based on a command type of the configuration command, of determining an execution object of the configuration command, so that the execution object executes the configuration command, includes:
and when the command type of the configuration command is the main/standby command, executing objects of the configuration command are the main control board and the standby control board. Correspondingly, the method of the embodiment of the application further comprises the following steps:
executing the main and standby commands;
when the main/standby commands are successfully executed, the main/standby commands are issued to the standby control board, so that the standby control board executes the main/standby commands;
receiving the execution result of the main/standby commands returned by the standby control board within the preset blocking time;
and returning the execution result to the client.
In this optional embodiment, when the command type of the configuration command is the primary/secondary type command, the execution object of the configuration command can be determined as the primary control board and the secondary control board. Meanwhile, by executing the main/standby commands, when the main/standby commands are successfully executed, the main/standby commands can be issued to the standby control board, so that the standby control board executes the main/standby commands, and then receives an execution result of the main/standby commands returned by the standby control board within the preset blocking time, and the execution result can be returned to the client.
In the embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
and when the execution of the main/standby type command fails, returning error information to the client.
In this optional embodiment, when the execution of the primary/secondary command fails, error information may be returned to the client to prompt an operator of the client.
In the embodiment of the present application, as an optional implementation manner, step 103: based on the command type of the configuration command, judging an execution object of the configuration command so as to enable the execution object to execute the configuration command, and the method comprises the following sub-steps:
when the command type of the configuration command is a single board type command, identifying a board number carried in the configuration command;
an execution object is determined among a number of business boards based on a board card number. Correspondingly, the method of the embodiment of the application further comprises the following steps:
sending the single board type command to the service board corresponding to the board number, so that the service board corresponding to the board number executes the single board type command;
the service board corresponding to the board card number is received within the preset blocking time, and the execution result aiming at the single board type command is returned;
and returning the execution result to the client.
In this optional embodiment, when the command type of the configuration command is a single board type command, the execution object can be determined in the plurality of service boards based on the board number by identifying the board number carried in the configuration command. On the other hand, the service board corresponding to the board number can execute the board type command by issuing the board type command to the service board corresponding to the board number, and the execution result for the board type command is returned by receiving the service board corresponding to the board number within the preset blocking time, so that the execution result can be returned to the client.
In the embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
and judging whether the preset blocking time is overtime, and if so, returning an execution command overtime result to the client.
In this optional embodiment, by determining whether the preset blocking time is overtime, the execution command timeout result can be returned to the client to prompt an operator of the client when the preset blocking time is overtime.
In this alternative embodiment, the preset blocking time may be 30S, for example, when the preset blocking time exceeds 30S, the preset blocking time is determined to be timed out, so as to return the execution command timeout result to the client.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a configuration maintenance apparatus for a frame-type device disclosed in an embodiment of the present application, where the frame-type device includes a main control board, a standby control board, and a plurality of service boards, and the apparatus is applied to the main control board. As shown in fig. 2, the apparatus of the embodiment of the present application includes the following functional modules:
a receiving module 201, configured to receive a configuration command sent by a client;
the analysis module 202 is used for analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command;
the judging module 203 is configured to judge an execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command.
The device provided by the embodiment of the application can determine the command type of the configuration command by analyzing the configuration command and based on the analysis result of the configuration command after receiving the configuration command sent by the client, and further can judge the execution object of the configuration command based on the command type of the configuration command, so that the execution object executes the configuration command.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command is improved. In addition, the execution object of the configuration command is judged so that the execution object executes the configuration command, and then the configuration command can be issued to the specified board card, so that the configuration method has the advantage of being more flexible.
Please refer to the related description of the first embodiment of the present application for other detailed descriptions of the apparatus in the embodiments of the present application, which are not repeated herein.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, and as shown in fig. 3, the electronic device in the embodiment of the present application includes:
a processor 301; and the number of the first and second groups,
memory 302 configured to store machine-readable instructions that, when executed by processor 301, perform a method of configuration maintenance of a subrack device according to any of the preceding embodiments.
According to the configuration maintenance method of the electronic device using the execution machine frame device, after the configuration command sent by the client is received, the configuration command is analyzed, the command type of the configuration command is determined based on the analysis result of the configuration command, and then the execution object of the configuration command is judged based on the command type of the configuration command, so that the execution object executes the configuration command.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command is improved. In addition, the execution object of the configuration command is judged so that the execution object executes the configuration command, and then the configuration command can be issued to the specified board card, so that the configuration method has the advantage of being more flexible.
Example four
The present application provides a storage medium storing a computer program, where the computer program is executed by a processor to perform the configuration maintenance method for a machine-frame device according to any one of the foregoing embodiments.
According to the configuration maintenance method of the execution machine frame type device, after the configuration command sent by the client is received, the configuration command can be analyzed, the command type of the configuration command can be determined based on the analysis result of the configuration command, and further the execution object of the configuration command can be judged based on the command type of the configuration command, so that the execution object can execute the configuration command.
Compared with the prior art, the execution object of the configuration command is judged through the command class of the configuration command, so that the execution object executes the configuration command, the command irrelevant to the execution object can be prevented from being sent to the execution object, the execution time consumption of the configuration command can be shortened, and the execution efficiency of the configuration command is improved. In addition, the execution object of the configuration command is judged so that the execution object executes the configuration command, and then the configuration command can be issued to the specified board card, so that the configuration method has the advantage of being more flexible.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that, if the functions are implemented in the form of software functional modules and sold or used as independent products, the functions may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A configuration maintenance method for a frame-type device is characterized in that the frame-type device comprises a main control board, a standby control board and a plurality of service boards, and the method is applied to the main control board and comprises the following steps:
receiving a configuration command sent by a client;
analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command;
and judging an execution object of the configuration command based on the command type of the configuration command so as to enable the execution object to execute the configuration command.
2. The method of claim 1, wherein the determining an execution object of the configuration command based on the command type of the configuration command, such that the execution object executes the configuration command, comprises:
when the command type of the configuration command is a global command, executing objects of the configuration command are the main control board, the standby control board and all the service boards;
and, the method further comprises:
executing the global class command;
when the global command is successfully executed, the global command is issued to the standby control board and all the service boards, so that the standby control board and the service boards execute the global command;
receiving the execution result of the global class command returned by the standby control board and the service board within the preset blocking time;
and returning the execution result to the client.
3. The method of claim 2, wherein the method further comprises:
and when the execution of the global class command fails, returning error information to the client.
4. The method of claim 1, wherein the determining an execution object of the configuration command based on the command type of the configuration command, such that the execution object executes the configuration command, comprises:
when the command type of the configuration command is a main/standby command, the execution object of the configuration command is the main control board and the standby control board;
and, the method further comprises:
executing the main/standby class command;
when the main/standby command is successfully executed, the main/standby command is issued to the standby control board, so that the standby control board executes the main/standby command;
receiving the execution result of the main/standby commands returned by the standby control board within the preset blocking time;
and returning the execution result to the client.
5. The method of claim 4, wherein the method further comprises:
and when the execution of the main/standby type command fails, returning error information to the client.
6. The method of claim 1, wherein the determining an execution object of the configuration command based on the command type of the configuration command, such that the execution object executes the configuration command, comprises:
when the command type of the configuration command is a single board type command, identifying a board number carried in the configuration command;
determining an execution object in the plurality of service boards based on the board card number;
and, the method further comprises:
sending the single board type command to a service board corresponding to the board card number, so that the service board corresponding to the board card number executes the single board type command;
receiving a service board corresponding to the board card number within preset blocking time and returning an execution result aiming at the single board type command;
and returning the execution result to the client.
7. The method of any one of claims 2-6, further comprising:
and judging whether the preset blocking time is overtime, and if so, returning an execution command overtime result to the client.
8. The utility model provides a device is maintained in configuration of frame equipment which characterized in that, frame equipment includes main control board, is equipped with control panel and a plurality of business board, the device is applied to the main control board, the device includes:
the receiving module is used for receiving a configuration command sent by the client;
the analysis module is used for analyzing the configuration command and determining the command type of the configuration command based on the analysis result of the configuration command;
and the judging module is used for judging an execution object of the configuration command based on the command type of the configuration command so as to enable the execution object to execute the configuration command.
9. An electronic device, comprising:
a processor; and
a memory configured to store machine-readable instructions that, when executed by the processor, perform a method of configuration maintenance of a subrack apparatus of any of claims 1-7.
10. A storage medium storing a computer program for execution by a processor of the configuration maintenance method of a subrack apparatus according to any of claims 1-7.
CN202210848683.0A 2022-07-19 2022-07-19 Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium Active CN115225477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210848683.0A CN115225477B (en) 2022-07-19 2022-07-19 Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210848683.0A CN115225477B (en) 2022-07-19 2022-07-19 Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115225477A true CN115225477A (en) 2022-10-21
CN115225477B CN115225477B (en) 2023-12-01

Family

ID=83612393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210848683.0A Active CN115225477B (en) 2022-07-19 2022-07-19 Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115225477B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082456A1 (en) * 2014-11-28 2016-06-02 中兴通讯股份有限公司 Board, board management method and system, and storage medium
CN111599358A (en) * 2020-04-09 2020-08-28 华为技术有限公司 Voice interaction method and electronic equipment
CN111858090A (en) * 2020-06-30 2020-10-30 广东浪潮大数据研究有限公司 Data processing method, system, electronic equipment and storage medium
CN112114876A (en) * 2020-09-11 2020-12-22 苏州浪潮智能科技有限公司 Equipment control method, system, electronic equipment and storage medium
CN113076070A (en) * 2021-06-04 2021-07-06 牛芯半导体(深圳)有限公司 Data processing method and device
CN113409758A (en) * 2021-06-10 2021-09-17 恒大新能源汽车投资控股集团有限公司 Intelligent voice interaction method, device and system
JP2021144730A (en) * 2020-07-20 2021-09-24 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Instruction executing method, apparatus, electronic device, computer-readable storage medium, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082456A1 (en) * 2014-11-28 2016-06-02 中兴通讯股份有限公司 Board, board management method and system, and storage medium
CN111599358A (en) * 2020-04-09 2020-08-28 华为技术有限公司 Voice interaction method and electronic equipment
CN111858090A (en) * 2020-06-30 2020-10-30 广东浪潮大数据研究有限公司 Data processing method, system, electronic equipment and storage medium
JP2021144730A (en) * 2020-07-20 2021-09-24 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Instruction executing method, apparatus, electronic device, computer-readable storage medium, and program
CN112114876A (en) * 2020-09-11 2020-12-22 苏州浪潮智能科技有限公司 Equipment control method, system, electronic equipment and storage medium
CN113076070A (en) * 2021-06-04 2021-07-06 牛芯半导体(深圳)有限公司 Data processing method and device
CN113409758A (en) * 2021-06-10 2021-09-17 恒大新能源汽车投资控股集团有限公司 Intelligent voice interaction method, device and system

Also Published As

Publication number Publication date
CN115225477B (en) 2023-12-01

Similar Documents

Publication Publication Date Title
CN103532823A (en) Message processing method, device and system for Internet of Things
CN100589422C (en) A simulated single board and its simulation method
CN110222117A (en) A kind of data conversion synchronous method, equipment and the storage medium of heterogeneous database
CN110222119B (en) Data conversion synchronization method, equipment and storage medium for heterogeneous database
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN111541762A (en) Data processing method, management server, device and storage medium
CN113014608A (en) Flow distribution control method and device, electronic equipment and storage medium
CN110554885A (en) Sub-application generation method and device, electronic equipment and storage medium
CN100499509C (en) A data configuration method, system and operating and maintenance center
CN108108119A (en) A kind of collocation method and device of expansible storage cluster things
CN109324549A (en) A kind of dual master control equipment configuration method and dual master control equipment
CN113076231A (en) Server application scene setting method, system, terminal and storage medium
CN108763052A (en) A kind of method for testing performance and system of virtual reality software memory reclaim mechanism
CN108427560A (en) API file management methods, server and storage medium
CN114895879B (en) Management system design scheme determining method, device, equipment and storage medium
CN115225477A (en) Configuration maintenance method and device for frame type equipment, electronic equipment and storage medium
CN111767126A (en) System and method for distributed batch processing
CN111459748A (en) Operation and maintenance control method, system and device based on command control and storage medium
CN110971696B (en) System and method for realizing virtual electronic card communication
CN112836479A (en) Data report generation method, system and storage device
CN102316073A (en) Method for achieving UEFI (unified extensible firmware interface) BIOS (basic input output system) remote upgrade by utilizing sever and server
CN111061576A (en) Method and system for creating entity object
CN103152386A (en) Business data distribution server and business data distribution method thereof
CN109067566A (en) A kind of method, terminal and the monitoring equipment of the screenshot under silent mode
CN112671561B (en) Network card configuration method and equipment of cloud host

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