CN105100211A - Configuration file obtaining method and device - Google Patents

Configuration file obtaining method and device Download PDF

Info

Publication number
CN105100211A
CN105100211A CN201510363871.4A CN201510363871A CN105100211A CN 105100211 A CN105100211 A CN 105100211A CN 201510363871 A CN201510363871 A CN 201510363871A CN 105100211 A CN105100211 A CN 105100211A
Authority
CN
China
Prior art keywords
configuration file
controlled plant
attribute information
plant attribute
request
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
CN201510363871.4A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510363871.4A priority Critical patent/CN105100211A/en
Publication of CN105100211A publication Critical patent/CN105100211A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides a configuration file obtaining method. The configuration file obtaining method comprises the steps: a controlled device extracts controlled device attribute information; based on the controlled device attribute information, a configuration file obtaining request is generated; the configuration file obtaining request is sent to a controlling device; the controlling device receives the configuration file obtaining request from the controlled device, wherein the configuration file obtaining request comprises the controlled device attribute information; based on the controlled device attribute information extracted from the configuration file obtaining request, a configuration file matching the controlled device attribute information is obtained. The invention implements synchronous update of differentiation and personalization configurations to the controlled device and meets requirements of data services on quick development.

Description

Obtain method and the device of configuration file
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to a kind of method and the device that obtain configuration file.
Background technology
Puppet is a kind of centralized configuration management system of Linux, Unix, windows platform, uses own Puppet descriptive language, ALARA Principle configuration file, user, cron task, software kit, system service etc.The structure that Puppet adopts C/S starlike, at least one main control device Master and at least two controlled plant Agent carry out alternately.Each Agent periodically sends request to Master, obtains the configuration file up-to-date with it, synchronous to ensure with the configuration file of Master end.
In prior art, for the Puppet configuration management system comprising multiple Agent, Master is generally that multiple Agent generates unified configuration file based on same data service.Multiple Agent periodically asks up-to-date configuration file to Master respectively, in response to the request from Agent, Master issues unified configuration file to multiple Agent, after multiple Agent receives this configuration file respectively, is configured in strict accordance with configuration file.But existing configuration mode cannot carry out the configuration synchronization renewal of differentiation and personalization based on the attribute of each Agent, cannot meet the demand of data service fast development.
Summary of the invention
For overcoming above-mentioned technical problem or solving the problems of the technologies described above at least in part, the following technical scheme of special proposition:
The invention provides a kind of method obtaining configuration file, be applied to main control device for generating the configuration file matched with controlled plant attribute information, described main control device is connected with at least two controlled plants, comprising:
The configuration file received from controlled plant obtains request, and wherein, described configuration file obtains request and comprises controlled plant attribute information;
Based on obtaining the controlled plant attribute information extracted in request from described configuration file, obtain the configuration file matched with described controlled plant attribute information.
Present invention also offers a kind of method obtaining configuration file, be applied to controlled plant to assist for obtaining the configuration file matched with controlled plant attribute information, described controlled plant is connected with main control device, it is characterized in that, comprising:
Extract controlled plant attribute information, wherein, described controlled plant attribute information is used in described main control device, obtain the configuration file matched with it;
Based on described controlled plant attribute information, generating configuration file obtains request;
Send described configuration file and obtain request to described main control device.
Present invention also offers a kind of device obtaining configuration file, this device is at main control device for generating the configuration file matched with controlled plant attribute information, and described main control device is connected with at least two controlled plants, comprising:
Request receiving module, obtains request for the configuration file received from controlled plant, and wherein, described configuration file obtains request and comprises controlled plant attribute information;
Configuration file acquisition module, for based on obtaining the controlled plant attribute information extracted in request from described configuration file, obtains the configuration file matched with described controlled plant attribute information.
Present invention also offers a kind of device obtaining configuration file, this device is assisted for obtaining the configuration file matched with controlled plant attribute information in controlled plant, and described controlled plant is connected with main control device, it is characterized in that, comprising:
Property extracting module, for extracting controlled plant attribute information, wherein, described controlled plant attribute information is used in described main control device, obtain the configuration file matched with it;
Request generation module, for based on described controlled plant attribute information, generating configuration file obtains request;
Request sending module, obtains request to described main control device for sending described configuration file.
In embodiments of the invention, because the attribute information of different controlled plant is different, therefore permitted to obtain the configuration file matched with controlled plant attribute information in main control device, thus configuration synchronization renewal controlled plant being carried out to differentiation and personalization can be achieved, meet the demand of data service fast development.
The aspect that the present invention adds and advantage will part provide in the following description, and these will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the schematic flow sheet of the method embodiment obtaining configuration file in the present invention;
Fig. 2 is the schematic flow sheet of the method preferred embodiment obtaining configuration file in the present invention;
Fig. 3 is the structural representation of the device embodiment obtaining configuration file in the present invention;
Fig. 4 is the structural representation of the device preferred embodiment obtaining configuration file in the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " also can comprise plural form.Should be further understood that, the wording used in specification of the present invention " comprises " and refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.Should be appreciated that, when we claim element to be " connected " or " coupling " to another element time, it can be directly connected or coupled to other elements, or also can there is intermediary element.In addition, " connection " used herein or " coupling " can comprise wireless connections or wirelessly to couple.Wording "and/or" used herein comprises one or more whole or arbitrary unit listing item be associated and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (comprising technical term and scientific terminology), have the meaning identical with the general understanding of the those of ordinary skill in field belonging to the present invention.It should also be understood that, those terms defined in such as general dictionary, should be understood to that there is the meaning consistent with the meaning in the context of prior art, unless and by specific definitions as here, otherwise can not explain by idealized or too formal implication.
In the present invention, main control device and controlled plant are the network equipment.The network equipment includes but not limited to server group, server cluster or the cloud be made up of a large amount of computer or the webserver based on cloud computing (CloudComputing) that single network server, multiple webserver form, wherein, cloud computing is the one of Distributed Calculation, the super virtual machine be made up of a group loosely-coupled computer collection.
Fig. 1 is the schematic flow sheet of the method embodiment obtaining configuration file in the present invention.
In the embodiment of the present invention, realize alternately between main control device and controlled plant obtaining configuration file.Present embodiment describes the reciprocal process between a main control device and a controlled plant, the reciprocal process between main control device and multiple controlled plant similarly, repeats no more.
Embodiments of the invention are described for Puppet configuration management system, and main control device and at least two controlled plant application Puppet configuration management systems, the present invention also can be applicable to other configuration management systems similar to Puppet.
Step S1210: controlled plant extracts controlled plant attribute information, wherein, controlled plant attribute information is used in main control device, obtain the configuration file matched with it; Step S1220: based on controlled plant attribute information, generating configuration file obtains request; Step S1230: send configuration file and obtain request to main control device; Step S1110: the configuration file that main control device receives from controlled plant obtains request, wherein, configuration file obtains request and comprises controlled plant attribute information; Step S1120: based on obtaining the controlled plant attribute information extracted in request from described configuration file, obtain the configuration file matched with described controlled plant attribute information; Step S1130: obtain request according to configuration file, is sent to controlled plant by the configuration file matched with controlled plant attribute information.
In embodiments of the invention, because the attribute information of different controlled plant is different, therefore, the multiple different configuration file matched respectively from the attribute information of each controlled plant can be obtained, thus configuration synchronization renewal controlled plant being carried out to differentiation and personalization can be achieved, meet the demand of data service fast development.
Step S1210: controlled plant extracts controlled plant attribute information, wherein, controlled plant attribute information is used in main control device, obtain the configuration file matched with it; Particularly, by the interface that calling system is inner relevant to each attribute, controlled plant attribute information is extracted.
Wherein, controlled plant attribute information comprises and being not limited to:
Geographical location information; Such as, controlled plant server, the particular geographic location of this server place machine room;
Data traffic types; Namely the data traffic types belonging to controlled plant, if controlled plant A1 is the web server supporting Web side navigation data service homepage part; Controlled plant A2 is the web server supporting Web side navigation data service subpage frame part; Data traffic types belonging to A1 and A2 is different.
The device-dependent message of controlled plant; The system performance information of controlled plant, hardware parameter etc. can be comprised.
Step S1220: based on controlled plant attribute information, generating configuration file obtains request.
Particularly, according to predetermined period, controlled plant generates the configuration file being used for system configuration synchronized update and obtains request, in generative process, controlled plant attribute information write configuration file is obtained request.
Step S1230: controlled plant sends configuration file and obtains request to main control device.
Step S1110: the configuration file that main control device receives from controlled plant obtains request, wherein, configuration file obtains request and comprises controlled plant attribute information.
Step S1120: based on obtaining the controlled plant attribute information extracted in request from configuration file, obtain the configuration file matched with controlled plant attribute information.
In one embodiment, the configuration file obtaining request generation/acquisition due to the previous configuration file according to other controlled plants can be kept at this locality of main control device, therefore, these previous configuration files are follow-up can reuse to be applied in the controlled plant with identical/similar controlled plant attribute information.Thus above-mentioned steps S1120 can be implemented as follows:
The configuration file relevant to controlled plant attribute information is searched, using as the configuration file matched with controlled plant attribute information in main control device.
In another embodiment, corresponding configuration file can be regenerated.As shown in Figure 2, step S1120 comprises step S2121 (not shown), step S2122 (not shown) and step S2123 (not shown); Step S2121: obtain and obtain the profile template of asking to match with configuration file; Step S2122: based on controlled plant attribute information, determines the attributive character information corresponding to profile template; Step S2123: by the relevant position of attributive character information write profile template, to generate the configuration file matched with controlled plant attribute information.
Step S2121: main control device obtains and obtains the profile template of asking to match with configuration file.
Such as, the information such as device id, configuring request type extracting controlled plant request is obtained from configuration file, by calling the external interface in preset profile template storehouse, get the profile template with the device id of controlled plant and configuring request type matching.Wherein, profile template is the template getting final product generating configuration file after specific location inserts respective attributes characteristic information generated in advance, asks multiple controlled plants of same configuring request type can use same profile template.
Step S2122: based on controlled plant attribute information, determines the attributive character information corresponding to profile template.
Particularly, the attributive character list corresponding to profile template is determined; According to controlled plant attribute information, in attributive character list, search the attributive character information determining to match with controlled plant attribute information.
Wherein, in advance for profile template generates attributive character list, attributive character list comprises the attributive character information inserted as profile template matched with controlled plant attribute information, and attributive character information can be used as filling information and inserts profile template to generate complete configuration file.
Step S2123: by the relevant position of attributive character information write profile template, to generate the configuration file matched with controlled plant attribute information.
In this preferred embodiment, the individual cultivation file for different controlled plant attribute information is generated by mould plate technique, namely for same configuring request type, only need to safeguard a set of profile template and the attributive character information for different controlled plant attribute at main control device end, and the multiple configuration file for multiple handheld device attribute of Maintenance free, in the server cluster with a large amount of controlled plant, a large amount of controlled plant is provided to hardware and the data processing pressure that during corresponding configuration file, greatly can reduce controlled plant, improve configuration file and efficiency is provided.
The embodiment of the method for above-mentioned acquisition configuration file can also comprise step S1130, so that the configuration file of acquisition is sent to controlled plant:
Step S1130: obtain request according to configuration file, is sent to controlled plant by the configuration file matched with controlled plant attribute information.
Such as, controlled plant A1 attribute information is geographical location information " Beijing ", and controlled plant A2 attribute information is geographical location information " Shanghai "; Main control device obtains request based on the configuration file from controlled plant A1 and obtains the information such as main control device ID, configuring request type in request from the configuration file of controlled plant A2, obtains and obtains the unified profile template of asking to match with these two configuration files; Subsequently, determine the attributive character list corresponding to profile template, it is " bj " that dependency feature list finds the attributive character information matched with geographical location information " Beijing ", the attributive character information matched with geographical location information " Shanghai " is " sh ", then two attributive character information are write respectively the corresponding position of profile template, generate two configuration files, subsequently two configuration files are sent to corresponding controlled plant A1 and A2 respectively, the configuration synchronization for controlled plant upgrades.
Fig. 3 is the structural representation of the device embodiment obtaining configuration file in the present invention.
In embodiments of the invention, controlled plant comprises the device for auxiliary acquisition configuration file, wherein, comprises property extracting module 3210, request generation module 3220 and request sending module 3230; Main control device comprises for the raw device obtaining configuration file, wherein, comprises request receiving module 3110 and configuration file generation module 3120.
The property extracting module 3210 of controlled plant extracts controlled plant attribute information, and wherein, controlled plant attribute information is used in main control device, obtain the configuration file matched with it; Request generation module 3220 is based on controlled plant attribute information, and generating configuration file obtains request; Request sending module 3230 sends configuration file and obtains request to main control device; The configuration file that the request receiving module 3110 of main control device receives from controlled plant obtains request, and wherein, configuration file obtains request and comprises controlled plant attribute information; Template obtains template 3120 based on obtaining the controlled plant attribute information extracted in request from configuration file, obtains the configuration file matched with controlled plant attribute information; Main control device obtains request according to configuration file, and the configuration file matched with controlled plant attribute information is sent to controlled plant.
In embodiments of the invention, because the attribute information of different controlled plant is different, therefore, the multiple different configuration file matched respectively from the attribute information of each controlled plant can be obtained, thus configuration synchronization renewal controlled plant being carried out to differentiation and personalization can be achieved, meet the demand of data service fast development.
The property extracting module 3210 of controlled plant extracts controlled plant attribute information, and wherein, controlled plant attribute information is used in main control device, obtain the configuration file matched with it; Particularly, by the interface that calling system is inner relevant to each attribute, controlled plant attribute information is extracted.
Wherein, controlled plant attribute information comprises and being not limited to:
Geographical location information; Such as, controlled plant server, the particular geographic location of this server place machine room;
Data traffic types; Namely the data traffic types belonging to controlled plant, if controlled plant A1 is the web server supporting Web side navigation data service homepage part; Controlled plant A2 is the web server supporting Web side navigation data service subpage frame part; Data traffic types belonging to A1 and A2 is different.
The device-dependent message of controlled plant, can comprise the system performance information of controlled plant, hardware parameter etc.
Request generation module 3220 is based on controlled plant attribute information, and generating configuration file obtains request.
Particularly, according to predetermined period, controlled plant generates the configuration file being used for system configuration synchronized update and obtains request, in generative process, controlled plant attribute information write configuration file is obtained request.
Request sending module 3230 sends configuration file and obtains request to main control device.
The configuration file that the request receiving module 3110 of main control device receives from controlled plant obtains request, and wherein, configuration file obtains request and comprises controlled plant attribute information.
Configuration file acquisition module 3120, based on obtaining the controlled plant attribute information extracted in request from configuration file, obtains the configuration file matched with controlled plant attribute information.
In one embodiment, the configuration file obtaining request generation/acquisition due to the previous configuration file according to other controlled plants can be kept at this locality of main control device, therefore, these previous configuration files are follow-up can reuse to be applied in the controlled plant with identical/similar controlled plant attribute information.Thus above-mentioned configuration file acquisition module can search the configuration file relevant to controlled plant attribute information in main control device, using as the configuration file matched with controlled plant attribute information.
In another embodiment, configuration file acquisition module also can regenerate corresponding configuration file.As shown in Figure 4, configuration file acquisition module comprises template acquisition subtemplate 4121, attributive character determination submodule 4122 and configuration file generation submodule 4123; Template obtains subtemplate 4121 acquisition and obtains the profile template of asking to match with configuration file; Attributive character determination submodule 4122, based on controlled plant attribute information, determines the attributive character information corresponding to profile template; Configuration file generates submodule 4123 by the relevant position of attributive character information write profile template, to generate the configuration file matched with controlled plant attribute information.
Template obtains subtemplate 4121 acquisition and obtains the profile template of asking to match with configuration file.
Such as, the information such as device id, configuring request type extracting controlled plant request is obtained from configuration file, by calling the external interface in preset profile template storehouse, get the profile template with the device id of controlled plant and configuring request type matching.Wherein, profile template is the template getting final product generating configuration file after specific location inserts respective attributes characteristic information generated in advance, asks multiple controlled plants of same configuring request type can use same profile template.
Attributive character determination submodule 4122, based on controlled plant attribute information, determines the attributive character information corresponding to profile template.
Particularly (with reference to Fig. 4), attributive character determination submodule 4122 comprises feature list determining unit (not shown) and searches unit (not shown); Attributive character determination submodule 4122 determines the attributive character list corresponding to profile template; Search unit according to controlled plant attribute information, in attributive character list, search the attributive character information determining to match with controlled plant attribute information.
Wherein, in advance for profile template generates attributive character list, attributive character list comprises the attributive character information inserted as profile template matched with controlled plant attribute information, and attributive character information can be used as filling information and inserts profile template to generate complete configuration file.
Configuration file generates submodule 4123 by the relevant position of attributive character information write profile template, to generate the configuration file matched with controlled plant attribute information.In this preferred embodiment, the individual cultivation file for different controlled plant attribute information is generated by mould plate technique, namely for same configuring request type, only need to safeguard a set of profile template and the attributive character information for different controlled plant attribute at main control device end, and the multiple configuration file for multiple handheld device attribute of Maintenance free, in the server cluster with a large amount of controlled plant, a large amount of controlled plant is provided to hardware and the data processing pressure that during corresponding configuration file, greatly can reduce controlled plant, improve configuration file and efficiency is provided.
Main control device also can comprise configuration file sending module (not shown), for obtaining request according to configuration file, the configuration file matched with controlled plant attribute information is sent to controlled plant.
Those skilled in the art of the present technique are appreciated that the one or more equipment that the present invention includes and relate to for performing in operation described in the application.These equipment for required object and specialized designs and manufacture, or also can comprise the known device in all-purpose computer.These equipment have storage computer program within it, and these computer programs optionally activate or reconstruct.Such computer program can be stored in equipment (such as, computer) in computer-readable recording medium or be stored in and be suitable for store electrons instruction and be coupled in the medium of any type of bus respectively, described computer-readable medium includes but not limited to that the dish of any type (comprises floppy disk, hard disk, CD, CD-ROM, and magneto optical disk), ROM (Read-OnlyMemory, read-only memory), RAM (RandomAccessMemory, memory immediately), EPROM (ErasableProgrammableRead-OnlyMemory, Erarable Programmable Read only Memory), EEPROM (ElectricallyErasableProgrammableRead-OnlyMemory, EEPROM (Electrically Erasable Programmable Read Only Memo)), flash memory, magnetic card or light card.Namely, computer-readable recording medium comprises and being stored or any medium of transmission information with the form that can read by equipment (such as, computer).
Those skilled in the art of the present technique are appreciated that the combination that can realize the frame in each frame in these structure charts and/or block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph with computer program instructions.Those skilled in the art of the present technique are appreciated that, the processor that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other programmable data processing methods realizes, thus is performed the scheme of specifying in the frame of structure chart disclosed by the invention and/or block diagram and/or flow graph or multiple frame by the processor of computer or other programmable data processing methods.
Those skilled in the art of the present technique are appreciated that various operations, method, the step in flow process, measure, the scheme discussed in the present invention can be replaced, changes, combines or delete.Further, there is various operations, method, other steps in flow process, measure, the scheme discussed in the present invention also can be replaced, change, reset, decompose, combine or delete.Further, of the prior art have also can be replaced with the step in operation various disclosed in the present invention, method, flow process, measure, scheme, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. obtain a method for configuration file, be applied to main control device for generating the configuration file matched with controlled plant attribute information, described main control device is connected with at least two controlled plants, comprising:
The configuration file received from controlled plant obtains request, and wherein, described configuration file obtains request and comprises controlled plant attribute information;
Based on obtaining the controlled plant attribute information extracted in request from described configuration file, obtain the configuration file matched with described controlled plant attribute information.
2. the method for acquisition configuration file according to claim 1, wherein, based on obtaining the controlled plant attribute information extracted in request from described configuration file, obtains the configuration file matched with described controlled plant attribute information, specifically comprises:
Obtain and obtain the profile template of asking to match with described configuration file;
Based on described controlled plant attribute information, determine the attributive character information corresponding to described profile template;
Described attributive character information is write the relevant position of described profile template, to generate the configuration file matched with described controlled plant attribute information.
3. the method for acquisition configuration file according to claim 2, wherein, based on described controlled plant attribute information, determine the attributive character information corresponding to described profile template, specifically comprise:
Determine the attributive character list corresponding to described profile template;
According to described controlled plant attribute information, search to determine and the attributive character information that described controlled plant attribute information matches in described attributive character list.
4. the method for the acquisition configuration file according to any one of claim 1-3, wherein, described at least two controlled plants have incomplete same described controlled plant attribute information.
5. obtain a method for configuration file, be applied to controlled plant to assist for obtaining the configuration file matched with controlled plant attribute information, described controlled plant is connected with main control device, it is characterized in that, comprising:
Extract controlled plant attribute information, wherein, described controlled plant attribute information is used in described main control device, obtain the configuration file matched with it;
Based on described controlled plant attribute information, generating configuration file obtains request;
Send described configuration file and obtain request to described main control device.
6. obtain a device for configuration file, this device is for obtaining the configuration file matched with controlled plant attribute information in main control device, and described main control device is connected with at least two controlled plants, comprising:
Request receiving module, obtains request for the configuration file received from controlled plant, and wherein, described configuration file obtains request and comprises controlled plant attribute information;
Configuration file acquisition module, for based on obtaining the controlled plant attribute information extracted in request from described configuration file, obtains the configuration file matched with described controlled plant attribute information.
7. the device of acquisition configuration file according to claim 6, wherein, described configuration file acquisition module specifically comprises:
Template obtains subtemplate, for obtaining the profile template obtaining with described configuration file and ask to match;
Attributive character determination submodule, for based on described controlled plant attribute information, determines the attributive character information corresponding to described profile template;
Configuration file generates submodule, for described attributive character information being write the relevant position of described profile template, to generate the configuration file matched with described controlled plant attribute information.
8. the device of acquisition configuration file according to claim 7, wherein, described attributive character determination submodule specifically comprises:
Feature list determining unit, for determining the attributive character list corresponding to described profile template;
Search unit, for according to described controlled plant attribute information, search to determine and the attributive character information that described controlled plant attribute information matches in described attributive character list.
9. the device of the acquisition configuration file according to any one of claim 6-8, wherein, described at least two controlled plants have incomplete same described controlled plant attribute information.
10. obtain a device for configuration file, this device is assisted for obtaining the configuration file matched with controlled plant attribute information in controlled plant, and described controlled plant is connected with main control device, it is characterized in that, comprising:
Property extracting module, for extracting controlled plant attribute information, wherein, described controlled plant attribute information is used in described main control device, obtain the configuration file matched with it;
Request generation module, for based on described controlled plant attribute information, generating configuration file obtains request;
Request sending module, obtains request to described main control device for sending described configuration file.
CN201510363871.4A 2015-06-26 2015-06-26 Configuration file obtaining method and device Pending CN105100211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510363871.4A CN105100211A (en) 2015-06-26 2015-06-26 Configuration file obtaining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510363871.4A CN105100211A (en) 2015-06-26 2015-06-26 Configuration file obtaining method and device

Publications (1)

Publication Number Publication Date
CN105100211A true CN105100211A (en) 2015-11-25

Family

ID=54579728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510363871.4A Pending CN105100211A (en) 2015-06-26 2015-06-26 Configuration file obtaining method and device

Country Status (1)

Country Link
CN (1) CN105100211A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713471A (en) * 2016-12-29 2017-05-24 北京奇艺世纪科技有限公司 Method and device for acquiring configuration file
CN106789377A (en) * 2017-03-24 2017-05-31 聚好看科技股份有限公司 The service parameter update method of network element cluster
CN108170477A (en) * 2017-11-17 2018-06-15 上海微波技术研究所(中国电子科技集团公司第五十研究所) Automatically the method that configuration file is produced in SCA software radios
CN108345449A (en) * 2017-12-25 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of information processing method, device, storage medium and computer equipment
CN109379325A (en) * 2018-08-21 2019-02-22 广州数源畅联科技有限公司 A kind of backup client delivery method without user configuration
CN111400145A (en) * 2020-03-31 2020-07-10 厦门科灿信息技术有限公司 Configuration method and device of flow chart monitoring page and terminal equipment
CN117193886A (en) * 2023-11-06 2023-12-08 成都科江科技有限公司 Dynamic loading method for configuration file of industrial control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321080A (en) * 2007-06-04 2008-12-10 华为技术有限公司 Method for configuring network appliance, network appliance and network system
CN102006183A (en) * 2010-11-12 2011-04-06 百度在线网络技术(北京)有限公司 Configuration parameter based Method and configuration equipment for configuring network equipment
CN102064966A (en) * 2010-12-29 2011-05-18 北京世纪互联工程技术服务有限公司 Configuration method, server, equipment and system
CN104519100A (en) * 2013-09-29 2015-04-15 重庆新媒农信科技有限公司 Method for automatic heterogeneous platform file synchronization and puppet server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321080A (en) * 2007-06-04 2008-12-10 华为技术有限公司 Method for configuring network appliance, network appliance and network system
CN102006183A (en) * 2010-11-12 2011-04-06 百度在线网络技术(北京)有限公司 Configuration parameter based Method and configuration equipment for configuring network equipment
CN102064966A (en) * 2010-12-29 2011-05-18 北京世纪互联工程技术服务有限公司 Configuration method, server, equipment and system
CN104519100A (en) * 2013-09-29 2015-04-15 重庆新媒农信科技有限公司 Method for automatic heterogeneous platform file synchronization and puppet server

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713471A (en) * 2016-12-29 2017-05-24 北京奇艺世纪科技有限公司 Method and device for acquiring configuration file
CN106713471B (en) * 2016-12-29 2019-12-13 北京奇艺世纪科技有限公司 Configuration file acquisition method and device
CN106789377A (en) * 2017-03-24 2017-05-31 聚好看科技股份有限公司 The service parameter update method of network element cluster
CN108170477A (en) * 2017-11-17 2018-06-15 上海微波技术研究所(中国电子科技集团公司第五十研究所) Automatically the method that configuration file is produced in SCA software radios
CN108170477B (en) * 2017-11-17 2020-12-15 上海微波技术研究所(中国电子科技集团公司第五十研究所) Method for automatically producing configuration file in SCA software radio station
CN108345449A (en) * 2017-12-25 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of information processing method, device, storage medium and computer equipment
CN109379325A (en) * 2018-08-21 2019-02-22 广州数源畅联科技有限公司 A kind of backup client delivery method without user configuration
CN109379325B (en) * 2018-08-21 2022-03-18 广州数源畅联科技有限公司 Backup client delivery method without user configuration
CN111400145A (en) * 2020-03-31 2020-07-10 厦门科灿信息技术有限公司 Configuration method and device of flow chart monitoring page and terminal equipment
CN111400145B (en) * 2020-03-31 2022-09-09 厦门科灿信息技术有限公司 Configuration method and device of flow chart monitoring page and terminal equipment
CN117193886A (en) * 2023-11-06 2023-12-08 成都科江科技有限公司 Dynamic loading method for configuration file of industrial control system
CN117193886B (en) * 2023-11-06 2024-01-05 成都科江科技有限公司 Dynamic loading method for configuration file of industrial control system

