CN104486125A - Backup method and device of configuration files - Google Patents

Backup method and device of configuration files Download PDF

Info

Publication number
CN104486125A
CN104486125A CN201410800190.5A CN201410800190A CN104486125A CN 104486125 A CN104486125 A CN 104486125A CN 201410800190 A CN201410800190 A CN 201410800190A CN 104486125 A CN104486125 A CN 104486125A
Authority
CN
China
Prior art keywords
backup
network equipment
configuration file
configuration
notification message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410800190.5A
Other languages
Chinese (zh)
Inventor
王玲
田园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410800190.5A priority Critical patent/CN104486125A/en
Publication of CN104486125A publication Critical patent/CN104486125A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a backup method and device of configuration files. The method comprises the following steps: when the configuration files are updated, sending an updating notification message to a management server according to a pre-created configuration updating object; receiving a backup configuration command returned by the management server according to the updating notification message; carrying out backup on the updated configuration files according to the backup configuration command. Through the interaction of network equipment and the management server, automatic backup can be carried out on the updated configuration files, so that the backup efficiency and correctness are relatively high; real-time backup can be carried out during the updating of the configuration files, so that the backup configuration files can be the latest version all the time and the network equipment can rapidly recover to the normal operation state according to the backup configuration files after failure recovery.

Description

The backup method of configuration file and device
Technical field
The present invention relates to network communication technology field, particularly relate to backup method and the device of configuration file.
Background technology
The setting of required environment and the set of file when the configuration file of the network equipment is device systems loading, configuration file is generally held on the local storage medium of the network equipment.When network equipment generation hardware level non-restorative fault, in order to the network equipment after hardware is replaced can quick-recovery business soon, can be configuration file generation backup file in advance.
In prior art, usually by the configuration file generation backup file that network manager is regularly on local storage medium.But because network manager adopts manual mode to generate backup file, special in the network equipment is baroque high-end networking equipment, manual generation backup file efficiency is lower, easily makes mistakes; And if before backup file regular update to latest edition, the network equipment breaks down, then after fault restoration, the network equipment is difficult to return to normal operating condition according to the backup file of this non-current version.
Summary of the invention
The invention provides backup method and the device of configuration file, lower with the backup mode efficiency solving existing configuration file, and be difficult to the problem returning to normal operating condition after fault restoration.
According to the first aspect of the embodiment of the present invention, provide a kind of backup method of configuration file, on network devices, described method comprises in described method application:
When configuration file upgrades, send update notification message according to the config update object be pre-created to management server;
Receive the backup configuration order that described management server returns according to described update notification message;
According to described backup configuration order, the configuration file after renewal is backed up.
According to the second aspect of the embodiment of the present invention, provide the backup method of another kind of configuration file, on the management server, described method comprises in described method application:
Receive the update notification message that the network equipment sends, described update notification message be the described network equipment when configuration file upgrades, the message sent according to the config update object that is pre-created;
Backup configuration order is created according to described update notification message;
Send described backup configuration order to the described network equipment, according to described backup configuration order, the configuration file after renewal is backed up to make the described network equipment.
According to the third aspect of the embodiment of the present invention, provide a kind of back-up device of configuration file, on network devices, described device comprises described application of installation:
Transmitting element, for when configuration file upgrades, sends update notification message according to the config update object be pre-created to management server;
Receiving element, for receiving the backup configuration order that described management server returns according to described update notification message;
Backup units, for backing up the configuration file after renewal according to described backup configuration order.
According to the fourth aspect of the embodiment of the present invention, provide the back-up device of another kind of configuration file, on the management server, described device comprises described application of installation:
Receiving element, for receiving the update notification message that the network equipment sends, described update notification message be the described network equipment when configuration file upgrades, the message sent according to the config update object that is pre-created;
Creating unit, for creating backup configuration order according to described update notification message;
Transmitting element, for sending described backup configuration order to the described network equipment, backs up the configuration file after renewal according to described backup configuration order to make the described network equipment.
In the embodiment of the present invention, when the configuration file on the network equipment upgrades, the network equipment can send update notification message according to the config update object be pre-created to management server, after receiving the backup configuration order that management server returns according to update notification message, according to backup configuration order, the configuration file after upgrading is backed up.The application embodiment of the present invention, can carry out automated back-up to the configuration file upgraded alternately by the network equipment and management server, the efficiency therefore backed up and accuracy rate higher; And owing to occurring at configuration file can back up in real time when upgrading, therefore can ensure that backed up configuration file is always latest edition, thus make the network equipment after fault recovery, normal operating condition can be quickly recovered to according to the configuration file of backup.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram of the backup embodiment of configuration file of the present invention;
Fig. 2 is an embodiment flow chart of the backup method of configuration file of the present invention;
Fig. 3 is another embodiment flow chart of the backup method of configuration file of the present invention;
Fig. 4 is another embodiment flow chart of the backup method of configuration file of the present invention;
Fig. 5 is a kind of hardware structure diagram of the back-up device place equipment of configuration file of the present invention;
Fig. 6 is an embodiment block diagram of the back-up device of configuration file of the present invention;
Fig. 7 is another embodiment block diagram of the back-up device of configuration file of the present invention.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 1, the application scenarios schematic diagram for the backup embodiment of configuration file of the present invention:
A kind of network management system has been shown in Fig. 1, this system comprises the network equipment and management server, it should be noted that, in order to example is convenient, Fig. 1 illustrate only a network equipment, can comprise some network equipments being carried out network management by this management server in practical application.Wherein, the network equipment in the present invention can be specially switch, router, fire compartment wall etc. in network.
In the application scenarios shown in Fig. 1, can communicate based on SNMP between the network equipment with management server, in the network management system communicated based on SNMP, the network equipment can when there are abnormal conditions in self, initiatively inform this abnormal conditions to management server by SNMP TRAP (trap) message, and issue corresponding processing command according to these abnormal conditions to the network equipment by management server.Therefore in the embodiment of the present invention, the network equipment can in advance at MIB (Management Informat ion Base, management information base) in configuration one for representing the TRAP variable that configuration file has upgraded, thus can when configuration file occurs to upgrade, by the SNMP TRAP message that this TRAP variable trigger network equipment has upgraded to management server transmission configuration file, issue the configuration file order backed up upgrade after according to this SNMP TRAP message to the network equipment by management server, thus the network equipment can be made to carry out automated back-up to the configuration file after renewal in real time according to this order.Below in conjunction with specific embodiment, implementation procedure of the present invention is described in detail.
See Fig. 2, be an embodiment flow chart of the backup method of configuration file of the present invention, this embodiment is described from network equipment side, comprises the following steps:
Step 201: when configuration file upgrades, sends update notification message according to the config update object be pre-created to management server.
In order to realize the telemanagement of management server to the network equipment, can management object database be set on network devices, arrange some object variables that can be managed Server remote inquiry or arrange in this management object database, this object variable also can be described as management object node.In the present embodiment, can create the config update object corresponding to configuration file and upgraded in advance in management object database, this config update object can comprise object name and trigger condition, can also comprise descriptor further.Wherein, object name is used for this config update object of unique identification, and trigger condition can comprise the hold-over command performing configuration file on network devices, and descriptor can be specially " configuration file upgrades ".
When the configuration file on the network equipment occurs to upgrade, after the keeper of the network equipment performs the hold-over command to configuration file on office terminal, the network equipment preserves the configuration file after renewal according to this hold-over command on local storage medium; Now, the network equipment can detect that this hold-over command is mated with the trigger condition of the config update object of aforementioned setting, thus obtain the object name of this config update object, and the update notification message comprising this object name is sent to management server, to make management server can upgrade according to the configuration file on this object name determination network equipment, and generate backup configuration order.
Step 202: the backup configuration order that receiving management server returns according to update notification message.
Step 203: the configuration file after renewal is backed up according to backup configuration order.
In the present embodiment, backup protocol type and the backup target address of management server setting can be carried in the backup configuration order that management server sends, using this backup protocol type and backup target address as node parameter, management object node corresponding with this backup configuration order in management object database is set, when the network equipment detects that the node parameter of this management object node changes, the agreement corresponding with this backup protocol type can be adopted, the configuration file after renewal is transferred on the memory device corresponding with backup target address and backs up.
Wherein, backup protocol type can comprise TFTP (Trivial File Transfer Protocol, TFTP), FTP (File Transfer Protocol, file transfer protocol (FTP)) etc., backup target address can comprise IP (the Internet Protocol of tftp server that management server specifies, ftp server, Internet protocol) address, or the memory space address in local hard drive on this network equipment.
Application above-described embodiment, the network equipment by with management server can carry out automated back-up to the configuration file upgraded alternately, the efficiency therefore backed up and accuracy rate higher; And owing to occurring at configuration file can back up in real time when upgrading, therefore can ensure that backed up configuration file is always latest edition, thus make the network equipment after fault recovery, normal operating condition can be quickly recovered to according to the configuration file of backup.
See Fig. 3, be another embodiment flow chart of the backup method of configuration file of the present invention, this embodiment is described from management server side, comprises the following steps:
Step 301: receive the update notification message that the network equipment sends, this update notification message be the network equipment when configuration file upgrades, the message sent according to the config update object that is pre-created.
Step 302: create backup configuration order according to update notification message.
Known see the description of network equipment side in Fig. 2, the network equipment can be pre-created the config update object upgraded corresponding to configuration file in management object database, accordingly, in the present embodiment, management server can preserve the above-mentioned object name of config update object and the corresponding relation of its descriptor in advance.It should be noted that, because management server manages multiple network equipment simultaneously, therefore when preserving the above-mentioned corresponding relation of each network equipment, uniquely can be identified its corresponding relation by the device identification of this network equipment, such as, this device identification can be specially the IP address of the network equipment.
In the present embodiment, after management server receives update notification message, the object name of the config update object carried in this update notification message can be obtained, the corresponding relation of aforementioned preservation is searched according to this object name, obtain the descriptor corresponding with this object name, the device identification of this network equipment can also be obtained further.The configuration file known on the network equipment according to descriptor when management server upgrades, then for the network equipment generates backup configuration order, can comprise backup protocol type and backup target address in this backup configuration order.
Step 303: send backup configuration order to the network equipment, backs up the configuration file after renewal according to this backup configuration order to make the network equipment.
The network equipment receives the backup configuration order comprising backup protocol type and backup target address, and see the description in Fig. 2, can not repeat them here the process that the configuration file after renewal backs up according to this backup configuration order.
Application above-described embodiment, the network equipment by with management server can carry out automated back-up to the configuration file upgraded alternately, the efficiency therefore backed up and accuracy rate higher; And owing to occurring at configuration file can back up in real time when upgrading, therefore can ensure that backed up configuration file is always latest edition, thus make the network equipment after fault recovery, normal operating condition can be quickly recovered to according to the configuration file of backup.
See Fig. 4, for another embodiment flow chart of the backup method of configuration file of the present invention, this application scenarios shown in embodiment composition graphs 1, by the backup procedure describing configuration file alternately in detail between the network equipment and management server, comprises the following steps:
Step 401: the network equipment creates in advance for representing the TRAP variable that configuration file has upgraded in MIB, and this TRAP variable can comprise OID (Object Identifier, object identifier), descriptor and trigger condition.
See Fig. 1, based in the network management system of SNMP, the network equipment can be acted on behalf of (Agent) and conduct interviews to its MIB by SNMP.Usual MIB by tree structure describe its variable object that can be managed on network devices, each variable object corresponds to a node in this tree structure, can obtain by the node traveled through in this tree structure object corresponding to administration order that management server sends, and perform corresponding bookkeeping.
The present embodiment can create one for representing the TRAP variable that configuration file has upgraded in MIB, so that when configuration file occurs to upgrade, can realize carrying out automated back-up to the configuration file upgraded by this TRAP variable.Wherein, this TRAP variable can comprise OID (such as, this OID is " 1.3.6.X.X.X.X.X "), descriptor and trigger condition, OID is used for this TRAP variable of unique identification, trigger condition can comprise the hold-over command performing configuration file on network devices, and descriptor can be specially " configuration file upgrades ".
Step 402: management server preserves the OID of heterogeneous networks Equipments Setting and the corresponding relation of descriptor in advance.
The TRAP variable that the configuration file created in MIB corresponding to the network equipment in step 401 has upgraded, in this step, management server can correspondingly preserve in network equipment information Maintenance Table each network equipment create the OID of TRAP variable and the corresponding relation of descriptor, wherein the corresponding relation of heterogeneous networks equipment is uniquely identified by its device identification, and this device identification can be specially the IP address of the network equipment.As shown in table 1 below, illustrating in network information Maintenance Table is a list item that the TRAP variable of this network equipment is safeguarded:
Table 1
IP address of equipment OID Descriptor
192.168.0.1 1.3.6.X.X.X.X.X Configuration file upgrades
The list item of upper table 1 example, represents in IP address to be in the MIB of the network equipment of 192.168.0.1, and be provided with the TRAP variable that OID is " 1.3.6.X.X.X.X.X ", this TRAP variable represents " configuration file upgrades ".
Step 403: when configuration file upgrades, the network equipment performs the hold-over command that the configuration file after to renewal is preserved.
In the present embodiment, when the configuration file on the network equipment occurs to upgrade, after the keeper of the network equipment performs the hold-over command to configuration file on office terminal, the network equipment preserves the configuration file after upgrading according to this hold-over command on local storage medium, such as, on local hard drive, preserve the configuration file after upgrading.
Step 404: the network equipment, when detecting that the trigger condition of this hold-over command with TRAP variable is mated, obtains the OID of this TRAP variable.
When the hold-over command that network equipment execution is preserved the configuration file after renewal, this network equipment can detect that this hold-over command is mated with the trigger condition of the TRAP variable created in MIB in step 401, therefore the network equipment obtains the OID of this TRAP variable, if this OID is exemplified " 1.3.6.X.X.X.X.X ".
Step 405: the network equipment sends the TRAP message comprising this OID to management server.
In this step, according to the TRAP variable matched in MIB, the network equipment can be acted on behalf of by its SNMP and send for notifying the SNMP TRAP message that its configuration file has upgraded to management server, contains the OID of TRAP variable in this SNMP TRAP message.
Step 406: management server searches the corresponding relation of preservation according to the OID carried in TRAP message, obtains the descriptor corresponding with this OID.
After management server receives TRAP message, can with the OID carried in this message for keyword, search the network information Maintenance Table as shown in aforementioned table 1, obtain the list item corresponding with this OID, from this list item, obtain the IP address of equipment of the network equipment and corresponding descriptor.
Step 407: management server is that the network equipment generates SET order according to the descriptor obtained.
Management server upgrades according to the configuration file on the known network equipment of the descriptor found in step 406, in response to this more new events, management server can be that this network equipment creates backup tasks, initiates the backup operation to Reconfigurations file on the network equipment by this backup tasks.Based in the network management system of SNMP, management server can carry out Remote configuration management by SET order to the network equipment, and this SET order can access the SET variable on MIB.Therefore in the present embodiment, management server can based on the backup tasks created for this network equipment generates a SET order, backup protocol type and backup target address that management server specifies is comprised in this SET order, such as, backup protocol type is TFTP, and backup target address is the IP address " 192.168.0.x " of tftp server.
Step 408: management server sends this SET order to the network equipment.
Known in conjunction with aforementioned table 1, management server finds in list item the IP address of equipment containing the network equipment, therefore SET order can be sent on this network equipment according to this IP address of equipment.
Step 409: the network equipment arranges the SET variable in MIB according to the node parameter carried in this SET order, this node parameter comprises backup protocol type and backup target address.
After the network equipment receives SET order, can according to the SET variable in this SET command set MIB, see the example in step 407, the node parameter of SET variable can be set to " TFTP "+" 192.168.0.x ", being operating as " backing up the configuration file upgraded " of this SET variable instruction.
Step 410: the network equipment performs backup operation according to the node parameter of SET node, adopts the agreement corresponding with backup protocol type, is transferred to the configuration file after renewal on the memory device corresponding with backup target address and backs up.
After the network equipment detects that the node parameter of SET variable in MIB changes, can back up the configuration file after renewal according to the operation of SET variable instruction.Such as, according to node parameter " TFTP "+" 192.168.0.x " on SET variable, the network equipment can adopt TFTP mode, is saved on the tftp server that IP address is 192.168.0.x by the configuration file after upgrading.
Application above-described embodiment, the network equipment by with management server can carry out automated back-up to the configuration file upgraded alternately, the efficiency therefore backed up and accuracy rate higher; And owing to occurring at configuration file can back up in real time when upgrading, therefore can ensure that backed up configuration file is always latest edition, thus make the network equipment after fault recovery, normal operating condition can be quickly recovered to according to the configuration file of backup.
Corresponding with the backup method embodiment of aforementioned arrangements file, present invention also offers the embodiment of the back-up device of configuration file.
The embodiment of the back-up device of configuration file provided by the invention can be applied in be had on the equipment of hardware configuration, and this equipment can be the network equipment or management server.This device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, be by the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.Say from hardware view; as shown in Figure 5; for a kind of hardware structure diagram of the back-up device place equipment of configuration file of the present invention; except the processor shown in Fig. 5, network interface, internal memory and nonvolatile memory; in embodiment, the equipment at device place can also comprise other hardware usually; as the forwarding chip etc. of responsible process message, be no longer shown specifically in this Fig. 5.
See Fig. 6, be an embodiment block diagram of the back-up device of configuration file of the present invention, this application of installation on network devices, comprising: transmitting element 610, receiving element 620 and backup units 630.
Wherein, transmitting element 610, for when configuration file upgrades, sends update notification message according to the config update object be pre-created to management server;
Receiving element 620, for receiving the backup configuration order that described management server returns according to described update notification message;
Backup units 630, for backing up the configuration file after renewal according to described backup configuration order.
In an optional implementation:
This device can also comprise: creating unit 640, for creating config update object in advance in management object database, described config update object comprises object name and trigger condition, wherein, described object name is used for config update object described in unique identification, and described trigger condition comprises the hold-over command described network equipment performing configuration file;
Accordingly, described transmitting element 610 can comprise (not shown in Fig. 6):
Hold-over command performs subelement, for performing the hold-over command that the configuration file after to renewal is preserved;
Object name obtains subelement, for when detecting that the trigger condition of described hold-over command with described config update object is mated, obtains the object name of described config update object;
Notice message sends subelement, for sending the update notification message comprising described object name to described management server, upgrade the described backup configuration order of rear generation to make described management server according to the configuration file that described object name is determined on the described network equipment.
In another optional implementation:
Described backup units 630 can comprise (not shown in Fig. 6):
Configuration information obtains subelement, for obtaining backup protocol type in described backup configuration order and backup target address;
Object node arranges subelement, for using described backup protocol type and backup target address as node parameter, management object node corresponding with described backup configuration order in described management object database is set;
Reconfigurations backup subelement, for when detecting that the node parameter of described management object node changes, adopt the agreement corresponding with described backup protocol type, the configuration file after renewal is transferred on the memory device corresponding with described backup target address and backs up.
In another optional implementation:
Communicated by SNMP between described device with described management server;
Wherein, the described update notification message that described transmitting element 610 sends is specially the TRAP message that described SNMP defines; The described backup configuration order that described receiving element 620 receives is specially the SET order that described SNMP defines.
See Fig. 7, be another embodiment block diagram of the back-up device of configuration file of the present invention, this application of installation on the management server, comprising: receiving element 710, creating unit 720 and transmitting element 730.
Wherein, receiving element 710, for receiving the update notification message that the network equipment sends, described update notification message be the described network equipment when configuration file upgrades, the message sent according to the config update object that is pre-created;
Creating unit 720, for creating backup configuration order according to described update notification message;
Transmitting element 730, for sending described backup configuration order to the described network equipment, backs up the configuration file after renewal according to described backup configuration order to make the described network equipment.
In an optional implementation:
This device can also comprise: storage unit 740, and for preserving the described object name of config update object and the corresponding relation of descriptor in advance, the configuration file that described descriptor is used to indicate on the described network equipment upgrades;
Accordingly, described creating unit 720 can comprise (not shown in Fig. 7):
Object name obtains subelement, for obtaining in described update notification message the object name of the described config update object carried;
Descriptor searches subelement, for searching described corresponding relation according to described object name, obtains the descriptor corresponding with described object name;
Configuration order generates subelement, for according to described descriptor being the order of described network equipment generation backup configuration, backup protocol type and backup target address is comprised in described backup configuration order, to make the described network equipment adopt the agreement corresponding with described backup protocol type, the configuration file after renewal is transferred on the memory device corresponding with described backup target address and backs up.
In another optional implementation:
Can be communicated by SNMP between described device with the described network equipment;
Wherein, the described update notification message that described receiving element 710 receives can be specially the TRAP message that described SNMP defines; The backup configuration order that described transmitting element 730 sends can be specially the SET order that described SNMP defines.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present invention program.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
As seen from the above-described embodiment, when the configuration file on the network equipment upgrades, the network equipment can send update notification message according to the config update object be pre-created to management server, after receiving the backup configuration order that management server returns according to update notification message, according to backup configuration order, the configuration file after upgrading is backed up.The application embodiment of the present invention, can carry out automated back-up to the configuration file upgraded alternately by the network equipment and management server, the efficiency therefore backed up and accuracy rate higher; And owing to occurring at configuration file can back up in real time when upgrading, therefore can ensure that backed up configuration file is always latest edition, thus make the network equipment after fault recovery, normal operating condition can be quickly recovered to according to the configuration file of backup.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (14)

