CN105939378A - Configuration file exporting method and device, and configuration file importing method and device - Google Patents

Configuration file exporting method and device, and configuration file importing method and device Download PDF

Info

Publication number
CN105939378A
CN105939378A CN201610305842.7A CN201610305842A CN105939378A CN 105939378 A CN105939378 A CN 105939378A CN 201610305842 A CN201610305842 A CN 201610305842A CN 105939378 A CN105939378 A CN 105939378A
Authority
CN
China
Prior art keywords
data
file
configuration
write
row
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
CN201610305842.7A
Other languages
Chinese (zh)
Other versions
CN105939378B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201610305842.7A priority Critical patent/CN105939378B/en
Publication of CN105939378A publication Critical patent/CN105939378A/en
Application granted granted Critical
Publication of CN105939378B publication Critical patent/CN105939378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention provides a configuration file exporting method and device, and a configuration file importing method and device. The configuration file exporting method comprises the steps of receiving an exporting operation command which is used for exporting a configuration file and is triggered by a user; determining a preset exporting format corresponding to the configuration file; writing configuration data in a file of the preset exporting format according to a preset data format, thereby generating an exporting file; and outputting the exporting file to a target position. According to the methods and the devices, the new preset exporting format is provided, and therefore, the organization form of the configuration data is more flexible; the new file importing mode is provided, and therefore, the file importing modes are diversified; and the importing operation is more flexible, convenient and easy.

Description

