CN109660377A - Unified configuring management method, service server and operation and maintenance management platform - Google Patents
Unified configuring management method, service server and operation and maintenance management platform Download PDFInfo
- Publication number
- CN109660377A CN109660377A CN201710947840.2A CN201710947840A CN109660377A CN 109660377 A CN109660377 A CN 109660377A CN 201710947840 A CN201710947840 A CN 201710947840A CN 109660377 A CN109660377 A CN 109660377A
- Authority
- CN
- China
- Prior art keywords
- file
- configuration
- template
- service server
- resource
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/22—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of unified configuring management method, service server and operation and maintenance management platforms, this method comprises: receiving the resource file that configuration center issues;According to resource file, Command Line Parsing is carried out in conjunction with preset dictionary file, template file, generates target configuration file.The service server includes: template file, including a variety of customized template styles;Dictionary file, the corresponding relationship including template file and target configuration file;Applications client, the resource file issued for receiving configuration center are configured, and target configuration file is generated in conjunction with dictionary file, template file progress Command Line Parsing according to resource file.Operation and maintenance management platform includes: interface manager module;Configuration center, for receiving the input operation carried out in interface manager module and accordingly transmission resource file and activate message;It is also used to receive the message of service server return.The present invention realizes the unified configuration management system of a set of lightweight.
Description
Technical field
The present invention relates to communication application more particularly to a kind of unified configuring management method, service server and behaviour
Make maintenance management platform.
Background technique
Unified configuration management tool is capable of providing visualization interface, greatly makes the change of configuration file simple and convenient
Change, while can also mitigate or reduce because manual modification configuration file causes the risk of failure.For whole system, uniformly match
Setting management tool is the indispensable important component of whole system.
The open source configuration management tool of current some mould plate techniques based on GO language, such as configuration management tool confd,
Common usage is used cooperatively with etcd, consul etc., and the relationship of client and server-side is constituted, by using being stored in
The data of etcd, consul etc. keep the last state of configuration file, it can also be used to add again when configuration file changes
Carry application program.In other words, all services can be reconfigured with the information for being stored in etcd, consul etc..It is such
Configuration frame is more complicated, larger, and emphasis is suitable for distributed structure/architecture system, and advantage is so that distributed type assemblies system
The function that system meets service discovery, configuration is shared.It is less especially for some equipment, answer but for the system of non-serving
With better simply usage scenario, such advantage becomes short slab instead, using the configuration management system scheme of deployment open source, fits
It is anti-.Key is not enough the support of the configuration item of repeatable block type, thus urgently lightweight framework, advantage be to have it is easy-to-use
Property high interface, configuration flexibly, the comprehensive configuration management tool system of configuration item type.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of unified configuring management method, service server and operation dimensions
Pillar platform applies center interface with postponing, to the last state of service server transmitting configuration, notice configuration by configuring
Applications client is parsed, is loaded, is come into force, and dictionary file is based on, and template file generates final target configuration file.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
According to an aspect of the present invention, a kind of unified configuring management method is provided, comprising:
Receive the resource file that configuration center issues;
According to the resource file, Command Line Parsing is carried out in conjunction with preset dictionary file, template file, generates target configuration
File.
It is described according to resource file in a possible design, configuration solution is carried out in conjunction with dictionary file, template file
It analyses, before generation target configuration file, comprising:
Receive the activate message that the configuration center issues;
Examine whether the activate message is legitimate request;If so,
Judge that the resource file whether there is.
In a possible design, after the generation target configuration file, further includes:
Dynamic is carried out to the target configuration file to come into force;
The configuration center is back to according to the result returning response message that comes into force, and by the response message.
In a possible design, the template file includes repeating to configure;It is described according to the resource file, in conjunction with
Preset dictionary file, template file carry out Command Line Parsing, generate target configuration file and include:
Legitimacy is checked from resource file by keyword group using getvs, getbs function, and is obtained corresponding heavy
Multiple item configuration information;
Corresponding N number of value for repeating configuration is updated into the target configuration file.
According to another aspect of the present invention, a kind of service server is provided, comprising: template file, including a variety of make by oneself
The template style of justice, the template style include repeating configuration item;
Dictionary file, the corresponding relationship including the template file and target configuration file;
Configure applications client, the resource file issued for receiving configuration center, and according to the resource file, in conjunction with
The dictionary file, template file carry out Command Line Parsing, generate target configuration file.
In a possible design, the dictionary file further includes that the configuration item of some configuration file is separately provided
Dynamic come into force order.
It further include solidification configuration file and dynamic configuration file in a possible design;The dynamic configuration text
Part is used to update configuration according to the template file, dictionary file and resource file come dynamic.
In a possible design, the configuration applications client is also used to carry out dynamic to the target configuration file
It comes into force;The configuration center is back to according to the result returning response message that comes into force, and by the response message.
In a possible design, the configuration applications client is also used to:
Receive the activate message that the configuration center issues;
Examine whether the activate message is legitimate request;If so,
Judge that the resource file whether there is.
According to another aspect of the present invention, a kind of operation and maintenance management platform is provided, comprising:
Interface manager module, for showing at least one in configuration menu, activator button or configuration operating result;
Configuration center, for receive the interface manager module carry out input operation and accordingly transmission resource file with
And activate message;It is also used to receive the message of service server return.
Unified configuring management method, service server, the operation and maintenance management platform of the embodiment of the present invention introduce dictionary text
Part, template file, resource file, configuration manager framework realize the unified configuration management system of a set of lightweight.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the unified configuration management system of the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the operation and maintenance management platform of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the service server of the embodiment of the present invention;
Fig. 4 is the flow diagram of the unified configuring management method of the embodiment of the present invention;
Fig. 5 is the flow diagram of the unified configuring management method of another embodiment of the present invention;
Fig. 6 is the flow diagram of the unified configuring management method of another embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
As shown in Figure 1, a kind of unified configuration management system provided by the invention, including the operation dimension that can be mutually communicated
Pillar platform (OMMP) 10 and service server (SCP) 20.Wherein Operation and Maintenance platform 10 can use two-shipper, active and standby side
Formula.Service server 20 is more single machines, with the relationship (N >=1) that operation and maintenance management platform is 1-N.
In deployment, in addition to normal business procedure is disposed, while the relevant deployment of configuration interfaceization also will do it, including
Configuration manager, template file, the deployment of dictionary file and program starting, the storage etc. of SCP facility information.
After deployment is normal, the update of configuration item is carried out in operation and maintenance management platform, then selects corresponding SCP information
Allocation activation is carried out, resource file resource.cfg can be issued to SCP by OMMP at this time, and HTTP will successfully be sent afterwards by issuing
POST request notifies configuration manager, thus configuration manager resolving resource file, more newly-generated final goal configuration text
Part and dynamic come into force,
Processing result is returned into OMMP simultaneously.
It is issued in addition, OMMP periodically, periodically can carry out resource file.It can be used except HTTP between OMMP and SCP
Message mechanism.The non-file modes such as message mode transmitting data can be used in resource file between OMMP and SCP.
As shown in Fig. 2, operation and maintenance management platform 10 provided in an embodiment of the present invention includes configuring for storage service
Database 11, interface manager module 12 and configuration center 13.Wherein:
Interface manager module 12, for showing at least one in configuration menu, activator button or configuration operating result;?
Operation and maintenance management platform carries out the update of configuration item by interface manager module, and corresponding SCP information is then selected to be matched
Set activation.
Configuration center 13 is connected with interface manager module 12;For receiving the input behaviour carried out in the interface manager module
Make and sends resource file resource.cfg and activate message accordingly;Generally, after resource file issues successfully, then will hair
Send HTTP POST request i.e. activate message notice service server.Configuration center 13 is also used to receive service server return
Message, the message of return can be used as configuration operating result and is shown by interface manager module.
In the present embodiment, above-mentioned resource file uses JSON format, i.e. OMMP reads the data of interface configurations from database
After taking, this document is written.OMMP can periodically, timing carries out resource file and issues;Resource file can between OMMP and SCP
To use file mode to transmit;Also the non-file modes such as HTTP or the message mode of other agreements transmitting data can be used.
As shown in figure 3, service server provided in an embodiment of the present invention, comprising: configuration applications client 21, template file
22, dictionary file 23.
Template file (template.tmpl) 22 includes a variety of customized template styles, and the template style includes weight
Multiple configuration item;More specifically, mould plate technique of the template file based on GO language, introduces customized template style, support general
Common configuration item, duplicate keys, repeat block's attribute configuration.
Above-mentioned dictionary file (dict.cfg) 23 uses JSON format, describes pair of template file and target configuration file
It should be related to, wherein file path is set as relative path, relative to master catalogue.Generally, keyword needs in the resource file
It is consistent with the interface keyword in template file.
In the present embodiment, dictionary file further includes the life that comes into force to the dynamic that the configuration item of some configuration file is separately provided
It enables.But in another embodiment of the invention, since all configurations support the same order to come into force, therefore directly by dynamic command
Solidify in configurator, is not embodied in dictionary file.
It configures applications client (confer), being includes LUA script and the configuration application program based on go language development.
LUA script is accepted business after program process instruction, carries out the legal verification control of message, and call configuration application program while inciting somebody to action
Processing result notifies OMMP, for showing configuration file processing result.
More specifically, the mould plate technique of configuration applications client GO language, parses custom-configuring in template file
Format obtains resource file initial data according to the corresponding relationship in dictionary file and ultimately generates target configuration file, goes forward side by side
Row configuration dynamic comes into force.
It is aided with the Command Line Parsing process that specific example further illustrates configuration applications client below.
When template file uses common configuration item:
Target configuration example: samplecmd value1
Template example: samplecmd { { getv " sample1/key1 " } }
Examples of resources: " sample1 ":
"key1":"value1"
}
More specifically, the parsing of getv function representation is general in template file when configuring applications client progress Command Line Parsing
Lead to KV format configuration item, the content representation in braces is parsed, and the content of extended formatting can intactly update
Into target configuration file, wherein keyword group sample1/key1, the range of keyword is arranged with double quotation marks, and slash is divided,
Title is consistent with resource file interface, at this time according to the original configuration data in resource file, searches corresponding sample1-
Key1 keyword group, and corresponding value (value1) is obtained, to updating this value into target configuration file, become
samplecmd value1。
When template file uses duplicate keys:
Target configuration example: there are N number of duplicate keys
samplecmd dupvalue1
.........
samplecmd dupvalueN
Template example:
{{range getvs"dupsample/dupkey"}}samplecmd{{.}}
{{end}}
More specifically, getvs function is configured for parsing duplicate keys when configuring applications client progress Command Line Parsing,
Content representation in braces is parsed, and the content of extended formatting can intactly update target configuration file
In, wherein keyword group is dupsample/dupkey, with the range of double quotation marks setting keyword, slash segmentation, title and money
Source file interface is consistent.
Function getvs can be checked legitimacy and be obtained from resource file by keyword group dupsample-dupkey
Take corresponding duplicate keys configuration information.Finally by it is corresponding it is N number of repeat Configuration Values (dupvalue1 ..., dupvalueN, N >
1) it updates into target configuration file.
Range function representation loops through the content that getvs is obtained, that is, loops through and repeat entry value.
Point indicates extra process repeating entry value.
End indicates to terminate mark.
When template file uses repeatable block:
Target configuration file example: a total of N group repeatable block, wherein including 5 sub- bid values in each group of example.
Samplecmd cmd1=v11, cmd2=v12, cmd3=v13, cmd4=v14, cmd5=v15
......
Samplecmd cmd1=vN1, cmd2=vN2, cmd3=vN3, cmd4=vN4, cmd5=vN5
Template example:
Range $ v:=getbs " dupblocksample/key1 | key2 | key3 | key4 | key5 " }
{ { $ data:=split ($ v) " | " } }
Samplecmd cmd1={ { index $ data 0 } }, cmd2={ { index $ data 1 } }, cmd3={ { index
$ data 2 } }, cmd4={ { index $ data 3 } }, cmd5={ { index $ data 4 } }
{{end}}
Examples of resources: the repeated data of N group is shared, includes 5 subdatas in each piecemeal
More specifically, function getbs is for parsing matching for repeatable block when configuring applications client progress Command Line Parsing
It sets, the content representation in braces is parsed, and the content of extended formatting can intactly update target configuration text
In part, keyword group dupblocksample/key1 | key2 | key3 | key4 | key5, with the model of double quotation marks setting keyword
It encloses, slash segmentation, title is consistent with resource file interface, wherein the title dupblocksample of repeatable block and matching for repeatable block
It sets item to divide with slash, wherein dividing between each configuration item with vertical line, slash and vertical line are all solidification formats.To repeatable block and
Configuration item number in each piece is limited without number.
Function getbs can pass through dupblocksample/key1 | key2 | key3 | and key4 | key5 keyword group, from resource
Legitimacy is checked in file and obtains corresponding repeatable block configuration information respectively, and each group of repeatable block subcommand is corresponding after acquisition
Data value divided with vertical line, i.e., first group of data value is v11 | v12 | v13 | v14 | v15.And so on.
Corresponding N group is finally repeated into configuration block, the sub- key corresponding data value for including by every group successively updates and arrives target
In configuration file.
Range function representation loops through the content that getvs is obtained, that is, loops through and repeat entry value.
{ { $ data:=split ($ v) " | " } } indicates the corresponding configuration data of each group of repeatable block for obtaining getbs
Vertical line is parsed to split, i.e., by v11 | v12 | v13 | v14 | v15 be split as individual 5 values (v11, v12, v13, v14,
v15)。
{ { index data 0 } } indicates to obtain the 0th data after above-mentioned fractionation, i.e. acquisition v11.
Function split is used to be partitioned into the value of all configuration items using vertical line as separator.
Which field separated obtained for specified by function index.
By the specifically used explanation above to resource file, template file, dictionary file, it is based on light-weighted designed holder
Structure can support the configuration item of different attribute, based on template generation target configuration file and come into force, so that configuration system
It unites more convenient and convenient.
On the basis of Fig. 3 corresponding embodiment, another embodiment of the present invention provides service server in, further include industry
It is engaged in configuration file, it is business configuration file is regular for solidification configuration file, dynamic configuration file in the present embodiment.Solidification configuration text
Part do not need carry out configuration interface, dynamic configuration file according to template file, dictionary file and resource data come dynamically more
New configuration.Dynamic configuration file provides default value simultaneously, for using default configuration in the case where no interface configuration server
Processing business request, and manual modification can be supported to configure.
On the basis of Fig. 3 corresponding embodiment, another embodiment of the present invention provides service server in, the configuration
Applications client is also used to:
Receive the activate message that the configuration center issues;
Examine whether the activate message is legitimate request;If so,
Judge that the resource file whether there is.
In another embodiment of the invention, the configuration applications client is also used to carry out the target configuration file
Dynamic comes into force;Institute is back to according to the result returning response message that comes into force, and by response message described in the configuration applications client
State configuration center.
In the specific implementation, configuration applications client supports HTTP or HTTPS, is assisted between OMMP and business based on HTTP
View, POST method, message body are JSON format, the meaning including this request message.The sound that business configuration program returns simultaneously
It answers and JSON format, the result including this processing.
Following example:
Message port: 9090
Message pathway: http://xxx.xxx.xxx.xxx:9090/srvcfg/
Request body:
{
"action":"loadfile",
"cfginfo":"cfg1"
}
Respond body:
{
"result":"true/false",
"desc":"success"
}
As shown in figure 4, the embodiment of the present invention provides a kind of unified configuring management method, it is applied to service server, including
Step:
101, start.
In the specific implementation, data configuration, while original configuration data meeting can be first carried out on configuration center (OMMP)
It is stored in database profession.Above-mentioned data configuration includes the change of business configuration item, chooses service server (SCP) etc..
102, the resource file resource.cfg that configuration center issues is received.
Configuration center can periodically, timing carries out resource file and issues;Resource between configuration center and service server
File mode transmission can be used in file;Also the non-file modes such as HTTP or the message mode of other agreements transmitting number can be used
According to.
103, according to the resource file, Command Line Parsing is carried out in conjunction with preset dictionary file, template file, generates mesh
Mark configuration file.
Wherein, resource file, dictionary file, template file and resource file corresponding in Fig. 3, dictionary file, template are literary
Part is consistent, and details are not described herein.
104, terminate.
As shown in figure 5, another embodiment of the present invention provides unified configuring management method, be applied to service server, packet
Include step:
201, start.
In the specific implementation, data configuration, while original configuration data meeting can be first carried out on configuration center (OMMP)
It is stored in database profession.Above-mentioned data configuration includes the change of business configuration item, chooses service server (SCP) etc..
202, the resource file resource.cfg that configuration center issues is received.
Configuration center can periodically, timing carries out resource file and issues;Resource between configuration center and service server
File mode transmission can be used in file;Also the non-file modes such as HTTP or the message mode of other agreements transmitting number can be used
According to.
203, the activate message that the configuration center issues is received;
The message mechanism of other agreements except HTTP or HTTP can be used between configuration center and service server.
204, examine whether the activate message is legitimate request;If so, entering step 205;If it is not, then such as step
Shown in 210, failure response is returned.
205, judge that the resource file whether there is.If so, entering step 206;If it is not, then as indicated in step 210,
Return to failure response.
Before judging that the resource file whether there is, it can also be executed according to the specific field in request body different
Action field in operation, such as request body, loadfile indicate that load document, cfginfo field indicate to execute specific
Which file, meaning are customized.
206, according to the resource file, Command Line Parsing is carried out in conjunction with preset dictionary file, template file, generates mesh
Mark configuration file.
Wherein, resource file, dictionary file, template file and resource file corresponding in Fig. 3, dictionary file, template are literary
Part is consistent, and details are not described herein.
207, judge whether Command Line Parsing succeeds;If so, entering step 208;If it is not, being returned then as shown in step 210
Return failure response.
Generally, it if dictionary file, template file are not present or exception, resource data are unreasonable etc., is all lost as parsing
It loses.
208, dynamic is carried out to come into force.
209, judge that dynamic comes into force whether to succeed;If it is not, then entering step 210;If so, entering step 211.
210, failure response is returned.
211, success response is returned.
As it can be seen that in the present embodiment, after the generation target configuration file, further includes:
Dynamic is carried out to the target configuration file to come into force;And according to the result returning response message that comes into force, and by the sound
Message is answered to be back to the configuration center.More specifically, according to response interface, response message returns to configuration center, for opening up
Show.
As shown in figure 5, another embodiment of the present invention provides unified configuring management method, be applied to service server, should
Service server is service server provided in an embodiment of the present invention, which includes configuration applications client, dynamic
Configuration file, solidification configuration file, the method comprising the steps of:
301, start in service server end program, i.e. starting configuration applications client.
302, configuration data is carried out in operation and maintenance management platform;
The data of original configuration may be stored in the database of operation and maintenance management platform.Operation and maintenance management platform
In configuration center can from database reading after generate original resource file.
303, operation and maintenance management platform down distributing resource file.
In the specific implementation, it can be issued on service server using ftp/sftp mode.
304, operation and maintenance management platform notifies activate message.
Operation and maintenance management platform can send the configuration applications client of message informing service server based on HTTP.
305, service server more new configuration file Mobile state of going forward side by side comes into force.
More specifically, service server is matched according to the resource file in conjunction with preset dictionary file, template file
Parsing is set, target configuration file is generated.
306, service server return response result.
Optionally, operation and maintenance management platform can be shown the result of configuration operation.
On the basis of the same configuration method that any of the above-described embodiment provides, the template file includes repeating to match
It sets;It includes duplicate keys and stressed block that this, which repeats configuration,;It is described according to the resource file, in conjunction with preset
Dictionary file, template file carry out Command Line Parsing, generate target configuration file and include:
Legitimacy is checked from resource file by keyword group using getvs function, and obtains corresponding duplicate keys and matches
Confidence breath;
Corresponding N number of value for repeating configuration is updated into the target configuration file.
The present invention provides a kind of uniformly configuring management method, service server and operation and maintenance management platform, introduces dictionary
File, template file, resource file, configuration manager framework, construction ease for use is high, configuration is flexible, coupling is low, lightweight
Robustness configuration management system.Original configuration data are stored in database, configure by configuring using center interface with postponing
The last state that center is configured using the file mode transmitting of json format, HTTP message notice configuration applications client are solved
It analyses, load, come into force, be based on dictionary file, applications client dynamic updates final file destination.Weight has been neatly realized simultaneously
The dynamic of the use in a template of multiblock type configuration item and configuration item comes into force load.
It, can be with using the present invention present invention could apply to the interfaceization of configuration file and templating design, development field
The facilitation for significantly promoting configuration system, reduces the coupling at interface and business, also reduces because of manual modification configuration introducing
Failure risk probability.Multiple compatibility is considered when message interface, file interface design simultaneously, accomplishes to be easy to extend.
Preferred embodiments of the present invention have been described above with reference to the accompanying drawings, not thereby limiting the scope of the invention.This
Without departing from the scope and spirit of the invention, there are many variations to implement the present invention by field technical staff, for example as one
The feature of a embodiment can be used for another embodiment and obtain another embodiment.It is all to use institute within technical concept of the invention
Any modifications, equivalent replacements, and improvements of work, should all be within interest field of the invention.
Claims (10)
1. a kind of unified configuring management method, is applied to service server characterized by comprising
Receive the resource file that configuration center issues;
According to the resource file, Command Line Parsing is carried out in conjunction with preset dictionary file, template file, generates target configuration text
Part.
2. unified configuring management method according to claim 1, which is characterized in that it is described according to resource file, in conjunction with word
Allusion quotation file, template file carry out Command Line Parsing, generate target configuration file before, comprising:
Receive the activate message that the configuration center issues;
Examine whether the activate message is legitimate request;If so,
Judge that the resource file whether there is.
3. unified configuring management method according to claim 1, which is characterized in that the generation target configuration file it
Afterwards, further includes:
Dynamic is carried out to the target configuration file to come into force;
The configuration center is back to according to the result returning response message that comes into force, and by the response message.
4. unified configuring management method according to claim 1, which is characterized in that the template file includes repeating to match
It sets;It is described that target configuration is generated in conjunction with preset dictionary file, template file progress Command Line Parsing according to the resource file
File includes:
Legitimacy is checked from resource file by keyword group using getvs, getbs function, and obtains corresponding duplicate keys
Configuration information;
Corresponding N number of value for repeating configuration is updated into the target configuration file.
5. a kind of service server characterized by comprising
Template file, including a variety of customized template styles, the template style include repeating configuration item;
Dictionary file, the corresponding relationship including the template file and target configuration file;
Configuration applications client, the resource file issued for receiving configuration center, and according to the resource file, in conjunction with described
Dictionary file, template file carry out Command Line Parsing, generate target configuration file.
6. service server according to claim 5, which is characterized in that the dictionary file further includes to some configuration
The dynamic that the configuration item of file is separately provided comes into force order.
7. service server according to claim 5, which is characterized in that further include solidification configuration file and dynamic configuration
File;The dynamic configuration file is used to update configuration according to the template file, dictionary file and resource file come dynamic.
8. service server according to claim 5, which is characterized in that the configuration applications client is also used to described
Target configuration file carries out dynamic and comes into force;According to the result returning response message that comes into force, and the response message is back to described
Configuration center.
9. service server according to claim 5, which is characterized in that the configuration applications client is also used to:
Receive the activate message that the configuration center issues;
Examine whether the activate message is legitimate request;If so,
Judge that the resource file whether there is.
10. a kind of operation and maintenance management platform characterized by comprising
Interface manager module, for showing at least one in configuration menu, activator button or configuration operating result;
Configuration center operates and sends accordingly resource file and sharp in the input that the interface manager module carries out for receiving
Message living;It is also used to receive the message of service server return.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710947840.2A CN109660377B (en) | 2017-10-12 | 2017-10-12 | Unified configuration management method, service server and operation maintenance management platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710947840.2A CN109660377B (en) | 2017-10-12 | 2017-10-12 | Unified configuration management method, service server and operation maintenance management platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109660377A true CN109660377A (en) | 2019-04-19 |
CN109660377B CN109660377B (en) | 2022-02-25 |
Family
ID=66109496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710947840.2A Active CN109660377B (en) | 2017-10-12 | 2017-10-12 | Unified configuration management method, service server and operation maintenance management platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109660377B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110201397A (en) * | 2019-06-28 | 2019-09-06 | 北京金山安全软件有限公司 | Game resource allocation method and device and electronic equipment |
CN110471679A (en) * | 2019-07-08 | 2019-11-19 | 中国平安人寿保险股份有限公司 | Client resource configures update method, device and storage medium, server |
CN110489157A (en) * | 2019-07-10 | 2019-11-22 | 厦门安盟网络股份有限公司 | Based on the resource allocation method and system under Web environment |
CN111752602A (en) * | 2020-06-28 | 2020-10-09 | 上海莉莉丝科技股份有限公司 | Method for generating protobuf file running in GO language |
CN111930441A (en) * | 2020-08-10 | 2020-11-13 | 上海熙菱信息技术有限公司 | Consul-based configuration file management system and method |
CN112118298A (en) * | 2020-09-03 | 2020-12-22 | 杭州海康威视数字技术股份有限公司 | Configuration management method and device for distributed service |
CN112114885A (en) * | 2020-09-15 | 2020-12-22 | 青岛海信移动通信技术股份有限公司 | Terminal, control equipment and service processing method |
CN112287266A (en) * | 2019-07-09 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Processing method and device for webpage configuration, equipment and storage medium |
CN112650542A (en) * | 2020-08-28 | 2021-04-13 | 成都格斗科技有限公司 | Simple and general method for generating and managing configuration file under micro-service architecture |
CN113760344A (en) * | 2020-07-06 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Dynamic configuration method, device, electronic equipment and storage medium |
CN113836372A (en) * | 2021-08-26 | 2021-12-24 | 北京臻观数智科技有限公司 | Configuration center data visualization method and system based on distributed service |
CN114760314A (en) * | 2022-04-06 | 2022-07-15 | 中国工商银行股份有限公司 | Server management method, device, computer equipment and storage medium |
Citations (9)
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 |
CN101814316A (en) * | 2010-04-28 | 2010-08-25 | 中国航天科技集团公司第五研究院第五一三研究所 | Method for configuring static storage-type field programmable gate array |
CN101867494A (en) * | 2010-06-18 | 2010-10-20 | 北京神州泰岳软件股份有限公司 | Soft hardware performance monitoring method based on monitoring template, and system thereof |
CN101938164A (en) * | 2010-09-14 | 2011-01-05 | 深圳市华力特电气股份有限公司 | Power equipment control method, device and related system thereof |
CN101977121A (en) * | 2010-10-25 | 2011-02-16 | 中兴通讯股份有限公司 | Configuration file processing method, device and system |
CN102201009A (en) * | 2011-06-21 | 2011-09-28 | 深圳市凯立德科技股份有限公司 | Form generating method and device |
CN102843245A (en) * | 2011-06-20 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for interacting configuration data |
CN104598240A (en) * | 2015-01-20 | 2015-05-06 | 北京仿真中心 | Platform-spanning simulation model development method and system |
US20160366233A1 (en) * | 2015-06-10 | 2016-12-15 | Platform9, Inc. | Private Cloud as a service |
-
2017
- 2017-10-12 CN CN201710947840.2A patent/CN109660377B/en active Active
Patent Citations (9)
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 |
CN101814316A (en) * | 2010-04-28 | 2010-08-25 | 中国航天科技集团公司第五研究院第五一三研究所 | Method for configuring static storage-type field programmable gate array |
CN101867494A (en) * | 2010-06-18 | 2010-10-20 | 北京神州泰岳软件股份有限公司 | Soft hardware performance monitoring method based on monitoring template, and system thereof |
CN101938164A (en) * | 2010-09-14 | 2011-01-05 | 深圳市华力特电气股份有限公司 | Power equipment control method, device and related system thereof |
CN101977121A (en) * | 2010-10-25 | 2011-02-16 | 中兴通讯股份有限公司 | Configuration file processing method, device and system |
CN102843245A (en) * | 2011-06-20 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for interacting configuration data |
CN102201009A (en) * | 2011-06-21 | 2011-09-28 | 深圳市凯立德科技股份有限公司 | Form generating method and device |
CN104598240A (en) * | 2015-01-20 | 2015-05-06 | 北京仿真中心 | Platform-spanning simulation model development method and system |
US20160366233A1 (en) * | 2015-06-10 | 2016-12-15 | Platform9, Inc. | Private Cloud as a service |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110201397A (en) * | 2019-06-28 | 2019-09-06 | 北京金山安全软件有限公司 | Game resource allocation method and device and electronic equipment |
CN110201397B (en) * | 2019-06-28 | 2022-07-22 | 北京金山安全软件有限公司 | Game resource allocation method and device and electronic equipment |
CN110471679A (en) * | 2019-07-08 | 2019-11-19 | 中国平安人寿保险股份有限公司 | Client resource configures update method, device and storage medium, server |
CN110471679B (en) * | 2019-07-08 | 2024-04-02 | 中国平安人寿保险股份有限公司 | Client resource allocation updating method and device, storage medium and server |
CN112287266A (en) * | 2019-07-09 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Processing method and device for webpage configuration, equipment and storage medium |
CN110489157A (en) * | 2019-07-10 | 2019-11-22 | 厦门安盟网络股份有限公司 | Based on the resource allocation method and system under Web environment |
CN111752602A (en) * | 2020-06-28 | 2020-10-09 | 上海莉莉丝科技股份有限公司 | Method for generating protobuf file running in GO language |
CN111752602B (en) * | 2020-06-28 | 2024-02-20 | 上海莉莉丝科技股份有限公司 | Method for generating protobuf file running in GO language |
CN113760344A (en) * | 2020-07-06 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Dynamic configuration method, device, electronic equipment and storage medium |
CN111930441A (en) * | 2020-08-10 | 2020-11-13 | 上海熙菱信息技术有限公司 | Consul-based configuration file management system and method |
CN111930441B (en) * | 2020-08-10 | 2024-03-29 | 上海熙菱信息技术有限公司 | Consul-based configuration file management system and method |
CN112650542A (en) * | 2020-08-28 | 2021-04-13 | 成都格斗科技有限公司 | Simple and general method for generating and managing configuration file under micro-service architecture |
CN112118298A (en) * | 2020-09-03 | 2020-12-22 | 杭州海康威视数字技术股份有限公司 | Configuration management method and device for distributed service |
CN112114885A (en) * | 2020-09-15 | 2020-12-22 | 青岛海信移动通信技术股份有限公司 | Terminal, control equipment and service processing method |
CN112114885B (en) * | 2020-09-15 | 2024-05-10 | 青岛海信移动通信技术有限公司 | Terminal, control equipment and service processing method |
CN113836372A (en) * | 2021-08-26 | 2021-12-24 | 北京臻观数智科技有限公司 | Configuration center data visualization method and system based on distributed service |
CN114760314A (en) * | 2022-04-06 | 2022-07-15 | 中国工商银行股份有限公司 | Server management method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109660377B (en) | 2022-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109660377A (en) | Unified configuring management method, service server and operation and maintenance management platform | |
CN101410888B (en) | Method for triggering at least one first and second background application via a universal language dialogue system | |
CN106791233B (en) | It is a kind of for providing the method and IVR system of IVR service procedure | |
CN109857755A (en) | A kind of rule method of calibration and device | |
US9514498B2 (en) | Method and system for centralized reservation context management on multi-server reservation system | |
CN102724079B (en) | Method and system for auxiliary configuration of Ethernet equipment | |
CN110598110B (en) | Service pushing method and device | |
CN110519711A (en) | A kind of information push method, device, storage medium and server | |
CN111338812A (en) | Data processing method and device | |
CN106777308A (en) | The synchronous method and device of civil aviaton's sequence information | |
CN110062022A (en) | A kind of method that server-side gray scale application deployment system API updates | |
JP2014531091A (en) | Processing method, storage medium, and client support server | |
CN107506383A (en) | A kind of audit data processing method and computer equipment | |
CN109582289A (en) | The processing method of regular flow, system, storage medium and processor in regulation engine | |
US20220006693A1 (en) | Dimensioning network services (ns) | |
CN110333851B (en) | Code decoupling method and related equipment | |
JP4151432B2 (en) | XML signature / encryption procedure generation system | |
CN111144878A (en) | Instruction generation method and instruction generation device | |
CN107769934A (en) | Rate processing method and processing device | |
CN110471968A (en) | Dissemination method, device, equipment and the storage medium of ETL task | |
CN109189912A (en) | The update method and device of user's consulting statement library | |
CN110264035A (en) | Configuration method, device, terminal and the storage medium of workflow | |
CN109117146A (en) | Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system | |
CN112836479A (en) | Data report generation method, system and storage device | |
KR20100071613A (en) | Usn middleware query processing load balancing systems and the method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |