CN117692429A - Automatic configuration method and related device - Google Patents

Automatic configuration method and related device Download PDF

Info

Publication number
CN117692429A
CN117692429A CN202311714998.7A CN202311714998A CN117692429A CN 117692429 A CN117692429 A CN 117692429A CN 202311714998 A CN202311714998 A CN 202311714998A CN 117692429 A CN117692429 A CN 117692429A
Authority
CN
China
Prior art keywords
switch
reinforcement
message
test platform
management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311714998.7A
Other languages
Chinese (zh)
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 Aoxing Technology Co ltd
Original Assignee
Beijing Aoxing Technology 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 Aoxing Technology Co ltd filed Critical Beijing Aoxing Technology Co ltd
Priority to CN202311714998.7A priority Critical patent/CN117692429A/en
Publication of CN117692429A publication Critical patent/CN117692429A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses an automatic configuration method and a related device, which are applied to the field of big data. In the application, the method is applied to a test platform, firstly, a search message is sent to a reinforcement switch, the number of the reinforcement switches is one or more, then, a response information message sent by the reinforcement switch is received, and the corresponding management address of the reinforcement switch is modified based on the response information message. And finally, configuring the reinforcement switch according to the modified management address of the reinforcement switch. The method and the device realize automatic configuration of the test parameters of the reinforcement switch, avoid waste of human resources and improve the test efficiency of the reinforcement switch.

Description

