CN115484166A - 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
CN115484166A
CN115484166A CN202211048171.2A CN202211048171A CN115484166A CN 115484166 A CN115484166 A CN 115484166A CN 202211048171 A CN202211048171 A CN 202211048171A CN 115484166 A CN115484166 A CN 115484166A
Authority
CN
China
Prior art keywords
information
configuration information
configuration
network equipment
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211048171.2A
Other languages
Chinese (zh)
Other versions
CN115484166B (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/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 the updated configuration information to a log file associated with the network device according to the update state of the configuration information; wherein the network device comprises one or more. The method can improve the universality of automatic backup of the configuration information of the network equipment. The application also discloses a device, a server and a storage medium for backing up the configuration information.

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 an apparatus for backing up configuration information, a server, and a storage medium.
Background
At present, network equipment such as a network switch or a router belongs to infrastructure equipment of the internet, and stable and reliable configuration of the network equipment is important for bearing internet data. In the daily operation and maintenance stage, the configuration of the network device is changed frequently, and especially after the configuration information is changed seriously, the updated configuration information is not stored in time due to time factors. If unexpected power failure or equipment restart occurs under the condition that the configuration information is not stored, the configuration information is lost or configuration rollback and the like, and even network interruption and application downtime are caused. Therefore, how to backup the configuration information of the network information becomes a technical problem which needs to be solved urgently at present.
The related technology discloses an automatic backup method for diversified brand network equipment configuration, which comprises the following steps: reading equipment account information recorded in an excel file by a program to realize automatic login equipment, wherein the equipment account information comprises an equipment brand, a login address, a login mode, a host name, a remark name and a login account/password; according to different brands, remotely pushing backup commands corresponding to the brands, and transmitting configuration files to a local computer for centralized storage by using a TFTP file transmission protocol; in the command execution process, whether the command is ended or not is judged by waiting for the occurrence of a specific character string, namely' host name #, and a command timeout mechanism is set to prevent the command from being dead and the like caused by the absence of the character string for a long time; judging the accuracy of the configuration backup by checking the size of the backup file; and automatically creating a folder according to a rule of 'year/quarter/network equipment classification/network equipment name' by using an interface provided by a windows operating system, and automatically classifying and storing the equipment configuration files according to the equipment names, so that the equipment configuration files can be conveniently searched and used 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 device to be backed up. After the backup command is pushed, 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 an 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 nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
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 backing up 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 the updated configuration information to a log file associated with the network device 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 a log file associated with the network equipment according to the update state of the configuration information.
In some embodiments, the apparatus includes a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform a method for backing up configuration information as previously described.
In some embodiments, the server comprises means for backing up configuration information as described above.
In some embodiments, the computer-readable storage medium comprises a stored program, wherein the program when executed performs the method as previously described.
The method and the 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:
the embodiment of the disclosure reads the configuration information of the network device according to the information backup strategy, stores the information according to the update state of the acquired configuration information, and obtains the update condition of the configuration information in real time by reading the updated configuration information stored in the log file, thereby realizing the automatic backup of the configuration information of the network device. When the network device includes a plurality of network devices, the embodiment of the present disclosure is directed to network devices of different types of operating systems, and it is sufficient to read configuration information of the network devices according to an information backup policy, and differential information reading operation does not need to be performed. Therefore, the embodiment of the disclosure can improve the universality of the configuration information of the automatic backup network device.
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 present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic diagram of a method for backing up configuration information according to 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 diagram of an 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 disclosure;
fig. 8 is a schematic diagram of another apparatus for backing up configuration information according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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 specified.
The term "correspond" may refer to an association or binding relationship, and a corresponds to B refers to an association or binding relationship between a and B.
Network equipment such as a network switch or a router belongs to infrastructure equipment of the internet, and stable and reliable configuration of the network equipment is important for bearing internet data. In the daily operation and maintenance stage, the configuration of the network device is changed frequently, and especially after the configuration information is changed seriously, the updated configuration information is not stored in time due to time factors. If unexpected power failure or equipment restart occurs under the condition that the configuration information is not stored, the configuration information is lost or configuration rollback and the like, and even network interruption and application downtime are caused. Therefore, how to backup the configuration information of the network information becomes a technical problem which needs to be solved urgently at present.
The related technology discloses an automatic backup method for diversified brand network equipment configuration, which comprises the following steps: reading equipment account information recorded in an excel file by a program to realize automatic login equipment, wherein the equipment account information comprises an equipment brand, a login address, a login mode, a host name, a remark name and a login account/password; according to different brands, remotely pushing backup commands corresponding to the brands, and transmitting configuration files to a local computer for centralized storage by using a TFTP file transmission protocol; in the command execution process, whether the command is finished or not is judged by waiting for the appearance of a specific character string- "host name #", and a command timeout mechanism is set to prevent the death and the like caused by the long-time absence of the character string waiting; judging the accuracy of the configuration backup by checking the size of the backup file; and automatically creating a folder according to a rule of 'year/quarter/network equipment classification/network equipment name' by using an interface provided by a windows operating system, and automatically classifying and storing the equipment configuration files according to the equipment names, so that the equipment configuration files can be conveniently searched and used 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 device to be backed up. After the backup command is pushed, 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 an automatic backup operation of the configuration information.
In the embodiment of the present disclosure, the network device represents a dedicated hardware device for interconnecting various types of nodes such as servers, personal computers, and application terminals to form an information communication network. The network equipment comprises information network equipment, communication network equipment, network security equipment 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 fig. 1, an embodiment of the present disclosure provides a method for backing up configuration information, including:
and step S01, the server reads the information backup strategy of the network equipment.
And step S02, the server acquires the configuration information of the network equipment according to the information backup strategy.
In this step, the configuration information includes the device model and version, the management mode, and the account number of the network device.
And step S03, the server stores the updated configuration information to a log file associated with the network equipment according to the update state of the configuration information.
Wherein, the network equipment comprises one or more.
By adopting the method for backing up the configuration information provided by the embodiment of the disclosure, the embodiment of the disclosure stores the information according to the update state of the acquired configuration information after reading the configuration information of the network equipment according to the information backup strategy, and then obtains the update condition of the configuration information in real time by reading the updated configuration information stored in the log file, thereby realizing the automatic backup of the configuration information of the network equipment. When the network device includes a plurality of network devices, the embodiment of the present disclosure is directed to network devices of different types of operating systems, and it is sufficient to read configuration information of the network devices according to an information backup policy, and differential information reading operation does not need to be performed. Therefore, the embodiment of the disclosure can improve the universality of the configuration information of the automatic backup network device.
The information backup strategy represents that configuration information of the network equipment is acquired at 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. Therefore, operation and maintenance personnel can set the preset period according to actual backup requirements. It should be noted that, at present, the highest level of the preset period is the minute level, and information backup higher than the minute level is not supported.
It should be noted that, in a case that there are multiple network devices, the server may execute the same information backup policy, that is, obtain the configuration information of each of the multiple network devices at the same preset period. Therefore, unified backup management of the configuration information of the network devices can be realized, and the efficiency of configuration information backup is improved. In the case that there are multiple network devices, the server may also execute different information backup policies, that is, obtain respective configuration information of the multiple network devices at different preset periods. As an example, for a network device with a high update frequency of the configuration information, a preset period with a short duration may be set. For network equipment with low update frequency of configuration information, a preset period with long time 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 fig. 2, the obtaining, by the server, the configuration information of the network device according to the information backup policy includes:
step S11, the server periodically acquires configuration information of the network device.
And step S12, the server stores the periodically acquired configuration information into a configuration file corresponding to the network equipment.
Therefore, after the server periodically acquires the configuration information of the network equipment, the periodically acquired configuration information is stored in the configuration file corresponding to the network equipment, and the storage and backup of the configuration information are realized. Meanwhile, the updating condition of the configuration information can be obtained by reading the configuration information stored in the configuration file. And the query and comparison of configuration information are facilitated.
It is understood that the server stores the periodically obtained configuration information to a configuration file corresponding to the network device, including the server determining the current time and the previous time of the periodically obtained configuration information. And respectively storing the configuration information acquired at the current moment and the configuration information acquired at the previous moment into different configuration files. The preset period represents a time interval between the current time and the previous time.
Optionally, as shown in fig. 3, the storing, by the server, the updated configuration information to a log file associated with the network device according to the update status of the configuration information includes:
in step S21, the server compares the configuration information of the current configuration file with the configuration information of the previous configuration file.
And step S22, the server acquires the configuration updating information from the configuration file and reads the time information of the current configuration information under the condition of updating the configuration information.
And step S23, the server generates a log file associated with the network equipment according to the configuration updating 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 acquiring the configuration updating information and reading the time information of the current configuration information under the condition that the updating exists. 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 invention, the automatic backup of the configuration information is realized by periodically acquiring the configuration information and comparing the configuration information, the storage and backup processes of the configuration information in the network operation and maintenance process are simplified, and the efficiency of the network operation and maintenance is improved. Meanwhile, the log file stores configuration updating information and time information, so that operation and maintenance personnel can conveniently check configuration change records, and the backtracking and collection of information are facilitated.
In addition, in order to avoid the problem that the network device cannot locate the information after the configuration information backup fails, the backup event needs to be traced back. By adopting a log collection mode in the information configuration information process, the follow-up problem troubleshooting efficiency is improved.
Optionally, the configuration information update is determined as follows:
the configuration information of the current configuration file is different from the configuration information of the previous configuration file.
In this way, when the configuration information of the current configuration file is different from the configuration of the previous configuration file, it indicates that the configuration information of the current configuration file is different from the configuration information of the previous configuration file. At this time, it can be accurately known that the configuration information is updated.
Optionally, as shown in fig. 4, the periodically obtaining, by the server, configuration information of the network device includes:
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: reading time information for reading a physical address of the network device is preset.
Step S32, the server periodically establishes communication connection with the network equipment according to the physical address of the network equipment and the information backup strategy, and acquires the configuration information of the network equipment.
Therefore, the number of the monitored network devices is large in the process of executing operation and maintenance work by the operation and maintenance personnel. While there is uncertainty as to when the configuration information of the different network devices is updated. In order to synchronously realize the configuration information backup of a plurality of network devices, the server reads the physical address of the network device, periodically establishes communication connection with the network device according to the physical address and an information backup strategy, and acquires the configuration information of the network device. 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 the sequence numbers 1#,2#, 20#. The information backup strategy is 24 hours. The read time information is 18:00.
the server is at the day 18: when 00, sequentially reading the physical addresses of 20 network devices according to the numbering sequence, and acquiring 18:00, configuration information of each network device at the first time. Server on day 18:00 again reading the physical addresses of 20 network devices in sequence according to the numbering sequence, and obtaining 18:00, configuration information of each network device at the second time.
Therefore, the server can synchronously backup the configuration information of the plurality of network devices, and the efficiency of configuration information backup is improved.
As shown in fig. 5, an embodiment of the present disclosure further provides a method for backing up configuration information, including:
step S41, the server sends an inquiry instruction to the user, where the inquiry instruction is used to inquire the physical address and the information backup policy.
Step S42, the server receives the physical address of the network device and the information backup strategy sent by the user.
Step S43, the server stores the physical address and the information backup policy in the data file for the server to read information.
Step S44, the server reads the information backup policy of the network device.
Step S45, the server reads the physical address of the network device.
Step S46, the server periodically establishes communication connection with the network equipment according to the physical address of the network equipment and the information backup strategy, and acquires the configuration information of the network equipment.
And step S47, the server stores the periodically acquired configuration information into a configuration file corresponding to the network equipment.
And step S48, storing the updated configuration information to a log file associated with the network equipment by the server according to the updating state of the configuration information.
Wherein, the network equipment comprises one or more.
By adopting the method for backing up the configuration information provided by the embodiment of the disclosure, the server acquires the physical address of the network device and the information backup strategy based on an active inquiry mode, so as to determine the network device to be backed up according to the physical address, determine to acquire the cycle 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 universality of the configuration information of the automatic backup network equipment is improved, and the effectiveness of the configuration information backup is improved.
Meanwhile, besides the step of receiving the relevant information input by the operation and maintenance personnel in the active query stage, the subsequent execution steps do not need the manual intervention of the operation and maintenance personnel, namely do not need to log in a plurality of network devices respectively, and the updating condition of the configuration information of the network devices can be obtained only by regularly checking the log files according to the information backup strategy input by the operation and maintenance personnel in the query stage. The embodiment of the disclosure can further simplify the saving and backup process of the configuration information in the network operation and maintenance process, and improve 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 inquiry command.
It is understood that the reading of the physical address of the network device by the server may be performed simultaneously with the reading of the information backup policy of the network device by the server, may be performed after the reading of the information backup policy of the network device by the server, or may be performed before the reading of the information backup policy of the network device by the server. The embodiments of the present disclosure may not be particularly limited thereto.
Optionally, the query instruction is also used to query for encryption information for performing encryption processing on the log file. After the server sends the inquiry instruction to the user, the method further comprises the following steps:
and the server receives the encrypted information of the network equipment sent by the user.
The server stores the updated configuration information to a log file associated with the network device according to the update state of the configuration information, and further comprises:
and the server encrypts the log file according to the encryption information to generate a target log file associated with the network equipment.
In this way, by inquiring the user for the encryption information for encrypting the log file, the server can encrypt and store the log file according to the encryption information. The operation and maintenance personnel do not need to perform manual encryption processing on the log files, labor cost in the network operation and maintenance process is saved, and working efficiency is improved. Thereby facilitating data security protection of the updated configuration information.
It will be appreciated that the query instruction is also used to query the configuration information of the network device. The configuration information includes the device model and version, the management mode, and the account number of the network device. Therefore, the server can acquire the current configuration information of the network equipment in an active inquiry mode, and the subsequent information comparison and information backup are facilitated.
As an example, the server outputs the following information through a 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: "," encryption information of the network device to be backed up: and information backup strategy of the network equipment to be backed up: ". And the operation and maintenance personnel correspondingly input the physical address, version and model, management mode, encryption information and information backup strategy of the network equipment. It can be understood that, after receiving the above information entered by the operation and maintenance personnel, the server may print and output the physical address, version and model, management mode, and information backup policy to check and confirm by the operation and maintenance personnel. It should be noted that the encryption information includes a user name and a password. After the operation and maintenance personnel input the encrypted information, the display screen can replace the input encrypted information with special characters. The special character may be a continuous character "#" having the same length as the encryption information, or may be a continuous character "#" having the same length as the encryption information. Therefore, the security of the password can be improved, and the safety accidents of the account number are avoided.
In practical applications, as shown in fig. 6, the method for backing up configuration information specifically performs the following steps:
in step S51, the server sends a query instruction to the user, where the query instruction is used to query a physical address, configuration information, an information backup policy, and a log file for performing encryption processing on the log file. And the operation and maintenance personnel correspondingly input the physical address, the configuration information, the information backup strategy and the 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.
And step S54, the server periodically establishes communication connection with the router according to the physical address and the information backup strategy, and reads the respective configuration information of the current time and the previous time.
Step S55, the server stores the respective configuration information of the current time and the previous time into the configuration file corresponding to the router.
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. The two are different according to judgment. And the server acquires the time information of the current configuration information and stores the time information and the configuration updating 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 using encryption to generate a target log file corresponding to the router.
As shown in fig. 7, an apparatus for backing up configuration information according to an embodiment of the present disclosure includes 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 a network device; the information obtaining module 202 is configured to obtain configuration information of the network device according to the information backup policy; the information backup module 203 is configured to store the updated configuration information to a log file associated with the network device according to the update status of the configuration information. The network device includes one or more.
By adopting the device for backing up the configuration information, the universality of the configuration information of the automatic backup network equipment can be improved.
As shown in fig. 8, an apparatus for backing up configuration information according to an embodiment of the present disclosure includes a processor (processor) 100 and a memory (memory) 101. Optionally, the apparatus may also include 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 through the bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call logic instructions in the memory 101 to perform the method for backing up configuration information of the above embodiment.
In addition, the logic instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, 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, i.e., implements the method for backing up configuration information in the above-described embodiments, by executing program instructions/modules stored in the memory 101.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, 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 includes the above 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.
Embodiments of the present disclosure 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 described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and the drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify 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. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "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 application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, 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 a" \8230; "does not exclude the presence of additional like elements in a process, method or apparatus comprising the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosure, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would 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 may depend upon the particular application and design constraints imposed on the technical 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 disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be only one type of logical functional division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart 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 disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for backing up configuration information, comprising:
reading an information backup strategy of the network equipment;
acquiring configuration information of the network equipment according to the information backup strategy;
storing the 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.
2. The method of claim 1, wherein obtaining the configuration information of the network device according to the information backup policy comprises:
periodically acquiring configuration information of the network equipment;
and storing the periodically acquired configuration information into a configuration file corresponding to the network equipment.
3. The method of claim 2, wherein storing updated configuration information to a log file associated with the network device according to the updated state of the configuration information comprises:
comparing the configuration information of the current configuration file with the configuration information of the previous configuration file;
under the condition of updating the configuration information, acquiring the configuration updating information from the configuration file and reading the time information of the current configuration information;
and generating a log file associated with the network equipment according to the configuration updating information and the time information.
4. The method of claim 2, wherein the periodically obtaining the configuration information of the network device comprises:
reading a 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, and acquiring the configuration information of the network equipment.
5. The method of claim 4, wherein before reading the information backup policy of the network device, the method further comprises:
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 and an information backup strategy of the network equipment sent by the user;
and storing the physical address and the information backup strategy into a data file for a server to read information.
6. The method of claim 5, wherein the query instruction is further used for querying encryption information for performing encryption processing on the log file, and after the query instruction is sent to the user, the method 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 includes:
and according to the encryption information, encrypting the log file to generate a target log file associated with the network equipment.
7. 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 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 a log file associated with the network equipment according to the update state of the configuration information.
8. An apparatus for backing up configuration information, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the method for backing up configuration information according to any one of claims 1 to 6 when executing the program instructions.
9. A server, characterized in that it comprises means for backing up configuration information according to claim 7 or 8.
10. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 6.
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 true CN115484166A (en) 2022-12-16
CN115484166B 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 (13)

* 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
US20120210398A1 (en) * 2011-02-14 2012-08-16 Bank Of America Corporation Enhanced Backup and Retention Management
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
US20180278480A1 (en) * 2017-03-27 2018-09-27 Cisco Technology, Inc. Intent Driven Network Policy Platform
US20180322020A1 (en) * 2017-05-08 2018-11-08 American Megatrends, Inc. Backup and recovery of configuration files in management device
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

Patent Citations (13)

* 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
US20120210398A1 (en) * 2011-02-14 2012-08-16 Bank Of America Corporation Enhanced Backup and Retention Management
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
US20180278480A1 (en) * 2017-03-27 2018-09-27 Cisco Technology, Inc. Intent Driven Network Policy Platform
US20180322020A1 (en) * 2017-05-08 2018-11-08 American Megatrends, Inc. Backup and recovery of configuration files in management device
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
CN115484166B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
TWI740901B (en) Method and device for performing data recovery operation
US9979784B2 (en) Method for cloud data backup and recovery
WO2022126974A1 (en) Kafka-based incremental data synchronization method and apparatus, device, and medium
CN106844645B (en) Power communication equipment information inquiry system
CN102104500A (en) Automatic network management equipment abnormity restoring method
CN110784495B (en) Block chain-based discovery and configuration information management method for big data cluster system
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN107294924B (en) Vulnerability detection method, device and system
CN107832169B (en) Memory data migration method and device, terminal equipment and storage medium
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN110932918B (en) Log data acquisition method and device and storage medium
CN110166547B (en) Terminal remote access control method
CN104486125A (en) Backup method and device of configuration files
CN110599659A (en) Access control permission synchronization method and device
CN112925759A (en) Data file processing method and device, storage medium and electronic device
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN103973486B (en) A kind of Log Administration System based on B/S structures
CN110661851A (en) Data exchange method and device
CN104063294B (en) A kind of linux system backup and restoration methods
CN115484166A (en) Method and device for backing up configuration information, server and storage medium
CA3155794A1 (en) System and method for blockchain based backup and recovery
CN109542841B (en) Method for creating data snapshot in cluster and terminal equipment
CN108429644B (en) Network equipment management method and device and server
CN112559546B (en) Database synchronization method, database synchronization device, computer equipment and readable storage medium
CN113347035B (en) Ethernet switch configuration persistence method and device

Legal Events

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