CN109271210A - A kind of check method and device of configuration file - Google Patents

A kind of check method and device of configuration file Download PDF

Info

Publication number
CN109271210A
CN109271210A CN201710580448.9A CN201710580448A CN109271210A CN 109271210 A CN109271210 A CN 109271210A CN 201710580448 A CN201710580448 A CN 201710580448A CN 109271210 A CN109271210 A CN 109271210A
Authority
CN
China
Prior art keywords
configuration
configuration file
equipment
upgraded
file
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
CN201710580448.9A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710580448.9A priority Critical patent/CN109271210A/en
Publication of CN109271210A publication Critical patent/CN109271210A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Invention describes a kind of check method of configuration file and devices, this method comprises: obtaining the identity identification information of each equipment to be upgraded when detecting business application system upgrading;According to the identity identification information of each equipment to be upgraded, the original configuration file of each equipment to be upgraded is obtained from the management terminal, and obtains local process configuration file from each equipment to be upgraded respectively;The local process configuration file of each equipment to be upgraded is compared with corresponding original configuration file, determines the inconsistent equipment to be upgraded of configuration data in the configuration data and original configuration file in local process configuration file.Solve in business application system escalation process, due to the configuration data in the configuration data and data base configuration file in device configuration file it is inconsistent caused by upgrade failure the problem of.

Description