The method and device that configuration file is derived, imported
Technical field
The application relates to networking technology area, particularly relate to a kind of configuration file derive, import method and Device.
Background technology
Application configuration imports on network devices, deriving can be quickly and easily by the configuration on the network equipment Recover to history to configure.
In prior art, can by configuration file with comma separated value (Comma-Separated Values, CSV) file format derives, and uses the mode adding importing to import configuration number at importing configuration files According to.User edit csv file form configuration file time may occur in which data automatically change, data tissue The shortcomings such as form is dumb, and when amendment configuration data, Excel instrument may have modified note simultaneously Release data, and then cause configuration data to change, it is difficult to control;And user may edit CSV by mistake The configuration file of file format and cause configuring corrupt data;The mode importing file is more single.
Summary of the invention
The application provides the method and device that a kind of configuration file is derived, imported, to solve existing configuration literary composition Part is derived, the drawbacks described above of introduction method.
First aspect, it is provided that a kind of method that configuration file is derived, is applied in the network equipment, including:
Receive the derivation operational order deriving configuration file that user triggers;
Determine the default derivation form that described configuration file is corresponding;
Configuration data are preset in the file deriving form according to the write of preset data form, generates and derive literary composition Part;
Described export is exported to target location.
Second aspect, it is provided that a kind of method that configuration file imports, is applied on the network equipment, including:
Receive the covering import operation order of the importing configuration files that user triggers;
Generate information, if the network equipment described in the way of reminding user to use described covering importing Original configuration can be deleted;
Determine whether to receive the selection operational order that described user triggers according to described information;
When described selection operational order is the first operational order, delete the described original of the described network equipment Configuration, and from described configuration file, parse configuration number according to the default derivation form of described configuration file According to.
The third aspect, it is provided that the device that a kind of configuration file is derived, is applied on the network equipment, including:
Receiver module, for receiving the derivation operational order deriving configuration file that user triggers;
Determine module, for when the described derivation operational order that described receiver module receives, determine institute State the default derivation form that configuration file is corresponding;
Configuration data, for according to the described default derivation form determining that module determines, are pressed by generation module Preset in the file deriving form according to the write of preset data form, generate export;
Derive module, export to target location for the described export that described generation module is generated.
Fourth aspect, it is provided that the device that a kind of configuration file imports, is applied on the network equipment, including: Receiver module, for receiving the covering import operation order of the importing configuration files that user triggers;
Generation module, for when described receiver module receives described covering import operation order, generates Information, if the original of the network equipment described in the way of reminding user to use described covering importing joins Put and can be deleted;
Determine module, be used to determine whether to receive described in described user generates according to described generation module The selection operational order that information triggers;
Import module, for described determining that module determines that the described selection operational order received is first During operational order, delete described original configuration of the described network equipment, and pre-according to described configuration file If deriving form to parse configuration data from described configuration file.
The network equipment of the application, by providing new default derivation form, makes set of configuration data knit form more Flexibly, and provide the new mode importing file so that the mode importing file is the most single, imports Operation is more flexible, convenient, easy-to-use.
Accompanying drawing explanation
Fig. 1 is the method flow diagram derived according to the configuration file shown in an exemplary embodiment;
Fig. 2 A is according to configuration data being derived according to preset format write shown in an exemplary embodiment The schematic diagram of formatted file;
Fig. 2 B is according to configuring data and annotation number in the CSV configuration file shown in an exemplary embodiment According to schematic diagram;
Fig. 3 is the method flow diagram imported according to the configuration file shown in an exemplary embodiment;
Fig. 4 is according to the schematic diagram covering importing configuration files shown in an exemplary embodiment;
Fig. 5 is the device schematic diagram derived according to the configuration file shown in an exemplary embodiment;
Fig. 6 is the device schematic diagram derived according to the another configuration file shown in an exemplary embodiment;
Fig. 7 is the device schematic diagram imported according to the configuration file shown in an exemplary embodiment;
Fig. 8 is the device schematic diagram imported according to the another configuration file shown in an exemplary embodiment;
Fig. 9 is that the place of the device derived according to the configuration file shown in an exemplary embodiment, import is hard The hardware schematic of part equipment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the application There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the application The example of the apparatus and method that a little aspects are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting The application." a kind of " of singulative used in the application and appended claims, " institute State " and " being somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.Also should Work as understanding, term "and/or" used herein refer to and comprise one or more be associated list item Any or all possible combination of purpose.
Although should be appreciated that may use term first, second, third, etc. various to describe in the application Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that This distinguishes.Such as, in the case of without departing from the application scope, the first information can also be referred to as Two information, similarly, the second information can also be referred to as the first information.Depend on linguistic context, as in this institute Use word " if " can be construed to " and ... time " or " when ... time " or " response In determining ".
See Fig. 1, the method flow diagram derived according to the configuration file shown in an exemplary embodiment, should Method is applied to the network equipment, and (terminal unit can be computer etc. for such as routing device, terminal unit Terminal) on, comprise the following steps:
Step 101, receives the derivation operational order deriving configuration file that user triggers.
Step 102, determines the default derivation form that configuration file is corresponding.
In one embodiment, presetting derivation form can be TXT text, encryption file, CSV File.It will be appreciated by persons skilled in the art that presetting derivation form can also be alternative document lattice Formula.
In one embodiment, TXT text realizes with TXT file for intermediary, and this document is Common text files, usable text editing machine is opened.
In one embodiment, encryption file realizes with binary file for intermediary, and this document is through adding Close process, domestic consumer can not open with text editor.Encryption file is mainly used in what striding equipment migrated Complex configurations file, can avoid user's amendment by mistake during striding equipment migrates to cause configuration data wrong By mistake.
Configuration data are preset in the file deriving form according to the write of preset data form by step 103, Generate export.
In one embodiment, if presetting derivation form is text, data will be configured according to present count Preset in the file deriving form according to form write, generate export, including: by configuration data with life In the data form write text of order row;Determine that text is export.In text directly Connecing the form using order line, therefore configuration file ratio is more suitable for switch, router etc. with order The scene of row form organization configuration data.
In one embodiment, if presetting derivation form is encryption file, by configuration data according to present count Preset in the file deriving form according to form write, generate export, including: by configuration data to join Put the preset data form write text that data are corresponding;Ciphertext file, obtains encrypting file; Determine that encryption file is export.Wherein, preset data form can be to configure the network equipment Time use self-defining data form.Such as, every kind of configuration data are positioned at single string, such as user Name is positioned at string, and source port is positioned at string, etc..This concrete preset data form can be by developer Preset.
See Fig. 2 A, be according to configuration data are write according to preset format shown in an exemplary embodiment Derive the schematic diagram of formatted file;In Fig. 2 A, data form is organized according to putting in order of configuration item, Such as, " manager " configuration item includes manager, description, password, confirmation password etc., so joining Putting data and should be positioned at single string, row refers to an object or a strategy, and each provisional capital is with identical Configuration item, but configuration may be different, such as following table manager aaa, manager bbb, manager Admin etc..
See Fig. 2 B, be according in the CSV configuration file shown in an exemplary embodiment configure data and Configuration data, if presetting derivation form is csv file, are pressed in Fig. 2 B by the schematic diagram of annotation data Preset in the file deriving form according to the write of preset data form, generate export, including: when presetting When derivation form is comma separated value csv file, the data data form with data row will be configured according in advance If writing format write csv file, and annotation data are write csv file with default comments forms; Determine that csv file is export.
In one embodiment, default writing format can be, the code data in configuration data is write two Data arrange, and wherein, two data row include clear-text passwords data row and ciphertext code data row, Clear-text passwords data row can be set to sky, with ciphertext shape in being arranged by code data ciphertext code data during derivation Formula shows, in case stopping leak is close, when needs are by importing csv file Modify password, can revise corresponding line The content of clear-text passwords data row be amended clear-text passwords, can remove importing after csv file In csv file clear-text passwords data row in clear-text passwords or directly destruction this csv file, to reach To by csv file Modify password and do not cause the purpose that password reveals;Configuration data will remove password number Data outside according to write the data row of corresponding data row according to mode one to one;To configure in data Comprise other data row in addition to first data row of the data write corresponding data row of annotation symbol.
In one embodiment, default comments forms is, annotation symbol " # " is placed on each annotation data row First row, other all notes contents are placed on the secondary series of annotation data row, and are owned by secondary series Content is automatically put in double quotation marks, it is ensured that user Excel when revising configuration file will not correct note automatically Release content, it is possible to avoid the columns causing data row when having too much comma in notes content too much.
In one embodiment, annotation data are write csv file with default comments forms, including: for Each comment line, writes first data row of corresponding data row by annotation symbol;Will except annotation symbol it Other outer annotation data write second data row.
Step 104, exports export to target location.
In the present embodiment, by the default derivation form that offer is new, set of configuration data can be made to knit form cleverer Live, and the default comments forms that the application provides can prevent comma quantity in annotation data from exceeding configuration number During according to comma quantity in row, when the comma of network equipment auto-complete configuration data row causes file to import Parsing makes mistakes, but also user can be avoided automatically to correct notes content when revising configuration file, and then leads The problem causing configuration corrupt data;And arrange by the code data in configuration data is write two data, Clear-text passwords data row are set to sky, show with ciphertext form during code data ciphertext code data is arranged, The leakage of password can be effectively prevented from, preferably ensured the safety of user profile.
Fig. 3 is the method flow diagram imported according to the configuration file shown in an exemplary embodiment three, the party Method is applied to the network equipment, such as, on routing device, terminal unit, comprise the following steps:
Step 301, receives the covering import operation order of the importing configuration files that user triggers.
In one embodiment, the network equipment can be supported to cover importing side respectively according to the difference of business demand Formula, or additional lead-in mode, or support cover importing and add two kinds of lead-in modes of importing simultaneously.
Step 302, generates information, if network sets in the way of reminding user to use covering importing Standby original configuration can be deleted.
See Fig. 4, be according to the schematic diagram covering importing configuration files shown in an exemplary embodiment, As shown in Figure 4, after by clicking the Browse button option and installment file, can click that " covering is led Enter " button, trigger and cover import operation order, the network equipment can generate information, reminds user network Original configuration of network equipment can be deleted.
Step 303, it is determined whether receive the selection operational order that user triggers according to information.
In one embodiment, if the user determine that delete original configuration of the network equipment, use will import Configuration file in the configuration data configuration network equipment, then can click OK button.In another reality Execute in example, if user is not desired to delete original configuration of the network equipment, then can click Cancel button. It will be appreciated by persons skilled in the art that in Fig. 4, the application is not caused restriction by the information of display, Button name therein, information content all can be different.
Step 304, when being the first operational order when selecting operational order, deletes the original of the network equipment and joins Put, and from configuration file, parse configuration data according to the default derivation form of configuration file.
In one embodiment, from configuration file, configuration is parsed according to the default derivation form of configuration file Data, including: when default derivation form is text, the order line resolved in configuration file obtains Configuration data.
In one embodiment, from configuration file, configuration is parsed according to the default derivation form of configuration file Data, including: when default derivation form is for encryption file, decipher configuration file;According to configuration data Configuration file after the preset data format analysis deciphering of write configuration file obtains configuring data.
In one embodiment, from configuration file, configuration is parsed according to the default derivation form of configuration file Data, including: when default derivation form is csv file, join according to the data format analysis of data row Put file to obtain configuring data.
In the present embodiment, the network equipment, by the way of providing new covering importing configuration files, can use Family replaces already present configuration data, Yong Huke in the network equipment with the configuration data of new configuration file With the most manually empty configured after add again and import new configuration data, operation more flexibly, convenient, Easy-to-use;And the difference imported can be preset derive form according to default derivation form during export Configuration file use different analysis modes obtain configure data, it is more flexible that set of configuration data knits form.
See Fig. 5, be the device schematic diagram derived according to the configuration file shown in an exemplary embodiment, This device can be applicable on the network equipment, as it is shown in figure 5, this device includes: receiver module 510, really Cover half block 520, generation module 530, derivation module 540.Wherein:
Receiver module 510, for receiving the derivation operational order deriving configuration file that user triggers;
Determine module 520, for when the derivation operational order that receiver module 510 receives, determine and join Put the default derivation form that file is corresponding;
Generation module 530, for according to the default derivation form determining that module 520 determines, will configure number According to presetting in the file deriving form according to the write of preset data form, generate export;
Derive module 540, export to target location for the export that generation module 530 is generated.
See Fig. 6, be the device signal derived according to the another configuration file shown in an exemplary embodiment Figure, on the basis of Fig. 5 embodiment, in one embodiment, generation module 530 comprises the steps that
First writing unit 531, for when determining that the default derivation form that module 520 determines is text literary composition During part, configuration data are write in text with the data form of order line;
First determines unit 532, for determining that the text of the first writing unit 531 write is for deriving File.
In one embodiment, generation module 530 comprises the steps that
Second writing unit 533, for when determine that default derivation form that module 520 determines is for adding ciphertext During part, configuration data are write text with the preset data form that configuration data are corresponding;
Ciphering unit 534, for the text of encryption the second writing unit 533 write, is encrypted File;
Second determines unit 535, for determining that the encryption file that ciphering unit 532 obtains is export.
In one embodiment, generation module 530 comprises the steps that
3rd writing unit 536, for when determining that the default derivation form that module 520 determines is that comma divides In time being worth csv file, configuration data are write according to default writing format with the data form of data row Csv file, and annotation data are write csv file with default comments forms;
3rd determines unit 537, for determining that the csv file of the 3rd writing unit 536 write is for deriving File.
In one embodiment, the 3rd writing unit 536 comprises the steps that
First write subelement 5361, for the code data in configuration data being write two data row, Wherein, two data row include clear-text passwords data row and ciphertext code data row;
Second write subelement 5362, for by data in addition to code data in configuration data according to one The mode of one correspondence writes the data row of corresponding data row;
3rd write subelement 5363, for comprising the data write correspondence of annotation symbol in configuration data Other data row in addition to first data row of data row.
In one embodiment, the 3rd writing unit 536 comprises the steps that
4th write subelement 5364, for for each comment line, writes corresponding data by annotation symbol First data row of row;
5th write subelement 5365, for by other annotation data writes second in addition to annotation symbol Individual data arrange.
See Fig. 7, be the device schematic diagram imported according to the configuration file shown in an exemplary embodiment, This device can be applicable on the network equipment, as it is shown in fig. 7, this device includes: receiver module 710, life Become module 720, determine module 730, importing module 740.Wherein:
Receiver module 710, for receiving the covering import operation order of the importing configuration files that user triggers;
Generation module 720, for when receiver module 710 receives covering import operation order, generating Information, if original configuration of the network equipment can be deleted in the way of reminding user to use covering importing Remove;
Determine module 730, be used to determine whether to receive the prompting that user generates according to generation module 720 The selection operational order that information triggers;
Import module 740, for when determining that module 730 determines that the selection operational order received is first During operational order, delete original configuration of the network equipment, and according to the default derivation form of configuration file from Configuration file parses configuration data.
See Fig. 8, be the device signal imported according to the another configuration file shown in an exemplary embodiment Figure, on the basis of Fig. 7 embodiment, in one embodiment, imports module 740 and comprises the steps that
First resolution unit 741, for when default derivation form is text, resolves configuration file In order line obtain configure data.
In one embodiment, import module 740 to comprise the steps that
Decryption unit 742, for when default derivation form is for encryption file, deciphering configuration file;
Second resolution unit 743, for the preset data form solution according to configuration data write configuration file Configuration file after analysis decryption unit 742 deciphering obtains configuring data.
In one embodiment, import module 740 to comprise the steps that
3rd resolution unit 744, for when default derivation form is csv file, according to data row Data format analysis configuration file obtains configuring data.
In said apparatus, the function of unit and the process that realizes of effect specifically refer in said method corresponding Step realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically, The unit wherein illustrated as separating component can be or may not be physically separate, as list The parts of unit's display can be or may not be physical location, i.e. may be located at a place, or Can also be distributed on multiple NE.Part therein or complete can be selected according to the actual needs Portion's module realizes the purpose of the application scheme.Those of ordinary skill in the art are not paying creative work In the case of, i.e. it is appreciated that and implements.
The embodiment of the application Packet Filtering device can be applied on network devices.Device embodiment can To be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.Implemented in software As a example by, as the device on a logical meaning, it is that the processor by its place equipment is by non-volatile Computer program instructions corresponding in memorizer reads and runs formation in internal memory.For hardware view, As it is shown in figure 9, be the institute of the device derived according to the configuration file shown in an exemplary embodiment, import At the hardware schematic of hardware device, except the processor shown in Fig. 9, internal memory, network interface and Outside nonvolatile memory, in embodiment, the equipment at device place is generally according to the actual functional capability of this device, Other hardware can also be included, this is repeated no more.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all at this Within the spirit of application and principle, any modification, equivalent substitution and improvement etc. done, should be included in Within the scope of the application protection.

