CN115484166B - Method and device for backing up configuration information, server and storage medium - Google Patents

Method and device for backing up configuration information, server and storage medium Download PDF

Info

Publication number
CN115484166B
CN115484166B CN202211048171.2A CN202211048171A CN115484166B CN 115484166 B CN115484166 B CN 115484166B CN 202211048171 A CN202211048171 A CN 202211048171A CN 115484166 B CN115484166 B CN 115484166B
Authority
CN
China
Prior art keywords
information
configuration information
configuration
network equipment
network device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211048171.2A
Other languages
Chinese (zh)
Other versions
CN115484166A (en
Inventor
王仁修
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211048171.2A priority Critical patent/CN115484166B/en
Publication of CN115484166A publication Critical patent/CN115484166A/en
Application granted granted Critical
Publication of CN115484166B publication Critical patent/CN115484166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Abstract

The application relates to the technical field of network operation and maintenance, and discloses a method for backing up configuration information, which comprises the following steps: reading an information backup strategy of the network equipment; acquiring configuration information of the network equipment according to the information backup strategy; storing updated configuration information to a log file associated with the network equipment according to the update state of the configuration information; wherein the network device comprises one or more. The method can promote the universality of automatic backup of the configuration information of the network equipment. The application also discloses a device for backing up the configuration information, a server and a storage medium.

Description

Method and device for backing up configuration information, server and storage medium
Technical Field
The present application relates to the field of network operation and maintenance, and in particular, to a method and apparatus for backing up configuration information, a server, and a storage medium.
Background
Currently, network devices such as network switches or routers belong to the infrastructure equipment of the internet, and stable and reliable configuration is a serious issue for carrying internet data. In the daily operation and maintenance stage, the configuration of the network equipment is frequently changed, and especially after the configuration information is changed greatly, the updated configuration information is often not stored in time due to time factors. If the configuration information is not stored, accidental power failure or restarting of the device occurs, the configuration information is lost or configuration rollback and the like are caused, and even network interruption and application downtime are caused. Therefore, how to backup the configuration information of the network information becomes a technical problem to be solved.
The related art discloses an automatic backup method for diversified brand network equipment configuration, which comprises the following steps: the program reads recorded equipment account information in the excel file to realize automatic login equipment, wherein the equipment account information comprises equipment brands, login addresses, login modes, host names, remark names and login accounts/passwords; according to different brands, remote pushing of backup commands corresponding to the brands, and transmission of configuration files to a local computer for centralized storage by using a TFTP file transmission protocol; in the process of executing the command, judging whether the command is ended by waiting for the occurrence of a specific character string-host name#, and simultaneously setting a command timeout mechanism to prevent the waiting character string from being deadly and the like; judging the accuracy of configuration backup by checking the size of the backup file; and automatically creating folders according to the rule of 'annual/quarternary/network equipment grading/network equipment names' by using an interface provided by a windows operating system, and automatically classifying and storing equipment configuration files according to the equipment names, so that the equipment configuration files are convenient to search and take in the future.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
The related art triggers the execution of a backup operation by pushing a backup command corresponding to an operating system of a network device to be backed up to the network device. Before pushing the backup command, the method needs to match the backup command corresponding to the operating system of the network equipment to be backed up. After pushing the backup command, only the configuration information of the network device to be backed up can be read, and the configuration information of other network devices cannot be read. Therefore, the versatility is poor in performing the automatic backup operation of the configuration information.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method and a device for backing up configuration information, a server and a storage medium, so as to improve the universality of automatic backup of the configuration information of network equipment.
In some embodiments, the method comprises: reading an information backup strategy of the network equipment; acquiring configuration information of the network equipment according to the information backup strategy; storing updated configuration information to a log file associated with the network equipment according to the update state of the configuration information; wherein the network device comprises one or more.
In some embodiments, the apparatus comprises: the information reading module is configured to read an information backup strategy of the network equipment; the information acquisition module is configured to acquire configuration information of the network equipment according to the information backup strategy; and the information backup module is configured to store the updated configuration information to the log file associated with the network equipment according to the update state of the configuration information.
In some embodiments, the apparatus comprises a processor and a memory storing program instructions, the processor being configured to perform the method for backing up configuration information as previously described when the program instructions are executed.
In some embodiments, the server comprises means for backing up configuration information as described previously.
In some embodiments, the computer readable storage medium includes a stored program, wherein the program when run performs the method described previously.
The method and device for backing up configuration information, the server and the storage medium provided by the embodiment of the disclosure can realize the following technical effects:
According to the embodiment of the disclosure, after the configuration information of the network equipment is read according to the information backup strategy, the information is stored according to the update state of the acquired configuration information, and then the update condition of the configuration information is obtained in real time by reading the updated configuration information stored in the log file, so that the automatic backup of the configuration information of the network equipment is realized. In the case that the network device includes a plurality of network devices, the embodiment of the disclosure aims at the network devices of different types of operating systems, and the configuration information of the network devices is read according to the information backup strategy, so that differentiated information reading operation is not required to be performed. Therefore, the embodiment of the disclosure can promote the universality of the configuration information of the automatic backup network equipment.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a method for backing up configuration information provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for backing up configuration information provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another method for backing up configuration information provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another method for backing up configuration information provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another method for backing up configuration information provided by an embodiment of the present disclosure;
FIG. 6 is a schematic illustration of one application provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of an apparatus for backing up configuration information provided by an embodiment of the present disclosure;
Fig. 8 is a schematic diagram of another apparatus for backing up configuration information provided by an embodiment of the present disclosure.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which 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 those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The term "plurality" means two or more, unless otherwise indicated.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
Network devices such as network switches or routers belong to the infrastructure equipment of the internet, and a stable and reliable configuration is a heavy burden of carrying internet data. In the daily operation and maintenance stage, the configuration of the network equipment is frequently changed, and especially after the configuration information is changed greatly, the updated configuration information is often not stored in time due to time factors. If the configuration information is not stored, accidental power failure or restarting of the device occurs, the configuration information is lost or configuration rollback and the like are caused, and even network interruption and application downtime are caused. Therefore, how to backup the configuration information of the network information becomes a technical problem to be solved.
The related art discloses an automatic backup method for diversified brand network equipment configuration, which comprises the following steps: the program reads recorded equipment account information in the excel file to realize automatic login equipment, wherein the equipment account information comprises equipment brands, login addresses, login modes, host names, remark names and login accounts/passwords; according to different brands, remote pushing of backup commands corresponding to the brands, and transmission of configuration files to a local computer for centralized storage by using a TFTP file transmission protocol; in the process of executing the command, judging whether the command is ended by waiting for the occurrence of a specific character string-host name#, and simultaneously setting a command timeout mechanism to prevent the waiting character string from being deadly and the like; judging the accuracy of configuration backup by checking the size of the backup file; and automatically creating folders according to the rule of 'annual/quarternary/network equipment grading/network equipment names' by using an interface provided by a windows operating system, and automatically classifying and storing equipment configuration files according to the equipment names, so that the equipment configuration files are convenient to search and take in the future.
The related art triggers the execution of a backup operation by pushing a backup command corresponding to an operating system of a network device to be backed up to the network device. Before pushing the backup command, the method needs to match the backup command corresponding to the operating system of the network equipment to be backed up. After pushing the backup command, only the configuration information of the network device to be backed up can be read, and the configuration information of other network devices cannot be read. Therefore, the versatility is poor in performing the automatic backup operation of the configuration information.
In the embodiment of the disclosure, the network device represents a dedicated hardware device for connecting nodes such as various servers, personal computers, application terminals and the like to each other to form an information communication network. The network devices include information network devices, communication network devices, network security devices, and the like. By way of example, the network device may be a switch, router, firewall, bridge, network interface card, modem, or the like.
As shown in conjunction with fig. 1, an embodiment of the present disclosure provides a method for backing up configuration information, including:
in step S01, the server reads the information backup policy of the network device.
Step S02, the server obtains the configuration information of the network equipment according to the information backup strategy.
In this step, the configuration information includes a device model and version of the network device, a management mode, and an account number.
In step S03, the server stores the updated configuration information into the log file associated with the network device according to the update status of the configuration information.
Wherein the network device comprises one or more.
By adopting the method for backing up the configuration information provided by the embodiment of the present disclosure, the embodiment of the present disclosure stores information according to the update status of the acquired configuration information after reading the configuration information of the network device according to the information backup policy, and then acquires the update condition of the configuration information in real time by reading the updated configuration information stored in the log file, thereby implementing automatic backup of the configuration information of the network device. In the case that the network device includes a plurality of network devices, the embodiment of the disclosure aims at the network devices of different types of operating systems, and the configuration information of the network devices is read according to the information backup strategy, so that differentiated information reading operation is not required to be performed. Therefore, the embodiment of the disclosure can promote the universality of the configuration information of the automatic backup network equipment.
The information backup strategy is used for acquiring configuration information of the network equipment in a preset period. The preset period may be on the order of minutes or hours. As an example, the preset period may be 8 hours, 24 hours, or 7 days. Thus, the operation and maintenance personnel can set the preset period according to the actual backup requirement. It should be noted that, at present, the highest level of the preset period is a minute level, and information backup higher than the minute level is not supported.
It should be noted that, in the case that the network device has a plurality of network devices, the server may execute the same information backup policy, that is, obtain the configuration information of each of the plurality of network devices in the same preset period. Therefore, unified backup management of the configuration information of a plurality of network devices can be realized, and the efficiency of configuration information backup is improved. In the case that there are a plurality of network devices, the server may also execute different information backup policies, that is, obtain configuration information of each of the plurality of network devices in different preset periods. As an example, for a network device with a higher update frequency of the configuration information, a preset period with a shorter duration may be set. For the network equipment with lower configuration information updating frequency, a preset period with longer duration can be set. The setting of the preset period of the information backup policy in the embodiment of the present disclosure may not be specifically limited.
Optionally, as shown in connection with fig. 2, the server obtains configuration information of the network device according to the information backup policy, including:
in step S11, the server periodically acquires configuration information of the network device.
Step S12, the server stores the configuration information obtained periodically to the configuration file corresponding to the network equipment.
In this way, after the server periodically acquires the configuration information of the network device, the periodically acquired configuration information is stored in the configuration file corresponding to the network device, so that the configuration information is saved and backed up. Meanwhile, the updating condition of the configuration information can be obtained by reading the configuration information stored in the configuration file. And is more beneficial to the inquiry and comparison of configuration information.
It can be appreciated that the server stores the periodically acquired configuration information in a configuration file corresponding to the network device, including determining, by the server, a current time and a previous time at which the periodically acquired configuration information was acquired. And respectively storing the configuration information acquired at the current moment and the previous moment into different configuration files. The preset period represents a duration interval between the current time and the previous time.
Optionally, as shown in connection with fig. 3, the server stores updated configuration information to a log file associated with the network device according to an update status of the configuration information, including:
In step S21, the server compares the configuration information of the current configuration file with the configuration information of the previous configuration file.
In step S22, the server acquires the configuration update information from the configuration file and reads the time information of the current configuration information in the case of the configuration information update.
In step S23, the server generates a log file associated with the network device according to the configuration update information and the time information.
In this way, the server can know whether the configuration information is updated or not by comparing the configuration information of the current configuration file with the configuration information of the previous configuration file. And in case of update, acquiring configuration update information and reading time information of the current configuration information. And finally, generating a log file associated with the network equipment according to the configuration updating information and the time information. According to the embodiment of the disclosure, the configuration information is automatically backed up in a mode of periodically acquiring the configuration information and comparing the configuration information, so that the storage and backup processes of the configuration information in the network operation and maintenance process are simplified, and the network operation and maintenance efficiency is improved. Meanwhile, the log file stores configuration update information and time information, so that operation and maintenance personnel can check configuration change records conveniently, and backtracking collection of information is facilitated.
In addition, in order to avoid the problem that the network device cannot locate information after the configuration information is failed in backup, backtracking of the backup event is required. By adopting a log collection mode in the information configuration information process, the efficiency of the follow-up problem investigation is improved.
Optionally, the configuration information update is determined in the following manner:
the configuration information of the current configuration file is different from the configuration information of the previous configuration file.
Thus, when the configuration information of the current configuration file is different from the configuration of the previous configuration file, the difference exists between the configuration information of the current configuration file and the configuration information of the previous configuration file. At this time, it is possible to accurately know that the configuration information is updated.
Optionally, as shown in connection with fig. 4, the server periodically obtains configuration information of the network device, including:
in step S31, the server reads the physical address of the network device.
In this step, before the server reads the physical address of the network device, the method further includes: and presetting reading time information for reading the physical address of the network equipment.
In step S32, the server periodically establishes communication connection with the network device according to the physical address of the network device and the information backup policy, and obtains configuration information of the network device.
In this way, the number of network devices monitored by the operation and maintenance personnel is large in the process of executing operation and maintenance work. While the time at which the configuration information of the different network devices is updated has uncertainty. In order to synchronously realize configuration information backup of a plurality of network devices, a server reads physical addresses of the network devices, periodically establishes communication connection with the network devices according to the physical addresses and an information backup strategy, and acquires configuration information of the network devices. Therefore, on the basis of improving the universality of the configuration information backup, the efficiency and the synchronism of the configuration information backup are effectively improved.
As an example, the number of network devices is 20 and numbered sequentially 1#,2#, 20#. The information backup strategy is 24 hours. The read time information is 18:00.
The server is on day 18: and (00) sequentially reading the physical addresses of 20 network devices according to the serial number sequence, and acquiring 18: and 00, corresponding to configuration information of each network device at the first moment. The server on the next day 18:00 reads the physical addresses of 20 network devices in turn according to the numbering sequence, and acquires 18: and 00, corresponding to configuration information of each network device at the second moment.
Therefore, the server can synchronously backup the configuration information of a plurality of network devices, and the efficiency of configuration information backup is improved.
As shown in connection with fig. 5, an embodiment of the present disclosure further provides a method for backing up configuration information, including:
in step S41, the server sends a query instruction to the user, where the query instruction is used to query the physical address and the information backup policy.
In step S42, the server receives the physical address of the network device and the information backup policy sent by the user.
In step S43, the server stores the physical address and the information backup policy in the data file for the server to read the information.
In step S44, the server reads the information backup policy of the network device.
In step S45, the server reads the physical address of the network device.
In step S46, the server periodically establishes communication connection with the network device according to the physical address of the network device and the information backup policy, and obtains the configuration information of the network device.
In step S47, the server stores the periodically acquired configuration information in a configuration file corresponding to the network device.
In step S48, the server stores the updated configuration information into the log file associated with the network device according to the update status of the configuration information.
Wherein the network device comprises one or more.
By adopting the method for backing up configuration information provided by the embodiment of the disclosure, the server obtains the physical address of the network device and the information backup strategy based on the active query mode, so as to determine the network device to be backed up according to the physical address, and determines to obtain the periodic information of the configuration information of the network device to be backed up according to the information backup strategy and execute the backup operation of the configuration information. Therefore, the information backup operation can be executed according to the information backup requirement in the operation and maintenance process, and the validity of the configuration information backup is improved while the universality of the configuration information of the automatic backup network equipment is improved.
Meanwhile, the follow-up execution step does not need human intervention by operation and maintenance personnel except for receiving relevant information input by the operation and maintenance personnel in the active inquiry stage, namely, does not need to log in a plurality of network devices respectively, and can acquire the updating condition of the configuration information of the network devices only by checking the log file at regular time according to the information backup strategy input by the operation and maintenance personnel in the inquiry stage. The embodiment of the disclosure can further simplify the storage and backup processes of the configuration information in the network operation and maintenance process, and improves the efficiency of the network operation and maintenance.
It should be noted that, after the server receives the physical address of the network device and the information backup policy input by the user, the user cannot change the information. If the user has a need to change the information, the user can input the changed information after the server resends the query command.
It will be appreciated that the physical address of the server reading network device may be executed simultaneously with or after the server reading the information backup policy of the network device, or may be executed before the server reading the information backup policy of the network device. Embodiments of the present disclosure may not be particularly limited thereto.
Optionally, the query instruction is further for querying encryption information for performing encryption processing on the log file. After the server sends the query instruction to the user, the method further comprises the following steps:
The server receives the encrypted information of the network device sent by the user.
The server stores the updated configuration information to the log file associated with the network device according to the update state of the configuration information, and then comprises the following steps:
The server encrypts the log file according to the encryption information to generate a target log file associated with the network device.
Thus, by querying the user for encryption information for encrypting the log file, the server can encrypt and store the log file based on the encryption information. The operation and maintenance personnel do not need to carry out manual encryption processing on the log file, so that the labor cost in the network operation and maintenance process is saved, and the working efficiency is improved. Thereby facilitating data security for updating configuration information.
It will be appreciated that the query instructions are also used to query the configuration information of the network device. The configuration information comprises a device model and version of the network device, a management mode and an account number. Therefore, the server can acquire the current configuration information of the network equipment in an active query mode, and subsequent information comparison and information backup are facilitated.
As an example, the server outputs the following information via the configured display screen: "physical address of network device to be backed up: "version and model of network device to be backed up: "," management mode of network device to be backed up: "," encrypted information of network device to be backed up: "and" information backup policy of network device to be backed up: ". The operation and maintenance personnel correspondingly inputs the physical address, version and model of the network equipment, management mode, encryption information and information backup strategy. It can be understood that after receiving the above information entered by the operation and maintenance personnel, the server can print out the physical address, version and model, management mode and information backup strategy, so as to be checked and confirmed by the operation and maintenance personnel. The encrypted information includes a user name and a password. After the operation and maintenance personnel inputs the encryption information, the display screen can replace the input encryption information with special characters. The special character may be a continuous character "×" having the same length as the encrypted information, or may be a continuous character "#" having the same length as the encrypted information. Therefore, the security of the password can be improved, and account safety accidents are avoided.
In practical application, with reference to fig. 6, the method for backing up configuration information specifically performs the following steps:
In step S51, the server transmits a query instruction for querying the physical address, the configuration information, the information backup policy, and the log file for performing encryption processing on the log file to the user. The operation and maintenance personnel correspondingly inputs the physical address, configuration information, information backup strategy and encryption information of the router.
In step S52, the server stores the information acquired in step S51 in a data file.
In step S53, the server reads the physical address and the information backup policy stored in the data file.
In step S54, the server periodically establishes communication connection with the router according to the physical address and the information backup policy, and reads the configuration information of each of the current time and the previous time.
In step S55, the server stores the configuration information of each of the current time and the previous time in the configuration file corresponding to the router.
In step S56, the server determines whether the current configuration information of the configuration file corresponding to the current time is the same as the configuration information of the configuration file corresponding to the previous time. And judging that the two are different. The server acquires the time information of the current configuration information, and stores the time information and the configuration update information into a log file corresponding to the router.
In step S57, the server reads the encrypted information stored in the data file, and performs encryption processing on the log file by encryption to generate a target log file corresponding to the router.
As shown in fig. 7, an embodiment of the present disclosure provides an apparatus for backing up configuration information, including an information reading module 201, an information obtaining module 202, and an information backing up module 203. The information reading module 201 is configured to read an information backup policy of the network device; the information acquisition module 202 is configured to acquire configuration information of the network device according to the information backup policy; the information backup module 203 is configured to store updated configuration information to log files associated with the network device according to the update status of the configuration information. The network device includes one or more.
The device for backing up the configuration information provided by the embodiment of the disclosure is beneficial to improving the universality of the configuration information of the automatic backup network equipment.
As shown in connection with fig. 8, an embodiment of the present disclosure provides an apparatus for backing up configuration information, including a processor (processor) 100 and a memory (memory) 101. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via the bus 103. The communication interface 102 may be used for information transfer. Processor 100 may invoke logic instructions in memory 101 to perform the method for backing up configuration information of the above-described embodiments.
Further, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 101 is a computer readable storage medium that can be used to store a software program, a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by running program instructions/modules stored in the memory 101, i.e. implements the method for backing up configuration information in the above-described embodiments.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides a server, which comprises the device for backing up configuration information.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for backing up configuration information.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for backing up configuration information.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in the present disclosure, the terms "comprises," "comprising," and/or variations thereof, mean that the recited features, integers, steps, operations, elements, and/or components are present, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus that includes the element. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations 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. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. 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). 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. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. 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 foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (8)