A kind of check method and device of configuration file
Technical field
The present invention relates to mobile communication technology field more particularly to the check methods and device of a kind of configuration file.
Background technique
With telecommunication service product at home with the rapid development in international major operator, Mobile Office's point quantity day Benefit is huge.Nowadays, the equipment installation upgrade job of each office point is gradually converted into automated manner by original manual mode, Installation upgrading process is simplified, the maintenance difficulties of service product are reduced, saves a large amount of maintenance human resources.In addition, being Simplified configuration management process, accelerates configuration updating speed, and the work of original each apparatus modifications configuration file of manual login is also Inverted is to modify in WEB interface unification, and synchronize the configuration management mode for being issued to multiple devices.
Configuration management function realizes configuration file storage, and configuration modification interface and a key issue all configuration files Etc. functions, the function substantially increase configuration upgrading, configuration modification efficiency.However, not having due to the constraint not standardized Scene is controlled from process angle and carries out configuration interface, during system day-to-day operation, modifies process configuration if necessary When, it will appear live traffic maintenance personnel inevitably in order to which figure facilitates and directly modify configuration file in equipment by hand, without The case where being modified by WEB interface.If things go on like this, this nonstandard operation gradually increases.And it is adopted by collection in worksite tool The supplemental characteristic of collection is extracted from lane database, is not the parameter of live actual motion.If according to collection in worksite tool The data of acquisition are upgraded, will on overlay device before the configuration file modified by hand, become the configuration number of WEB interface According to, cause upgrading front and back operating parameter it is inconsistent.If cannot check before upgrading this inconsistent, upgrading will lead to The configuration file in equipment is covered by the configuration data in database afterwards, causes process exception, in turn results in upgrading unsuccessfully etc. Risk.
Summary of the invention
It is a primary object of the present invention to propose the check method and device of a kind of configuration file, answered for solving in business During system upgrade, since the configuration data in the configuration data and data base configuration file in device configuration file is different The problem of upgrading failure caused by cause.
To achieve the above object, the present invention provides a kind of check methods of configuration file, are applied to management terminal, described Method includes:
When detecting business application system upgrading, the identity identification information of each equipment to be upgraded is obtained;
According to the identity identification information of each equipment to be upgraded, each equipment to be upgraded is obtained from the management terminal Original configuration file, and local process configuration file is obtained from each equipment to be upgraded respectively;
The local process configuration file of each equipment to be upgraded is compared with corresponding original configuration file, is determined The inconsistent equipment to be upgraded of the configuration data in configuration data and original configuration file in local process configuration file.
Optionally, the method also includes:
It modifies in configuration data or the original configuration file in the local process configuration file of inconsistent equipment to be upgraded Configuration data, until all equipment to be upgraded local process configuration file in configuration data and original configuration file in Configuration data is consistent.
Optionally, the method also includes:
According to preset time, each preset the original of equipment to be checked is periodically obtained from the management terminal and is matched File is set, and obtains local process configuration file from each preset equipment to be checked respectively;
The local process configuration file of each preset equipment to be checked is compared with corresponding original configuration file, Determine that inconsistent to be checked of the configuration data in configuration data and original configuration file in local process configuration file is set It is standby.
Optionally, in the local process configuration file by each preset equipment to be checked and corresponding original configuration After file compares, the method also includes:
Comparing result is sent to preset administrator terminal;Wherein, the comparing result include: it is all it is inconsistent to Identity identification information, local process configuration file and the original configuration file of query facility.
Optionally, the original configuration file includes: common configuration subfile and business configuration subfile;
Wherein, the common configuration subfile is that basis is got from the common configuration database of the management terminal What common configuration data generated;
The business configuration subfile is public according to getting from the business configuration database of the management terminal What configuration data generated.
In addition, to achieve the above object, the present invention also proposes a kind of check device of configuration file, it is applied to management eventually End, described device include:
Upgraded module, for obtaining the identification of each equipment to be upgraded when detecting business application system upgrading Information;
Module is obtained, for the identity identification information according to each equipment to be upgraded, is obtained from the management terminal each The original configuration file of a equipment to be upgraded, and local process configuration file is obtained from each equipment to be upgraded respectively;
Verify module, for by the local process configuration file of each equipment to be upgraded and corresponding original configuration file into Row comparison, determine configuration data in the configuration data and original configuration file in local process configuration file it is inconsistent to Updating apparatus.
Optionally, described device further include:
Modified module, the configuration data or original in local process configuration file for modifying inconsistent equipment to be upgraded Configuration data in beginning configuration file, until the configuration data and original in the local process configuration file of all equipment to be upgraded Configuration data in configuration file is consistent.
Optionally, described device further include:
Periodic reinvestigation module, for periodically being obtained from the management terminal each preset according to preset time The original configuration file of equipment to be checked, and local process configuration text is obtained from each preset equipment to be checked respectively Part, and the local process configuration file of each preset equipment to be checked is compared with corresponding original configuration file, really Make the inconsistent equipment to be checked of configuration data in the configuration data and original configuration file in local process configuration file.
Optionally, described device further include:
Sending module, for the local process configuration file by each preset equipment to be checked with it is corresponding original After configuration file compares, comparing result is sent to preset administrator terminal;Wherein, the comparing result includes: Identity identification information, local process configuration file and the original configuration file of all inconsistent equipment to be checked.
Optionally, stating original configuration file includes: common configuration subfile and business configuration subfile;
Wherein, the common configuration subfile is that basis is got from the common configuration database of the management terminal What common configuration data generated;
The business configuration subfile is public according to getting from the business configuration database of the management terminal What configuration data generated.
The check method and device of configuration file proposed by the present invention introduce before carrying out business application system upgrading Configuration file verify function, before upgrading flow startup can automatic inspection go out the configuration data in local process configuration file Whether modified by hand by nonstandard operation.If there is this nonstandard operation, before upgrading task execution, modification is originally Configuration data in ground process configuration file or the configuration data in original configuration file, until the local of all equipment to be upgraded Configuration data in process configuration file is consistent with the configuration data in original configuration file.After ensuring unanimously, then upgraded Task, to prevent the risk of upgrading failure.In addition, the present invention can also the preset equipment to be checked of periodic reinvestigation configuration text Part facilitates during daily system maintenance the modification situation of the configuration file of equipment to be checked check at any time, if it find that different It causes, can repair as early as possible.
Detailed description of the invention
Fig. 1 is the flow chart of the check method of the configuration file of first embodiment of the invention;
Fig. 2 is the composed structure schematic diagram of the check device of the configuration file of second embodiment of the invention;
Fig. 3 is the composed structure schematic diagram of the configuration file check device of third embodiment of the invention;
Fig. 4 is the matching based on automatic installation upgraded module and Operation and Maintenance configuration management module of third embodiment of the invention Set the flow chart that file checks method;
Fig. 5 is third embodiment of the invention based on the configuration from regular verification unit and Operation and Maintenance configuration management module File periodically checks the flow chart of method;
Fig. 6 is the flow chart of the upgrade method of the business application system of fourth embodiment of the invention.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of check method of configuration file are applied in management terminal, as shown in Figure 1, institute State method specifically includes the following steps:
Step S101: when detecting business application system upgrading, the identity identification information of each equipment to be upgraded is obtained.
Specifically, identity identification information includes: the IP address information of equipment to be upgraded, the operating system class of equipment to be upgraded The login user information of type information, the digit information of equipment to be upgraded and equipment to be upgraded.
Step S102: according to the identity identification information of each equipment to be upgraded, obtained from the management terminal it is each to The original configuration file of updating apparatus, and local process configuration file is obtained from each equipment to be upgraded respectively.
Specifically, the original configuration file of any equipment to be upgraded includes: common configuration subfile and business configuration Ziwen Part;
Wherein, common configuration subfile is according to the common configuration got from the common configuration database of management terminal What data generated;
Business configuration subfile is according to the common configuration data got from the business configuration database of management terminal It generates.
Further, step S102, comprising:
According to the identity identification information of each equipment to be upgraded, obtained from the common configuration database of management terminal and each The corresponding common configuration data of a equipment to be upgraded, and be that each equipment to be upgraded is raw according to the common configuration data got At corresponding common configuration subfile;
According to the identity identification information of each equipment to be upgraded, obtained from the business configuration database of management terminal and each The corresponding business configuration data of a equipment to be upgraded, and be that each equipment to be upgraded is raw according to the business configuration data got At corresponding business configuration subfile.
Step S103: the local process configuration file of each equipment to be upgraded and corresponding original configuration file are carried out pair Than determining inconsistent to be upgraded of configuration data in the configuration data and original configuration file in local process configuration file Equipment.
Specifically, by the sheet of the common configuration subfile of equipment to be upgraded and business configuration subfile and the equipment to be upgraded Ground process configuration file compares, and judges matching in the common configuration subfile and business configuration subfile of the equipment to be upgraded Whether consistent with the configuration data in the local process configuration file of the equipment to be upgraded set data.
During system day-to-day operation, the local process in equipment is directly modified by hand if there is service maintenance personnel When configuration file, it just will appear the local process configuration in the configuration data and equipment in the original configuration file in management terminal The inconsistent situation of configuration data in file.
Further, the method also includes:
It modifies in configuration data or the original configuration file in the local process configuration file of inconsistent equipment to be upgraded Configuration data, until all equipment to be upgraded local process configuration file in configuration data and original configuration file in Configuration data is consistent.
Configuration in the configuration data and original configuration file in the local process configuration file of all equipment to be upgraded When data are consistent, then the updating operation of business application system is carried out to each equipment to be upgraded.
Further, the method also includes:
According to preset time, each preset the original of equipment to be checked is periodically obtained from the management terminal and is matched File is set, and obtains local process configuration file from each preset equipment to be checked respectively;
The local process configuration file of each preset equipment to be checked is compared with corresponding original configuration file, Determine that inconsistent to be checked of the configuration data in configuration data and original configuration file in local process configuration file is set It is standby;
Comparing result is sent to preset administrator terminal;Wherein, the comparing result include: it is all it is inconsistent to Identity identification information, local process configuration file and the original configuration file of query facility.
By daily periodic reinvestigation, the configuration data in the local process configuration file in equipment to be checked is found early The inconsistent problem with the configuration data in the original configuration file in management terminal.And then service maintenance personnel can early into Row is repaired, and is reduced in escalation process and is taken excessive time because inconsistent configuration file is too many.
Second embodiment of the invention, a kind of check device of configuration file are applied in management terminal, as shown in Fig. 2, institute It states device and specifically includes consisting of part:
Upgraded module 201, for when detecting business application system upgrading, the identity for obtaining each equipment to be upgraded to be known Other information.
Specifically, identity identification information includes: the IP address information of equipment to be upgraded, the operating system class of equipment to be upgraded The login user information of type information, the digit information of equipment to be upgraded and equipment to be upgraded.
Module 202 is obtained to obtain from the management terminal for the identity identification information according to each equipment to be upgraded The original configuration file of each equipment to be upgraded, and local process configuration file is obtained from each equipment to be upgraded respectively.
Specifically, the original configuration file of any equipment to be upgraded includes: common configuration subfile and business configuration Ziwen Part;
Wherein, common configuration subfile is according to the common configuration got from the common configuration database of management terminal What data generated;
Business configuration subfile is according to the common configuration data got from the business configuration database of management terminal It generates.
Further, module 202 is obtained, is specifically used for:
According to the identity identification information of each equipment to be upgraded, obtained from the common configuration database of management terminal and each The corresponding common configuration data of a equipment to be upgraded, and be that each equipment to be upgraded is raw according to the common configuration data got At corresponding common configuration subfile;
According to the identity identification information of each equipment to be upgraded, obtained from the business configuration database of management terminal and each The corresponding business configuration data of a equipment to be upgraded, and be that each equipment to be upgraded is raw according to the business configuration data got At corresponding business configuration subfile.
Module 203 is verified, for the local process configuration file of each equipment to be upgraded and corresponding original configuration is literary Part compares, and determines that the configuration data in the configuration data and original configuration file in local process configuration file is inconsistent Equipment to be upgraded.
Specifically, verifying module 203, it is used for:
By the local process of the common configuration subfile of equipment to be upgraded and business configuration subfile and the equipment to be upgraded Configuration file compares, and judges the configuration data in the common configuration subfile and business configuration subfile of the equipment to be upgraded It is whether consistent with the configuration data in the local process configuration file of the equipment to be upgraded.
During system day-to-day operation, the local process in equipment is directly modified by hand if there is service maintenance personnel When configuration file, it just will appear the local process configuration in the configuration data and equipment in the original configuration file in management terminal The inconsistent situation of configuration data in file.
Further, described device further include:
Modified module, the configuration data or original in local process configuration file for modifying inconsistent equipment to be upgraded Configuration data in beginning configuration file, until the configuration data and original in the local process configuration file of all equipment to be upgraded Configuration data in configuration file is consistent.
Configuration in the configuration data and original configuration file in the local process configuration file of all equipment to be upgraded When data are consistent, then the updating operation of business application system is carried out to each equipment to be upgraded.
Further, described device further include:
Periodic reinvestigation module, for periodically being obtained from the management terminal each preset according to preset time The original configuration file of equipment to be checked, and local process configuration text is obtained from each preset equipment to be checked respectively Part;The local process configuration file of each preset equipment to be checked is compared with corresponding original configuration file, is determined The inconsistent equipment to be checked of configuration data out in the configuration data and original configuration file in local process configuration file;
Sending module, for comparing result to be sent to preset administrator terminal;Wherein, the comparing result includes: Identity identification information, local process configuration file and the original configuration file of all inconsistent equipment to be checked.
By daily periodic reinvestigation, the configuration data in the local process configuration file in equipment to be checked is found early The inconsistent problem with the configuration data in the original configuration file in management terminal.And then service maintenance personnel can early into Row is repaired, and is reduced in escalation process and is taken excessive time because inconsistent configuration file is too many.
Third embodiment of the invention, a kind of configuration file check device are applied in management terminal, as shown in figure 3, described Device specifically includes consisting of part:
Automatic installation upgraded module 301 and Operation and Maintenance configuration management module 302;
Wherein, installing upgraded module 301 automatically is the tool for disposing business application system, and trigger action maintenance is matched Set management module 302.
Specifically, Operation and Maintenance configuration management module 302 includes: periodic reinvestigation unit.Periodic reinvestigation unit be used for according to Setting time periodically obtains the original configuration file of each preset equipment to be checked from the management terminal, and Local process configuration file is obtained from each preset equipment to be checked respectively, and by the sheet of each preset equipment to be checked Ground process configuration file is compared with corresponding original configuration file, determines the configuration data in local process configuration file The inconsistent equipment to be checked with the configuration data in original configuration file.
Further, pass through REST interface between installation upgrading tool 301 and Operation and Maintenance configuration management module 302 automatically Realize the interaction of information.
In the escalation process of business application system, based on automatic installation upgraded module 301 and Operation and Maintenance configuration management The configuration file of module 302 checks method, as shown in figure 4, specifically includes the following steps:
Step S401: Operation and Maintenance configuration management module 302 is inputted in the operation interface of installation upgraded module 301 automatically The address URL, and to Operation and Maintenance configuration management module 302 send include equipment to be upgraded IP information verification request disappear Breath.
Step S402: the interface unit by installing upgraded module 301 automatically will verify request message and be sent to operation dimension Protect the interface unit of configuration management module 302;
Step S403: the interface unit of Operation and Maintenance configuration management module 302 will verify to be upgraded setting in request message Standby IP information MAP is the office's information and module No. information of equipment to be upgraded.
Step S404: the interface unit of Operation and Maintenance configuration management module 302 is by office's information comprising equipment to be upgraded The main control unit of Operation and Maintenance configuration management module 302 is sent to the verification request message of module No. information.
Step S405: the main control unit of Operation and Maintenance configuration management module 302 is to be upgraded in request message according to verifying The office's information and module No. information of equipment obtain the common configuration data of each equipment to be upgraded from common configuration database, And corresponding common profiles are generated according to the common configuration data of each equipment to be upgraded.
Step S406: the main control unit of Operation and Maintenance configuration management module 302 will verify request message and be sent to business fortune Tie up interface unit.
Step S407: the industry of each equipment to be upgraded is obtained from business configuration database by business O&M interface unit Business configuration data.
Step S408: business O&M interface unit generates corresponding industry according to the business configuration data of each equipment to be upgraded Business configuration file, and feed back to the main control unit of Operation and Maintenance configuration management module 302.
Step S409: the main control unit of Operation and Maintenance configuration management module 302 is to be upgraded in solicited message according to verifying The office's information and module No. information of equipment obtain local process configuration file from each equipment to be upgraded.
Step S410: the main control unit of Operation and Maintenance configuration management module 302 is one by one by the local of each equipment to be upgraded Process configuration file carries out verification comparison with corresponding common profiles and business configuration file.
Step S411: the main control unit of Operation and Maintenance configuration management module 302 will verify comparing result and be sent to operation dimension Protect the interface unit of configuration management module 302.
Step S412: the interface unit of Operation and Maintenance configuration management module 302 is sent to automatic peace for comparing result is verified Fill the interface unit of upgraded module 301.
Step S413:: verification comparing result is sent to automatic installation and risen by the interface unit of automatic installation upgraded module 301 The operation interface of grade module 301, and the operation interface by installing upgraded module 301 automatically is shown.
By installing the operation interface of upgraded module 301 automatically, the configuration file quilt of which equipment to be upgraded can be checked Non-standard operation was modified by hand.For any equipment to be upgraded modified by hand by non-standard operation, can clearly open up The inconsistent place of the configuration data in configuration data and database in existing equipment.
The main control unit of Operation and Maintenance configuration management module 302 in the present embodiment is equivalent to the configuration in second embodiment The check device of file is used to obtain on the original configuration file and equipment in database when receiving verification request Local process configuration file, and by verifying comparison, determine the equipment to be upgraded modified by hand by non-standard operation.
Method is periodically checked based on the configuration file from regular verification unit and Operation and Maintenance configuration management module 302, such as Shown in Fig. 5, specifically includes the following steps:
Step S501: periodic reinvestigation information is arranged in the periodic reinvestigation unit of Operation and Maintenance configuration management module 302;It is described fixed Phase verification message includes: the office's information and module No. information, periodic reinvestigation time, specified services operation maintenance personnel of equipment to be checked Email address.
Step S502: the periodic reinvestigation unit of Operation and Maintenance configuration management module 302 is according to the periodic reinvestigation time, periodically Send periodic reinvestigation request to the main control unit of Operation and Maintenance configuration management module 302, include in periodic reinvestigation request The office's information and module No. information of equipment to be checked.
Step S503: the main control unit of Operation and Maintenance configuration management module 302 according to periodic reinvestigation request in it is to be checked The office's information and module No. information of equipment obtain the common configuration data of each equipment to be checked from common configuration database, And corresponding common profiles are generated according to the common configuration data of each equipment to be checked.
Step S504: periodic reinvestigation request is sent to business and transported by the main control unit of Operation and Maintenance configuration management module 302 Tie up interface unit.
Step S505: the industry of each equipment to be checked is obtained from business configuration database by business O&M interface unit Business configuration data.
Step S506: business O&M interface unit generates corresponding industry according to the business configuration data of each equipment to be checked Business configuration file, and feed back to the main control unit of Operation and Maintenance configuration management module 302.
Step S507: the main control unit of Operation and Maintenance configuration management module 302 according to periodic reinvestigation request in it is to be checked The office's information and module No. information of equipment obtain local process configuration file from each equipment to be upgraded.
Step S508: the main control unit of Operation and Maintenance configuration management module 302 is one by one by the local of each equipment to be checked Process configuration file carries out verification comparison with corresponding common profiles and business configuration file.
Step S509: the master control list of Operation and Maintenance configuration management module 302 is sent to specified services for comparing result is verified In the mailbox of operation maintenance personnel.
By daily periodic reinvestigation, the configuration data in the local process configuration file in equipment to be checked is found early The inconsistent problem with the configuration data in the original configuration file in management terminal.And then service maintenance personnel can early into Row is repaired, and is reduced in escalation process and is taken excessive time because inconsistent configuration file is too many.
Fourth embodiment of the invention, based on the automatic installation upgraded module 301 and operation dimension in third embodiment of the invention Configuration management module 302 is protected, a kind of upgrade method of business application system is proposed, as shown in fig. 6, the method specifically includes Following steps:
Step S601: the upgrade package of automatic installation 301 configuration service application system of upgraded module, and upgrade package is saved as The file format that installation script can identify.
Specifically, upgrade package includes: the identity identification information of upgrade file and equipment to be upgraded.
Further, step S601 is specifically included:
Facility planning unit in automatic installation upgraded module 301 obtains the identity identification information of equipment to be upgraded, and will The identity identification information of equipment to be upgraded is added in upgrade package.
Identity identification information includes: IP address information, OS Type information, digit type, login user letter.
Step S602: automatic installation upgraded module 301 creation upgrading engineering.When creation upgrades engineering, need to position liter The position of grade packet, can find when being easily installed.
Step S603: the identity identification information of the equipment to be upgraded in upgrade package is imported, and treats updating apparatus and is examined It surveys.
The updating apparatus for the treatment of is detected, comprising: detect whether equipment to be upgraded connects normally, equipment to be upgraded Whether OS Type is supported, whether there is using user.
Step S604: it according to testing result, determines equipment to be upgraded, and creates upgrading task.
Step S605: Operation and Maintenance configuration management module 302 is inputted in the operation interface of installation upgraded module 301 automatically The address URL, and to Operation and Maintenance configuration management module 302 send include equipment to be upgraded IP information verification request disappear Breath;
If returning to request address to be not present, Operation and Maintenance configuration management module 302 does not support configuration file to audit, automatically Installation upgraded module 301 skips configuration file and verifies step, continues to execute step S607;
If request address exists, Operation and Maintenance configuration management module 302 supports configuration file to verify, automatic installation upgrading The interface prompt of module 301 is carrying out configuration file verification, please wait.
Step S606: it is verified according to the configuration file that Operation and Maintenance configuration management module 302 is fed back to as a result, judgement is verified Whether pass through;
If so, carrying out step S607;
If it is not, then showing configuration data in the configuration data and original configuration file in local process configuration file not Consistent equipment to be upgraded, maintenance personnel need to modify the configuration in the local process configuration file of inconsistent equipment to be upgraded Configuration data in data or original configuration file, until the configuration number in the local process configuration file of all equipment to be upgraded According to consistent with the configuration data in original configuration file.
It is carried out specifically, Operation and Maintenance configuration management module 302 checks method according to the configuration file in 3rd embodiment The verification of configuration file.
Further, it if in step S606, verifies result and does not pass through, need Operation and Maintenance configuration management module 302 Interface in modify configuration, the conveniently comparing function verified after finding the problem the present invention provides configuration and quickly repair Change function.Preferably, installation upgraded module 301 is after receiving verification result data automatically, according to IP | configuration filename | The format for verifying result is shown, if verifying red fork fork as the result is shown, indicates the configuration of the lane database configuration file Data local process configuration file corresponding in equipment is variant, clicks fork fork, can jump to Operation and Maintenance configuration pipe Specific difference is checked at the interface of reason module 302: the interface left side shows the original configuration that the data obtained from lane database generate File, the right shows the local process configuration file obtained from equipment, specific to the comparison of every a line.If the right and left relates to And changed to configuration item, this variation includes: that the value of configuration item has change, and configuration item is reduced, and configuration item, which has, to be increased, all can be Corresponding row red highlights.Corresponding row can be modified as and the right by clicking the modification small icon in left line Unanimously;Corresponding row can also be modified as consistent with the left side by clicking the modification small icon on the row of the right.This modification can be with Automatically the configuration item lacked is increased, the item having more is automatically deleted, the value changed is modified automatically, facilitate O&M people The operation of member.
Step S607: carrying out upgrading task initialization, and upgrade file is proposed from upgrade package, and uploads to equipment to be upgraded In.
Step S608: by installing the pre-upgrade unit in upgraded module 301 automatically, the configuration text of equipment to be upgraded is completed Part backup.
Step S609: it by installing the upgrade unit in upgraded module 301 automatically, treats updating apparatus and carries out a key upgrading Operation, and terminate process.
The check method and device for the configuration file introduced in the embodiment of the present invention upgrade it carrying out business application system Before, introduce configuration file verify function, before upgrading flow startup can automatic inspection go out in local process configuration file Whether configuration data was modified by hand by nonstandard operation.If there is this nonstandard operation, upgrading task execution it Before, the configuration data in local process configuration file or the configuration data in original configuration file are modified, until all to be upgraded Configuration data in the local process configuration file of equipment is consistent with the configuration data in original configuration file.After ensuring unanimously, Upgrading task is carried out again, to prevent the risk of upgrading failure.In addition, the present invention can also the preset equipment to be checked of periodic reinvestigation Configuration file, facilitate during daily system maintenance the modification situation of the configuration file of equipment to be checked check at any time, if It was found that it is inconsistent, it can repair as early as possible.
By the explanation of specific embodiment, the present invention can should be reached technological means that predetermined purpose is taken and Effect is able to more deeply and specifically understand, however appended diagram is only to provide reference and description and is used, and is not used to this Invention limits.