Similar Documents

Publication Publication Date Title
CN105100211A (en) Configuration file obtaining method and device
CN106649378B (en) Data synchronization method and device
EP3117349B1 (en) System and method for massively parallel processing database
CN105631028B (en) Database cluster function implementation method and system
CN107220142B (en) Method and device for executing data recovery operation
JP6521402B2 (en) Method for updating data table of KeyValue database and apparatus for updating table data
CN109710703A (en) A kind of generation method and device of genetic connection network
CN105512297A (en) Distributed stream-oriented computation based spatial data processing method and system
JP2020523700A (en) Distributed search and index update method, system, server, and computer device
CN103635886B (en) Information processing system, data management method, information processing device, and control method thereof
US20150363484A1 (en) Storing and identifying metadata through extended properties in a historization system
CN105468372A (en) Virtual machine template mirror image management method and system and virtual machine migration method and system
CN109144785A (en) Method and apparatus for Backup Data
JP2015026207A (en) File management program, file management device and file management method
CN105608228A (en) High-efficiency distributed RDF data storage method
CN103678490B (en) Deep Web query interface clustering method based on Hadoop platform
CN103198100A (en) Renaming method and renaming system for file synchronization among multiple devices
CN103631815A (en) Method, device and system for obtaining check points in block synchronization parallel computing
CN102857949A (en) Method and device for planning data consistency guarantees
US20140108367A1 (en) Client apparatus and database server for resumable transaction and method thereof
CN108073620A (en) A kind of method for quickly retrieving based on graph data structure
CN102541811B (en) On-demand computing-based data analysis device and method for analysis factors
CN103744880A (en) DNA data managing method and system based on cloud computing
CN102413154B (en) Method of data information synchronization between systems and apparatus thereof
CN106936911B (en) Lightweight distributed computing platform and computing resource management and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125