Claims (20)

1. the method that configuration file is derived, is applied on the network equipment, it is characterised in that described side Method includes:
Receive the derivation operational order deriving configuration file that user triggers;
Determine the default derivation form that described configuration file is corresponding;
Configuration data are preset in the file deriving form according to the write of preset data form, generates and derive literary composition Part;
Described export is exported to target location.
Method the most according to claim 1, it is characterised in that the described data that will configure are according to presetting The write of data form is preset in the file deriving form, generates export, including:
When described default derivation form is text, configuration data are write with the data form of order line Enter in described text;
Determine that described text is described export.
Method the most according to claim 1, it is characterised in that the described data that will configure are according to presetting The write of data form is preset in the file deriving form, generates export, including:
When described default derivation form is for encryption file, by corresponding with described configuration data for configuration data Preset data form write text;
Encrypt described text, obtain encrypting file;
Determine that described encryption file is described export.
Method the most according to claim 1, it is characterised in that the described data that will configure are according to presetting The write of data form is preset in the file deriving form, generates export, including:
When described default derivation form is comma separated value csv file, by configuration data with data row Data form writes csv file according to default writing format, and will annotate data with default comments forms Write described csv file;
Determine that described csv file is described export.
Method the most according to claim 4, it is characterised in that the described data that will configure are with data row Data form according to default writing format write csv file, including:
Code data in configuration data writes two data row, and wherein, said two data row include One clear-text passwords data row and ciphertext code data row;
Data in addition to code data in configuration data are write corresponding data according to mode one to one The data row of row;
The data write corresponding data row comprising annotation symbol in configuration data arranged it except first data Outer other data row.
Method the most according to claim 4, it is characterised in that the described data that will annotate are with default note Release form and write described csv file, including:
For each comment line, annotation symbol is write first data row of corresponding data row;
Other annotation data in addition to described annotation symbol are write second data row.
7. the method that configuration file imports, is applied on the network equipment, it is characterised in that described side Method includes:
Receive the covering import operation order of the importing configuration files that user triggers;
Generate information, if the network equipment described in the way of reminding user to use described covering importing Original configuration can be deleted;
Determine whether to receive the selection operational order that described user triggers according to described information;
When described selection operational order is the first operational order, delete the described original of the described network equipment Configuration, and from described configuration file, parse configuration number according to the default derivation form of described configuration file According to.
Method the most according to claim 7, it is characterised in that described according to described configuration file Preset derivation form from described configuration file, parse configuration data, including:
When described default derivation form is text, the order line resolved in described configuration file obtains Configuration data.
Method the most according to claim 7, it is characterised in that described according to described configuration file Preset derivation form from described configuration file, parse configuration data, including:
When described default derivation form is for encryption file, decipher described configuration file;
Write deciphering described in the preset data format analysis of described configuration file according to described configuration data after Configuration file obtains configuring data.
Method the most according to claim 7, it is characterised in that described according to described configuration file Default derivation form from described configuration file, parse configuration data, including:
When described default derivation form is csv file, join described in the data format analysis of data row Put file to obtain configuring data.
The device that 11. 1 kinds of configuration files are derived, is applied on the network equipment, it is characterised in that described Device includes:
Receiver module, for receiving the derivation operational order deriving configuration file that user triggers;
Determine module, for when the described derivation operational order that described receiver module receives, determine institute State the default derivation form that configuration file is corresponding;
Configuration data, for according to the described default derivation form determining that module determines, are pressed by generation module Preset in the file deriving form according to the write of preset data form, generate export;
Derive module, export to target location for the described export that described generation module is generated.
12. devices according to claim 11, it is characterised in that described generation module, including:
First writing unit, is used for when the described default derivation form determining that module determines is text, Configuration data are write in described text with the data form of order line;
First determines unit, is described for determining the described text of described first writing unit write Export.
13. devices according to claim 11, it is characterised in that described generation module includes:
Second writing unit, is used for when the described default derivation form determining that module determines is encryption file, Configuration data are write text with the preset data form that described configuration data are corresponding;
Ciphering unit, for encrypting the described text of described second writing unit write, is encrypted File;
Second determines unit, for determining that the described encryption file that described ciphering unit obtains is described derivation File.
14. devices according to claim 11, it is characterised in that described generation module includes:
3rd writing unit, for described determining that the default derivation form that module determines is comma separated value During csv file, configuration data are write CSV with the data form of data row according to default writing format File, and annotation data are write described csv file with default comments forms;
3rd determines unit, is described for determining the described csv file of described 3rd writing unit write Export.
15. devices according to claim 14, it is characterised in that described 3rd writing unit includes:
First write subelement, for the code data in configuration data being write two data row, wherein, Said two data row include clear-text passwords data row and ciphertext code data row;
Second write subelement, for by data in addition to code data in configuration data according to one a pair The mode answered writes the data row of corresponding data row;
3rd write subelement, for comprising the data write corresponding data of annotation symbol in configuration data Other data row in addition to first data row of row.
16. devices according to claim 14, it is characterised in that described 3rd writing unit includes:
4th write subelement, for for each comment line, writes corresponding data row by annotation symbol First data row;
5th write subelement, for by other annotation data writes second in addition to described annotation symbol Individual data arrange.
The device that 17. 1 kinds of configuration files import, is applied on the network equipment, it is characterised in that described Device includes:
Receiver module, for receiving the covering import operation order of the importing configuration files that user triggers;
Generation module, for when described receiver module receives described covering import operation order, generates Information, if the original of the network equipment described in the way of reminding user to use described covering importing joins Put and can be deleted;
Determine module, be used to determine whether to receive described in described user generates according to described generation module The selection operational order that information triggers;
Import module, for described determining that module determines that the described selection operational order received is first During operational order, delete described original configuration of the described network equipment, and pre-according to described configuration file If deriving form to parse configuration data from described configuration file.
18. devices according to claim 17, it is characterised in that described importing module includes:
First resolution unit, for when described default derivation form is text, resolves described configuration Order line in file obtains configuring data.
19. devices according to claim 17, it is characterised in that described importing module includes:
Decryption unit, for when described default derivation form is for encryption file, deciphering described configuration file;
Second resolution unit, for writing the preset data lattice of described configuration file according to described configuration data Configuration file after formula resolves the deciphering of described decryption unit obtains configuring data.
20. devices according to claim 17, it is characterised in that described importing module includes:
3rd resolution unit, for when described default derivation form is csv file, according to data row Configuration file described in data format analysis obtains configuring data.
CN201610305842.7A 2016-05-10 2016-05-10 Method and device for exporting and importing configuration file Active CN105939378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610305842.7A CN105939378B (en) 2016-05-10 2016-05-10 Method and device for exporting and importing configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610305842.7A CN105939378B (en) 2016-05-10 2016-05-10 Method and device for exporting and importing configuration file