Claims (10)

1. a kind of check method of configuration file, which is characterized in that be applied to management terminal, which comprises
When detecting business application system upgrading, the identity identification information of each equipment to be upgraded is obtained;
According to the identity identification information of each equipment to be upgraded, the original of each equipment to be upgraded is obtained from the management terminal Configuration file, and local process configuration file is obtained from each equipment to be upgraded respectively;
The local process configuration file of each equipment to be upgraded is compared with corresponding original configuration file, determines local The inconsistent equipment to be upgraded of the configuration data in configuration data and original configuration file in process configuration file.
2. the check method of configuration file according to claim 1, which is characterized in that the method also includes:
Modify matching in configuration data or original configuration file in the local process configuration file of inconsistent equipment to be upgraded Data are set, until the configuration in the configuration data and original configuration file in the local process configuration file of all equipment to be upgraded Data are consistent.
3. the check method of configuration file according to claim 1, which is characterized in that the method also includes:
According to preset time, the original configuration text of each preset equipment to be checked is periodically obtained from the management terminal Part, and local process configuration file is obtained from each preset equipment to be checked respectively;
The local process configuration file of each preset equipment to be checked is compared with corresponding original configuration file, is determined The inconsistent equipment to be checked of configuration data out in the configuration data and original configuration file in local process configuration file.
4. the check method of configuration file according to claim 3, which is characterized in that it is described will be each preset to be checked After the local process configuration file of inquiry equipment is compared with corresponding original configuration file, the method also includes:
Comparing result is sent to preset administrator terminal;Wherein, the comparing result includes: all inconsistent to be checked Identity identification information, local process configuration file and the original configuration file of equipment.
5. the check method of configuration file according to any one of claims 1 to 4, which is characterized in that described original to match Setting file includes: common configuration subfile and business configuration subfile;
Wherein, the common configuration subfile is public according to getting from the common configuration database of the management terminal What configuration data generated;
The business configuration subfile is according to the common configuration got from the business configuration database of the management terminal What data generated.
6. a kind of check device of configuration file, which is characterized in that be applied to management terminal, described device includes:
Upgraded module, for obtaining the identity identification information of each equipment to be upgraded when detecting business application system upgrading;
Obtain module, for the identity identification information according to each equipment to be upgraded, obtained from the management terminal it is each to The original configuration file of updating apparatus, and local process configuration file is obtained from each equipment to be upgraded respectively;
Module is verified, for carrying out pair the local process configuration file of each equipment to be upgraded and corresponding original configuration file Than determining inconsistent to be upgraded of configuration data in the configuration data and original configuration file in local process configuration file Equipment.
7. the check device of configuration file according to claim 6, which is characterized in that described device further include:
Modified module, configuration data in local process configuration file for modifying inconsistent equipment to be upgraded or original matches The configuration data in file is set, until configuration data and original configuration in the local process configuration file of all equipment to be upgraded Configuration data in file is consistent.
8. the check device of configuration file according to claim 6, which is characterized in that described device further include:
Periodic reinvestigation module, for periodically being obtained from the management terminal each preset to be checked according to preset time The original configuration file of equipment is ask, and obtains local process configuration file from each preset equipment to be checked respectively, and The local process configuration file of each preset equipment to be checked is compared with corresponding original configuration file, determines this The inconsistent equipment to be checked of the configuration data in configuration data and original configuration file in ground process configuration file.
9. the check device of configuration file according to claim 8, which is characterized in that described device further include:
Sending module, for the local process configuration file by each preset equipment to be checked and corresponding original configuration After file compares, comparing result is sent to preset administrator terminal;Wherein, the comparing result includes: all Identity identification information, local process configuration file and the original configuration file of inconsistent equipment to be checked.
10. the check device of the configuration file according to any one of claim 6~9, which is characterized in that state original configuration File includes: common configuration subfile and business configuration subfile;
Wherein, the common configuration subfile is public according to getting from the common configuration database of the management terminal What configuration data generated;
The business configuration subfile is according to the common configuration got from the business configuration database of the management terminal What data generated.
CN201710580448.9A 2017-07-17 2017-07-17 A kind of check method and device of configuration file Pending CN109271210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710580448.9A CN109271210A (en) 2017-07-17 2017-07-17 A kind of check method and device of configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710580448.9A CN109271210A (en) 2017-07-17 2017-07-17 A kind of check method and device of configuration file

