CN101420324B - Network management system and version renovating method for proxy software - Google Patents

Network management system and version renovating method for proxy software Download PDF

Info

Publication number
CN101420324B
CN101420324B CN2008102166720A CN200810216672A CN101420324B CN 101420324 B CN101420324 B CN 101420324B CN 2008102166720 A CN2008102166720 A CN 2008102166720A CN 200810216672 A CN200810216672 A CN 200810216672A CN 101420324 B CN101420324 B CN 101420324B
Authority
CN
China
Prior art keywords
file
merge
catalogue
server
network management
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.)
Expired - Fee Related
Application number
CN2008102166720A
Other languages
Chinese (zh)
Other versions
CN101420324A (en
Inventor
付红雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN2008102166720A priority Critical patent/CN101420324B/en
Publication of CN101420324A publication Critical patent/CN101420324A/en
Application granted granted Critical
Publication of CN101420324B publication Critical patent/CN101420324B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a network management system and a version upgrading method for agent software thereof, wherein, the network management system comprises an agent server and a network management server; the method comprises the steps that the agent server requires the network management server for version upgrading; the network management server incorporating and compressing catalogs to be upgraded and sending the compressed files to an agent server; the agent server decompressing the received files, reading the decompressed incorporated files, and restoring the original catalog to the local. The invention can upgrade part of the files, reduce the storing space and adds a verification mechanism.

Description

The method for updating edition of a kind of network management system and agent software thereof
Technical field
The present invention relates to the network management system that domain of communication equipment transmits net, relate in particular to the method for updating edition of a kind of network management system and agent software thereof.
Background technology
In transmitting net, whole network is managed by webmastering software, and each node in the network is managed by agent software.In order to finish the upgrading of acting server (acting server is called for short Agent) software version, need on NM server (NM server abbreviation webmaster), deposit the latest edition of agent software, download from Network Management Equipment by each Agent then.
The software version update of network management system mostly adopts flat catalogue load mode at present, promptly all files that will upgrade all are placed under the catalogue, then to each file wherein compress, transmit, decompress(ion) then, handle next file again after a file process is finished.
Current approach exists following problem:
1. require all transaction files are deposited under the catalogue, limited the flexibility of Agent configuration software the release directory;
2. must the All Files under the catalogue that receive be upgraded the agent software version updating time, being not easy only to upgrade needs the part upgraded;
3. do not have verification scheme, must rely on Communication Layer to go verification.
Summary of the invention
Technical problem to be solved by this invention is, the method for updating edition of a kind of network management system and agent software thereof is provided, and the present invention can only upgrade partial document, has reduced memory space, has increased verification scheme.
A kind of network management system, comprise webmaster and Agent, described webmaster is used for all files that will upgrade are formed the hierarchical directory structure according to preset rule, and when receiving the request of Agent version updating, its catalogue that will upgrade is merged, send to described Agent after compressing again;
Described Agent is used for the compressed file that receives is carried out decompress(ion), and the merge file behind the decompress(ion) is returned to this locality.
The method for updating edition of agent software in a kind of network management system comprises that Agent to webmaster request version updating, also comprises the steps:
Step 1: webmaster merges the catalogue that needs to upgrade and also compresses, and then compressed file is sent to Agent;
Step 2: the file that the Agent decompress(ion) is received, and read merge file behind the decompress(ion) returns to this locality according to the information of record wherein with former catalogue.
In the described step 1, webmaster merges the catalogue that needs upgrade by the following method:
Step a: the directory name of obtaining the catalogue that will merge;
Step b: travel through the described catalogue that will merge, write down the information of file and file under the described catalogue that will merge, obtain the catalogue merge file;
Step c: the calculation check value, described check value is merged in the described catalogue merge file, obtain merge file.
Step b specifically comprises:
Step b1: open first element under the root;
Step b2: judge that described element is file or file,, then open file, write down described file path information and file content, execution in step b3 if described element is a file; If described element is file, then write down described folder path information, and with described element as root, execution in step b1 then;
Step b3: judging whether element under the described root travels through finishes, if, execution in step b4 then, otherwise, the next element of described root, execution in step b2 opened;
Step b4: judge whether described root has the superior root catalogue,, then get back to the upper level root if having, execution in step b3, otherwise traversal finishes, and obtains the catalogue merge file.
The method of the described calculation check value of step c is: with the summation of the pathname length of All Files under the described catalogue and file, then predefined integer is got surplus, with operation result as check value.
Comprise in the structure of the merge file that described step c obtains:
The file flag bit; The folder path string length; Folder path; The file mark position; The file path string length; File path; File content length; File content; End mark position and check value.
In the described step 2, acting server is also carried out following operation before the file that decompress(ion) is received: the number of times of the described compressed file that record is received.
In the described step 2, behind the file that the Agent decompress(ion) is received, specifically carry out following steps:
Steps A: open the merge file that decompress(ion) obtains;
Step B: with the method calculation check value identical with webmaster, and with described merge file in the check value preserved compare, if consistent, execution in step C then; Otherwise, execution in step D;
Step C: read the content in the described merge file successively, run into file, then create file; Run into file, then create file according to its routing information, and file content is read from described merge file in the local file of establishment, this upgrades end;
Step D:Agent compares the number of times of receiving described compressed file of its record whether smaller or equal to the re-transmission threshold value that sets in advance, if then ask webmaster to carry out version updating again; Otherwise this upgrades end.
Invent described method and be sent to Agent from webmaster by the file that merging-compression-transmission-decompress(ion)-recovery will need to upgrade, in catalogue merges, having abandoned each file that adopts in present most file merging method all uses the multiple of regular length to store, the method that redundant bit is filled with spcial character, hierarchical directory structure and file structure have flexibly been adopted, reduced the size that merges the back file, thereby reduced memory space, and having added built-in verification scheme, the present invention can only upgrade a part of file (for example only upgrading the file under certain catalogue); Built-in verification scheme has reduced the dependence to bottom host-host protocol reliability, can consider to adopt the host-host protocol of unreliable connection in good network environment, and verification is realized by the upper strata.
Description of drawings
Fig. 1 is a network management system schematic diagram of the present invention;
Fig. 2 is the hierarchical directory structural representation that transaction file is formed in the webmaster of the present invention;
Fig. 3 is the method for the invention flow chart.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment the present invention is described in further details.
As shown in Figure 1, it is network management system schematic diagram shown in the present, comprise webmaster and Agent, described webmaster is used for all files that will upgrade are formed the hierarchical directory structure according to preset rule, and when receiving the request of Agent version updating, its catalogue that will upgrade is merged, send to described Agent after compressing again; Described Agent is used for the compressed file that receives is carried out decompress(ion), and the merge file behind the decompress(ion) is returned to this locality.
As shown in Figure 2, be among the present invention, webmaster is formed all files that will upgrade according to preset rule hierarchical directory structural representation, because what the directory stores of currently used operating system all adopted is the multiway tree structure, so also adopt such structure among the present invention, be that webmaster is formed the multiway tree structure according to the rule of multiway tree structure with the file that will upgrade, 3 files have been comprised among the figure of present embodiment, be respectively file 1, file 2, file 3, file is separately arranged respectively again under each file, Agent can require the file below the transaction file 2, also can require the file under transaction file folder 1 or the file 3.
As shown in Figure 3, be the method for the invention flow chart, specifically comprise the steps:
Step 301:Agent is to webmaster request version updating;
Step 302: after webmaster is received request, merge the catalogue that needs renewal, specifically comprise the steps:
Step (1): obtain the directory name that will merge;
Step (2): travel through whole catalogue, write down the information of file and file under the described catalogue, obtain the catalogue merge file, this step specifically comprises the steps:
Step (21): open first element under the root;
Step (22): judge that described element is file or file,, then open file, write down described file path information and file content, execution in step (23) if described element is a file; If described element is file, then write down described folder path information, and with described element as root, execution in step (21) then;
Step (23): judging whether element under the described root travels through finishes, if, execution in step (24) then, otherwise, the next element of described root, execution in step (22) opened;
Step (24): judge whether described root has the superior root catalogue,, then get back to the upper level root if having, execution in step (23), otherwise traversal finishes, and obtains the catalogue merge file; The universal architecture of the merge file that obtains comprises as shown in Figure 4:
The file flag bit; The folder path string length; Folder path; The file mark position; The file path string length; File path; File content length; File content; End mark position and check value.
The ordering of described merge file be according to when traversal in sequence, when promptly traveling through, if what traverse is a file, then set up this document folder flag bit, write down the path string length and the path of this document folder then, if what continue to traverse is a file, then set up the file mark position of this document, and then write down path string length, path, file content length, the file content of this document; If what continue to traverse is a file, then set up this document folder flag bit, the path string length and the path of writing down this document folder then, and the like, traveled through end up to whole catalogue, add that at last end mark and check value get final product.
Step 303: the calculation check value, described check value is merged in the described catalogue merge file, obtain merge file;
The computational methods of described check value are: with the pathname length summation of All Files under the described catalogue and file, get surplus to predefined integer then, for example get surplus to 32767, with operation result as check value, the pathname length of described file and file has obtained when merging catalogue, only fetches use herein and gets final product.
Step 304: compress described merge file, and compressed file is transferred to Agent;
The number of times of the compressed file that step 305:Agent record is received, the file received of decompress(ion) then, and open the merge file that decompress(ion) obtains;
Step 306:Agent is with the method calculation check value identical with webmaster;
Whether the check value of preserving in the check value that calculates in the step 307:Agent comparison step 306 and the described merge file is consistent, if then execution in step 308; Otherwise, execution in step 309;
Step 308: recover former catalogue to local, promptly read the content in the described merge file successively, run into file, then create file; Run into file, then create file according to its routing information, and file content is read from described merge file in the local file of establishment, this version updating finishes;
Whether the number of times that step 309:Agent comparison step 305 is write down is smaller or equal to the re-transmission threshold value that sets in advance, if execution in step 301 promptly then asks webmaster to carry out version updating again; Otherwise this version updating finishes.
More than comparatively detailed at the description of preferred embodiment; but can not therefore think limitation of the present invention; all and disclosed principle is similarly implemented, and all in protection scope of the present invention, protection scope of the present invention should be as the criterion with claims.

Claims (7)

1. a network management system comprises NM server and acting server, it is characterized in that,
Described NM server is used for all files that will upgrade are formed the hierarchical directory structure according to preset rule, and when receiving the request of acting server version updating, its catalogue that will upgrade is merged, generate merge file, and it is compressed the back generate compressed file, then compressed file is sent to described acting server;
Described acting server is used for the compressed file that receives is carried out decompress(ion), and the merge file behind the decompress(ion) is returned to this locality;
Comprise in the structure of described merge file:
The file flag bit; The folder path string length; Folder path; The file mark position; The file path string length; File path; File content length; File content; End mark position and check value.
2. the method for updating edition of agent software in the network management system comprises that acting server to NM server request version updating, is characterized in that, also comprises the steps:
Step 1: NM server merges the catalogue that needs renewal, generates merge file, generates compressed file after it is compressed, and then compressed file is sent to acting server;
Step 2: the compressed file that the acting server decompress(ion) is received, and read merge file behind the decompress(ion) returns to this locality according to the information of record wherein with former catalogue;
Comprise in the structure of described merge file:
The file flag bit; The folder path string length; Folder path; The file mark position; The file path string length; File path; File content length; File content; End mark position and check value.
3. the method for updating edition of agent software is characterized in that in the network management system as claimed in claim 2, and in the described step 1, NM server merges the catalogue that needs upgrade by the following method:
Step a: the directory name of obtaining the catalogue that will merge;
Step b: travel through the described catalogue that will merge, and write down the information of file and file under the described catalogue that will merge, obtain the catalogue merge file;
Step c: the calculation check value, described check value is merged in the described catalogue merge file, obtain merge file.
4. the method for updating edition of agent software in the network management system as claimed in claim 3 is characterized in that step b specifically comprises:
Step b1: open first element under the root;
Step b2: judge that described element is file or file,, then open file, write down described file path information and file content, execution in step b3 if described element is a file; If described element is file, then write down described folder path information, and with described element as root, execution in step b1 then;
Step b3: judging whether element under the described root travels through finishes, if, execution in step b4 then, otherwise, the next element of described root, execution in step b2 opened;
Step b4: judge whether described root has the superior root catalogue,, then get back to the upper level root if having, execution in step b3, otherwise traversal finishes, and obtains the catalogue merge file.
5. the method for updating edition of agent software in the network management system as claimed in claim 3, it is characterized in that, the method of the described calculation check value of step c is: with the pathname length summation of All Files under the described catalogue and file, then predefined integer is got surplus, with operation result as check value.
6. the method for updating edition of agent software is characterized in that in the network management system as claimed in claim 2, and in the described step 2, acting server is also carried out following operation before the compressed file that decompress(ion) is received: the number of times of the described compressed file that record is received.
7. the method for updating edition of agent software is characterized in that in the network management system as claimed in claim 6, behind the compressed file that described acting server decompress(ion) is received, specifically carries out following steps:
Steps A: open the merge file that decompress(ion) obtains;
Step B: with the method calculation check value identical with NM server, and with described merge file in the check value preserved compare, if consistent, execution in step C then; Otherwise, execution in step D;
Step C: read the content in the described merge file successively, run into file, then create file; Run into file, then create file according to its routing information, and file content is read from described merge file in the local file of establishment, this upgrades end;
Step D: whether the number of times of receiving described compressed file of its record of acting server comparison is smaller or equal to the re-transmission threshold value that sets in advance, if then ask NM server to carry out version updating again; Otherwise this upgrades end.
CN2008102166720A 2008-10-10 2008-10-10 Network management system and version renovating method for proxy software Expired - Fee Related CN101420324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102166720A CN101420324B (en) 2008-10-10 2008-10-10 Network management system and version renovating method for proxy software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102166720A CN101420324B (en) 2008-10-10 2008-10-10 Network management system and version renovating method for proxy software

Publications (2)

Publication Number Publication Date
CN101420324A CN101420324A (en) 2009-04-29
CN101420324B true CN101420324B (en) 2011-04-20

Family

ID=40630945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102166720A Expired - Fee Related CN101420324B (en) 2008-10-10 2008-10-10 Network management system and version renovating method for proxy software

Country Status (1)

Country Link
CN (1) CN101420324B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012119407A1 (en) * 2011-08-23 2012-09-13 华为技术有限公司 Method and device for document updating
CN102360381B (en) * 2011-09-29 2014-03-12 深圳众为兴技术股份有限公司 Device and method for performing lossless compression on embedded program
CN102508880B (en) * 2011-10-18 2014-07-02 广东威创视讯科技股份有限公司 Method for joining files and method for splitting files
CN103347090B (en) * 2013-07-17 2016-05-04 成都盈锐科技有限公司 A kind of software license management method based on enterprise network
CN105376085A (en) * 2014-08-27 2016-03-02 中兴通讯股份有限公司 Method, device and system for upgrading data collection agent
CN108287839B (en) * 2017-01-09 2022-01-28 阿里巴巴集团控股有限公司 Page loading method and equipment
CN111198844B (en) * 2019-12-31 2023-07-28 深圳证券通信有限公司 Method for transmitting specified file or directory structure

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691600A (en) * 2004-04-21 2005-11-02 华为技术有限公司 Software upgrade device in communication network management system and method thereof
CN1786903A (en) * 2004-12-11 2006-06-14 鸿富锦精密工业(深圳)有限公司 System and method for synchronously renewing file of remote computer
CN1874270A (en) * 2006-06-23 2006-12-06 北京佳讯飞鸿电气有限责任公司 Data synchronization method for implementing remote network management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691600A (en) * 2004-04-21 2005-11-02 华为技术有限公司 Software upgrade device in communication network management system and method thereof
CN1786903A (en) * 2004-12-11 2006-06-14 鸿富锦精密工业(深圳)有限公司 System and method for synchronously renewing file of remote computer
CN1874270A (en) * 2006-06-23 2006-12-06 北京佳讯飞鸿电气有限责任公司 Data synchronization method for implementing remote network management

Also Published As

Publication number Publication date
CN101420324A (en) 2009-04-29

Similar Documents

Publication Publication Date Title
CN101420324B (en) Network management system and version renovating method for proxy software
CN102880663B (en) The optimization of the file of part deduplication
US8306948B2 (en) Global deduplication file system
US7472254B2 (en) Systems and methods for modifying a set of data objects
US8572136B2 (en) Method and system for synchronizing a virtual file system at a computing device with a storage device
CN102591946B (en) It is divided using index and coordinates to carry out data deduplication
JP5130386B2 (en) Efficient database synchronization by comparing representative information
CN102571991B (en) Multistage-mapping-based large-scale multi-copy distributed storage system and application method thereof
CN104488248B (en) A kind of file synchronisation method, server and terminal
CN101009516A (en) A method and system for data synchronization
CN101453418A (en) Updating method for synchronization between customer terminal and server
US11221921B2 (en) Method, electronic device and computer readable storage medium for data backup and recovery
US10250670B2 (en) Streaming zip
CN109684282A (en) A kind of method and device constructing metadata cache
CN101977217A (en) Widget updating method and system as well as Widget client and Widget server
CN103793482A (en) Data synchronization method and system
CN113360456B (en) Data archiving method, device, equipment and storage medium
CN105407044B (en) A kind of implementation method of the cloud storage gateway system based on NFS
CN106528300A (en) Console game synchronizing method, device and terminal
CN103888513B (en) Server end multifile method for down loading and system
CN105701179B (en) The form access method of distributed file system based on UniWhale
US20110107046A1 (en) Binary-level update of compressed read-only file systems
US9646016B2 (en) Methods circuits apparatuses systems and associated computer executable code for data deduplication
KR20090003057A (en) System and method for managing meta-data
CN105677579A (en) Data access method and system in cache system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110420

Termination date: 20171010