1. a backup method for configuration file, is characterized in that, on network devices, described method comprises in described method application:
When configuration file upgrades, send update notification message according to the config update object be pre-created to management server;
Receive the backup configuration order that described management server returns according to described update notification message;
According to described backup configuration order, the configuration file after renewal is backed up.
2. method according to claim 1, is characterized in that, described method also comprises:
Config update object is created in advance in management object database, described config update object comprises object name and trigger condition, wherein, described object name is used for config update object described in unique identification, and described trigger condition comprises the hold-over command described network equipment performing configuration file;
The described config update object according to being pre-created sends update notification message to management server, comprising:
Perform the hold-over command that the configuration file after to renewal is preserved;
When detecting that the trigger condition of described hold-over command with described config update object is mated, obtain the object name of described config update object;
Send the update notification message comprising described object name to described management server, upgrade the described backup configuration order of rear generation to make described management server according to the configuration file that described object name is determined on the described network equipment.
3. method according to claim 2, is characterized in that, described according to described backup configuration order to upgrade after configuration file back up, comprising:
Obtain the backup protocol type in described backup configuration order and backup target address;
Using described backup protocol type and backup target address as node parameter, management object node corresponding with described backup configuration order in described management object database is set;
When detecting that the node parameter of described management object node changes, adopting the agreement corresponding with described backup protocol type, the configuration file after renewal being transferred on the memory device corresponding with described backup target address and backing up.
4., according to the arbitrary described method of claims 1 to 3, it is characterized in that, communicated by Simple Network Management Protocol SNMP between the described network equipment with described management server;
Wherein, described update notification message is specially the TRAP message that described SNMP defines; Described backup configuration order is specially the SET order that described SNMP defines.
5. a backup method for configuration file, is characterized in that, on the management server, described method comprises in described method application:
Receive the update notification message that the network equipment sends, described update notification message be the described network equipment when configuration file upgrades, the message sent according to the config update object that is pre-created;
Backup configuration order is created according to described update notification message;
Send described backup configuration order to the described network equipment, according to described backup configuration order, the configuration file after renewal is backed up to make the described network equipment.
6. method according to claim 5, is characterized in that, described method also comprises:
Preserve the described object name of config update object and the corresponding relation of descriptor in advance, the configuration file that described descriptor is used to indicate on the described network equipment upgrades;
Described according to the order of described update notification message establishment backup configuration, comprising:
Obtain in described update notification message the object name of the described config update object carried;
Search described corresponding relation according to described object name, obtain the descriptor corresponding with described object name;
Be that the described network equipment generates backup configuration order according to described descriptor, backup protocol type and backup target address is comprised in described backup configuration order, to make the described network equipment adopt the agreement corresponding with described backup protocol type, the configuration file after renewal is transferred on the memory device corresponding with described backup target address and backs up.
7. the method according to claim 5 or 6, is characterized in that, is communicated between described management server with the described network equipment by SNMP;
Wherein, described update notification message is specially the TRAP message that described SNMP defines; Described backup configuration order is specially the SET order that described SNMP defines.
8. a back-up device for configuration file, is characterized in that, on network devices, described device comprises described application of installation:
Transmitting element, for when configuration file upgrades, sends update notification message according to the config update object be pre-created to management server;
Receiving element, for receiving the backup configuration order that described management server returns according to described update notification message;
Backup units, for backing up the configuration file after renewal according to described backup configuration order.
9. device according to claim 8, is characterized in that, described device also comprises:
Creating unit, for creating config update object in advance in management object database, described config update object comprises object name and trigger condition, wherein, described object name is used for config update object described in unique identification, and described trigger condition comprises the hold-over command described network equipment performing configuration file;
Described transmitting element comprises:
Hold-over command performs subelement, for performing the hold-over command that the configuration file after to renewal is preserved;
Object name obtains subelement, for when detecting that the trigger condition of described hold-over command with described config update object is mated, obtains the object name of described config update object;
Notice message sends subelement, for sending the update notification message comprising described object name to described management server, upgrade the described backup configuration order of rear generation to make described management server according to the configuration file that described object name is determined on the described network equipment.
10. device according to claim 9, is characterized in that, described backup units comprises:
Configuration information obtains subelement, for obtaining backup protocol type in described backup configuration order and backup target address;
Object node arranges subelement, for using described backup protocol type and backup target address as node parameter, management object node corresponding with described backup configuration order in described management object database is set;
Reconfigurations backup subelement, for when detecting that the node parameter of described management object node changes, adopt the agreement corresponding with described backup protocol type, the configuration file after renewal is transferred on the memory device corresponding with described backup target address and backs up.
Device described in 11. according to Claim 8 to 10 are arbitrary, is characterized in that,
Communicated by SNMP between described device with described management server;
Wherein, the described update notification message that described transmitting element sends is specially the TRAP message that described SNMP defines; The described backup configuration order that described receiving element receives is specially the SET order that described SNMP defines.
The back-up device of 12. 1 kinds of configuration files, is characterized in that, on the management server, described device comprises described application of installation:
Receiving element, for receiving the update notification message that the network equipment sends, described update notification message be the described network equipment when configuration file upgrades, the message sent according to the config update object that is pre-created;
Creating unit, for creating backup configuration order according to described update notification message;
Transmitting element, for sending described backup configuration order to the described network equipment, backs up the configuration file after renewal according to described backup configuration order to make the described network equipment.
13. devices according to claim 12, is characterized in that, described device also comprises:
Storage unit, for preserving the described object name of config update object and the corresponding relation of descriptor in advance, the configuration file that described descriptor is used to indicate on the described network equipment upgrades;
Described creating unit comprises:
Object name obtains subelement, for obtaining in described update notification message the object name of the described config update object carried;
Descriptor searches subelement, for searching described corresponding relation according to described object name, obtains the descriptor corresponding with described object name;
Configuration order generates subelement, for according to described descriptor being the order of described network equipment generation backup configuration, backup protocol type and backup target address is comprised in described backup configuration order, to make the described network equipment adopt the agreement corresponding with described backup protocol type, the configuration file after renewal is transferred on the memory device corresponding with described backup target address and backs up.
14. devices according to claim 12 or 13, be is characterized in that, communicated between described device with the described network equipment by SNMP;
Wherein, the described update notification message that described receiving element receives is specially the TRAP message that described SNMP defines; The backup configuration order that described transmitting element sends is specially the SET order that described SNMP defines.
CN201410800190.5A 2014-12-19 2014-12-19 Backup method and device of configuration files Pending CN104486125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410800190.5A CN104486125A (en) 2014-12-19 2014-12-19 Backup method and device of configuration files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410800190.5A CN104486125A (en) 2014-12-19 2014-12-19 Backup method and device of configuration files