Publications (1)

Publication Number Publication Date
CN109271210A true CN109271210A (en) 2019-01-25

Family

ID=65147709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710580448.9A Pending CN109271210A (en) 2017-07-17 2017-07-17 A kind of check method and device of configuration file

Country Status (1)

Country Link
CN (1) CN109271210A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291289A (en) * 2019-07-24 2021-01-29 中移(苏州)软件技术有限公司 Method and apparatus for managing configuration file and computer readable storage medium
CN112287028A (en) * 2020-10-30 2021-01-29 完美世界(重庆)互动科技有限公司 Data synchronization method and device, storage medium and computing equipment
CN112667281A (en) * 2020-12-30 2021-04-16 联想(北京)有限公司 Configuration information processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832430A (en) * 2006-04-19 2006-09-13 杭州华为三康技术有限公司 Network management method
CN102231679A (en) * 2011-06-29 2011-11-02 烽火通信科技股份有限公司 Method for realizing configuration synchronization of network elements and webmaster
CN103631921A (en) * 2013-12-03 2014-03-12 国家电网公司 Method and device for detecting configuration information of transformer substation
CN106021119A (en) * 2016-08-03 2016-10-12 网易(杭州)网络有限公司 Configuration file calibration method and device
CN106603289A (en) * 2016-12-15 2017-04-26 武汉虹信通信技术有限责任公司 LMT configuration file smooth upgrade method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832430A (en) * 2006-04-19 2006-09-13 杭州华为三康技术有限公司 Network management method
CN102231679A (en) * 2011-06-29 2011-11-02 烽火通信科技股份有限公司 Method for realizing configuration synchronization of network elements and webmaster
CN103631921A (en) * 2013-12-03 2014-03-12 国家电网公司 Method and device for detecting configuration information of transformer substation
CN106021119A (en) * 2016-08-03 2016-10-12 网易(杭州)网络有限公司 Configuration file calibration method and device
CN106603289A (en) * 2016-12-15 2017-04-26 武汉虹信通信技术有限责任公司 LMT configuration file smooth upgrade method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291289A (en) * 2019-07-24 2021-01-29 中移(苏州)软件技术有限公司 Method and apparatus for managing configuration file and computer readable storage medium
CN112287028A (en) * 2020-10-30 2021-01-29 完美世界(重庆)互动科技有限公司 Data synchronization method and device, storage medium and computing equipment
CN112667281A (en) * 2020-12-30 2021-04-16 联想(北京)有限公司 Configuration information processing method and device
CN112667281B (en) * 2020-12-30 2024-04-23 联想(北京)有限公司 Configuration information processing method and device