1. A method for backing up configuration information, comprising:
Reading an information backup strategy of the network equipment; the information backup strategy indicates that configuration information of the network equipment is obtained in a preset period;
acquiring configuration information of the network equipment according to the information backup strategy;
Storing updated configuration information to a log file associated with the network equipment according to the update state of the configuration information;
Wherein the network device comprises one or more;
The obtaining the configuration information of the network device according to the information backup policy includes:
periodically acquiring configuration information of the network equipment;
storing the configuration information obtained periodically to a configuration file corresponding to the network equipment;
The storing the updated configuration information to the log file associated with the network device according to the update state of the configuration information includes:
comparing the configuration information of the current configuration file with the configuration information of the previous configuration file;
Under the condition of configuration information updating, acquiring configuration updating information from the configuration file and reading time information of current configuration information;
and generating a log file associated with the network equipment according to the configuration updating information and the time information.
2. The method of claim 1, wherein the periodically obtaining configuration information of the network device comprises:
Reading the physical address of the network device;
And periodically establishing communication connection with the network equipment according to the physical address of the network equipment and the information backup strategy to acquire the configuration information of the network equipment.
3. The method of claim 2, wherein prior to reading the information backup policy of the network device, further comprising:
sending a query instruction to a user, wherein the query instruction is used for querying a physical address and an information backup strategy;
receiving a physical address of the network equipment and an information backup strategy sent by the user;
and storing the physical address and the information backup strategy into a data file for information reading by a server.
4. The method of claim 3, wherein the query is further configured to query the encrypted information for performing the encryption process on the log file, and wherein the step of sending the query to the user further comprises:
receiving encryption information of the network equipment sent by the user;
after storing the updated configuration information to the log file associated with the network device according to the update state of the configuration information, the method further comprises:
and according to the encryption information, carrying out encryption processing on the log file to generate a target log file associated with the network equipment.
5. An apparatus for backing up configuration information, comprising:
the information reading module is configured to read an information backup strategy of the network equipment; the information backup strategy indicates that configuration information of the network equipment is obtained in a preset period;
the information acquisition module is configured to acquire the configuration information of the network device according to the information backup policy, and the acquiring the configuration information of the network device according to the information backup policy includes: periodically acquiring configuration information of the network equipment; storing the configuration information obtained periodically to a configuration file corresponding to the network equipment;
the information backup module is configured to store updated configuration information to a log file associated with the network equipment according to the update state of the configuration information; the storing the updated configuration information to the log file associated with the network device according to the update state of the configuration information includes: comparing the configuration information of the current configuration file with the configuration information of the previous configuration file; under the condition of configuration information updating, acquiring configuration updating information from the configuration file and reading time information of current configuration information; and generating a log file associated with the network equipment according to the configuration updating information and the time information.
6. An apparatus for backing up configuration information, comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for backing up configuration information according to any one of claims 1 to 4 when executing the program instructions.
7. A server comprising means for backing up configuration information as claimed in claim 5 or 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 4.
CN202211048171.2A 2022-08-30 2022-08-30 Method and device for backing up configuration information, server and storage medium Active CN115484166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211048171.2A CN115484166B (en) 2022-08-30 2022-08-30 Method and device for backing up configuration information, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211048171.2A CN115484166B (en) 2022-08-30 2022-08-30 Method and device for backing up configuration information, server and storage medium