Publications (2)

Publication Number Publication Date
CN105939378A true CN105939378A (en) 2016-09-14
CN105939378B CN105939378B (en) 2020-05-12

Family

ID=57152042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610305842.7A Active CN105939378B (en) 2016-05-10 2016-05-10 Method and device for exporting and importing configuration file

Country Status (1)

Country Link
CN (1) CN105939378B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device
CN106845253A (en) * 2016-12-27 2017-06-13 迈普通信技术股份有限公司 Historical operation recording of encrypted method and device
CN108345292A (en) * 2018-02-07 2018-07-31 中航锂电(洛阳)有限公司 A kind of battery management system method for parameter configuration and system
CN109787225A (en) * 2019-01-28 2019-05-21 南京南瑞继保电气有限公司 A kind of distribution network model deriving method and device, equipment, storage medium
CN109933625A (en) * 2019-01-15 2019-06-25 平安科技(深圳)有限公司 Data export method, device, equipment and computer readable storage medium
CN110300109A (en) * 2019-06-28 2019-10-01 合肥高维数据技术有限公司 A kind of management method of server-side to client
CN112163024A (en) * 2020-09-11 2021-01-01 重庆誉存大数据科技有限公司 Configuration information exporting and importing method based on hierarchical association structure
CN112612830A (en) * 2020-12-03 2021-04-06 海光信息技术股份有限公司 Method and system for exporting compressed data in batches and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794289A (en) * 2009-12-30 2010-08-04 北京数码大方科技有限公司 Method and system for exporting data
CN103092993A (en) * 2013-02-18 2013-05-08 五八同城信息技术有限公司 Data exporting method and data exporting device
CN103870586A (en) * 2014-03-26 2014-06-18 北京京东尚科信息技术有限公司 Method and device for exporting data from website system
US20140365822A1 (en) * 2013-06-05 2014-12-11 Sungard Availability Services, Lp Virtual infrastructure recovery configurator
CN104881469A (en) * 2015-05-27 2015-09-02 北京京东尚科信息技术有限公司 Data exporting method and device
CN105225042A (en) * 2015-09-28 2016-01-06 国家电网公司 The live detection data management system of a kind of sing on web and database

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794289A (en) * 2009-12-30 2010-08-04 北京数码大方科技有限公司 Method and system for exporting data
CN103092993A (en) * 2013-02-18 2013-05-08 五八同城信息技术有限公司 Data exporting method and data exporting device
US20140365822A1 (en) * 2013-06-05 2014-12-11 Sungard Availability Services, Lp Virtual infrastructure recovery configurator
CN103870586A (en) * 2014-03-26 2014-06-18 北京京东尚科信息技术有限公司 Method and device for exporting data from website system
CN104881469A (en) * 2015-05-27 2015-09-02 北京京东尚科信息技术有限公司 Data exporting method and device
CN105225042A (en) * 2015-09-28 2016-01-06 国家电网公司 The live detection data management system of a kind of sing on web and database

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845253A (en) * 2016-12-27 2017-06-13 迈普通信技术股份有限公司 Historical operation recording of encrypted method and device
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device
CN108345292A (en) * 2018-02-07 2018-07-31 中航锂电(洛阳)有限公司 A kind of battery management system method for parameter configuration and system
CN109933625A (en) * 2019-01-15 2019-06-25 平安科技(深圳)有限公司 Data export method, device, equipment and computer readable storage medium
CN109787225A (en) * 2019-01-28 2019-05-21 南京南瑞继保电气有限公司 A kind of distribution network model deriving method and device, equipment, storage medium
CN109787225B (en) * 2019-01-28 2020-11-17 南京南瑞继保电气有限公司 Distribution network model derivation method, device, equipment and storage medium
CN110300109A (en) * 2019-06-28 2019-10-01 合肥高维数据技术有限公司 A kind of management method of server-side to client
CN110300109B (en) * 2019-06-28 2022-08-09 合肥高维数据技术有限公司 Method for managing client by server
CN112163024A (en) * 2020-09-11 2021-01-01 重庆誉存大数据科技有限公司 Configuration information exporting and importing method based on hierarchical association structure
CN112163024B (en) * 2020-09-11 2024-03-19 重庆誉存大数据科技有限公司 Configuration information export and import method based on hierarchical association structure
CN112612830A (en) * 2020-12-03 2021-04-06 海光信息技术股份有限公司 Method and system for exporting compressed data in batches and electronic equipment