Publications (1)

Publication Number Publication Date
CN104486125A true CN104486125A (en) 2015-04-01

Family

ID=52760633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410800190.5A Pending CN104486125A (en) 2014-12-19 2014-12-19 Backup method and device of configuration files

Country Status (1)

Country Link
CN (1) CN104486125A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337781A (en) * 2015-12-01 2016-02-17 上海斐讯数据通信技术有限公司 Network management system and method and network system
CN106250256A (en) * 2016-07-27 2016-12-21 浪潮(北京)电子信息产业有限公司 A kind of server failure restoration methods and device thereof
CN108958827A (en) * 2017-05-25 2018-12-07 贵州白山云科技有限公司 A kind of method and system of processing routine upgrade failure
CN110034954A (en) * 2019-03-15 2019-07-19 国网甘肃省电力公司 A kind of automation change configuration system
CN111130856A (en) * 2019-12-06 2020-05-08 山东英信计算机技术有限公司 Server configuration method, system, equipment and computer readable storage medium
CN111865670A (en) * 2020-07-03 2020-10-30 宏图智能物流股份有限公司 Warehouse network rapid recovery method and warehouse network rapid recovery server
CN112822570A (en) * 2020-12-30 2021-05-18 凌云天博光电科技股份有限公司 PON configuration file missing recovery method and device based on network management system
WO2021189354A1 (en) * 2020-03-26 2021-09-30 Arris Enterprises Llc Restoring functionality of a wireless device
CN114217865A (en) * 2021-11-04 2022-03-22 中国电力科学研究院有限公司 Micro-application operation parameter configuration management master station, intelligent terminal, method and system
CN117478510A (en) * 2023-12-28 2024-01-30 深圳市丰润达科技有限公司 Configuration backup method of network equipment, network equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068158A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Network configuration management method and system
CN101350991A (en) * 2008-09-01 2009-01-21 深圳华为通信技术有限公司 Method, system, computer and terminal for data synchronization
CN102148711A (en) * 2011-04-08 2011-08-10 瑞斯康达科技发展股份有限公司 Backup method and system for network device
CN103514173A (en) * 2012-06-20 2014-01-15 华为技术有限公司 Data processing method and node equipment
CN103533011A (en) * 2013-03-29 2014-01-22 Tcl集团股份有限公司 Intelligent terminal data configuration method and system based on cloud terminal
CN103607455A (en) * 2013-11-20 2014-02-26 珠海金山办公软件有限公司 Method and system for file transmission
CN103841167A (en) * 2012-11-27 2014-06-04 ***通信集团公司 User data synchronizing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068158A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Network configuration management method and system
CN101350991A (en) * 2008-09-01 2009-01-21 深圳华为通信技术有限公司 Method, system, computer and terminal for data synchronization
CN102148711A (en) * 2011-04-08 2011-08-10 瑞斯康达科技发展股份有限公司 Backup method and system for network device
CN103514173A (en) * 2012-06-20 2014-01-15 华为技术有限公司 Data processing method and node equipment
CN103841167A (en) * 2012-11-27 2014-06-04 ***通信集团公司 User data synchronizing method and device
CN103533011A (en) * 2013-03-29 2014-01-22 Tcl集团股份有限公司 Intelligent terminal data configuration method and system based on cloud terminal
CN103607455A (en) * 2013-11-20 2014-02-26 珠海金山办公软件有限公司 Method and system for file transmission

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337781A (en) * 2015-12-01 2016-02-17 上海斐讯数据通信技术有限公司 Network management system and method and network system
CN106250256A (en) * 2016-07-27 2016-12-21 浪潮(北京)电子信息产业有限公司 A kind of server failure restoration methods and device thereof
CN106250256B (en) * 2016-07-27 2019-12-31 苏州浪潮智能科技有限公司 Server fault recovery method and device
CN108958827B (en) * 2017-05-25 2021-11-02 贵州白山云科技股份有限公司 Method and system for processing program upgrading fault
CN108958827A (en) * 2017-05-25 2018-12-07 贵州白山云科技有限公司 A kind of method and system of processing routine upgrade failure
CN110034954A (en) * 2019-03-15 2019-07-19 国网甘肃省电力公司 A kind of automation change configuration system
CN111130856A (en) * 2019-12-06 2020-05-08 山东英信计算机技术有限公司 Server configuration method, system, equipment and computer readable storage medium
WO2021189354A1 (en) * 2020-03-26 2021-09-30 Arris Enterprises Llc Restoring functionality of a wireless device
CN111865670A (en) * 2020-07-03 2020-10-30 宏图智能物流股份有限公司 Warehouse network rapid recovery method and warehouse network rapid recovery server
CN111865670B (en) * 2020-07-03 2023-06-30 宏图智能物流股份有限公司 Warehouse network rapid recovery method and warehouse network rapid recovery server
CN112822570A (en) * 2020-12-30 2021-05-18 凌云天博光电科技股份有限公司 PON configuration file missing recovery method and device based on network management system
CN114217865A (en) * 2021-11-04 2022-03-22 中国电力科学研究院有限公司 Micro-application operation parameter configuration management master station, intelligent terminal, method and system
CN117478510A (en) * 2023-12-28 2024-01-30 深圳市丰润达科技有限公司 Configuration backup method of network equipment, network equipment and storage medium
CN117478510B (en) * 2023-12-28 2024-05-14 深圳市丰润达科技有限公司 Configuration backup method of network equipment, network equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104486125A (en) Backup method and device of configuration files
US10733245B2 (en) Methods and apparatus to track changes to a network topology
US9176829B2 (en) Managing recovery virtual machines in clustered environment
US9647891B2 (en) Managing network configurations
CN110535692B (en) Fault processing method and device, computer equipment, storage medium and storage system
US9021294B2 (en) Discovering boot order sequence of servers belonging to an application
CN104301142A (en) Backup method and device for configuration files
CN106657167B (en) Management server, server cluster, and management method
WO2016014803A1 (en) Node discovery and cluster formation for a secondary storage appliance
CN104679611A (en) Data resource copying method and device
US20150026322A1 (en) Configuring a network device
CN102609281A (en) Distributed software patch updating method and distributed software patch updating system
CN102710450B (en) Fault location method and device thereof
CN106790131B (en) Parameter modification method and device and distributed platform
CN104618521A (en) Node de-duplication in a network monitoring system
CN108880885B (en) Message processing method and device
CN104468201A (en) Automatic deleting method and device for offline network equipment
JP2011204192A (en) Switching device, information processing device, and failure notification control program
US10904094B2 (en) Extending a known topology of a network using data obtained from monitoring the network
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
US20170318483A1 (en) Self-recovery method and device after disconnection of base station
CN109189403B (en) Operating system OS batch installation method and device and network equipment
CN105849699B (en) Method for controlling data center architecture equipment
CN108429644B (en) Network equipment management method and device and server
WO2016101474A1 (en) Method and apparatus for monitoring configuration data and system therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150401