Detailed Description
The present invention will be further described in detail with reference to the following examples, in order to make the objects, technical solutions and advantages of the present invention more apparent.
Referring to fig. 1, a rollback method 100 of a configuration provided by an embodiment of the present invention is shown, where the method includes:
step 101, displaying a configuration management interface of the network device.
The network equipment is connected with a display device and an input device, and a configuration management interface of the network equipment is displayed on the display device. The display device and the input device may be connected to a network device in an external form, or the network device may be connected to a computer through a network.
For example, the network device is a switch, the switch is connected with the computer, the display of the computer is used as self display device, the input device (such as keyboard, touch pad or mouse) of the computer is used as self input device, the computer enters the configuration management interface of the switch, and the configuration management interface of the switch is displayed on the display of the computer.
The configuration management interface of the network device is an interface for editing operations related to configuration rollback of the network device.
Step 102, in response to the selection operation of the network device on the configuration management interface, displaying the selected target network device.
And responding to the selection operation of the network equipment on the first selection control, and displaying the selected target network equipment. Illustratively, as shown in FIG. 2, the configuration management interface includes a first selection control 11 of network devices, a selection window of candidate network devices is displayed in response to clicking operation on the first selection control 11, the selection window including device names of one or more network devices, and a device name "aa (192.168.222.68)" of a selected target network device is displayed on the first selection control 11 in response to selecting operation of network devices in the selection window.
If the computer judges that the selectable network device is unique, the network device is automatically selected as the target network device, and the device name of the target network device is automatically displayed on the first selection control, for example, the computer is connected with one network device in an external connection mode.
Step 103, in response to the selection operation of the archived configuration of the target network device on the configuration management interface, displaying the selected target configuration.
And responding to the selection operation of the archived configuration of the target network equipment on the second selection control, and displaying the selected target configuration. Illustratively, as shown in FIG. 2, a second selection control 12 is included on the configuration management interface, in response to a click operation on the second selection control 12, an archived configuration selection window 13 is displayed, the selection window 13 includes one or more archived configuration identification numbers (IDs), and in response to a archived configuration selection operation in the selection window, the identification number "ID:1-2024-08-06 00:35:29" of the selected target configuration is displayed on the second selection control 12.
Step 104, generating and executing a rollback command in response to the operation of rollback the current configuration of the target network device to the target configuration.
And generating and executing a rollback command in response to the rollback operation triggered on the rollback control.
Or generating and displaying a rollback command in response to a command generating operation on the configuration management interface, and executing the rollback command in response to a command executing operation on the configuration management interface. For example, the configuration interface also comprises a command generating control and a command executing control, a backspacing command is generated in response to a generating operation triggered on the command generating control, and the backspacing command is executed in response to an executing operation triggered on the command executing control. As shown in FIG. 2, the configuration management interface also comprises a command generation control 14 and a command execution control 15, wherein the command generation control 14 is used for generating a rollback command in response to clicking operation on the command generation control 14, and the command execution control 15 is used for executing the rollback command in response to clicking operation on the command execution control 15. The configuration management interface further includes a display area 16, and after generating the rollback command, the rollback command is displayed in the display area 16.
Alternatively, the displayed rollback command may be edited, and after the rollback command is generated and displayed, and before the rollback command is executed, the edited rollback command is displayed in response to an editing operation on the rollback command. For example, the back command displayed in the display area 16 may be edited, the edited back command may be displayed in response to an editing operation for the back command, and the edited back command may be subsequently executed in response to a command execution operation on the configuration management interface.
Optionally, the back-off command includes at least one of:
A parameter modification command, configured to instruct to modify a parameter of a first configuration item in the current configuration to a parameter of a first configuration item in the target configuration, where the first configuration item is a configuration item having a configuration but different configuration parameters from the current configuration and the target configuration;
A configuration adding command, configured to instruct adding a second configuration item in the current configuration, and set a parameter of the second configuration item in the current configuration as a parameter of the second configuration item in the target configuration, where the second configuration item is a configuration item that has no configuration but has a configuration in the current configuration;
and a configuration pruning command, which is used for indicating to delete a third configuration item in the current configuration, wherein the third configuration item is a configuration item with the current configuration but without the target configuration.
The method for generating the rollback command comprises the steps of obtaining and comparing the current configuration of the target network equipment with the selected target configuration to obtain a configuration item with a difference between the current configuration and the selected target configuration, and generating the rollback command according to the configuration item with the difference between the current configuration and the selected target configuration. For example, comparing whether there is a difference between the current configuration of the target network device and the configuration item of the target configuration, determining whether the current configuration lacks a certain configuration item and whether there is a certain configuration item more than the target configuration, determining whether there is a same corresponding parameter of the current configuration and the configuration item of the target configuration, obtaining the difference between the two according to the comparison, and generating at least one of the parameter modification command, the configuration addition command and the configuration deletion command according to the difference. Further, the above-mentioned at least one command is executed, for example, a parameter modification command is executed to modify the parameter of the first configuration item in the current configuration into the parameter of the first configuration item in the target configuration, another command is executed to add a second configuration item in the current configuration and set the parameter of the second configuration item added in the current configuration into the parameter of the second configuration item in the target configuration, and another command is executed to delete the third configuration item in the current configuration directly, for example, a configuration deletion command is executed to return the current configuration to the target configuration.
In summary, in the configuration rollback method provided in this embodiment, the target network device is selected on the configuration management interface, and one target configuration is selected from the archived configurations, then the rollback operation is triggered, the rollback command is automatically generated and executed, the current configuration of the target network device is rolled back to the target configuration, no manager is required to manually compare the current configuration with the target configuration, no manager is required to modify the current configuration to rollback to the target configuration, many human intervention operations still existing in the configuration comparison and rollback process are reduced, errors possibly occurring in the manual rollback process can be reduced to the greatest extent, accuracy of the rollback command is ensured, the specific device and configuration are customized, the configuration management process of the network device is simplified, and the efficiency of configuration management is improved.
Second, the generated back-off commands are editable so that the administrator can audit and manually adjust the automatically generated back-off commands, providing flexibility while maintaining automation.
Before performing configuration rollback for a network device, a configuration manager may need to learn about differences between archived configurations, and the configuration management of the present invention provides an automatic comparison function for the configurations, as shown in fig. 2.
Referring to fig. 3, a comparison method 200 of a configuration provided in an embodiment of the present invention is shown, and the method includes:
step 201, displaying a configuration management interface of a network device.
The network equipment is connected with a display device and an input device, and a configuration management interface of the network equipment is displayed on the display device. The display device and the input device may be connected to a network device in an external form, or the network device may be connected to a computer through a network.
For example, the network device is a switch, the switch is connected with the computer, the display of the computer is used as self display device, the input device (such as keyboard, touch pad or mouse) of the computer is used as self input device, the computer enters the configuration management interface of the switch, and the configuration management interface of the switch is displayed on the display of the computer.
The configuration management interface of the network device is also an interface for editing operations related to configuration comparisons of the network device.
Step 202, in response to a selection operation of the configuration for comparison on the configuration management interface, displaying the selected first configuration and second configuration.
As shown in FIG. 4, the configuration management interface comprises a third selection control 21 and a fourth selection control 22 which are in the archived configuration, the selected first configuration is displayed in response to the selection operation of the first configuration on the third selection control, and the selected second configuration is displayed in response to the selection operation of the second configuration on the third selection control. For example, in response to a click operation on the third selection control 21, a first selection window is displayed, the first selection window including one or more archived configuration identification numbers, in response to a selection operation on the first selection window for the first configuration, a first configuration identification number "configuration ID 1" is displayed, in response to a click operation on the fourth selection control 22, a second selection window is displayed, the second selection window including one or more archived configuration identification numbers, in response to a selection operation on the second selection window for the second configuration, a second configuration identification number "configuration ID 2" is displayed.
The identification numbers of the archived configurations displayed in the first selection window and the second selection window are all the same or partially the same. If the first configuration identification number is partially the same, the first configuration identification number displayed in the first selection window may include the second configuration identification number displayed in the second selection window, and the second configuration identification number displayed in the second selection window does not include the first configuration identification number.
Optionally, the first configuration and the second configuration selected from the archived configurations of the target network device are displayed.
Before configuration comparison, the target network device is selected first, and the selected archived configuration is the archived configuration corresponding to the target network device. Or when the configuration management of one network device is controlled singly, the network device is the target network device, the operation of selecting the target network device is not needed to be executed, and the selected archived configuration is also the archived configuration corresponding to the target network device.
And 203, responding to the comparison operation triggered on the configuration management interface, and displaying the configuration comparison results of the first configuration and the second configuration.
The configuration management interface further includes a comparison control 23, and in response to a comparison operation triggered on the comparison control 23, the first configuration and the second configuration are compared, and configuration comparison results of the first configuration and the second configuration are displayed, as shown in fig. 4, and the configuration comparison results 24 may be displayed below identification numbers of the first configuration and the second configuration. Or configuration contrast results (not shown in fig. 4) may also be displayed through a pop-up window.
In summary, the configuration comparison method provided in this embodiment selects two groups of configurations on the network configuration interface, then triggers automatic comparison of the two groups of configurations, and finally displays the configuration comparison result, so that configuration management personnel is not required to manually call out the two groups of configurations, and then manually compare the two groups of configurations, thus obtaining a detailed configuration comparison result, improving the configuration comparison efficiency, intuitively seeing the difference between the two configuration pieces, reducing a plurality of human intervention operations still existing in the configuration comparison process, simplifying the configuration management process of the network device, and improving the configuration management efficiency.
If the configuration of the target network device changes, the current configuration of the target network device and the archived configuration can be obtained and compared, so as to determine whether to archive the current configuration, and the implementation process can be as shown in fig. 5.
Referring to fig. 5, a method 300 for archiving a configuration according to an embodiment of the present invention is shown, where the method includes:
step 301, displaying a configuration management interface of a network device.
The network equipment is connected with a display device and an input device, and a configuration management interface of the network equipment is displayed on the display device. The display device and the input device may be connected to a network device in an external form, or the network device may be connected to a computer through a network.
For example, the network device is a switch, the switch is connected with the computer, the display of the computer is used as self display device, the input device (such as keyboard, touch pad or mouse) of the computer is used as self input device, the computer enters the configuration management interface of the switch, and the configuration management interface of the switch is displayed on the display of the computer.
The configuration management interface of the network device is also an interface for operations related to configuration archiving of the network device.
Step 302, the current configuration of the target network device is obtained and compared with the archived configuration to obtain a comparison result.
And obtaining the current configuration and the archived configuration of the target network equipment, and comparing the current configuration with the archived configuration one by one to obtain a comparison result of the current configuration and each archived configuration. Illustratively, a real-time configuration comparison engine is integrated into the system of the target network device, through which the current configuration is compared with the archived configuration.
Optionally, after the configuration of the target network device is changed, if the selected operation of the target network device on the configuration management interface is received, a comparison result of the archived configuration and the current configuration is displayed, or the archived configuration and the current configuration are periodically obtained and compared to obtain the comparison result.
For example, the configuration manager changes the configuration of the target network device, the configuration management interface includes a network device selection control 31 to be archived, as shown in fig. 6, and in response to a selection operation on the target network device on the network device selection control 31 to be archived, the selected target network device (such as a device name or an identification number) is displayed on the network device selection control 31 to be archived, the current configuration of the target network device is acquired and compared with the archived configuration, and a comparison result of the archived configuration and the current configuration is displayed.
Other configuration change scenarios are also possible, such as other personnel than a configuration manager changing the configuration of the target network device, for which the archive configuration is periodically acquired and compared with the current configuration, resulting in a comparison result.
Optionally, comparing the current configuration of the target network device to the archived configuration includes comparing the current configuration of the target network device to a hash value (i.e., a hash value) of the archived configuration. Each configuration corresponds to a respective unique hash value, which is the same if the two configurations are the same, and which is different if the two configurations are different. Accordingly, the comparison of the archived configuration with the current configuration includes a comparison of the archived configuration with a hash value of the current configuration. For example, some archived configuration may be the same as or different from the hash value of the current configuration.
Alternatively, the hash value may be an MD5 value, and the MD5 value is a cryptographic hash value calculated based on an MD5 Message-Digest Algorithm (MD 5 Message-Digest Algorithm).
And step 303, if the comparison result indicates that the current configuration does not exist in the archived configuration, archiving the current configuration.
If the comparison result indicates that each archived configuration is different from the current configuration, archiving the current configuration, and storing the current configuration into a database for managing the network device. For example, the switch IP, the current configuration, the hash value of the configuration, the modification time of the configuration, the time stamp at the time of archiving are archived into a database for managing network devices.
Optionally, archiving the current configuration if the comparison indicates that the archived configuration differs from the current configuration in hash value. And if the comparison result indicates that each archived configuration is different from the hash value of the current configuration, archiving the current configuration.
Optionally, if the comparison result indicates that the current configuration does not exist in the archived configuration, and an archiving operation triggered on the configuration management interface is received, archiving the current configuration. Illustratively, the comparison results are displayed on a configuration management interface, which also includes an archive control 32, as shown in FIG. 6, for archiving the current configuration in response to an archiving operation on the archive control 32.
The configuration management interface also displays information about the archived configuration, which may include an ID of the archived configuration, a network device IP (e.g., switch IP), a time stamp, etc., and as shown in fig. 6, a plurality of pieces of information about the archived configuration are displayed on the display area 33 of the archived configuration.
After archiving the current configuration, information about the current configuration, including the ID of the current configuration, network device IP, time stamp, etc., may also be displayed on the archived configuration display area 33.
In some embodiments, if the comparison indicates that there is a current configuration in the archived configuration, then no archiving operation is performed.
In other embodiments, if the archived configuration and the current configuration are periodically obtained and compared, and the obtained comparison result is that the current configuration does not exist in the archived configuration, sending a notification mail is automatically triggered, and the notification mail is sent to a configured mailbox, where the content of the notification mail at least includes a device name or ID of the target network device, IP, a prompt message that the configuration is changed, and a change time. The configured mailbox can be a monitoring mailbox used by a configuration manager, and the sending of the notification mail enables the configuration manager to know the configuration change condition of the target network device in time.
In other embodiments, after the target network device is selected, the existing archiving configuration corresponding to the target network device is displayed, for example, after the target network device for rollback, or the target network device for comparison, or the target network device for archiving is selected, the archiving configuration corresponding to the target network device is displayed on the display area 33, as shown in fig. 6.
In summary, in the archiving method of the configuration provided in the embodiment, after the configuration of the target network device is changed, the target network device is selected, so that whether the changed configuration already exists in the database can be checked, if the changed configuration does not exist, the archiving operation is executed again, so that repeated archiving operation is avoided, a plurality of human intervention operations existing in the configuration archiving process are reduced, the configuration management process of the network device is simplified, and the configuration management efficiency is improved.
In some embodiments, the searching of the changed configuration (i.e. the current configuration) in the archived configuration is performed based on the hash value of the configuration, so long as the hash value of the archived configuration is searched for whether the changed configuration exists, all configurations do not need to be compared, and the searching efficiency is improved. The real-time configuration comparison engine can be integrated in the system of the network equipment, and the comparison between different configurations can be realized through the real-time configuration comparison engine, so that the difference between the configurations can be highlighted, the configurations are reduced, the time spent for configuration management is obviously reduced, and the complexity of configuration management is reduced.
In some embodiments, if configuration management is performed for the target network device, a management account needs to be logged in on the target network device. In the invention, the management account number can be automatically logged in, for example, after the target network device is selected, login information corresponding to the target network device, such as a number sequence and a password sequence of the login account number, and also such as a user name and a password, is obtained from the security database, and the management account number is automatically logged in on the target network device based on the login information. The method can be used for automatically logging in the background without displaying the login process on the interface, or popping up the login interface after selecting the target network equipment, displaying the acquired login account number and password on the login interface, and automatically closing the popup window after automatically logging in.
For example, if the target network device is selected and the target configuration is performed during the configuration rollback operation, the login information corresponding to the target network device in the Secure database for recording the login information of the network device is automatically called, and the management account is automatically logged in an SSH (Secure Shell) login manner, where SSH is a network protocol for performing Secure communication on an unsafe network. And then 'show run' obtains the current configuration of the target network equipment, the current configuration can be real-time configuration, and then the current configuration is compared with the target configuration to obtain a configuration comparison result, and further a rollback command is generated according to the configuration comparison result.
The method realizes the automatic login of the account in the management process of the network equipment, so that the management personnel can safely and automatically login the management account without manually inputting login information, editing errors easily occurring during manual input are avoided, and the login efficiency of the account on the network equipment is improved.
Network devices may also be managed to enable automatic login of a management account on one or more network devices. The method includes the steps of receiving operation of managing network equipment on a configuration management interface, displaying an interface of the managing network equipment, responding to editing operation of the newly-added network equipment on the interface of the managing network equipment, displaying edited equipment information and login information, responding to adding operation of the newly-added network equipment, displaying the added equipment information of the newly-added network equipment, and storing the equipment information and the login information of the newly-added network equipment into a security database. As shown in fig. 7, taking a network device as an example of a switch, editing operations of adding a new switch may be performed on the interface 40 of the management device, for example, equipment information such as a switch name, an IP address, and login information such as a user name and a password are edited in a control of an editing area 41 of "adding a new switch", after the editing is completed, an adding control 42 of the switch is clicked, the equipment information and the login information of the new switch are correspondingly sent to a security database to be stored, information such as a name, an IP address, a user name, and the like of the new switch is also displayed in a display area 43 of "existing switch", each existing switch corresponds to a respective operation control 44 on the display area 43, the operation control 44 includes an editing control and a deleting control, the editing control may modify the equipment information and the login information of the switch, and the deleting control may directly delete the equipment information and the login information of the existing switch.
The method can manage the login information of the network equipment so as to realize automatic login of the account numbers on one or more network equipment, further enable the account numbers to be automatically logged in the management process of the network equipment, enable the manager not to need to manually input the login information, avoid editing errors which are easy to occur during manual input, and improve the login efficiency of the account numbers on the network equipment.
Illustratively, as shown in fig. 8, the configuration rollback, comparison and archiving editing areas are located in the same configuration management interface 60, which includes the rollback configuration editing area 10, the comparison configuration editing area 20 and the archiving configuration editing area 30, and the configuration management interface 60 further includes a control 50 for managing the network device, and the control 50 is clicked to enter the network device management interface 40, so that operations of adding, editing and deleting the network device can be performed.
In some embodiments, each network device may be managed separately for configuration management of the network device.
Or may be deployed locally, such as by deploying a computer locally to manage one or more network devices, which may integrate a configuration management system into each network device, in which the various methods provided by the above embodiments are performed.
Or a cloud deployment mode can be adopted, for example, the configuration of a plurality of network devices distributed at different places is managed at a cloud server, and the configuration of a large number of network devices can be managed in a centralized mode. For example, the cloud server may periodically poll the network device to obtain its current configuration and compare it to the archived configuration, storing the results in a database. The configuration rollback process is automatic, initiated by the cloud server, communication between the cloud server and the network device is performed, the network device is controlled to execute configuration rollback, for example, a configuration management interface of the network device is displayed on a display device connected with the cloud server, the selected target network device is displayed in response to selection operation of the network device on the configuration management interface, current configuration is obtained from the target network device, archived configuration of the target network device is obtained from a database for configuration management and is displayed, the selected target configuration is displayed in response to selection operation of the archived configuration of the target network device on the configuration management interface, a rollback command is generated in response to operation of rollback the current configuration of the target network device to the target configuration, the rollback command is sent to the target network device, and the rollback command is executed by the target network device. The manner of generating the back-off command may refer to the above embodiments, and will not be described herein. The cloud server further has the functions of comparing configuration, archiving configuration, managing network devices, etc., and the specific implementation manner may refer to the above embodiment and will not be described herein again. The cloud-based configuration management provides greater expandability and reliability, particularly for organizations with widely geographically distributed networks, and reduces the need for local hardware.
Or a lightweight agent can be deployed on the network device, and the functions of comparison configuration, archiving configuration, network device management, rollback configuration and the like as described in the above embodiments are realized through the lightweight agent. This proxy approach may distribute processing load across the devices, reducing the need for a central server, and may also allow finer granularity control over individual devices, performing configuration changes and rollbacks more quickly.
In other embodiments, the login of the management account, and command execution may be implemented through an API (Application Programming Interface ), such as using RESTfulAPI for management tasks to retrieve current configuration, compare configuration, execute rollback commands. API-based management is safer and easier to automate, allowing for better integration of other management and monitoring systems that already use APIs.
In other embodiments, the configuration management may be implemented using templates, such as a predefined configuration setting template, a configuration comparison template, and a configuration rollback command generation template, to implement functions of configuring a device, configuration comparison, and configuration rollback, by ensuring that the device always conforms to a standard template, simplifying configuration management, reducing complexity of managing custom configurations, and minimizing the possibility of errors.
In summary, the embodiment of the invention realizes multiple functions of automatic SSH login, real-time configuration comparison, automatic rollback command generation, editable rollback command and the like, and the automation of login, comparison and rollback processes, remarkably improves the efficiency of network equipment management, reduces the time required by the tasks, reduces the risk of human errors through key steps of automatic configuration comparison, rollback command generation and the like, further ensures more reliable network operation, also allows manual adjustment of automatically generated commands, provides balance between automation and manual control for complex network environment, reduces manual labor and improves configuration management speed to lower operation cost, and is integrated with a database to store login credentials, ensures safe and efficient access management, and reduces management overhead related to manual input credentials.
Fig. 9 is a schematic diagram of a configured rollback apparatus 400 according to an embodiment of the present invention, where the apparatus includes:
a display module 401, configured to display a configuration management interface of a network device;
A device selection module 402, configured to display a selected target network device in response to a selection operation of the network device on the configuration management interface;
A configuration selection module 403, configured to respond to a selection operation on the configuration management interface for the archived configuration of the target network device, and display the selected target configuration;
an execution module 404, configured to generate and execute a rollback command in response to an operation of rollback the current configuration of the target network device to the target configuration.
In some embodiments, the execution module 404 is configured to generate and display a rollback command in response to a command generation operation on the configuration management interface, and execute the rollback command in response to a command execution operation on the configuration management interface.
In some embodiments, the execution module 404 is configured to obtain and compare a current configuration and a target configuration to obtain a configuration item with a difference therebetween, generate a rollback command according to the configuration item with the difference therebetween, where the rollback command includes at least one of a parameter modification command configured to instruct modification of a parameter of a first configuration item in the current configuration to a parameter of the first configuration item in the target configuration, the first configuration item being a configuration item with a configuration different from the current configuration and the target configuration, and a configuration addition command configured to instruct addition of a second configuration item in the current configuration and to set a parameter of the second configuration item in the current configuration to a parameter of the second configuration item in the target configuration, the second configuration item being a configuration item with no configuration but no configuration in the current configuration, and a configuration deletion command configured to instruct deletion of a third configuration item in the current configuration, the third configuration item being a configuration item with a configuration but no configuration in the current configuration.
In some embodiments, the execution module 404 is further configured to display the edited back-off command in response to an edit operation to the back-off command before executing the back-off command in response to a command execution operation on the configuration management interface.
In some embodiments, the configuration selection module 403 is configured to display the selected first configuration and the second configuration in response to a selection operation on the configuration management interface for comparing the configurations, and display a configuration comparison result of the first configuration and the second configuration in response to a comparison operation triggered on the configuration management interface.
In some embodiments, the configuration selection module 403 is configured to display the first configuration and the second configuration selected from the archived configurations, including displaying the first configuration and the second configuration selected from the archived configurations of the target network device.
In some embodiments, as shown in FIG. 10, the apparatus further comprises a comparison module 405 and an archiving module 406;
A comparing module 405, configured to obtain and compare the current configuration of the target network device with the archived configuration to obtain a comparison result;
and an archiving module 406, configured to archive the current configuration if the comparison result indicates that the current configuration does not exist in the archived configuration.
In some embodiments, the archiving module 406 is configured to display a comparison result of the archived configuration and the current configuration if the selected operation on the target network device on the configuration management interface is received after the configuration change of the target network device is completed, or periodically obtain and compare the archived configuration and the current configuration to obtain the comparison result.
In some embodiments, the comparison results include a comparison of the hash value of the archived configuration with the current configuration;
an archiving module 406, configured to archive the current configuration if the comparison result indicates that the archived configuration is different from the hash value of the current configuration.
In some embodiments, the archiving module 406 is configured to archive the current configuration if the comparison result indicates that the current configuration does not exist in the archived configuration, and an archiving operation triggered on the configuration management interface is received.
In some embodiments, as shown in FIG. 10, the apparatus further comprises a login module 407;
the login module 407 is configured to obtain login information corresponding to the target network device from the security database after the target network device is selected, and automatically login the management account on the target network device based on the login information.
In some embodiments, as shown in FIG. 10, the apparatus further comprises a management module 408;
The management module 408 is configured to receive an operation of configuring the management network device on the management interface, display the interface of the management network device, respond to an editing operation of the management network device on the newly added network device, display edited device information and login information, respond to an adding operation of the newly added network device, display the added device information of the newly added network device, and store the device information and login information of the newly added network device in the security database.
Fig. 11 is a schematic block diagram of an electronic device 500 according to an embodiment of the present application, which is not limited to the specific implementation of the electronic device. The electronic device 500 may be, for example, a network device or other computer (e.g., a local or cloud server, etc.). As shown in FIG. 11, the electronic device 500 may include a processor 502, a communication interface (Communications Interface) 504, a memory 506, and a communication bus 508. Wherein:
processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.
A communication interface 504 for communicating with other electronic devices or servers.
The processor 502 is configured to execute the program 510, and may specifically perform the relevant steps in any of the foregoing embodiments.
In particular, program 510 may include program code including computer-operating instructions.
The processor 502 may be a CPU, or an Application-specific integrated Circuit ASIC (Application SPECIFIC INTEGRATED circuits), or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors included in the smart device may be the same type of processor, such as one or more CPUs, or different types of processors, such as one or more CPUs and one or more ASICs.
RISC-V is an open source instruction set architecture based on the principle of Reduced Instruction Set (RISC), which can be applied to various aspects such as single chip microcomputer and FPGA chip, and can be particularly applied to the fields of Internet of things security, industrial control, mobile phones, personal computers and the like, and because the real conditions of small size, rapidness and low power consumption are considered in design, the RISC-V is particularly suitable for modern computing equipment such as warehouse-scale cloud computers, high-end mobile phones, micro embedded systems and the like. With the rise of the artificial intelligence internet of things AIoT, the RISC-V instruction set architecture is also receiving more and more attention and support, and is expected to become a CPU architecture for the next generation and wide application.
The computer operating instructions in embodiments of the present application may be computer operating instructions based on a RISC-V instruction set architecture, and correspondingly, the processor 502 may be RISC-V based instruction set design. Specifically, the chip of the processor in the electronic device provided by the embodiment of the application may be a chip designed by adopting a RISC-V instruction set, and the chip may execute executable codes based on the configured instructions, thereby implementing the rollback method, the comparison method and the archiving method configured in the above embodiment.
A memory 506 for storing a program 510. Memory 506 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 is particularly operative to cause the processor 502 to perform the method of any of the previous embodiments.
The specific implementation of each step in the program 510 may refer to the corresponding steps and corresponding descriptions in the units in any method embodiment, which are not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
Computer storage medium
The present application also provides a computer readable storage medium storing instructions for causing a machine to perform the rollback method, the comparison method, and the archiving method of the configuration described herein. Specifically, a system or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or apparatus may be caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium may realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present application.
Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs, DVD+RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer by a communication network.
Computer program product
Embodiments of the present application also provide a computer program product comprising computer instructions that instruct a computing device to perform any corresponding operations of the above-described method embodiments.
It should be noted that, according to implementation requirements, each component/step described in the embodiments of the present application may be split into more components/steps, or two or more components/steps or part of operations of the components/steps may be combined into new components/steps, so as to achieve the objects of the embodiments of the present application.
The above-described methods according to embodiments of the present application may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be stored in a local recording medium downloaded through a network, so that the methods described herein may be stored on such software processes on a recording medium using a general purpose computer, special purpose processor, or programmable or special purpose hardware such as an ASIC or FPGA. It is understood that a computer, processor, microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by a computer, processor, or hardware, performs the methods described herein. Furthermore, when a general purpose computer accesses code for implementing the methods illustrated herein, execution of the code converts the general purpose computer into a special purpose computer for performing the methods illustrated herein.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
Nouns and pronouns for humans in this patent application are not limited to a particular gender.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.