Publications (2)

Publication Number Publication Date
CN115484166A CN115484166A (en) 2022-12-16
CN115484166B true CN115484166B (en) 2024-04-19

Family

ID=84421133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211048171.2A Active CN115484166B (en) 2022-08-30 2022-08-30 Method and device for backing up configuration information, server and storage medium

Country Status (1)

Country Link
CN (1) CN115484166B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183979A (en) * 2007-11-27 2008-05-21 上海华为技术有限公司 Method and device of configuration backup
CN103973487A (en) * 2014-04-29 2014-08-06 上海上讯信息技术股份有限公司 Configuration backup system based on interactive scripts and configuration management method
CN104301142A (en) * 2014-10-13 2015-01-21 杭州华三通信技术有限公司 Backup method and device for configuration files
CN107947958A (en) * 2017-09-27 2018-04-20 国网湖南省电力公司 A kind of acquisition methods and system of network equipments configuration file
CN109901952A (en) * 2019-03-06 2019-06-18 山东申启信息技术有限公司 A kind of data back up method, system and server
CN112131051A (en) * 2020-09-29 2020-12-25 中国银行股份有限公司 Data backup method and device based on parametric configuration
CN112272101A (en) * 2020-09-08 2021-01-26 山东中创软件商用中间件股份有限公司 Method, system and related device for backing up switch configuration file
CN113347032A (en) * 2021-05-31 2021-09-03 西安交大捷普网络科技有限公司 Auditing method, system and device for host network configuration
CN114301777A (en) * 2021-12-29 2022-04-08 山石网科通信技术股份有限公司 Configuration data updating method, device and system and non-volatile storage medium
CN114297038A (en) * 2021-12-29 2022-04-08 武汉思普崚技术有限公司 Method for continuously monitoring equipment configuration change

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120210398A1 (en) * 2011-02-14 2012-08-16 Bank Of America Corporation Enhanced Backup and Retention Management
US10594560B2 (en) * 2017-03-27 2020-03-17 Cisco Technology, Inc. Intent driven network policy platform
US10824517B2 (en) * 2017-05-08 2020-11-03 American Megatrends International, Llc Backup and recovery of configuration files in management device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183979A (en) * 2007-11-27 2008-05-21 上海华为技术有限公司 Method and device of configuration backup
CN103973487A (en) * 2014-04-29 2014-08-06 上海上讯信息技术股份有限公司 Configuration backup system based on interactive scripts and configuration management method
CN104301142A (en) * 2014-10-13 2015-01-21 杭州华三通信技术有限公司 Backup method and device for configuration files
CN107947958A (en) * 2017-09-27 2018-04-20 国网湖南省电力公司 A kind of acquisition methods and system of network equipments configuration file
CN109901952A (en) * 2019-03-06 2019-06-18 山东申启信息技术有限公司 A kind of data back up method, system and server
CN112272101A (en) * 2020-09-08 2021-01-26 山东中创软件商用中间件股份有限公司 Method, system and related device for backing up switch configuration file
CN112131051A (en) * 2020-09-29 2020-12-25 中国银行股份有限公司 Data backup method and device based on parametric configuration
CN113347032A (en) * 2021-05-31 2021-09-03 西安交大捷普网络科技有限公司 Auditing method, system and device for host network configuration
CN114301777A (en) * 2021-12-29 2022-04-08 山石网科通信技术股份有限公司 Configuration data updating method, device and system and non-volatile storage medium
CN114297038A (en) * 2021-12-29 2022-04-08 武汉思普崚技术有限公司 Method for continuously monitoring equipment configuration change