Automatic configuration method and related device
Technical Field
The present disclosure relates to the field of big data technologies, and in particular, to an automatic configuration method and a related device.
Background
In the related art, when testing a hardened switch, when testing different hardened switches, a worker needs to manually search and configure the hardened switch device. Human resources can be seriously wasted, and meanwhile, when a large number of reinforced switches need to be tested, errors occur to the configuration of the reinforced switches due to manual intervention, so that the testing accuracy and efficiency of the reinforced switches are affected.
Disclosure of Invention
In view of this, the embodiments of the present application provide an automatic configuration method and related device, which aim to implement automatic configuration of test parameters for a reinforced switch, avoid waste of human resources, and improve test efficiency of the reinforced switch.
In a first aspect, an embodiment of the present application provides a method for automatic configuration, where the method is applied to a test platform, and the method includes:
sending a search message to a reinforcement switch;
receiving a response information message sent by the reinforcement switch;
modifying the corresponding management address of the reinforcement switch based on the response information message;
and configuring the consolidated switch according to the modified management address of the consolidated switch.
Optionally, the configuring the hardened switch according to the modified management address of the hardened switch includes:
acquiring a configuration file of an automatic test parameter;
transmitting the configuration file to the corresponding reinforcement switch according to the modified management address of the reinforcement switch;
and configuring the reinforcement switch based on the configuration file.
Optionally, the modifying the corresponding management address of the hardened switch based on the response information message includes:
acquiring information of the reinforcement switch in the response information message;
sending a management message to the reinforcement switch based on the information of the reinforcement switch;
and modifying the corresponding management address of the reinforcement switch according to the management message.
Optionally, the sending the lookup message to the reinforcement switch includes:
and sending a search message to the reinforcement switch based on a multicast technology.
In a second aspect, an embodiment of the present application provides a method for automatic configuration, where the method is applied to a strengthening switch, and the method includes:
receiving a search message sent by a test platform;
responding to the search message and sending a response message to the test platform;
modifying a management address according to a management message sent by the test platform, wherein the management message is generated by the test platform based on the response information message;
and configuring by using the modified management address and the configuration file sent by the test platform.
Optionally, the modifying the management address according to the configuration file sent by the test platform includes:
acquiring a management message sent by the test platform;
and modifying the management address in response to an instruction for modifying the management address in the management message.
Optionally, the configuring by using the modified management address and the configuration file sent by the test platform includes:
acquiring a configuration file sent by the test platform to the modified management address;
and configuring based on the configuration file.
In a third aspect, an embodiment of the present application provides an apparatus for automatic configuration, where the apparatus is applied to a test platform, and the apparatus includes: the device comprises a sending module, a receiving module, a modifying module and a configuration module;
the sending module is used for sending a searching message to the reinforcement switch;
the receiving module is used for receiving a response information message sent by the reinforcement switch;
the modification module is used for modifying the corresponding management address of the reinforcement switch based on the response information message;
the configuration module is used for configuring the reinforcement switch according to the modified management address of the reinforcement switch.
In a fourth aspect, an embodiment of the present application provides an apparatus for automatic configuration, where the apparatus is applied to a strengthening switch, the apparatus includes: the device comprises a receiving module, a sending module, a modifying module and a configuration module;
the receiving module is used for receiving the search message sent by the test platform;
the sending module is used for responding to the searching message and sending a response information message to the test platform;
the modification module is used for modifying a management address according to a management message sent by the test platform, wherein the management message is generated by the test platform based on the response information message;
the configuration module is used for configuring by utilizing the modified management address and the configuration file sent by the test platform.
In a fifth aspect, the present application provides an auto-configuration system, the system comprising: a test platform and a reinforcement switch;
the test platform is used for executing the method of any one of the first aspect;
the hardened switch is configured to perform the method of any of the preceding second aspects.
In a sixth aspect, the present application provides an electronic device, the device comprising: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is for storing one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform a method embodying the first aspect.
In a seventh aspect, embodiments of the present application provide a computer storage medium having code stored therein, which when executed, causes an apparatus for executing the code to implement a method according to any one of the first aspects.
The application provides an automatic configuration method and a related device, the method is applied to a reinforcement switch, when the method is executed, a search message sent by a test platform is received first, then a response message is sent to the test platform in response to the search message, modification of a management address is carried out according to a management message sent by the test platform, and the management message is generated by the test platform based on the response message. And finally, configuring by using the modified management address and the configuration file sent by the test platform. Thus, by sending the lookup message to one or more strengthening switches, the response information message of the strengthening switch can be obtained, and the management address of the strengthening switch can be correspondingly modified based on the obtained response information message. The method can realize the modification of management addresses of one or more reinforcement switches at the same time, further realize batch configuration of the test of the one or more reinforcement switches, and realize the automatic implementation without manual participation in the configuration process of the reinforcement switches. The method can avoid the waste of human resources, improve the efficiency of the configuration of the test parameters of the reinforced switch, and further improve the test efficiency of the reinforced switch.
Drawings
In order to more clearly illustrate the present embodiments or the technical solutions in the prior art, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of automatic configuration provided in an embodiment of the present application;
FIG. 2 is a flow chart of yet another method of automatic configuration provided by embodiments of the present application;
fig. 3 is a schematic structural diagram of an automatic configuration device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of another automatic configuration device according to an embodiment of the present application;
fig. 5 is a signaling diagram of an automatic configuration according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a test platform and a reinforced switch to be tested;
fig. 7 is a schematic structural diagram of an automatic configuration system according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the research of the related technology, it is found that when the reinforced switch is tested, the reinforced switch needs to be searched and configured by manual intervention, the testing process of the reinforced switch is complicated, and a great deal of manpower resources are wasted, so that the testing efficiency of the reinforced switch is affected.
Based on the above, the application provides an automatic configuration method and a related device. Batch configuration of testing of one or more hardened switches can be achieved without human involvement in configuring the hardened switches, but rather automatically. The method can avoid the waste of human resources, improve the efficiency of the configuration of the test parameters of the reinforced switch, and further improve the test efficiency of the reinforced switch.
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a flowchart of an automatic configuration method provided in an embodiment of the present application, and referring to fig. 1, the method is applied to a test platform, and the automatic configuration method provided in an embodiment of the present application includes:
s11: and sending a search message to the reinforcement switches, wherein the number of the reinforcement switches is one or more.
The switch serves as a key device for data exchange in the local area network and plays a core role of connecting network devices and transmitting data. The unreinforced switch is easy to be an entrance of network security hole, which causes serious consequences such as data leakage, network paralysis and the like. The switch is a switch after being reinforced, and the specific manners of reinforcing the switch may include, but are not limited to, the following manners: update firmware and patches, configure access control, cryptographic policies, and identity authentication, etc.
The above mentioned lookup message may be a UDP (User Datagram Protocol ) lookup message. The purpose of sending the search message to the reinforcement switch is to obtain the information of the reinforcement switch according to the search message.
In one possible implementation, the lookup message may be sent to the hardened switch via multicast, which is a one-to-many communication mode between hosts, a technique that allows one or more multicast sources to send the same message to multiple recipients. In the embodiment of the application, the same search message can be sent to a plurality of reinforcement switches by the test platform through a multicast technology.
S12: and receiving a response information message sent by the reinforcement switch.
After the reinforcement switch receives the search message, a response message is sent to the test platform based on the content of the search message, where the response message may include, but is not limited to, the following contents: management address, device identification, interface identification, etc. And after the test platform receives the corresponding information message sent by the reinforcement switch, the information of the reinforcement switch can be displayed at the test platform.
S13: and modifying the corresponding management address of the reinforcement switch based on the response information message.
In the foregoing description, it is mentioned that the management address is included in the response information message, and the test platform may modify the management address of the hardened switch in the received response information message. Subsequent configuration of the hardened switch may be facilitated by modification of the management address of the hardened switch.
In one possible implementation manner, the method for modifying the management address of the hardened switch may specifically be: firstly, acquiring information of the reinforcement switch in the response information message, then sending a management message to the reinforcement switch based on the information of the reinforcement switch, and finally modifying a management address of the corresponding reinforcement switch according to the management message.
Specifically, when the test platform receives the response message sent by the consolidated switch, the information of the consolidated switch in the response message information may be obtained, where the specific information of the consolidated switch may include, but is not limited to, the following contents: management address, device identification, interface identification, etc. Based on the obtained information of the consolidated switch, a multicast UDP management message can be sent to the consolidated switch, and the management address of the consolidated switch can be modified and validated by using the management message.
By the method for modifying the management address of the reinforcement switch, based on the acquired information of the reinforcement switch, a management message is sent to the reinforcement switch, and the management address of the reinforcement switch is modified by using the management message. The multicast mode of UDP is adopted when the management message is sent, so that the automatic searching and modification of the management address of the reinforcement switch can be realized, the waste of human resources is avoided, and the configuration efficiency is improved.
S14: and configuring the consolidated switch according to the modified management address of the consolidated switch.
After the modification of the management address of the hardened switch is completed, the hardened switch may be configured with the modified management address. The specific configuration operation can be performed according to the configuration file, i.e. the configuration operation of the reinforcement switch can be performed through the content of the configuration file.
In one possible implementation manner, the method for configuring the reinforcement switch may specifically be: firstly, acquiring a configuration file of an automatic test parameter, and then sending the configuration file to the corresponding reinforcement switch according to the modified management address of the reinforcement switch. And finally, configuring the reinforcement switch based on the configuration file.
In particular, the test platform may obtain a configuration file of automated test parameters, which may include parameter information for configuring the hardened switch. After the test platform obtains the configuration file, the configuration file can be sent to the reinforcement switch according to the modified management address of the reinforcement switch, so that the reinforcement switch can realize automatic configuration according to the configuration file.
By the method for configuring the reinforcement switch, the configuration file can be sent to the reinforcement switch by utilizing the modified management address of the reinforcement switch, so that the reinforcement switch can complete automatic configuration according to the information in the configuration file. Therefore, the reinforcement switch can receive the configuration parameters to realize automatic configuration test, manual intervention is avoided, and automatic test of the reinforcement switch can be realized.
In this embodiment, a method for automatic configuration is provided, which is applied to a test platform, and the method firstly sends a search message to a reinforcement switch, then receives a response message sent by the reinforcement switch, and modifies a management address of the corresponding reinforcement switch based on the response message. And finally, configuring the reinforcement switch according to the modified management address of the reinforcement switch. Thus, by sending the lookup message to one or more strengthening switches, the response information message of the strengthening switch can be obtained, and the management address of the strengthening switch can be correspondingly modified based on the obtained response information message. The method can realize the modification of management addresses of one or more reinforcement switches at the same time, further realize batch configuration of the test of the one or more reinforcement switches, and realize the automatic implementation without manual participation in the configuration process of the reinforcement switches. The method can avoid the waste of human resources, improve the efficiency of the configuration of the test parameters of the reinforced switch, and further improve the test efficiency of the reinforced switch.
Fig. 2 is a flowchart of another automatic configuration method provided in an embodiment of the present application, where, as shown in fig. 2, the method is applied to a reinforcement switch, and the method specifically includes:
s21: and receiving a search message sent by the test platform.
From the foregoing description, it can be seen that the test platform needs to send a lookup message to the hardened switch to obtain information of the hardened switch. Then the hardened switch needs to receive the lookup message sent by the test platform.
S22: and responding to the search message and sending a response information message to the test platform.
After the reinforcement switch receives the search message, the search information of the test platform needs to be determined according to the content in the search message, corresponding information is determined according to the content in the search message, and the information is sent to the test platform in the form of a response information message.
S23: and modifying a management address according to a management message sent by the test platform, wherein the management message is generated by the test platform based on the response information message.
After the test platform receives the response information message, as described above, the response information message may include: management address, device identification, interface identification, etc. And the test platform generates a management message according to the content in the response information message and sends the management message to the reinforcement switch. The management message includes the content for modifying the management address of the reinforcement switch, and the reinforcement switch modifies the management address according to the content in the management message.
In one possible implementation manner, the method for modifying the management address by the reinforcement switch may be: firstly, acquiring a management message sent by the test platform, and then modifying the management address in response to an instruction for modifying the management address in the management message.
Specifically, the reinforcement switch may obtain the management message sent by the test platform, then modify the management address according to the instruction for modifying the management address of the test platform in the management message, and finally modify the management address according to the instruction for modifying the management address.
S24: and configuring by using the modified management address and the configuration file sent by the test platform.
In one possible implementation manner, the specific implementation method of "configuring with the modified management address and the configuration file sent by the test platform" mentioned in S24 may be: firstly, acquiring a configuration file sent by the test platform to the modified management address; and then performing configuration based on the configuration file.
When the reinforcement switch finishes the modification of the management address, the configuration file sent by the test platform can be received by utilizing the modified management address, and the configuration of the test parameters corresponding to the reinforcement switch is carried out according to the configuration file.
The method is applied to a reinforcement switch, first, a search message sent by a test platform is received, then a response message is sent to the test platform in response to the search message, modification of a management address is carried out according to a management message sent by the test platform, and the management message is generated by the test platform based on the response message. And finally, configuring by using the modified management address and the configuration file sent by the test platform. Thus, by sending the lookup message to one or more strengthening switches, the response information message of the strengthening switch can be obtained, and the management address of the strengthening switch can be correspondingly modified based on the obtained response information message. The method can realize the modification of management addresses of one or more reinforcement switches at the same time, further realize batch configuration of the test of the one or more reinforcement switches, and realize the automatic implementation without manual participation in the configuration process of the reinforcement switches. The method can avoid the waste of human resources, improve the efficiency of the configuration of the test parameters of the reinforced switch, and further improve the test efficiency of the reinforced switch.
Fig. 3 is a schematic structural diagram of an automatic configuration device provided in an embodiment of the present application, where, as shown in fig. 3, the device is applied to a test platform, and an automatic configuration device specifically includes: a transmitting module 100, a receiving module 200, a modifying module 300 and a configuring module 400;
the sending module is used for sending a searching message to the reinforcement switch;
the receiving module is used for receiving a response information message sent by the reinforcement switch;
the modification module is used for modifying the corresponding management address of the reinforcement switch based on the response information message;
the configuration module is used for configuring the reinforcement switch according to the modified management address of the reinforcement switch.
In an implementation manner, the configuration module is specifically configured to:
acquiring a configuration file of an automatic test parameter;
transmitting the configuration file to the corresponding reinforcement switch according to the modified management address of the reinforcement switch;
and configuring the reinforcement switch based on the configuration file.
In an implementation manner, the modification module is specifically configured to:
acquiring information of the reinforcement switch in the response information message;
sending a management message to the reinforcement switch based on the information of the reinforcement switch;
and modifying the corresponding management address of the reinforcement switch according to the management message.
In an implementation manner, the sending module is specifically configured to:
and sending a search message to the reinforcement switch based on a multicast technology.
In this embodiment, an automatic configuration device is provided, where the device is applied to a test platform, and the device includes: the device comprises a sending module, a receiving module, a modifying module and a configuration module. The sending module is used for sending a searching message to the reinforcement switch; the receiving module is used for receiving a response message sent by the reinforcement switch; the modification module is used for modifying the corresponding management address of the reinforcement switch based on the response information message; the configuration module is used for configuring the consolidated switch according to the modified management address of the consolidated switch. Thus, by sending the lookup message to one or more strengthening switches, the response information message of the strengthening switch can be obtained, and the management address of the strengthening switch can be correspondingly modified based on the obtained response information message. The method can realize the modification of management addresses of one or more reinforcement switches at the same time, further realize batch configuration of the test of the one or more reinforcement switches, and realize the automatic implementation without manual participation in the configuration process of the reinforcement switches. The method can avoid the waste of human resources, improve the efficiency of the configuration of the test parameters of the reinforced switch, and further improve the test efficiency of the reinforced switch.
Fig. 4 is a schematic structural diagram of another automatic configuration device provided in an embodiment of the present application, as shown in fig. 4, where the device is applied to a reinforcement switch, and an automatic configuration device specifically includes: a receiving module 10, a transmitting module 20, a modifying module 300 and a configuring module 400;
the receiving module is used for receiving the search message sent by the test platform;
the sending module is used for responding to the searching message and sending a response information message to the test platform;
the modification module is used for modifying a management address according to a management message sent by the test platform, wherein the management message is generated by the test platform based on the response information message;
the configuration module is used for configuring by utilizing the modified management address and the configuration file sent by the test platform.
In an implementation manner, the modification module is specifically configured to:
acquiring a management message sent by the test platform;
and modifying the management address in response to an instruction for modifying the management address in the management message.
In an implementation manner, the configuration module is specifically configured to:
acquiring a configuration file sent by the test platform to the modified management address;
and configuring based on the configuration file.
In this embodiment, an apparatus for automatic configuration is provided, where the apparatus is applied to a reinforcement switch, and the apparatus includes: the device comprises a receiving module, a sending module, a modifying module and a configuration module. The receiving module is used for receiving the search message sent by the test platform; the sending module is used for responding to the searching message and sending a response information message to the test platform; the modification module is used for modifying the management address according to the configuration file sent by the test platform; and the configuration module is used for configuring by using the modified management address. Thus, by sending the lookup message to one or more strengthening switches, the response information message of the strengthening switch can be obtained, and the management address of the strengthening switch can be correspondingly modified based on the obtained response information message. The method can realize the modification of management addresses of one or more reinforcement switches at the same time, further realize batch configuration of the test of the one or more reinforcement switches, and realize the automatic implementation without manual participation in the configuration process of the reinforcement switches. The method can avoid the waste of human resources, improve the efficiency of the configuration of the test parameters of the reinforced switch, and further improve the test efficiency of the reinforced switch.
Fig. 5 is a signaling diagram of automatic configuration provided in the embodiment of the present application, as shown in the drawing, including a test platform, a to-be-tested reinforcement switch 1, and a to-be-tested reinforcement switch 2, where the method specifically includes:
fig. 6 is a schematic structural diagram of a test platform and a reinforcement switch to be tested, as shown in fig. 6, where the test platform is in communication connection with the reinforcement switch to be tested through a local area network.
S101: and multicasting the search message.
And sending a search message to the reinforcement switch 1 to be tested and the reinforcement switch 2 to be tested by the test platform in a multicast mode.
S102: responding to the information message.
After receiving the search message sent by the test platform, the reinforcement switch to be tested 1 and the reinforcement switch to be tested 2 respectively send response information messages to the test platform in response to the search message, wherein the response information messages comprise information of the reinforcement switch to be tested.
S103: the management address is modified.
And the test platform modifies management addresses of the reinforcement switch to be tested 1 and the reinforcement switch to be tested 2 according to the acquired information of the reinforcement switch to be tested 1 and the reinforcement switch to be tested 2.
S104: and issuing automatic test configuration.
After the test platform completes the modification of the management addresses of the reinforcement switch 1 to be tested and the reinforcement switch 2 to be tested, the test platform respectively issues automatic test configuration to the reinforcement switch 1 to be tested and the reinforcement switch 2 to be tested according to the modified management addresses.
The embodiment of the present application further provides an automatic configuration system, fig. 7 is a schematic structural diagram of the automatic configuration system provided in the embodiment of the present application, and as shown in fig. 7, the automatic configuration system 600 includes: a test platform 601 and a ruggedized switch 602. Wherein the test platform is configured to perform the steps performed by the test platform in the foregoing embodiments, and the hardened switch is configured to perform the steps performed by the hardened switch in the foregoing embodiments.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The embodiment of the application also provides corresponding equipment and a computer readable storage medium, which are used for realizing the scheme provided by the embodiment of the application.
The device comprises a memory for storing instructions or code and a processor for executing the instructions or code to cause the device to perform an auto-configuration method as described in any of the embodiments of the present application.
In practical applications, the computer-readable storage medium may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It is further noted that relational terms such as first and second, and the like are 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. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method of automatic configuration, the method being applied to a test platform, the method comprising:
sending a search message to a reinforcement switch, wherein the number of the reinforcement switch is one or more than one;
receiving a response information message sent by the reinforcement switch;
modifying the corresponding management address of the reinforcement switch based on the response information message;
and configuring the consolidated switch according to the modified management address of the consolidated switch.
2. The method of claim 1, wherein configuring the hardened switch according to the modified management address of the hardened switch comprises:
acquiring a configuration file of an automatic test parameter;
transmitting the configuration file to the corresponding reinforcement switch according to the modified management address of the reinforcement switch;
and configuring the reinforcement switch based on the configuration file.
3. The method of claim 1, wherein modifying the corresponding management address of the hardened switch based on the response information message comprises:
acquiring information of the reinforcement switch in the response information message;
sending a management message to the reinforcement switch based on the information of the reinforcement switch;
and modifying the corresponding management address of the reinforcement switch according to the management message.
4. The method of claim 1, wherein the sending the lookup message to the hardened switch comprises:
and sending a search message to the reinforcement switch based on a multicast technology.
5. A method of automatic configuration, the method being applied to a ruggedized switch, the method comprising:
receiving a search message sent by a test platform;
responding to the search message and sending a response message to the test platform;
modifying a management address according to a management message sent by the test platform, wherein the management message is generated by the test platform based on the response information message;
and configuring by using the modified management address and the configuration file sent by the test platform.
6. The method of claim 5, wherein the modifying the management address according to the management message sent by the test platform comprises:
acquiring a management message sent by the test platform;
and modifying the management address in response to an instruction for modifying the management address in the management message.
7. The method of claim 5, wherein the configuring using the modified management address and the configuration file sent by the test platform comprises:
acquiring a configuration file sent by the test platform to the modified management address;
and configuring based on the configuration file.
8. An apparatus for automatic configuration, the apparatus being applied to a test platform, the apparatus comprising: the device comprises a sending module, a receiving module, a modifying module and a configuration module;
the sending module is used for sending a searching message to the reinforcement switch;
the receiving module is used for receiving a response information message sent by the reinforcement switch;
the modification module is used for modifying the corresponding management address of the reinforcement switch based on the response information message;
the configuration module is used for configuring the reinforcement switch according to the modified management address of the reinforcement switch.
9. An apparatus for automatic configuration, the apparatus being applied to a ruggedized switch, the apparatus comprising: the device comprises a receiving module, a sending module, a modifying module and a configuration module;
the receiving module is used for receiving the search message sent by the test platform;
the sending module is used for responding to the searching message and sending a response information message to the test platform;
the modification module is used for modifying a management address according to a management message sent by the test platform, wherein the management message is generated by the test platform based on the response information message;
the configuration module is used for configuring by utilizing the modified management address and the configuration file sent by the test platform.
10. An automatic configuration system, the system comprising: a test platform and a reinforcement switch;
the test platform being for performing the method of any one of claims 1-4;
the hardened switch is adapted to perform the method of any of claims 5-7.
11. An electronic device, the device comprising: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is for storing one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of auto-configuration of any of claims 1-4 or 5-7.
12. A computer-readable storage medium, wherein a program for implementing a method of automatic configuration is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the method according to any one of claims 1-4 or 5-7.
CN202311714998.7A 2023-12-13 2023-12-13 Automatic configuration method and related device Pending CN117692429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311714998.7A CN117692429A (en) 2023-12-13 2023-12-13 Automatic configuration method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311714998.7A CN117692429A (en) 2023-12-13 2023-12-13 Automatic configuration method and related device

Publications (1)

Publication Number Publication Date
CN117692429A true CN117692429A (en) 2024-03-12

Family

ID=90126064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311714998.7A Pending CN117692429A (en) 2023-12-13 2023-12-13 Automatic configuration method and related device

Country Status (1)

Country Link
CN (1) CN117692429A (en)

Similar Documents

Publication Publication Date Title
CN109474508B (en) VPN networking method, VPN networking system, VPN master node equipment and VPN master node medium
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN105072398B (en) A kind of device updating method and device
US8880108B2 (en) Short message processing method and apparatus
CN111930709A (en) Data storage method and device, electronic equipment and computer readable medium
CN105141699B (en) The control method and device of application program
CN116668402A (en) Intelligent cloud box access method, device, equipment and storage medium
CN110796367A (en) Equipment information management method and device based on information remote identification and terminal
CN107135108A (en) The update method and system of network connection list
CN111711556B (en) Routing method, device, system, equipment and storage medium of virtual private network
CN117692429A (en) Automatic configuration method and related device
CN106992905A (en) Long-distance service method and system after network link failure
CN107204897A (en) The fault detection method and system of network link
CN114328026B (en) Virtual disk backup method, device, equipment and medium
CN112738153B (en) Gateway selection method, system, device, server and medium in service system
CN107155183A (en) The data ciphering method and system of smart home
CN106973072A (en) Network link encryption method and system based on terminal
CN107065590A (en) Control method and system of the terminal positioning to smart home
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN112702441A (en) Container-based access data processing method, device and system and storage medium
CN113923256B (en) Data source management method, device, server and system
CN111597156A (en) Civil aviation data processing method and device, electronic equipment and storage medium
CN111163155A (en) Account checking file transmission method, account checking file transmission system, account checking file transmission server and storage medium
CN115361264B (en) Node management method, device, node, system and storage medium
CN114844961B (en) Distributed system protocol intercommunication method, device, equipment and storage medium

Legal Events

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