Also Published As

Publication number Publication date
CN105939378B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN105939378A (en) Configuration file exporting method and device, and configuration file importing method and device
TWI763710B (en) Nuts: encrypted userdata transit and storage
Krüger et al. Cognicrypt: Supporting developers in using cryptography
US11558192B2 (en) NUTS: flexible hierarchy object graphs
CN104331644A (en) Transparent encryption and decryption method for intelligent terminal file
CN104270517A (en) Information encryption method and mobile terminal
CN104852922B (en) Big data encipher-decipher method based on distributed file system
CN105574424A (en) Big data encryption and decryption processing method and system
CN105095785A (en) File access processing method, and file access method and device of distributed file system
WO2014207632A1 (en) Logging device and log aggregation device
CN109802832A (en) A kind of processing method of data file, system, big data processing server and computer storage medium
CN104281815A (en) Method and system for encrypting and decrypting file
Benattar et al. Control and synthesis of non-interferent timed systems
TW201328278A (en) Encryption and decryption devices and methods thereof
CN101350712B (en) Data management method and terminal
US8825692B1 (en) User-specified localization of text for programs
US9292698B1 (en) Method and system for remote forensic data collection
CN107885981A (en) Compile result processing method, device, storage medium, processor and compiler
CN106845253A (en) Historical operation recording of encrypted method and device
CN113076548A (en) Robot automation process account information processing method and device
CN111026800A (en) Data export method and device, electronic equipment and storage medium
TWM591647U (en) Data management system capable of securely accessing and deleting data
CN111241173A (en) Method and system for data interaction among multiple systems
CN107992757A (en) A kind of file encryption, decryption method and device
Masoodi et al. Cryptographic (in) security in android apps

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: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant