CN106982132A - A kind of method of north direction document generation, apparatus and system - Google Patents

A kind of method of north direction document generation, apparatus and system Download PDF

Info

Publication number
CN106982132A
CN106982132A CN201610032756.3A CN201610032756A CN106982132A CN 106982132 A CN106982132 A CN 106982132A CN 201610032756 A CN201610032756 A CN 201610032756A CN 106982132 A CN106982132 A CN 106982132A
Authority
CN
China
Prior art keywords
north direction
direction document
network element
document
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
CN201610032756.3A
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 CN201610032756.3A priority Critical patent/CN106982132A/en
Priority to PCT/CN2016/092724 priority patent/WO2017124726A1/en
Publication of CN106982132A publication Critical patent/CN106982132A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5032Generating service level reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method of north direction document generation, apparatus and system, is related to data communication field, wherein the method that the north direction document applied to the first network element webmaster is generated includes:When reaching first time point, when detecting without the first north direction document, create lock file and establishment the first north direction document corresponding with the lock file, and set the lock file to be masked as opening flag, wherein the first time point is the time that the first network element webmaster generates first north direction document;The data collected are written in first north direction document, and the mark of the lock file is revised as complement mark.

Description

A kind of method of north direction document generation, apparatus and system
Technical field
The present invention relates to data communication field, more particularly to a kind of method of north direction document generation, device and System.
Background technology
As shown in figure 1, telecommunications network generally uses multi-zone supervision, wherein network management is divided into three layers:Equipment, Network element network management system, Integrated Network Management System.Specific interaction is between three layers:The data of equipment are passed through into net Some interfaces that first network management system is connected with Integrated Network Management System are transmitted.Some interfaces of the connection are referred to as Northbound interface (Northbound Inteerface).The northbound interface is that equipment manufacturer or operator are accessed With the interface of management network, i.e., the interface provided upwards.1) effect of northbound interface:Northbound interface is usual It is to be reported for the data of equipment webmaster, the data of mainly four types need to report:Warning, performance, Assets and configuration data.2) type of northbound interface:It is broadly divided into according to connected mode:FTP(File transfer Protocol, FTP), and SNMP (Simple network management protocol, simply NMP), and CORBA (Common Object Request Broker Architecture, it is public Object request broker architecture), wherein FTO is adapted to reporting for Single-wire data, is adapted to the transmission of big data, The function that CORBA and SNMP interfaces are supported is more, such as data and state of failure, topological sum resource Inquiry, there are control and configuration data to issue.
Network element network management system meeting newly added equipment or newly-increased way to manage, such as newly-increased way to manage is to pass through Multiple equipment webmaster manages different equipment respectively.But general comprehensive network management only receives a fixed interface, If being divided into many parts of files to report, existing comprehensive network management interface will be caused to change, there is incompatible ask Topic.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method of north direction document generation, apparatus and system, north The output that can stablize to file under the first network element webmaster effectively shielding.
To achieve these goals, a kind of method of north direction document generation provided in an embodiment of the present invention, application In the first network element webmaster, wherein, the method for the north direction document generation includes:
Reach first time point when, detect without the first north direction document when, create lock file and create and Corresponding first north direction document of the lock file, and the lock file is set be masked as opening flag, wherein The first time point is the time that the first network element webmaster generates first north direction document;
The data collected are written in first north direction document, and the mark of the lock file is changed For complement mark.
Wherein, the method for the north direction document generation also includes:
When having detected the first north direction document, the corresponding lock text of first north direction document is not detected Part is masked as complement mark, then generate the corresponding lock file of first north direction document described in one be masked as complete Mark.
Wherein, the method for the north direction document generation also includes:
First north direction document is sent, first north direction document is stored by preset device.
The embodiment of the present invention also provides a kind of method of north direction document generation, applied to the second network element webmaster, institute The first north direction document of the network element webmaster of the second network element webmaster before processing one is stated, wherein, the north direction document generation Method include:
When reaching for the second time point, detect the first north direction document correspondence lock file is masked as completion During mark, the mark of the lock file is revised as opening flag by the complement mark, wherein described second Time point, the first time point was that previous network element webmaster generates the first north direction document after first time point Time;
The data supplementing collected is write in first north direction document, one second north direction document is generated;
After the completion of write-in, the mark of the lock file of second north direction document is revised as complement mark.
Wherein, described after the completion of write-in, the mark of the lock file of second north direction document is revised as After the step of complement mark, the method for the north direction document generation also includes:
Delete the lock file.
Wherein, the data supplementing collected is write in first north direction document described, generation one second Before the step of north direction document, the method for the north direction document generation also includes:
When being masked as complement mark of file of lock of first north direction document is not being detected, is not being examined The lock file for measuring first north direction document is masked as opening flag.
Further, it is described to write the data supplementing collected in first north direction document, generation 1 the The step of two north direction documents, specifically includes:
Obtain the writing position of first north direction document;
The data supplementing collected is write to the writing position of first north direction document, second north is generated To file.
Wherein, the method for the north direction document generation also includes:
Second north direction document is sent, second north direction document is stored by preset device.
The embodiment of the present invention also provides a kind of device of north direction document generation, applied to the first network element webmaster, its In, the device of the north direction document generation includes:
First detection process module, for when reaching first time point, detecting without the first north direction document When, create lock file and establishment the first north direction document corresponding with the lock file, and the lock file is set Be masked as opening flag, wherein the first time point be the first network element webmaster generation it is described first north To the time of file;
First modified module, for the data collected to be written in first north direction document, and by institute The mark for stating lock file is revised as complement mark.
The embodiment of the present invention also provides a kind of device of north direction document generation, applied to the second network element webmaster, institute The first north direction document of the network element webmaster of the second network element webmaster before processing one is stated, wherein, the north direction document generation Device include:
Second detection process module, for when reaching for the second time point, detecting first north direction document Correspondence when being masked as complement mark of file of lock, the mark of the lock file is revised as by the complement mark Opening flag, wherein second time point is after first time point, the first time point is previous net First webmaster generates the time of the first north direction document;
Generation module, for the data supplementing collected to be write in first north direction document, generation 1 the Two north direction documents;
Second modified module, for after the completion of write-in, by the mark of the lock file of second north direction document It is revised as complement mark.
The embodiment of the present invention also provides a kind of system of north direction document generation, including north direction document described above life Into device.
The above-mentioned technical proposal of the embodiment of the present invention has the beneficial effect that:
In the scheme of the embodiment of the present invention, opening flag is masked as using lock file by the first network element webmaster, Start to generate the first north direction document, and after first north direction document is generated, the mark that will lock file is opened Beginning mark is changed to complement mark, and such first north direction document can be steady under the first network element webmaster effectively shielding Fixed output.
Brief description of the drawings
The step schematic diagram for the method that Fig. 1 generates for the north direction document of first embodiment of the invention;
Fig. 2 is the interaction figure between generation each network element of north direction document of the embodiment of the present invention;
One step schematic diagram of the method that Fig. 3 generates for the north direction document of the embodiment of the present invention;
Another step schematic diagram for the method that Fig. 4 and Fig. 5 generates for the north direction document of the embodiment of the present invention;
Fig. 6 generates the flow chart of the first north direction document for the first network element webmaster of the embodiment of the present invention;
The step schematic diagram for the method that Fig. 7 generates for the north direction document of second embodiment of the invention;
When Fig. 8 is that the second network element webmaster of the embodiment of the present invention is intermediate NE webmaster, generation the second north orientation text The flow chart of part;
When Fig. 9 is that the second network element webmaster of the embodiment of the present invention is final network element webmaster, generation the second north orientation text The flow chart of part;
The step schematic diagram for the method that Figure 10 generates for the second north direction document of the embodiment of the present invention;
Figure 11 is the overall implementation process figure of the embodiment of the present invention;
The structural representation for the device that Figure 12 generates for the generation north direction document of third embodiment of the invention;
The structural representation for the device that Figure 13 generates for the generation north direction document of fourth embodiment of the invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with attached Figure and specific embodiment are described in detail.
The embodiment of the present invention is directed to newly added equipment or newly-increased way to manage in network element network management system in the prior art, The interface of comprehensive network management can be caused incompatible, and generation north direction document the problem of be easily interfered there is provided A kind of method of north direction document generation, apparatus and system.
First embodiment
As shown in figure 1, the method for the north direction document generation of the embodiment of the present invention, applied to the first network element webmaster, Wherein, the method for the north direction document generation includes:
Step 101, when reaching first time point, when detecting without the first north direction document, lock text is created Part and establishment the first north direction document corresponding with the lock file, and set the lock file be masked as start Mark, wherein the first time point is the time that the first network element webmaster generates first north direction document.
It should be noted that:Above-mentioned first time point refers to that the first network element webmaster begins preparing for generating the first north orientation The time point of file, quantity and user of the general first time point by user according to generation north direction document equipment Demand is determined.Specifically, for user needs, typically at late 21 points of night to morning 5 Between point, the north direction document of equipment generation is less, therefore the time point set at night is less.For generation For north direction document equipment, such as the number for generating north direction document equipment is 8, the then very first time set Point is 8 points of morning, corresponds to each hour one time point of setting, other are started according to the time point of setting The equipment for generating north direction document.
Further, the first network element webmaster can start for the first preset time period, that is to say, that step 101 can be with Specially:The first preset time period when reaching first time point, when detecting without the first north direction document, Lock file and establishment the first north direction document corresponding with the lock file are created, and the mark of the lock file is set Will is opening flag, and the first north orientation text is generated wherein the first time point is the first network element webmaster The time of part.First preset time period is to need to be configured according to user or industry.General first is pre- The time span of north direction document can also normally be generated according to equipment or ensure each by putting the period Equipment is normally generated under the time span of north direction document, is determined by the quantity of generation north direction document equipment.Such as Under normal circumstances, the time span that the equipment generates the first north direction document is half an hour, then above-mentioned first is preset Period could be arranged to 1 hour to 2 hours.If the equipment of generation north direction document is more, such as totally four The time of individual generation north direction document equipment is 30 points of kinds, then is ensureing what the first north direction document of generation was completed In the case of, above-mentioned first preset time period is set to 40 minutes to one hour.Certainly it is only to lift more than Example explanation, is not limited thereto.Wherein, the equipment of generation north direction document can be worked always, can also It is the preset time period work set according to user.The present invention is preferably to be worked according to preset time period, so The load of equipment can be reduced.
Further, the purpose for being masked as opening flag of the lock file is, is generating the first north direction document mistake Cheng Zhong, will not be disturbed by other processes or equipment.
Step 102, the data collected are written in first north direction document, and by the lock file Mark be revised as complement mark.
It should be noted that:As shown in Fig. 2 the above-mentioned data collected refer to by the first network element webmaster At least network element 24 and network element 25 of 23 (network element webmaster includes the first network element webmaster) management, corresponding network element Subsystem collects the data of institute's monitoring device.The first north direction document (north direction document 22 is generated according to the data Including the first north direction document), comprehensive network management 21 collects north direction document.
Further, the purpose for being masked as complement mark of the lock file is, is generating the generation of the first north direction document After the completion of, represent that the equipment does not have task, other equipment can be received and access or perform other tasks.
In the embodiment of the present invention, by the first network element webmaster using the opening flag that is masked as locking file, start Generate the first north direction document, and after the first north direction document is generated, the mark that will lock file starts mark Will is changed to complement mark, what such first north direction document can be stablized under the first network element webmaster effectively shielding Output.
For first embodiment of the invention, in addition it is also necessary to which explanation is:First north direction document of above-mentioned generation can be with It is that the first network element webmaster is locally stored or has other equipment to be stored.Generally preferably it is by other Equipment is stored, and can so reduce the load of the first network element webmaster, and need in other network element webmasters Using or it is additional when, directly obtained or read writing position from other equipment, reduce the first network element net The load of pipe interaction.
If as shown in figure 3, there is the first north direction document in the first network element webmaster, if also repeatedly generating First north direction document, so can not only increase the burden of the first network element webmaster, and it is wrong to have execution task By mistake the problem of, therefore the embodiment of the present invention north direction document generation method also include:
Step 103, when having detected the first north direction document, first north direction document is not detected Corresponding lock file is masked as complement mark, then generates the corresponding lock file of first north direction document described in one It is masked as complement mark.
, by having detected whether the first north direction document in advance, there is the first north direction document in the embodiment of the present invention When, the mark with the north direction document generated is detected whether, if it is not, generation lock file Complement mark is masked as, the first north direction document would not be regenerated;If so, then ending task, so Avoid reruning for task.
As shown in Figure 4 and Figure 5, because each comprehensive network management can only obtain a north direction document, newly added equipment Or newly-increased way to manage, the interface of comprehensive network management can be caused incompatible, therefore the north orientation text of the embodiment of the present invention The method of part generation also includes:
Step 104, first north direction document is sent, first north direction document is stored by preset device.
It should be noted that:Here preset device storage can be computer, virtual machine or other servers, It is any to realize the terminal of the first north direction document of storage, the protection domain of the embodiment of the present invention is belonged to, This citing that differs.
Here send the first north direction document, i.e. north direction document to export, this is a kind of typical data output format. Usual file output can be CSV (Comma-Separated Values, comma separated value, its file with Plain text storage list data (numeral and text)), TXT (TXT be Microsoft on an operating system A kind of subsidiary text formatting, is a kind of most common file format, applies just many early in the DOS epoch, Main to deposit text message, as text information, present operating system is preserved using programs such as notepads mostly, Most software can check, such as notepad, browser etc.), XML (Extensible Markup Language, extensible markup language) or extended formatting.North direction document can be located at the FTP of preset device (File Transfer Protocol, FTP) or hard disk assigned catalogue.North direction document has fixation File or folder name.Such as generate assets information:Common name is as follows:PORT_20150910.csv
Above-mentioned name represents PORT (port) assets letter that the network element webmaster on the 10th of September in 2015 is got Breath.Comprehensive network management takes the total data that the first network element webmaster and/or the second network element webmaster are reported, can be right Whole network carries out unified data analysis.
In the embodiment of the present invention, specific north direction document (including the first north direction document and the second north direction document, The general designation of i.e. all north direction documents), lock file generally according to following rule name.
The rule name of north direction document:PORT_20150910.csv
Lock the rule name for being masked as opening flag of file:PORT_20150910_start.log
Lock the rule name for being masked as complement mark of file:PORT_20150910_finish.log
Wherein, the filename first half of lock file is free of the content of suffix for north direction document filename.Start When increase opening flag, such as _ start.log;End mark is revised as when end, such as _ finish.log.
Further, the opening flag that is masked as of lock file is referred to as starting to lock file, locks being masked as file Complement mark is referred to as completing lock file, and this starts lock file with completing lock file in the mistake entirely realized There can only be one in journey.Typically by way of changing filename or deleting reconstruction, keep completing to lock file It is unique in task process is performed with lock file is started.
The embodiment of the present invention, by the way that the first north direction document is stored in preset device, other each generation north Also the north direction document of generation is stored in preset device to the network element webmaster of file, so comprehensive network element can be with The first north direction document is directly obtained at preset device, it is not necessary to consider newly added equipment or newly-increased way to manage Influence to comprehensive network element, still uses and is exported with original north direction document identical north direction document form, also kept away Exempt from the interface incompatibility problem that there is comprehensive network management, improve the efficiency that comprehensive network management obtains north direction document.
As shown in fig. 6, the first network element webmaster of the embodiment of the present invention creates the overall realization of the first north direction document Process is as follows.
Step 601, first network element webmaster the first north direction document of inspection whether there is, then perform 607;If There is no north direction document presence, then perform step 602 to step 606.Wherein the first north direction document has been present , now addition have failed.It is typically to cause the first network element webmaster time that have modified to appoint this reason occur Business is reruned.The either Time Calculation error of other network element webmasters, the first north orientation text of operation generation in advance Part.
Step 602, lock file is created, and creates lock file and is masked as opening flag.
Step 603, the first north direction document is created.
Step 604, the data collected from network element or database are written in north direction document.
Step 605, after write-in terminates, the mark for locking file is revised as complement mark.
Step 606, the data of the first network element webmaster, the first north direction document of generation is finished.
Step 607, check that lock file whether there is, if lock file is not present, perform 608;If Lock file to exist, then perform 609.
Step 608, a lock file is created, allows and avoids the interpolation data of network element webmaster repetition below.
Step 609, interpolation data fails, and ends task.
Second embodiment
As shown in fig. 7, the method for the north direction document generation of the embodiment of the present invention, applied to the second network element webmaster, First north direction document of the network element webmaster of the second network element webmaster before processing one, wherein, the north direction document life Into method include:
Step 701, when reaching for the second time point, the first north direction document correspondence lock file is detected When being masked as complement mark, the mark of the lock file is revised as opening flag by the complement mark, its Described in the second time point after first time point, the first time point is previous network element webmaster generation the The time of one north direction document;
It should be noted that:Above-mentioned second time point refers to that the first network element webmaster begins preparing for generating the second north orientation The time point of file, quantity and user of general second time point by user according to generation north direction document equipment Demand is determined.Specifically, for user needs, typically at late 21 points of night to morning 5 Between point, the north direction document of equipment generation is less, therefore the time point set at night is less.For generation For north direction document equipment, such as the number for generating north direction document equipment is 8, then the second time set Point is 8 points of morning, corresponds to each hour one time point of setting, other are started according to the time point of setting The equipment for generating north direction document.
Further, the first network element webmaster can start for the second preset time period, that is to say, that step 701 can be with Specially:The second preset time period when reaching for the second time point, detect second north direction document pair When being masked as complement mark of file should be locked, the mark of the lock file is revised as out by the complement mark Begin mark, wherein second time point is after first time point, the first time point is previous network element Webmaster generates the time of the second north direction document.Second preset time period be according to user or industry need into Row is set.General second preset time period can also normally generate the time span of north direction document according to equipment, Can also normally be generated under the time span of north direction document in each equipment of guarantee, be set by generation north direction document Standby quantity is determined.Such as under normal circumstances, the time span that the equipment generates the second north direction document is half small When, then above-mentioned second preset time period could be arranged to 1 hour to 2 hours.If generating north direction document Equipment is more, such as the time of totally four generation north direction document equipment is 30 points of kinds, then is ensureing generation In the case that second north direction document is completed, above-mentioned second preset time period is set to 40 minutes to one hour. Certainly it is merely illustrative, is not limited thereto more than.Wherein, the equipment of generation north direction document can be The preset time period for working or being set according to user always works.The present invention is preferably according to preset Period works, and can so reduce the load of equipment.
Step 702, the data supplementing collected is write in first north direction document, the north of generation one second To file;
Here the second north direction document is added in the first north direction document of write-in, equivalent in the first north direction document The file of the data collected is added below.But north direction document includes the first north direction document and the second north orientation File.
Further, above-mentioned second network element webmaster can also be used as intermediate NE net as final network element webmaster Pipe, specifically final network element webmaster or intermediate NE webmaster all have relation with practical application.Such as Fig. 2 Shown, above-mentioned second network element webmaster refers to by final as final network element webmaster, the above-mentioned data collected At least network element 27 and network element 28 of network element webmaster 26 (network element webmaster includes final network element webmaster) management, it is right The network element subsystem answered collects the data of institute's monitoring device.The second north direction document (north orientation is generated according to the data File 22 includes the second north direction document), comprehensive network management 21 collects north direction document.
Step 703, after the completion of write-in, the mark of the lock file of second north direction document has been revised as Into mark.
In the embodiment of the present invention, the first network element webmaster is added by follow-up second network element webmaster and forms a north orientation File, generates the second north direction document, multiple a set of unified northbound interface outputs of webmaster generation, in comprehensive network When pipe needs to use data, the first north direction document is directly obtained, it is not necessary to consider newly added equipment or newly-increased management Influence of the mode to comprehensive network element, still uses and is exported with original north direction document identical north direction document form, Also the interface incompatibility problem that there is comprehensive network management is avoided, the efficiency that comprehensive network management obtains north direction document is improved.
It should be noted that:Above-mentioned second network element webmaster can be as final network element webmaster, in can also being used as Between network element webmaster, and set up intermediate NE webmaster it is not necessary to, can be constantly added in the later stage, Therefore the number of intermediate NE webmaster can be with one or multiple, so as to realize expanding for whole system Malleability.But the implementation procedure of the intermediate NE webmaster of all additions, can be using the embodiment of the present invention The method of north direction document generation is realized.For the second network element of embodiment of the present invention webmaster be intermediate NE webmaster or The process that implements of the final network element webmaster of person is exemplified below.
As shown in figure 8, the second network element of embodiment of the present invention webmaster is the overall implementation process of intermediate NE webmaster It is as follows.
Step 801, the north direction document of intermediate NE webmaster inspection first is masked as completion with the presence or absence of lock file Mark.If it is present performing step 802 to step 806, it is likely to occur if not depositing lock file explanation Exception.Then perform step 807.
Step 802, the complement mark that is masked as of file will be locked, that changes lock file is masked as opening flag.
Step 803, data are write into the first north direction document.Complete the addition work of data, generation second North direction document.
Step 804, the opening flag that is masked as of file is most locked at last, and the completion that is masked as of modification lock file is marked Will.
Step 805, complete after modification, the data addition of intermediate NE webmaster is finished.
Step 806, the north direction document of intermediate NE webmaster inspection first is masked as beginning with the presence or absence of lock file Mark.If locking file to exist, it was demonstrated that data are locked, forbid modification;If lock file is not present, hold Row step 807.
Step 807, a lock file is created, and creates lock file and is masked as opening flag, according to normal Flow (the such as establishment process of the first network element webmaster) creates north direction document and writes northbound data thereto.
Step 808, the output failure of the second northbound data is caused.
As shown in figure 9, the second network element of embodiment of the present invention webmaster is final network element webmaster, the second north orientation is created The overall implementation process of file (i.e. final north direction document) is as follows.
Step 901, final network element webmaster checks first/second north direction document being masked as with the presence or absence of lock file Complement mark.If it is present step 902 is performed to step 906, may if not depositing lock file explanation Occur in that exception.Then perform step 907.
Step 902, the complement mark that is masked as of file will be locked, that changes lock file is masked as opening flag.
Step 903, data are write into first/second north direction document.Complete the addition work of data, generation Final north direction document.
Step 904, the opening flag that is masked as of file is most locked at last, and the completion that is masked as of modification lock file is marked Will, and delete lock file.
Step 905, complete after modification, the data addition of final network element webmaster is finished.
Step 906, final network element webmaster checks first/second north direction document being masked as with the presence or absence of lock file Opening flag.If locking file to exist, it was demonstrated that data are locked, forbid modification;If lock file is not present, Then perform step 907.
Step 907, a lock file is created, and creates lock file and is masked as opening flag, according to normal Flow (the establishment process of such as first/second network element webmaster) creates north direction document and writes north orientation thereto Data.
Step 908, final northbound data output failure is caused.
As shown in Figure 10, if the second network element webmaster is final network element webmaster, the north of the embodiment of the present invention Into the method for file generated, after step 703, the method for the north direction document generation also includes:
Step 704, the lock file is deleted.
Here the deletion lock file, shows that once overall north direction document generation is completed, comprehensive network management is obtained When taking the data of north direction document, it can judge whether the data of north direction document are normal according to lock file, if deposited File is being locked, then tasks carrying has problem.Needed when specific implementation to each network element webmaster and comprehensive Close webmaster and all leave the enough execution time.Thus be avoided that do not deleted also in last time lock file when, comprehensive network Pipe needs to obtain the data of north direction document, unnecessary mistake occurs.
Specifically determine whether final network element webmaster, it is relevant with user's setting.The final net of the embodiment of the present invention First webmaster has some last data of one complete north direction document of generation.
When the first network element webmaster does not collect data, the first north direction document of failure itself or no generation, If force to generate north direction document since the first network element webmaster, then just cannot normally run, therefore this hair Bright embodiment north direction document generation method before step 702, in addition to:It is described not detecting When being masked as complement mark of file of lock of first north direction document, first north direction document is not detected Lock file be masked as opening flag.It can be so adjusted, improved according to user's request or equipment The applicability of this method.
It is preferred that, the method for the north direction document generation of the embodiment of the present invention, step 702 is specifically included:
Step 7021, the writing position of first north direction document is obtained;
Step 7022, the data supplementing collected is write to the writing position of first north direction document, it is raw Into second north direction document.
The embodiment of the present invention, by obtaining the writing position of the first north direction document, then need not obtain whole the At one north direction document, the writing position for being directly appended to the first north direction document, the second network element webmaster is reduced Load, can also realize the generation of complete north direction document.
Because each comprehensive network management can only obtain a north direction document, newly added equipment or newly-increased way to manage, meeting Cause the interface of comprehensive network management incompatible, therefore the method for the north direction document generation of the embodiment of the present invention also includes:
Step 705, second north direction document is sent, second north direction document is stored by preset device.
It should be noted that:Here preset device storage can be computer, virtual machine or other servers, It is any to realize the terminal of the second north direction document of storage, the protection domain of the embodiment of the present invention is belonged to, This citing that differs.
Further, the second north direction document, i.e. north direction document are sent here to export, this is that a kind of typical data are defeated Go out form.Usual file output can be CSV (Comma-Separated Values, comma separated value, Its file is with plain text storage list data (numeral and text)), (TXT is Microsoft in behaviour to TXT Make a kind of text formatting subsidiary in system, be a kind of most common file format, should early in the DOS epoch With just a lot, text message, as text information are mainly deposited, present operating system uses notepad mostly Preserved etc. program, most software can check, such as notepad, browser etc.), XML (Extensible Markup Language, extensible markup language) or extended formatting.North direction document can be located to be installed in advance The FTP (File Transfer Protocol, FTP) of standby storage or the assigned catalogue of hard disk.North There is fixed file or folder name to file.
Such as generate assets information:Common name is as follows:PORT_20150910.csv
Represent PORT (port) assets information that the network element webmaster on the 10th of September in 2015 is got.It is comprehensive Webmaster takes the total data that the first network element webmaster and/or the second network element webmaster are reported, can be to whole network Carry out unified data analysis.
The embodiment of the present invention, by the way that the second north direction document is stored in preset device, other each generation north Also the north direction document of generation is stored in preset device to the network element webmaster of file, so comprehensive network element can be with The second north direction document is directly obtained at preset device, it is not necessary to consider newly added equipment or newly-increased way to manage Influence to comprehensive network element, still uses and is exported with original north direction document identical north direction document form, also kept away Exempt from the interface incompatibility problem that there is comprehensive network management, improve the efficiency that comprehensive network management obtains north direction document.
As shown in figure 11, the overall implementation process of the embodiment of the present invention is as follows.
Whole flow process is performed sequentially in time, defines the operation of the first network element webmaster 1:00 AM, centre first The operation of network element webmaster 2:00 AM, the operation of middle second network element webmaster 3:00 AM, final network element webmaster morning 4 points of operations, comprehensive network managements obtain file 5:00 AM and obtain north direction document.The embodiment of the present invention is by two Individual intermediate NE webmaster is illustrated, and the two intermediate NE webmasters of practical application can have, can also the later stage It can add, but the process for performing north direction document generation is identical.
Step 1101, the first network element webmaster creates the first north direction document and writes north direction document data, and adds Add file is locked.
Step 1102, if at this time the first network element webmaster has also been not carried out file generated work, file The mark of lock does not become complement mark, then the north orientation generation work of middle first network element webmaster is forced to lose Lose;If the mark of the file lock of the first network element webmaster becomes complement mark, middle first network element webmaster is added First north direction document, adds the data of itself, generates first the second north direction document, changes file lock.
Step 1103, if the first network element webmaster has also been not carried out file generated work in the middle of at this time, The mark of file lock does not become complement mark, then the north orientation generation work of middle second network element webmaster just by Compel failure;If the mark of the file lock of middle first network element webmaster becomes complement mark, middle second network element Webmaster adds first the second north direction document, adds the data of itself, generates second the second north direction document, Change file lock.
Step 1104, final network element webmaster adds second the second north direction document.If the first net now First webmaster, middle first network element webmaster or middle second network element webmaster have execution or not and complete generation north orientation text Part, the mark of file lock does not become complement mark, the generation north direction document work of final network element webmaster just by Compel failure.Etc. final network element webmaster, final data is added, final north direction document is generated, lock file is deleted.
Step 1105, comprehensive network management obtains final north direction document, that is, only one of which north direction document, bag The file of whole network element webmaster northbound datas is contained.
3rd embodiment
As shown in figure 12, a kind of device of north direction document generation of the embodiment of the present invention, applied to the first network element Webmaster, wherein, the device of the north direction document generation includes:
First detection process module 1201, for when reaching first time point, detecting without the first north During to file, lock file and establishment the first north direction document corresponding with the lock file are created, and set described That locks file is masked as opening flag, wherein the first time point is that the first network element webmaster generation is described The time of first north direction document;
First modified module 1202, for the data collected to be written in first north direction document, And the mark of the lock file is revised as complement mark.
The device of the north direction document generation of further embodiment of this invention also includes:
In the embodiment of the present invention, by the first network element webmaster using the opening flag that is masked as locking file, start Generate the first north direction document, and after the first north direction document is generated, the mark that will lock file starts mark Will is changed to complement mark, what such first north direction document can be stablized under the first network element webmaster effectively shielding Output.
It should be noted that the device that the present invention is provided is the device of the method generated using above-mentioned north direction document, Then all embodiments of the method for above-mentioned north direction document generation are applied to the device, and can reach it is identical or Similar beneficial effect.
Generation module is detected, for when having detected the first north direction document, described first not to be detected The corresponding lock file of north direction document is masked as complement mark, then generates first north direction document described in one corresponding That locks file is masked as complement mark.
The device of the north direction document generation of further embodiment of this invention also includes:
First sending module, for sending first north direction document, first north is stored by preset device To file.
Fourth embodiment
As shown in figure 13, the device of the north direction document generation of the embodiment of the present invention, applied to the second network element net Pipe, the first north direction document of the network element webmaster of the second network element webmaster before processing one, wherein, the north orientation text The device of part generation includes:
Second detection process module 1301, for when reaching for the second time point, detecting first north To file correspondence when being masked as complement mark of file of lock, by the mark of the lock file by the complement mark Opening flag is revised as, wherein second time point, after first time point, the first time point is Previous network element webmaster generates the time of the first north direction document;
Generation module 1302, it is raw for the data supplementing collected to be write in first north direction document Into one second north direction document;
Second modified module 1303, for after the completion of write-in, by the lock file of second north direction document Mark be revised as complement mark.
In the embodiment of the present invention, the first network element webmaster is added by follow-up second network element webmaster and forms a north orientation File, generates the second north direction document, multiple a set of unified northbound interface outputs of webmaster generation, in comprehensive network When pipe needs to use data, the first north direction document is directly obtained, it is not necessary to consider newly added equipment or newly-increased management Influence of the mode to comprehensive network element, still uses and is exported with original north direction document identical north direction document form, Also the interface incompatibility problem that there is comprehensive network management is avoided, the efficiency that comprehensive network management obtains north direction document is improved.
The device of the north direction document generation of further embodiment of this invention also includes:
Removing module, for deleting the lock file.
The device of the north direction document generation of further embodiment of this invention also includes:
Detection module, for being marked in the completion that is masked as not detecting the lock file of first north direction document During will, the lock file that first north direction document is not detected is masked as opening flag.
In the device of the north direction document generation of further embodiment of this invention, the generation module 1302 includes:
Acquiring unit, the writing position for obtaining first north direction document;
Generation unit, the writing position for the data supplementing collected to be write to first north direction document, Generate second north direction document.
The device of the north direction document generation of further embodiment of this invention also includes:
Second sending module, for sending second north direction document, second north is stored by preset device To file.
It should be noted that the device that the present invention is provided is the dress of the method using above-mentioned main north direction document generation Put, then all embodiments of the method for above-mentioned north direction document generation are applied to the device, and can reach phase Same or similar beneficial effect.
The embodiment of the present invention also provides a kind of system, includes the device of north direction document described above generation.
For the system, north direction document generating means applied to the first network element webmaster, applied to second The north direction document generating means of network element webmaster (intermediate NE webmaster and final network element webmaster) are successively to north orientation text Part interpolation data.By the write-in for locking document control northbound data, it is to avoid occur to repeat or wrong agreement. Last comprehensive network management reads the file ultimately generated.The embodiment of the present invention is to be multiple network element webmaster generations one Part north direction document, so that whole system interface is more stablized.
Wherein, there is the network element webmaster of 2 or more than 2 in the system.Network element webmaster is responsible for collecting its management The northbound data of network element, and northbound data is write into north direction document.Comprehensive network management reads file data and obtains complete The information of the northbound data of net.
The device that the corresponding north direction document due to the embodiment of the present invention is generated, is generated applied to north direction document System, therefore, the embodiment of the present invention additionally provide a kind of system of north direction document generation, wherein, above-mentioned north Realize that embodiment suitable for the embodiment of the system, can also reach phase to the described of device of file generated Same technique effect.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to One entity or operation are made a distinction with another entity or operation, and not necessarily requires or implies this There is any this actual relation or order between a little entities or operation.Moreover, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that including a series of Process, method or the device of key element not only include those key elements, but also its including being not expressly set out His key element, or also include for this process, method, article or the intrinsic key element of terminal device. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method or device including the key element.
Described above is the preferred embodiment of the present invention, it is noted that for the common skill of the art For art personnel, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, These improvements and modifications also should be regarded as protection scope of the present invention.

Claims (11)

1. a kind of method of north direction document generation, applied to the first network element webmaster, it is characterised in that described The method of north direction document generation includes:
Reach first time point when, detect without the first north direction document when, create lock file and create and Corresponding first north direction document of the lock file, and the lock file is set be masked as opening flag, wherein The first time point is the time that the first network element webmaster generates first north direction document;
The data collected are written in first north direction document, and the mark of the lock file is changed For complement mark.
2. the method for north direction document generation according to claim 1, it is characterised in that also include:
When having detected the first north direction document, the corresponding lock text of first north direction document is not detected Part is masked as complement mark, then generate the corresponding lock file of first north direction document described in one be masked as complete Mark.
3. the method for north direction document generation according to claim 1 or 2, it is characterised in that also wrap Include:
First north direction document is sent, first north direction document is stored by preset device.
4. a kind of method of north direction document generation, applied to the second network element webmaster, the second network element webmaster First north direction document of the network element webmaster of before processing one, it is characterised in that the method bag of the north direction document generation Include:
When reaching for the second time point, detect the first north direction document correspondence lock file is masked as completion During mark, the mark of the lock file is revised as opening flag by the complement mark, wherein described second Time point, the first time point was that previous network element webmaster generates the first north direction document after first time point Time;
The data supplementing collected is write in first north direction document, one second north direction document is generated;
After the completion of write-in, the mark of the lock file of second north direction document is revised as complement mark.
5. the method for north direction document according to claim 4 generation, it is characterised in that it is described After the completion of write-in, after the step of mark of the lock file of second north direction document is revised as into complement mark, The method of the north direction document generation also includes:
Delete the lock file.
6. the method for north direction document generation according to claim 4, it is characterised in that incited somebody to action described The data supplementing collected is write in first north direction document, before the step of generating second north direction document, The method of the north direction document generation also includes:
When being masked as complement mark of file of lock of first north direction document is not being detected, is not being examined The lock file for measuring first north direction document is masked as opening flag.
7. the method for the north direction document generation according to any one of claim 4 to 6, it is characterised in that It is described to write the data supplementing collected in first north direction document, generate the step of one second north direction document Suddenly specifically include:
Obtain the writing position of first north direction document;
The data supplementing collected is write to the writing position of first north direction document, second north is generated To file.
8. the method for north direction document generation according to claim 7, it is characterised in that also include:
Second north direction document is sent, second north direction document is stored by preset device.
9. a kind of device of north direction document generation, applied to the first network element webmaster, it is characterised in that described The device of north direction document generation includes:
First detection process module, for when reaching first time point, detecting without the first north direction document When, create lock file and establishment the first north direction document corresponding with the lock file, and the lock file is set Be masked as opening flag, wherein the first time point be the first network element webmaster generation it is described first north To the time of file;
First modified module, for the data collected to be written in first north direction document, and by institute The mark for stating lock file is revised as complement mark.
10. a kind of device of north direction document generation, applied to the second network element webmaster, the second network element webmaster First north direction document of the network element webmaster of before processing one, it is characterised in that the device bag of the north direction document generation Include:
Second detection process module, for when reaching for the second time point, detecting first north direction document Correspondence when being masked as complement mark of file of lock, the mark of the lock file is revised as by the complement mark Opening flag, wherein second time point is after first time point, the first time point is previous net First webmaster generates the time of the first north direction document;
Generation module, for the data supplementing collected to be write in first north direction document, generation 1 the Two north direction documents;
Second modified module, for after the completion of write-in, by the mark of the lock file of second north direction document It is revised as complement mark.
11. a kind of system of north direction document generation, it is characterised in that will including such as claim 9 or right Seek the device that 10 north direction document is generated.
CN201610032756.3A 2016-01-18 2016-01-18 A kind of method of north direction document generation, apparatus and system Pending CN106982132A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610032756.3A CN106982132A (en) 2016-01-18 2016-01-18 A kind of method of north direction document generation, apparatus and system
PCT/CN2016/092724 WO2017124726A1 (en) 2016-01-18 2016-08-01 Method, apparatus and system for generating northbound file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610032756.3A CN106982132A (en) 2016-01-18 2016-01-18 A kind of method of north direction document generation, apparatus and system

Publications (1)

Publication Number Publication Date
CN106982132A true CN106982132A (en) 2017-07-25

Family

ID=59340745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610032756.3A Pending CN106982132A (en) 2016-01-18 2016-01-18 A kind of method of north direction document generation, apparatus and system

Country Status (2)

Country Link
CN (1) CN106982132A (en)
WO (1) WO2017124726A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737635A (en) * 2018-07-02 2020-01-31 深圳联友科技有限公司 data blocking method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304430B (en) * 2008-06-30 2012-07-04 中兴通讯股份有限公司 Method and system for forwarding north direction document of telecommunication network management system
CN101370288B (en) * 2008-08-06 2011-12-07 华为终端有限公司 Network locking method and terminal
CN101635644A (en) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 Method and device for generating north orientation file
CN103607731B (en) * 2013-11-28 2016-09-21 大唐移动通信设备有限公司 A kind of processing method and processing device of measurement report

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737635A (en) * 2018-07-02 2020-01-31 深圳联友科技有限公司 data blocking method

Also Published As

Publication number Publication date
WO2017124726A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
US9262248B2 (en) Log configuration of distributed applications
CN103631699B (en) Log Administration System and log monitoring, acquisition and querying method
CN103023710B (en) A kind of safety test system and method
KR101311145B1 (en) Security in peer to peer synchronization applications
CN105450636B (en) A kind of cloud computing management system
US7587483B1 (en) System and method for managing computer networks
US20070074149A1 (en) Automated product defects analysis and reporting
CN103559231B (en) A kind of file system quota management method, apparatus and system
CN102638378B (en) Mass storage system monitoring method integrating heterogeneous storage devices
CN106933703A (en) A kind of method of database data backup, device and electronic equipment
CN106156289A (en) The method of the data in a kind of read-write object storage system and device
CN106104495A (en) Information processor and the method for supervision
JP2009540461A (en) Declarative Management Framework (DECLARATIVEMAAGEENTENTRAMEWORK)
US8135821B2 (en) Validation of module interoperability
CN107122364A (en) Data manipulation method and data management server
CN107528872A (en) A kind of data reconstruction method, device and cloud storage system
CN105468765A (en) Multi-node web service anomaly detection method and system
CN109902073A (en) Log processing method, device, computer equipment and computer readable storage medium
CN107122238B (en) Efficient iterative Mechanism Design method based on Hadoop cloud Computational frame
CN106777049A (en) A kind of processing method and system for avoiding repeating daily record output
CN103870549B (en) The method for cleaning and device of petroleum geology software data
CN103389925A (en) Real-time backup method based on process name identification
US8788460B2 (en) Exploring attached and unattached content databases
CN111048164A (en) Medical big data long-term storage system
CN106982132A (en) A kind of method of north direction document generation, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170725