Also Published As

Publication number Publication date
CN115484166A (en) 2022-12-16

Similar Documents

Publication Publication Date Title
US8539562B2 (en) Automated management of system credentials
KR102095334B1 (en) Log information generating device and recording medium and log information extraction device and recording medium
CN107294924B (en) Vulnerability detection method, device and system
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN107832169B (en) Memory data migration method and device, terminal equipment and storage medium
CN108809702B (en) Equipment management method and equipment management platform
EP3093789B1 (en) Storing structured information
CN112380057A (en) Data recovery method, device, equipment and storage medium
CN107592199B (en) Data synchronization method and system
CN106201772A (en) The backup of a kind of operating system based on data center, restoration methods and device
CN109299116B (en) Data synchronization method, device, equipment and readable storage medium
CN115484166B (en) Method and device for backing up configuration information, server and storage medium
CN110505225B (en) Terminal card locking method and device and computer readable storage medium
CN109542841B (en) Method for creating data snapshot in cluster and terminal equipment
CN109412940B (en) Router management method and router management system
CN108429644B (en) Network equipment management method and device and server
CN115543744A (en) Log collection method, device, equipment and storage medium
CN112559546B (en) Database synchronization method, database synchronization device, computer equipment and readable storage medium
CN112306563B (en) Method, device, equipment and storage medium for resetting IOS screen using time password
CN112398695B (en) Large-scale terminal equipment control method, system, equipment and storage medium
CN105516315B (en) A kind of Ile repair method and device
CN114116253A (en) Message processing method and system for message queue
JP7031415B2 (en) Login agency system and login agency method
Cisco Preparing to Use Resource Manager Modules
Cisco Preparing to Use Resource Manager Modules

Legal Events

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