Similar Documents

Publication Publication Date Title
CN109271210A (en) A kind of check method and device of configuration file
CN106027644B (en) Service verification method and system
CN106549810A (en) Cloud service platform redaction issues front method of testing, device and system
CN113342371A (en) Internet of things equipment upgrading system
CN106612204B (en) Service checking method and device
CN107623735B (en) Accurate updating and upgrading system and method based on openssl in credit investigation machine system
CN104778637A (en) Hotel data processing system and method
CN111144083A (en) Report generation method, device, equipment and computer readable storage medium
CN105553920A (en) Data interaction method, apparatus, and system
CN110088744A (en) A kind of database maintenance method and its system
CN114385759A (en) Configuration file synchronization method and device, computer equipment and storage medium
CN112738138B (en) Cloud security hosting method, device, equipment and storage medium
CN112817867A (en) Interface test script generation method and device, computer equipment and medium
CN107357612A (en) Application program updating detection method and device
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN105635218A (en) Software center system
CN114238255A (en) Method and device for synchronizing files, electronic equipment and computer readable storage medium
CN113434254B (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN111125648B (en) Equipment change method and device
CN102841843B (en) Compatible determination methods and device
CN101924794B (en) Internet based method for monitoring total software operation quantity in real time
JP2011175494A (en) Maintenance work support system
CN102714596A (en) Electronic apparatus and introducing method thereby
CN111831304A (en) Version upgrading method and device, electronic equipment and storage medium
US20170078509A1 (en) Information processing system and information processing 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125

RJ01 Rejection of invention patent application after publication