WO2017124726A1 - Method, apparatus and system for generating northbound file - Google Patents

Method, apparatus and system for generating northbound file Download PDF

Info

Publication number
WO2017124726A1
WO2017124726A1 PCT/CN2016/092724 CN2016092724W WO2017124726A1 WO 2017124726 A1 WO2017124726 A1 WO 2017124726A1 CN 2016092724 W CN2016092724 W CN 2016092724W WO 2017124726 A1 WO2017124726 A1 WO 2017124726A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
northbound
flag
lock
network element
Prior art date
Application number
PCT/CN2016/092724
Other languages
French (fr)
Chinese (zh)
Inventor
阚江涛
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017124726A1 publication Critical patent/WO2017124726A1/en

Links

Images

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]

Definitions

  • This document relates to, but is not limited to, the field of data communication, and in particular, to a method, device and system for generating northbound files.
  • the telecommunication network usually adopts hierarchical management, in which the network management is divided into three layers: equipment, network element network management system, and integrated network management system.
  • the specific interaction between the three layers is as follows: the data of the device is transmitted through an interface connected to the integrated network management system by the network element network management system, and the interface of the connection is called a northbound interface.
  • the northbound interface is the interface that the device manufacturer or carrier accesses and manages the network, that is, the interface provided upward.
  • the northbound interface is usually used for data reporting of the device network management.
  • the reported data types include: warning, performance, assets, and configuration data.
  • the northbound interface is mainly divided into: FTP (File transfer protocol), SNMP (Simple network management protocol), and CORBA (Common Object Request Broker Architecture); FTO is suitable for the reporting of single-line data, suitable for the transmission of big data; CORBA and SNMP interfaces support many functions, such as data, status query, control and configuration data of faults, topologies and resources.
  • the NE network management system can add devices or add new management methods, such as the new management mode: manage different devices through multiple device network management systems.
  • the integrated network management system is generally Only one fixed interface is used to receive a report of a file. If it is divided into multiple files, it will cause the integrated network management interface in the related technology to change, and there is an incompatibility problem.
  • the embodiment of the invention provides a method, a device and a system for generating a northbound file, which can realize stable output of a northbound file in a network element network management.
  • a method for generating a northbound file according to an embodiment of the present invention is applied to a first network element network management.
  • the method comprises:
  • the lock file and the first north file corresponding to the lock file are created, and the flag of the lock file is set as a start flag, wherein the first a time at which the first network element network management prepares to generate the undetected first northbound file;
  • the collected data is written into the first northbound file, and the flag of the lock file is modified to a completion flag.
  • the method for generating the northbound file further includes:
  • the flag of the lock file corresponding to the first northbound file is not detected, a flag of the lock file corresponding to the first northbound file is generated, and the generated lock file is set.
  • the flag is the completion flag; if the lock file corresponding to the first north file is detected, but the flag of the lock file is the start identifier, the flag of the lock file is modified to be a completion flag.
  • the method for generating the northbound file further includes:
  • the first northbound file is sent to the preset device and stored by the preset device.
  • the embodiment of the present invention further provides a method for generating a northbound file, which is applied to a second network element network management system, where the second network element network management system processes the first northbound file of the first network element network management, and the method includes:
  • the flag of the lock file is modified from the completion flag to a start flag
  • the flag of the lock file of the generated second northbound file is modified to be a completion flag.
  • the method further includes: after modifying the flag of the lock file of the second northbound file to a completion flag:
  • the method further includes: before the generating the second northbound file,
  • the flag of the lock file of the first northbound file is not detected as the completion flag, the flag of the lock file of the first northbound file is not detected as the start flag.
  • the collected data is additionally written into the first north file according to the obtained write position.
  • the method further includes:
  • the embodiment of the invention further provides a device for generating a northbound file, which is applied to the first network element network management device, and the device for generating the northbound file includes:
  • the first detection processing module is configured to: when the first time point is not detected, if the first north file is not detected, create a lock file and a first north file corresponding to the lock file, and set the flag of the lock file to a start flag, where the first time point is a time for the first network element network to prepare to generate the undetected first north file;
  • the first modification module is configured to write the collected data into the first northbound file, and modify the flag of the lock file to a completion flag.
  • the embodiment of the present invention further provides a device for generating a northbound file, which is applied to a second network element network management system, where the second network element network management system processes a first northbound file of the first network element network management, where the device includes:
  • a second detection processing module configured to: when the second time point is reached, if the flag of the first northbound file corresponding to the lock file is detected as a completion flag, the flag of the lock file is modified from the completion flag to a start flag ;
  • a generating module configured to additionally write the collected data into the first northbound file to generate a second northbound file
  • the second modification module is configured to modify the generated flag of the lock file of the second northbound file as a completion flag.
  • the embodiment of the invention further provides a system for generating a northbound file, comprising the device for generating a northbound file as described above.
  • the technical solution provided by the embodiment of the present invention includes: when the first time point is not detected, if the first north file is not detected, the lock file and the first north file corresponding to the lock file are created, and are set.
  • the flag of the lock file is a start flag, wherein the first time point is the first network
  • the first network element network management system uses the flag of the lock file as the start flag to start generating the first north file, and after the first north file is generated, the start flag of the flag of the lock file is changed to complete. The flag, such that the first northbound file achieves a stable output under the effective shielding of the first network element network management.
  • FIG. 2 is an interaction diagram of generating a northbound file network element according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a step of a method for generating a northbound file according to an embodiment of the present invention
  • FIG. 4 and FIG. 5 are schematic diagrams showing another step of a method for generating a northbound file according to an embodiment of the present invention
  • FIG. 6 is a flowchart of generating a first northbound file by a first network element network management according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram showing the steps of a method for generating a northbound file according to a second embodiment of the present invention.
  • FIG. 9 is a flowchart of generating a second northbound file when the second network element network management is the final network element network management according to the embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing the steps of a method for generating a second northbound file according to an embodiment of the present invention.
  • FIG. 11 is a flowchart of a general implementation of an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an apparatus for generating a northbound file according to a third embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an apparatus for generating a northbound file according to a fourth embodiment of the present invention.
  • the embodiment of the present invention is directed to a new device or a new management mode in the network element network management system in the prior art, which may cause the interface of the integrated network management system to be incompatible, and generate a problem that the northbound file is easily interfered, and provide a method for generating a northbound file. , devices and systems.
  • a method for generating a northbound file is applied to a first network element network management, where the method for generating a northbound file includes:
  • Step 101 When the first time point is reached, if the first north file is not detected, create a lock file and create a first north file corresponding to the lock file, and set a flag of the lock file as a start flag, where A time point is when the first network element network controller prepares to generate an undetected first northbound file.
  • the first network element network management may start the first preset time period, that is, the step 101 may include: when the first north time file is not detected, the first preset time period is reached when the first time point is reached.
  • the lock file and the first northbound file corresponding to the lock file are created, and the flag of the lock file is set as a start flag, wherein the first time point is a time for the first network element network to generate the first northbound file.
  • the first preset time period may be set according to the needs of the user or the industry; generally, the first preset time period may also be based on the length of time that the device normally generates the northbound file, or the length of time for each device to normally generate the northbound file. It is determined by the number of northbound file devices generated.
  • the first preset time period may be set to 1 hour to 2 hours. If there are many devices that generate northbound files, for example, if the total number of four northbound file devices is 30 minutes, set the first preset time period to 40 minutes when the first northbound file is generated. To an hour.
  • the device for generating the northbound file may include a device that works all the time, and may also include a device that works according to a preset time period set by the user. The invention can be selected to work according to a preset time period, which can reduce the load of the device.
  • the purpose of setting the flag of the lock file as the start flag is that it does not interfere with other processes or devices during the process of generating the first northbound file.
  • Step 102 Write the collected data into the first northbound file, and modify the flag of the lock file to a completion flag.
  • the collected data includes at least a network element 24 and a network element 25 managed by the first network element network management unit 23, and the corresponding network element subsystem collects data of the monitored equipment.
  • the first northbound file is generated based on the data, and the integrated webmaster 21 collects the northbound file (the northbound file 22 includes the first northbound file).
  • the completion flag is: after the first north file is generated, it indicates that the device has no tasks, and can receive other devices to access or perform other tasks.
  • the first network element network management system uses the flag of the lock file as the start flag to start generating the first northbound file, and after generating the first northbound file, the start flag of the flag of the lock file is changed to the completion flag. In this way, the first northbound file can be stably outputted under the effective shielding of the first network element network management.
  • the first northbound file generated by the foregoing may be stored locally in the first network element network management device or may be stored by other devices. Generally, it can be stored by other devices, which can reduce the load of the network element of the first network element. When other network element network tubes need to be used or added, the device directly obtains or reads the write location from other devices, thereby reducing the network element of the first network element. The load of the interaction process.
  • the method for generating a northbound file in the embodiment of the present invention further includes:
  • Step 103 When the first northbound file is detected, if the flag of the lock file corresponding to the first northbound file is not detected, a flag of the lock file corresponding to the first northbound file is generated, and the generated identifier is set as a completion flag. If the lock file corresponding to the first northbound file is detected, but the flag of the lock file is the start identifier, the flag of the modified lock file is the completion flag.
  • the lock by detecting whether there is a first northbound file in advance, when there is a first northbound file, it is detected whether there is a flag of the first northbound file that has been generated, and if the flag of the first northbound file is not generated, the lock is generated.
  • the logo of the file and the flag of the modified lock file is the completion flag.
  • the first northbound file will not be regenerated; if there is a flag for the first northbound file, the task is ended, thus avoiding repeated tasks.
  • the new device or the new management mode may cause the interface of the integrated network management system to be incompatible. Therefore, the northbound file is generated in the embodiment of the present invention.
  • the method also includes:
  • Step 104 Send the first northbound file to the preset device, and store the first northbound file by the preset device.
  • the preset device herein may include a computer, a virtual machine, or another type of server, and any terminal that can store the first northbound file belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein.
  • the first northbound file that is, the first northbound file output
  • the file output can be CSV (Comma-Separated Values, comma-separated values, the file stores the table data (number and text) in plain text)
  • TXT TXT is a text format that Microsoft attaches to the operating system, is the most common
  • a file format as early as the DOS era, a lot of applications, mainly text information, that is, text information, the current operating system is mostly saved using a program such as Notepad, most software can be viewed, such as Notepad, browser, etc.
  • XML Extensible Markup Language
  • the northbound file can be located in the FTP (File Transfer Protocol) of the preset device or the specified directory of the hard disk.
  • Northbound files have a fixed file or folder name. For example, generate asset information; the usual name is as follows: PORT_20150910.csv, the naming indicates the PORT (port) asset information obtained by the network element network management on September 10, 2015.
  • the integrated network management system obtains all the data reported by the first network element network management system and/or the second network element network management system, and can perform unified data analysis on the entire network.
  • the flag of the lock file is the rule name of the start flag: PORT_20150910_start.log
  • the lock file is marked with the rule name of the completion flag: PORT_20150910_finish.log
  • the first half of the file name of the lock file is the content of the north file name without the suffix. Start with a start flag, such as _start.log; at the end, change to the end flag, such as _finish.log.
  • the logo of the lock file may be referred to as a start lock file
  • the logo of the lock file may be referred to as a completion lock file.
  • the start lock file and the completion lock file may only exist one during the entire implementation process. Generally, by changing the file name or deleting the reconstruction method, the completion of the lock file and the start lock file are unique during the execution of the task.
  • the first northbound file is stored in the preset device, and each of the other network element network management tubes that generate the northbound file also stores the generated northbound file in the preset device, so that the integrated network element can be from the preset device.
  • the first northbound file is obtained directly. It does not need to consider the impact of new devices or new management methods on the integrated network element. It still uses the same northbound file format output as the original northbound file, and avoids the interface incompatibility problem of the integrated network management. Improve the efficiency of integrated network management to obtain northbound documents.
  • the overall implementation process of creating a first northbound file by the first network element network management system in the embodiment of the present invention is as follows.
  • Step 601 The first network element network management checks whether the first northbound file exists. If the first northbound file exists, the process proceeds to 607. If the first northbound file does not exist, step 602 to step 606 are performed. If the first northbound file already exists, adding the first northbound file will fail. This reason is usually caused by modifying the network management time of the first network element to cause the task to run repeatedly. Or the time calculation of other network element network management is incorrect, and the first northbound file is generated in advance.
  • step 602 a lock file is created, and the flag of the lock file is set as a start flag.
  • step 603 a first northbound file is created.
  • Step 604 the data collected from the network element or the database is written into the first northbound file.
  • Step 605 After the collected data is written, the flag of the lock file is modified to a completion flag.
  • Step 606 completing the generation of the first northbound file.
  • Step 608 creating a lock file; creating a lock file can prevent the subsequent network element network management from repeatedly adding data.
  • the subsequent network element network management includes other network element network tubes subsequent to the first network element network element.
  • step 609 the task ends.
  • the method for generating a northbound file according to an embodiment of the present invention is applied to a second network element network management system, and the second network element network management system processes a first northbound file of the first network element network management.
  • Step 701 When the second time point is reached, if it is detected that the flag of the first northbound file corresponding to the lock file is a completion flag, the flag of the lock file is modified from the completion flag to a start flag;
  • the second time point is after the first time point, and the first time point is a time point at which the first network element network management generates the first northbound file in advance; in the embodiment of the present invention, the first network element network management
  • the second network element network management system may be relative, and may be determined according to the sequence of processing the northbound files.
  • the second time point includes a time point at which the first network element network controller starts to prepare to generate the second northbound file
  • the second time point is generally determined by the user according to the number of generating northbound file devices and user requirements.
  • the device generates fewer northbound files, so there are fewer time points set at night.
  • For generating a northbound file device for example, if the number of northbound file devices is eight, the second time point is set to 8:00 in the morning, and a time point is set corresponding to each hour, and other generated northbound files are started according to the set time point. device of.
  • the first network element network management system may start the second preset time period, that is, the step 701 may include: detecting the second northbound file corresponding lock file when the second preset time period is reached at the second time point.
  • the flag is the completion flag
  • the flag of the lock file is modified from the completion flag to the start flag, wherein the second time point is after the first time point, and the first time point is the time for the first network element network to generate the second north file.
  • the second preset time period can be set according to user or industrial needs. Generally, the second preset time period may be determined according to the length of time that the device normally generates the northbound file, or the number of times the northbound file is normally generated by each device.
  • the second preset time period may be set to 1 hour to 2 hours. If there are many devices that generate northbound files, for example, if the total number of four northbound file devices is 30 minutes, set the second preset time period to 40 minutes when the second northbound file is generated. To an hour.
  • the device that generates the northbound file can always be in the working state, or can work according to the preset time period set by the user.
  • the invention can be selected to work according to a preset time period, which can reduce the load of the device.
  • Step 702 Appending the collected data to the first northbound file to generate a second northbound file.
  • the second northbound file here is generated by additionally writing the collected data to the first northbound file, which is equivalent to adding the collected data to the file after the first northbound file.
  • the northbound file may include a first northbound file and a second northbound file.
  • the second network element network management system can be used as the final network element network management system, or can be used as the intermediate network element network management system, and is the final network element network management system or the intermediate network element network management system, which are related to practical applications.
  • the second network element network management system is used as the final network element network management unit, and the collected data includes at least the network element 27 and the network element 28 managed by the final network element network management unit 26 (the network element network management unit including the final network element network management unit).
  • the corresponding network element subsystem collects data of the monitored device.
  • a second northbound file is generated based on the data (the northbound file 22 includes a second northbound file), and the integrated webmaster 21 collects the northbound file.
  • Step 703 Modify the flag of the generated lock file of the second northbound file to be a completion flag.
  • a second northbound file is formed by adding a first network element network management by the second network element network management, that is, a second northbound file is generated, and multiple network management systems generate a unified northbound interface output, and data is needed in the integrated network management system.
  • the second northbound file is directly obtained, the impact of the newly added device or the new management mode on the integrated network element is not considered, and the same northbound file format output as the original northbound file is still used, and the interface incompatibility problem of the integrated network management is also avoided. , improve the efficiency of the integrated network management to obtain northbound documents.
  • the foregoing second network element network management system can be used as the final network element network management system or the intermediate network element network management system, and the establishment of the intermediate network element network management is not necessary, and can be continuously added in the later stage, so the intermediate network element network management The number can be one or more, thereby achieving scalability of the entire system.
  • the implementation process of all the added intermediate network element network tubes can apply the present invention.
  • the intermediate network element network management system or the final network element network management system is as follows.
  • the overall implementation process of the second network element network management system in the embodiment of the present invention is as follows.
  • Step 801 The intermediate network element network management checks whether the first northbound file has a lock file, and the lock file identifier is a completion flag. If the flag of the lock file is the completion flag, step 802 to step 805 are performed, and if the lock file is not stored, an exception may occur. Then step 806 is performed.
  • step 802 the flag of the lock file is modified to be a start flag.
  • Step 803 adding write data to the first northbound file to generate a second northbound file.
  • Step 804 modifying the flag of the generated lock file of the second northbound file as a completion flag. After the modification is completed, the data of the intermediate NE management system is added.
  • Step 805 The intermediate network element network management checks whether the first northbound file has a lock file. If the lock file exists, the proof data is locked, and step 807 is performed. If the lock file does not exist, step 806 is performed.
  • Step 806, the modification is prohibited
  • Step 806 Create a lock file, and set the flag of the lock file as a start flag; perform a normal process according to step 803; for example, the process of creating the first network element network management, create a northbound file, and write northbound data thereto. Since the ID of the lock file is the start flag, the data output of the second north file will fail.
  • the second network element network management is the final network element network management, and the overall implementation process of creating the second northbound file (ie, the final northbound file) is as follows.
  • step 901 the network element network management checks whether the first/second northbound file has a lock file identifier, and the lock file identifier is a completion flag. If the flag of the lock file is the completion flag, step 902 to step 905 are performed, and if the lock file is not stored, an exception may occur. Then step 906 is performed.
  • step 902 the flag of the modified lock file is a start flag.
  • Step 903 writing data to the first/second northbound file to generate a final northbound file.
  • step 904 the flag of the lock file that generates the final northbound file is modified to be a completion flag, and the lock file is deleted. After the modification is completed, the data of the final NE network management is added.
  • step 905 the network element network management finally checks whether the first/second northbound file has a lock file. If the lock file exists, the proof data is locked, step 906 is performed; if the lock file does not exist, the step is executed Step 907.
  • Step 906 prohibiting modification
  • Step 907 Create a lock file, and set the flag of the lock file as a start flag; then execute according to the process of step 903; including creating a northbound file and writing to it according to a normal process (such as the first/second network element network management process) Enter the northbound data. Since the flag of the lock file is the start flag, the final northbound data output will fail.
  • a normal process such as the first/second network element network management process
  • the method of the embodiment of the present invention further includes:
  • Step 704 deleting the lock file of the second northbound file.
  • the delete lock file here indicates that the overall northbound file generation is completed.
  • the integrated network management obtains the data of the northbound file
  • the data of the northbound file can be judged according to the lock file. If the lock file exists, the task execution has a problem. In the implementation, it is necessary to leave sufficient execution time for each network element network management and integrated network management. In this way, when the lock file is not deleted last time, the integrated network management needs to obtain the data of the northbound file, and an unnecessary error occurs.
  • the final network element network management has the last setting data for generating a complete northbound file.
  • the method for generating the northbound file is the method of the embodiment of the present invention.
  • the method further includes: when the flag of the lock file of the first northbound file is not detected as the completion flag, the flag of the lock file of the first northbound file is not the start flag. Detection. This can be adjusted according to user needs or equipment, which improves the applicability of the method.
  • the method for generating a northbound file may include:
  • Step 7021 Acquire a write location of the first northbound file.
  • Step 7022 The collected data is additionally written into the first northbound file according to the obtained write position. When the additional write is completed in the embodiment of the present invention, the second northbound file is generated.
  • the entire northbound file does not need to be acquired, and the write position of the first northbound file is directly added, thereby reducing the load of the second network element network management. It is also possible to generate a complete northbound file.
  • the method for generating the northbound file in the embodiment of the present invention further includes: a method for generating a northbound file according to the embodiment of the present invention, since the integrated network management system can obtain only one copy of the northbound file, and the new device or the new management mode may cause the interface of the integrated network management system to be incompatible.
  • Step 705 Send a second northbound file to the preset device, and store the second northbound file by the preset device.
  • the preset device herein may include a computer, a virtual machine, or another server, and any terminal that can store the second northbound file belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein.
  • the northbound file output which is a typical data output format.
  • the file output can be CSV (Comma-Separated Values, comma-separated values, the file stores the table data (number and text) in plain text), TXT (TXT is a text format that Microsoft attaches to the operating system, is the most common A file format, as early as the DOS era, a lot of applications, mainly text information, that is, text information, the current operating system is mostly saved using a program such as Notepad, most software can be viewed, such as Notepad, browser, etc. ), XML (Extensible Markup Language) or other formats.
  • the northbound file can be located in the specified directory of FTP (File Transfer Protocol) or hard disk stored by the preset device. Northbound files have a fixed file or folder name.
  • the integrated network management system obtains all the data reported by the first network element network management system and/or the second network element network management system, and can perform unified data analysis on the entire network.
  • the second northbound file is stored in the preset device, and the other northbound file that generates the northbound file is also stored in the preset device, so that the integrated network element can be from the preset device.
  • the second northbound file is obtained directly, and the impact of the newly added device or the new management mode on the integrated network element is not considered, and the same northbound file format output as the original northbound file is still used, and the interface incompatibility problem of the integrated network management is also avoided. Improve the efficiency of integrated network management to obtain northbound documents.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores the meter
  • the computer executable instructions are used to execute the above method of generating northbound files.
  • the overall implementation process of the embodiment of the present invention is as follows.
  • the entire process is executed in chronological order, defining the first network element network management running at 1 am, the middle first network element network management running at 2 am, the middle second network element network management running at 3 am, and finally the network element network management running at 4 am.
  • the NMS obtains the file to obtain the northbound file at 5 am.
  • the embodiment of the present invention is exemplified by two intermediate network element network management systems.
  • the two intermediate network element network management systems may be used in the actual application, or may be added later, but the process of performing northbound file generation is the same.
  • Step 1101 The first network element network management system creates a first northbound file and writes northbound file data, and adds a lock file.
  • the northbound file data may include the collected data.
  • Step 1102 The first network element network management system adds the first northbound file, adds its own data, and generates a first second northbound file.
  • the method includes: if the first network element network management has not executed the first northbound file at this time, If the flag of the lock file is not modified to the completion flag, the second northbound file of the first network element network management fails to be generated; if the flag of the lock file of the first network element network management becomes the completion flag, the first network element of the network element is additionally written. Enter the data into the first north file, generate the first second north file, and modify the lock file.
  • the network element network management is divided into three levels, which are respectively the first network element network management, the intermediate first network element network management, and the intermediate second network element network management.
  • Step 1103 The second network element of the second network element adds the first second northbound file, adds its own data, and generates a second second northbound file.
  • the method includes: if the first network element of the middle network element has not executed the second northbound file. If the flag of the lock file does not become the completion flag, the generation of the second second northbound file of the second network element network management device fails; if the flag of the lock file of the first network element network management tube becomes the completion flag, the middle The second network element network management additionally writes the data to the first second north file, generates a second second north file, and modifies the lock file.
  • Step 1104 The network element network management system adds a second second northbound file, adds the last data, and generates a final northbound file.
  • the method includes: adding, by the network element network management, the write data to the second second northbound file. If the first network element network management system, the first network element network management system, or the second network element network management system in the middle of the network has not been executed to generate the northbound file, the logo of the lock file does not become the completion flag, and finally the north direction of the network element network management is generated. The file failed. After the final NE data is added to the final NE data file, the lock file is deleted.
  • the integrated network management system obtains the final northbound file; the final northbound file may have only one northbound file, and includes files of all the network element network management northbound data.
  • an apparatus for generating a northbound file is applied to a first network element network management device according to an embodiment of the present invention, where the apparatus for generating the northbound file includes:
  • the first detection processing module 1201 is configured to: when the first time point is not detected, if the first north file is not detected, create a lock file and a first north file corresponding to the lock file, and set a flag of the lock file as a start flag,
  • the first time point is a time for the first network element network controller to prepare an undetected first northbound file.
  • the first modification module 1202 is configured to write the collected data into the first northbound file and modify the flag of the lock file to a completion flag.
  • the first network element network management system uses the flag of the lock file as the start flag to start generating the first northbound file, and after generating the first northbound file, the start flag of the flag of the lock file is changed to the completion flag. In this way, the first northbound file can be stably outputted under the effective shielding of the first network element network management.
  • the apparatus provided by the embodiment of the present invention is a device that applies the method for generating the northbound file, and all embodiments of the method for generating a northbound file are applicable to the device, and all of the same or similar beneficial effects can be achieved.
  • the detection generation module is configured to: when the first northbound file is detected, if the flag of the lock file corresponding to the first northbound file is not detected, generate a flag of the lock file corresponding to the first northbound file, and set the generated lock file The flag is the completion flag; if the lock file corresponding to the first north file is detected, but the flag of the lock file is the start identifier, the flag of the modified lock file is the completion flag.
  • the first sending module is configured to send the first northbound file to the preset device, and is stored by the preset device.
  • the second detection processing module 1301 is configured to, when the second time point is reached, if the flag of the first northbound file corresponding to the lock file is detected as a completion flag, the flag of the lock file is modified from the completion flag to a start flag;
  • the generating module 1302 is configured to additionally write the collected data into the first northbound file to generate a second northbound file.
  • the second modification module 1303 is configured to modify the flag of the generated lock file of the second northbound file as a completion flag.
  • a second northbound file is formed by adding a first network element to the second network element network management system to generate a second northbound file, and multiple network management systems generate a unified northbound interface output, when the integrated network management needs data.
  • the first northbound file is obtained directly, and the impact of the newly added device or the new management mode on the integrated network element is not considered, and the same northbound file format output as the original northbound file is still used, and the interface incompatibility problem of the integrated network management is also avoided. Improve the efficiency of integrated network management to obtain northbound documents.
  • the detecting module is configured to detect that the flag of the lock file of the first northbound file is not the flag when the flag of the lock file of the first northbound file is not detected is the start flag.
  • the generating module 1302 includes:
  • An obtaining unit configured to obtain a writing position of the first northbound file
  • the generating unit adds the collected data to the writing position of the first northbound file to generate a second northbound file.
  • the second sending module is configured to send a second northbound file to the preset device, and the second northbound file is stored by the preset device.
  • the apparatus provided by the present invention is a device that applies the method for generating a primary northbound file, and all embodiments of the method for generating a northbound file are applicable to the device, and both can reach To the same or similar benefits.
  • Embodiments of the present invention also provide a system including the apparatus for generating a northbound file as described above.
  • the northbound file generating device applied to the first network element network management device and the northbound file generating device applied to the second network element network management system sequentially add data to the northbound file. Control the writing of northbound data through lock files to avoid duplicate or erroneous protocols. Finally, the integrated network management reads the final generated file.
  • a plurality of network element network tubes generate a northbound file, so that the entire system interface is more stable.
  • the NE network management system is responsible for collecting the northbound data of its management network elements and writing the northbound data to the northbound file.
  • the integrated network management reads the file data to obtain the information of the northbound data of the entire network.
  • the apparatus for generating a northbound file according to the embodiment of the present invention is applied to a system for generating a northbound file. Therefore, the embodiment of the present invention further provides a system for generating a northbound file, wherein the device for generating the northbound file is described.
  • the implementation embodiments are all applicable to the embodiment of the system, and the same technical effects can be achieved.
  • the above technical solution realizes stable output of the northbound file, and realizes compatibility when the integrated network management interface is changed.

Abstract

A method, apparatus and system for generating a northbound file. The method comprises: when a first time point is reached, if a first northbound file is not detected, creating a lock file and the first northbound file corresponding to the lock file, and setting a flag of the lock file to be a start flag, wherein the first time point is a time when a first network element network manager is ready to generate the undetected first northward file; and writing collected data into the first northbound file and modifying the flag of the lock file to be a completion flag. The embodiments of the present invention realize a stable output of a northbound file, and realize the compatibility when a comprehensive network management interface is changed.

Description

一种北向文件生成的方法、装置及系统Method, device and system for generating northbound file 技术领域Technical field
本文涉及但不限于数据通信领域,尤其涉及一种北向文件生成的方法、装置及系统。This document relates to, but is not limited to, the field of data communication, and in particular, to a method, device and system for generating northbound files.
背景技术Background technique
如图1所示,电信网通常采用分层管理,其中将网络管理分为三层:设备、网元网管系统、综合网管系统。三层之间具体的交互为:将设备的数据通过网元网管系统与综合网管系统连接的接口进行传递,该连接的接口称为北向接口(Northbound Interface)。北向接口是设备厂家或运营商进行接入和管理网络的接口,即向上提供的接口。北向接口通常用于设备网管的数据上报,上报的数据类型包括:警告、性能、资产和配置数据。北向接口按照连接方式主要分为:FTP(File transfer protocol,文件传输协议)、SNMP(Simple network management protocol,简单网络管理协议)、CORBA(Common Object Request Broker Architecture,公共对象请求代理体系结构);其中,FTO适合单线数据的上报,适合大数据的传输;CORBA和SNMP接口支持的功能较多,如故障、拓扑和资源等的数据和状态查询、控制和配置数据的下发等。As shown in Figure 1, the telecommunication network usually adopts hierarchical management, in which the network management is divided into three layers: equipment, network element network management system, and integrated network management system. The specific interaction between the three layers is as follows: the data of the device is transmitted through an interface connected to the integrated network management system by the network element network management system, and the interface of the connection is called a northbound interface. The northbound interface is the interface that the device manufacturer or carrier accesses and manages the network, that is, the interface provided upward. The northbound interface is usually used for data reporting of the device network management. The reported data types include: warning, performance, assets, and configuration data. The northbound interface is mainly divided into: FTP (File transfer protocol), SNMP (Simple network management protocol), and CORBA (Common Object Request Broker Architecture); FTO is suitable for the reporting of single-line data, suitable for the transmission of big data; CORBA and SNMP interfaces support many functions, such as data, status query, control and configuration data of faults, topologies and resources.
网元网管系统可以新增设备或者新增管理方式,比如新增的管理方式:通过多个设备网管分别管理不同的设备;网元网管系统新增设备或者新增管理方式时,综合网管系统一般只采用一个固定的接口接收一份文件的上报,如果分为多份文件上报,就会使得相关技术中的综合网管接口变更,存在不兼容的问题。The NE network management system can add devices or add new management methods, such as the new management mode: manage different devices through multiple device network management systems. When the NE network management system adds new devices or adds management modes, the integrated network management system is generally Only one fixed interface is used to receive a report of a file. If it is divided into multiple files, it will cause the integrated network management interface in the related technology to change, and there is an incompatibility problem.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种北向文件生成的方法、装置及系统,能够实现北向文件在网元网管的稳定输出。The embodiment of the invention provides a method, a device and a system for generating a northbound file, which can realize stable output of a northbound file in a network element network management.
本发明实施例提供的一种北向文件生成的方法,应用于第一网元网管, 其中,所述方法包括:A method for generating a northbound file according to an embodiment of the present invention is applied to a first network element network management. Wherein the method comprises:
在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和与所述锁文件对应的第一北向文件,并设置所述锁文件的标志为开始标志,其中,所述第一时间点为所述第一网元网管准备生成未检测到的所述第一北向文件的时间;When the first time point is reached, if the first north file is not detected, the lock file and the first north file corresponding to the lock file are created, and the flag of the lock file is set as a start flag, wherein the first a time at which the first network element network management prepares to generate the undetected first northbound file;
将采集到的数据写入到所述第一北向文件中,并将所述锁文件的标志修改为完成标志。The collected data is written into the first northbound file, and the flag of the lock file is modified to a completion flag.
可选的,所述北向文件生成的方法还包括:Optionally, the method for generating the northbound file further includes:
检测到有所述第一北向文件时,如果未检测到所述第一北向文件对应的锁文件的标志,则生成一所述第一北向文件对应的锁文件的标志,并设置生成的锁文件的标志为完成标志;如果检测到所述第一北向文件对应的锁文件,但所述锁文件的标志为开始标识,则修改所述锁文件的标志为完成标志。When the first northbound file is detected, if the flag of the lock file corresponding to the first northbound file is not detected, a flag of the lock file corresponding to the first northbound file is generated, and the generated lock file is set. The flag is the completion flag; if the lock file corresponding to the first north file is detected, but the flag of the lock file is the start identifier, the flag of the lock file is modified to be a completion flag.
可选的,所述北向文件生成的方法还包括:Optionally, the method for generating the northbound file further includes:
将所述第一北向文件发送到预置设备,并由预置设备存储。The first northbound file is sent to the preset device and stored by the preset device.
本发明实施例还提供一种北向文件生成的方法,应用于第二网元网管,所述第二网元网管处理第一网元网管的第一北向文件,所述方法包括:The embodiment of the present invention further provides a method for generating a northbound file, which is applied to a second network element network management system, where the second network element network management system processes the first northbound file of the first network element network management, and the method includes:
在到达第二时间点时,如果检测到所述第一北向文件对应锁文件的标志为完成标志,将所述锁文件的标志由所述完成标志修改为开始标志;When the second time point is reached, if it is detected that the flag of the first northbound file corresponding to the lock file is a completion flag, the flag of the lock file is modified from the completion flag to a start flag;
将采集到的数据追加写入所述第一北向文件中,生成第二北向文件;Adding the collected data to the first north file to generate a second north file;
修改生成的所述第二北向文件的锁文件的标志为完成标志。The flag of the lock file of the generated second northbound file is modified to be a completion flag.
可选的,所述方法还包括:将所述第二北向文件的锁文件的标志修改为完成标志之后:Optionally, the method further includes: after modifying the flag of the lock file of the second northbound file to a completion flag:
删除所述第二北向文件的锁文件。Delete the lock file of the second north file.
可选的,所述方法还包括:所述生成第二北向文件之前,Optionally, the method further includes: before the generating the second northbound file,
未检测到所述第一北向文件的锁文件的标志为完成标志时,不进行所述第一北向文件的锁文件的标志为开始标志的检测。When the flag of the lock file of the first northbound file is not detected as the completion flag, the flag of the lock file of the first northbound file is not detected as the start flag.
可选的,所述将采集到的数据追加写入所述第一北向文件中包括: Optionally, the additionally adding the collected data to the first northbound file includes:
获取所述第一北向文件的写入位置;Obtaining a write position of the first northbound file;
将采集到的数据根据获取的所述写入位置追加写入所述第一北向文件中。The collected data is additionally written into the first north file according to the obtained write position.
可选的,所述方法还包括:Optionally, the method further includes:
向预置设备发送所述第二北向文件,并由预置设备存储所述第二北向文件。Sending the second northbound file to the preset device, and storing the second northbound file by the preset device.
本发明实施例还提供一种北向文件生成的装置,应用于第一网元网管,所述北向文件生成的装置包括:The embodiment of the invention further provides a device for generating a northbound file, which is applied to the first network element network management device, and the device for generating the northbound file includes:
第一检测处理模块,设置为在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和与所述锁文件对应的第一北向文件,并设置所述锁文件的标志为开始标志,其中,所述第一时间点为所述第一网元网管准备生成未检测到的所述第一北向文件的时间;The first detection processing module is configured to: when the first time point is not detected, if the first north file is not detected, create a lock file and a first north file corresponding to the lock file, and set the flag of the lock file to a start flag, where the first time point is a time for the first network element network to prepare to generate the undetected first north file;
第一修改模块,设置为将采集到的数据写入到所述第一北向文件中,并将所述锁文件的标志修改为完成标志。The first modification module is configured to write the collected data into the first northbound file, and modify the flag of the lock file to a completion flag.
本发明实施例还提供一种北向文件生成的装置,应用于第二网元网管,所述第二网元网管处理第一网元网管的第一北向文件,所述装置包括:The embodiment of the present invention further provides a device for generating a northbound file, which is applied to a second network element network management system, where the second network element network management system processes a first northbound file of the first network element network management, where the device includes:
第二检测处理模块,设置为在到达第二时间点时,如果检测到所述第一北向文件对应锁文件的标志为完成标志,将所述锁文件的标志由所述完成标志修改为开始标志;a second detection processing module, configured to: when the second time point is reached, if the flag of the first northbound file corresponding to the lock file is detected as a completion flag, the flag of the lock file is modified from the completion flag to a start flag ;
生成模块,设置为将采集到的数据追加写入所述第一北向文件中,生成第二北向文件;a generating module, configured to additionally write the collected data into the first northbound file to generate a second northbound file;
第二修改模块,设置为修改生成的所述第二北向文件的锁文件的标志为完成标志。The second modification module is configured to modify the generated flag of the lock file of the second northbound file as a completion flag.
本发明实施例还提供一种北向文件生成的系统,包括如上述的北向文件生成的装置。The embodiment of the invention further provides a system for generating a northbound file, comprising the device for generating a northbound file as described above.
与相关技术相比,本发明实施例提供的技术方案,包括:在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和与锁文件对应的第一北向文件,并设置锁文件的标志为开始标志,其中,所述第一时间点为第一网 元网管准备生成未检测到的第一北向文件的时间;将采集到的数据写入到第一北向文件中,并将锁文件的标志修改为完成标志。本发明实施例的方案中,通过第一网元网管利用锁文件的标志为开始标志,开始生成第一北向文件,并且在生成第一北向文件之后,将锁文件的标志的开始标志更改为完成标志,这样第一北向文件实现了在第一网元网管有效屏蔽下稳定的输出。Compared with the related art, the technical solution provided by the embodiment of the present invention includes: when the first time point is not detected, if the first north file is not detected, the lock file and the first north file corresponding to the lock file are created, and are set. The flag of the lock file is a start flag, wherein the first time point is the first network The time when the meta network manager prepares to generate the undetected first northbound file; writes the collected data into the first northbound file, and modifies the flag of the lock file to the completion flag. In the solution of the embodiment of the present invention, the first network element network management system uses the flag of the lock file as the start flag to start generating the first north file, and after the first north file is generated, the start flag of the flag of the lock file is changed to complete. The flag, such that the first northbound file achieves a stable output under the effective shielding of the first network element network management.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明第一实施例的北向文件生成的方法的步骤示意图;1 is a schematic diagram showing the steps of a method for generating a northbound file according to a first embodiment of the present invention;
图2为本发明实施例的生成北向文件网元之间的交互图;2 is an interaction diagram of generating a northbound file network element according to an embodiment of the present invention;
图3为本发明实施例的北向文件生成的方法的一个步骤示意图;3 is a schematic diagram of a step of a method for generating a northbound file according to an embodiment of the present invention;
图4及图5为本发明实施例的北向文件生成的方法的另一个步骤示意图;4 and FIG. 5 are schematic diagrams showing another step of a method for generating a northbound file according to an embodiment of the present invention;
图6为本发明实施例的第一网元网管生成第一北向文件的流程图;FIG. 6 is a flowchart of generating a first northbound file by a first network element network management according to an embodiment of the present invention;
图7为本发明第二实施例的北向文件生成的方法的步骤示意图;FIG. 7 is a schematic diagram showing the steps of a method for generating a northbound file according to a second embodiment of the present invention; FIG.
图8为本发明实施例的第二网元网管为中间网元网管时,生成第二北向文件的流程图;FIG. 8 is a flowchart of generating a second northbound file when the second network element network management is an intermediate network element network management according to an embodiment of the present invention;
图9为本发明实施例的第二网元网管为最终网元网管时,生成第二北向文件的流程图;FIG. 9 is a flowchart of generating a second northbound file when the second network element network management is the final network element network management according to the embodiment of the present invention;
图10为本发明实施例的第二北向文件生成的方法的步骤示意图;FIG. 10 is a schematic diagram showing the steps of a method for generating a second northbound file according to an embodiment of the present invention;
图11为本发明实施例的总体实现流程图;11 is a flowchart of a general implementation of an embodiment of the present invention;
图12为本发明第三实施例的生成北向文件生成的装置的结构示意图;FIG. 12 is a schematic structural diagram of an apparatus for generating a northbound file according to a third embodiment of the present invention; FIG.
图13为本发明第四实施例的生成北向文件生成的装置的结构示意图。FIG. 13 is a schematic structural diagram of an apparatus for generating a northbound file according to a fourth embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明实施例针对现有技术中网元网管系统中新增设备或新增管理方式,会引起综合网管的接口不兼容,而且生成北向文件容易受到干扰的问题,提供一种北向文件生成的方法、装置及系统。 The embodiment of the present invention is directed to a new device or a new management mode in the network element network management system in the prior art, which may cause the interface of the integrated network management system to be incompatible, and generate a problem that the northbound file is easily interfered, and provide a method for generating a northbound file. , devices and systems.
第一实施例First embodiment
如图1所示,本发明实施例的北向文件生成的方法,应用于第一网元网管,其中,所述北向文件生成的方法包括:As shown in FIG. 1 , a method for generating a northbound file according to an embodiment of the present invention is applied to a first network element network management, where the method for generating a northbound file includes:
步骤101,在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和创建与所述锁文件对应的第一北向文件,并设置锁文件的标志为开始标志,其中,第一时间点为所述第一网元网管准备生成未检测到的第一北向文件的时间。Step 101: When the first time point is reached, if the first north file is not detected, create a lock file and create a first north file corresponding to the lock file, and set a flag of the lock file as a start flag, where A time point is when the first network element network controller prepares to generate an undetected first northbound file.
需要说明的是:上述第一时间点包括第一网元网管开始准备生成第一北向文件的时间点,包括预先设定的生成第一北向文件的时间点;一般该第一时间点由用户按照生成北向文件设备(网元网管)的数量及用户需求进行决定。可选地,对于用户需要来说,一般在夜晚的晚21点至凌晨5点之间,设备生成的北向文件较少,因此在夜晚设置的时间点较少。对于生成北向文件设备来说,比如生成北向文件设备的数目为8个,则设置的第一时间点为早上8点,对应每一个小时设置一个时间点,按照设置的时间点启动其他生成北向文件的设备。It should be noted that: the foregoing first time point includes a time point at which the first network element network controller starts to prepare to generate the first northbound file, and includes a preset time point for generating the first northbound file; generally, the first time point is followed by the user. The number of northbound file devices (network element network management) and user requirements are determined. Optionally, for the user's needs, generally between 21 pm and 5 am in the night, the device generates fewer northbound files, so there are fewer time points set at night. For generating a northbound file device, for example, if the number of northbound file devices is eight, the first time point set is 8:00 in the morning, and one time point is set corresponding to each hour, and other generated northbound files are started according to the set time point. device of.
另外,第一网元网管可以启动第一预置时间段,也就是说,步骤101可以包括:在到达第一时间点时的第一预置时间段,未检测到第一北向文件时,创建锁文件和创建与锁文件对应的第一北向文件,并设置锁文件的标志为开始标志,其中,第一时间点为第一网元网管生成第一北向文件的时间。第一预置时间段可以根据用户或工业需要进行设置;一般第一预置时间段也可以根据设备正常生成北向文件的时间长度,也可以在保证每个设备正常生成北向文件的时间长度下,由生成北向文件设备的数量决定。比如正常情况下,该设备生成第一北向文件的时间长度为半小时,则上述第一预置时间段可以设置为1小时至2小时。如果生成北向文件的设备较多,比如共四个生成北向文件设备的时间均为30分种,则在保证生成第一北向文件完成的情况下,将上述第一预置时间段设置为40分钟到一小时。当然以上仅仅是举例说明,在此不作限定。其中,生成北向文件的设备可以包括一直工作的设备,也可以包括按照用户设定的预置时间段工作的设备。本发明可选为按照预置时间段工作,这样可以减少了设备的负荷。 In addition, the first network element network management may start the first preset time period, that is, the step 101 may include: when the first north time file is not detected, the first preset time period is reached when the first time point is reached. The lock file and the first northbound file corresponding to the lock file are created, and the flag of the lock file is set as a start flag, wherein the first time point is a time for the first network element network to generate the first northbound file. The first preset time period may be set according to the needs of the user or the industry; generally, the first preset time period may also be based on the length of time that the device normally generates the northbound file, or the length of time for each device to normally generate the northbound file. It is determined by the number of northbound file devices generated. For example, under normal circumstances, when the device generates the first northbound file for half an hour, the first preset time period may be set to 1 hour to 2 hours. If there are many devices that generate northbound files, for example, if the total number of four northbound file devices is 30 minutes, set the first preset time period to 40 minutes when the first northbound file is generated. To an hour. Of course, the above is merely an example and is not limited herein. The device for generating the northbound file may include a device that works all the time, and may also include a device that works according to a preset time period set by the user. The invention can be selected to work according to a preset time period, which can reduce the load of the device.
还有,设置锁文件的标志为开始标志的目的在于:在生成第一北向文件过程中,不会受到其他进程或设备的干扰。Also, the purpose of setting the flag of the lock file as the start flag is that it does not interfere with other processes or devices during the process of generating the first northbound file.
步骤102,将采集到的数据写入到第一北向文件中,并将锁文件的标志修改为完成标志。Step 102: Write the collected data into the first northbound file, and modify the flag of the lock file to a completion flag.
需要说明的是:如图2所示,上述采集到的数据包括通过第一网元网管23管理的至少网元24及网元25,对应的网元子系统收集所监控设备的数据。根据该数据生成第一北向文件,综合网管21收集北向文件(北向文件22包括第一北向文件)。It should be noted that, as shown in FIG. 2, the collected data includes at least a network element 24 and a network element 25 managed by the first network element network management unit 23, and the corresponding network element subsystem collects data of the monitored equipment. The first northbound file is generated based on the data, and the integrated webmaster 21 collects the northbound file (the northbound file 22 includes the first northbound file).
还有,该锁文件的标志为完成标志的目的在于:生成第一北向文件后,表示该设备没有任务,可以接收其他设备访问或者执行其他任务。Moreover, the purpose of the lock file is that the completion flag is: after the first north file is generated, it indicates that the device has no tasks, and can receive other devices to access or perform other tasks.
本发明实施例中,通过第一网元网管利用锁文件的标志为开始标志,开始生成第一北向文件,并且在生成第一北向文件之后,将锁文件的标志的开始标志更改为完成标志,这样第一北向文件可以在第一网元网管有效屏蔽下稳定的输出。In the embodiment of the present invention, the first network element network management system uses the flag of the lock file as the start flag to start generating the first northbound file, and after generating the first northbound file, the start flag of the flag of the lock file is changed to the completion flag. In this way, the first northbound file can be stably outputted under the effective shielding of the first network element network management.
对于本发明第一实施例,还需要说明的是:上述生成的第一北向文件可以在第一网元网管本地存储,也可以由其他设备进行存储。一般可以由其他设备进行存储,可以降低第一网元网管的负荷,而且在其他网元网管需要使用或追加时,直接从其他设备进行获取或读取写入位置,降低了第一网元网管交互过程的负荷。For the first embodiment of the present invention, it should be noted that the first northbound file generated by the foregoing may be stored locally in the first network element network management device or may be stored by other devices. Generally, it can be stored by other devices, which can reduce the load of the network element of the first network element. When other network element network tubes need to be used or added, the device directly obtains or reads the write location from other devices, thereby reducing the network element of the first network element. The load of the interaction process.
如图3所示,如果第一网元网管中已经存在第一北向文件,若还重复生成第一北向文件,这样不仅会增加第一网元网管的负担,而且会存在执行任务错误的问题,因此本发明实施例的北向文件生成的方法还包括:As shown in FIG. 3, if the first northbound file already exists in the first network element network management system, if the first northbound file is repeatedly generated, the burden of the first network element network management is increased, and the problem of executing the task error may occur. Therefore, the method for generating a northbound file in the embodiment of the present invention further includes:
步骤103,检测到有第一北向文件时,如果未检测到第一北向文件对应的锁文件的标志,则生成一第一北向文件对应的锁文件的标志,并设置生成的标识为完成标志;如果检测到第一北向文件对应的锁文件,但锁文件的标志为开始标识,则修改锁文件的标志为完成标志。Step 103: When the first northbound file is detected, if the flag of the lock file corresponding to the first northbound file is not detected, a flag of the lock file corresponding to the first northbound file is generated, and the generated identifier is set as a completion flag. If the lock file corresponding to the first northbound file is detected, but the flag of the lock file is the start identifier, the flag of the modified lock file is the completion flag.
本发明实施例,通过预先检测是否有第一北向文件,在存在第一北向文件时,检测是否具有已经生成过的第一北向文件的标志,如果没有生成第一北向文件的标志,则生成锁文件的标志,并修改锁文件的标志为完成标志, 就不会重新生成第一北向文件;如果有第一北向文件的标志,则结束任务,这样就避免了任务的重复运行。In the embodiment of the present invention, by detecting whether there is a first northbound file in advance, when there is a first northbound file, it is detected whether there is a flag of the first northbound file that has been generated, and if the flag of the first northbound file is not generated, the lock is generated. The logo of the file and the flag of the modified lock file is the completion flag. The first northbound file will not be regenerated; if there is a flag for the first northbound file, the task is ended, thus avoiding repeated tasks.
如图4和图5所示,由于每次综合网管只能获取一份北向文件,新增设备或新增管理方式,会引起综合网管的接口不兼容,因此本发明实施例的北向文件生成的方法还包括:As shown in FIG. 4 and FIG. 5, each time the integrated network management system can obtain only one northbound file, the new device or the new management mode may cause the interface of the integrated network management system to be incompatible. Therefore, the northbound file is generated in the embodiment of the present invention. The method also includes:
步骤104,发送第一北向文件到预置设备,由预置设备存储第一北向文件。Step 104: Send the first northbound file to the preset device, and store the first northbound file by the preset device.
需要说明的是:这里的预置设备可以包括计算机、虚拟机或其他种类的服务器,任何可以实现存储第一北向文件的终端,均属于本发明实施例的保护范围,在此不一一举例。It should be noted that the preset device herein may include a computer, a virtual machine, or another type of server, and any terminal that can store the first northbound file belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein.
这里发送第一北向文件,即第一北向文件输出,是一种典型的数据输出格式。通常文件输出可以是CSV(Comma-Separated Values,逗号分隔值,其文件以纯文本形式存储表格数据(数字和文本))、TXT(TXT是微软在操作系统上附带的一种文本格式,是最常见的一种文件格式,早在DOS时代应用就很多,主要存文本信息,即为文字信息,现在的操作系统大多使用记事本等程序保存,大多数软件可以查看,如记事本,浏览器等等)、XML(Extensible Markup Language,可扩展标记语言)或其他格式。北向文件可以位于预置设备的FTP(File Transfer Protocol,文件传输协议)或硬盘的指定目录。北向文件有固定的文件或文件夹名。如、生成资产信息;通常的命名如下:PORT_20150910.csv,该命名表示2015年9月10日网元网管获取到的PORT(端口)资产信息。综合网管拿到第一网元网管和/或第二网元网管上报的全部数据,可以对整个网络进行统一的数据分析。Here, the first northbound file, that is, the first northbound file output, is a typical data output format. Usually the file output can be CSV (Comma-Separated Values, comma-separated values, the file stores the table data (number and text) in plain text), TXT (TXT is a text format that Microsoft attaches to the operating system, is the most common A file format, as early as the DOS era, a lot of applications, mainly text information, that is, text information, the current operating system is mostly saved using a program such as Notepad, most software can be viewed, such as Notepad, browser, etc. ), XML (Extensible Markup Language) or other formats. The northbound file can be located in the FTP (File Transfer Protocol) of the preset device or the specified directory of the hard disk. Northbound files have a fixed file or folder name. For example, generate asset information; the usual name is as follows: PORT_20150910.csv, the naming indicates the PORT (port) asset information obtained by the network element network management on September 10, 2015. The integrated network management system obtains all the data reported by the first network element network management system and/or the second network element network management system, and can perform unified data analysis on the entire network.
本发明实施例中,北向文件(包括第一北向文件及第二北向文件,即所有北向文件的统称)、锁文件通常可以按照如下的规则设置名称:In the embodiment of the present invention, the northbound file (including the first northbound file and the second northbound file, that is, the collective name of all northbound files) and the lock file may generally be set according to the following rules:
锁文件的标志为开始标志的规则名称:PORT_20150910_start.logThe flag of the lock file is the rule name of the start flag: PORT_20150910_start.log
锁文件的标志为完成标志的规则名称:PORT_20150910_finish.logThe lock file is marked with the rule name of the completion flag: PORT_20150910_finish.log
其中,锁文件的文件名前半部分为北向文件文件名不含后缀的内容。开始的时候增加开始标志,如_start.log;结束的时候修改为结束标志,如_finish.log。 The first half of the file name of the lock file is the content of the north file name without the suffix. Start with a start flag, such as _start.log; at the end, change to the end flag, such as _finish.log.
还有,锁文件的标志为开始标志也可以称为开始锁文件,锁文件的标志为完成标志可以称为完成锁文件,开始锁文件与完成锁文件在整个实现的过程中只能存在一个。一般通过修改文件名或删除重建的方式,保持完成锁文件和开始锁文件在执行任务过程中的唯一。Also, the logo of the lock file may be referred to as a start lock file, and the logo of the lock file may be referred to as a completion lock file. The start lock file and the completion lock file may only exist one during the entire implementation process. Generally, by changing the file name or deleting the reconstruction method, the completion of the lock file and the start lock file are unique during the execution of the task.
本发明实施例,通过将第一北向文件存储在预置设备中,其他每个生成北向文件的网元网管也将生成的北向文件存储于预置设备中,这样综合网元可以从预置设备处直接获取第一北向文件,不需要考虑新增设备或者新增管理方式对综合网元的影响,仍然使用与原始北向文件相同的北向文件格式输出,也避免存在综合网管的接口不兼容问题,提高了综合网管获取北向文件的效率。In the embodiment of the present invention, the first northbound file is stored in the preset device, and each of the other network element network management tubes that generate the northbound file also stores the generated northbound file in the preset device, so that the integrated network element can be from the preset device. The first northbound file is obtained directly. It does not need to consider the impact of new devices or new management methods on the integrated network element. It still uses the same northbound file format output as the original northbound file, and avoids the interface incompatibility problem of the integrated network management. Improve the efficiency of integrated network management to obtain northbound documents.
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述北向文件生成的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method for generating the northbound file.
如图6所示,本发明实施例的第一网元网管创建第一北向文件的整体实现过程如下。As shown in FIG. 6, the overall implementation process of creating a first northbound file by the first network element network management system in the embodiment of the present invention is as follows.
步骤601,第一网元网管检查第一北向文件是否存在,如果第一北向文件存在,则执行607;如果第一北向文件不存在,则执行步骤602至步骤606。其中,如果第一北向文件已经存在了,此时添加第一北向文件会失败。出现这种原因通常是修改了第一网元网管时间导致任务重复运行。或者是其他网元网管的时间计算出错,提前运行生成第一北向文件。Step 601: The first network element network management checks whether the first northbound file exists. If the first northbound file exists, the process proceeds to 607. If the first northbound file does not exist, step 602 to step 606 are performed. If the first northbound file already exists, adding the first northbound file will fail. This reason is usually caused by modifying the network management time of the first network element to cause the task to run repeatedly. Or the time calculation of other network element network management is incorrect, and the first northbound file is generated in advance.
步骤602,创建锁文件,并设置锁文件的标志为开始标志。In step 602, a lock file is created, and the flag of the lock file is set as a start flag.
步骤603,创建第一北向文件。In step 603, a first northbound file is created.
步骤604,将从网元或数据库中采集到的数据写入到第一北向文件中。 Step 604, the data collected from the network element or the database is written into the first northbound file.
步骤605,采集到的数据写入结束后,将锁文件的标志修改为完成标志。Step 605: After the collected data is written, the flag of the lock file is modified to a completion flag.
步骤606,完成第一北向文件的生成。 Step 606, completing the generation of the first northbound file.
步骤607,检查锁文件是否存在,如果锁文件不存在,则执行608;如果 锁文件存在,则数据添加失败,则执行609。 Step 607, checking whether the lock file exists, if the lock file does not exist, executing 608; If the lock file exists, the data addition fails, and 609 is executed.
步骤608,创建一个锁文件;创建锁文件可以避免后面网元网管重复添加数据。这里,后面网元网管包括第一网元网元之后的其他网元网管。 Step 608, creating a lock file; creating a lock file can prevent the subsequent network element network management from repeatedly adding data. Here, the subsequent network element network management includes other network element network tubes subsequent to the first network element network element.
步骤609,结束任务。In step 609, the task ends.
第二实施例Second embodiment
如图7所示,本发明实施例的北向文件生成的方法,应用于第二网元网管,第二网元网管处理第一网元网管的第一北向文件,本发明实施例方法包括:As shown in FIG. 7, the method for generating a northbound file according to an embodiment of the present invention is applied to a second network element network management system, and the second network element network management system processes a first northbound file of the first network element network management.
步骤701,在到达第二时间点时,如果检测到第一北向文件对应锁文件的标志为完成标志,将锁文件的标志由完成标志修改为开始标志;Step 701: When the second time point is reached, if it is detected that the flag of the first northbound file corresponding to the lock file is a completion flag, the flag of the lock file is modified from the completion flag to a start flag;
本发明实施例,第二时间点在第一时间点之后,第一时间点为预先设定的第一网元网管生成第一北向文件的时间点;本发明实施例,第一网元网管和第二网元网管可以是相对的,可以按照对北向文件的先后处理顺序确定根据In the embodiment of the present invention, the second time point is after the first time point, and the first time point is a time point at which the first network element network management generates the first northbound file in advance; in the embodiment of the present invention, the first network element network management The second network element network management system may be relative, and may be determined according to the sequence of processing the northbound files.
需要说明的是:上述第二时间点包括第一网元网管开始准备生成第二北向文件的时间点,一般该第二时间点由用户按照生成北向文件设备的数量及用户需求进行决定。可选地,对于用户需要来说,一般在夜晚的晚21点至凌晨5点之间,设备生成的北向文件较少,因此在夜晚设置的时间点较少。对于生成北向文件设备来说,比如生成北向文件设备的数目为8个,则设置的第二时间点为早上8点,对应每一个小时设置一个时间点,按照设置的时间点启动其他生成北向文件的设备。It should be noted that the second time point includes a time point at which the first network element network controller starts to prepare to generate the second northbound file, and the second time point is generally determined by the user according to the number of generating northbound file devices and user requirements. Optionally, for the user's needs, generally between 21 pm and 5 am in the night, the device generates fewer northbound files, so there are fewer time points set at night. For generating a northbound file device, for example, if the number of northbound file devices is eight, the second time point is set to 8:00 in the morning, and a time point is set corresponding to each hour, and other generated northbound files are started according to the set time point. device of.
还有,第一网元网管可以启动第二预置时间段,也就是说,步骤701可以包括:在到达第二时间点时的第二预置时间段,检测到第二北向文件对应锁文件的标志为完成标志时,将锁文件的标志由完成标志修改为开始标志,其中,第二时间点在第一时间点之后,第一时间点为第一网元网管生成第二北向文件的时间。第二预置时间段可以根据用户或工业需要进行设置。一般第二预置时间段可以根据设备正常生成北向文件的时间长度,也可以在保证每个设备正常生成北向文件的时间长度下,由生成北向文件设备的数量决定。 比如正常情况下,该设备生成第二北向文件的时间长度为半小时,则上述第二预置时间段可以设置为1小时至2小时。如果生成北向文件的设备较多,比如共四个生成北向文件设备的时间均为30分种,则在保证生成第二北向文件完成的情况下,将上述第二预置时间段设置为40分钟到一小时。当然以上仅仅是举例说明,在此不作限定。其中,生成北向文件的设备可以一直处于工作状态,也可以按照用户设定的预置时间段工作。本发明可选为按照预置时间段工作,这样可以减少了设备的负荷。In addition, the first network element network management system may start the second preset time period, that is, the step 701 may include: detecting the second northbound file corresponding lock file when the second preset time period is reached at the second time point. When the flag is the completion flag, the flag of the lock file is modified from the completion flag to the start flag, wherein the second time point is after the first time point, and the first time point is the time for the first network element network to generate the second north file. . The second preset time period can be set according to user or industrial needs. Generally, the second preset time period may be determined according to the length of time that the device normally generates the northbound file, or the number of times the northbound file is normally generated by each device. For example, under normal circumstances, when the device generates the second northbound file for half an hour, the second preset time period may be set to 1 hour to 2 hours. If there are many devices that generate northbound files, for example, if the total number of four northbound file devices is 30 minutes, set the second preset time period to 40 minutes when the second northbound file is generated. To an hour. Of course, the above is merely an example and is not limited herein. The device that generates the northbound file can always be in the working state, or can work according to the preset time period set by the user. The invention can be selected to work according to a preset time period, which can reduce the load of the device.
步骤702,将采集到的数据追加写入第一北向文件中,生成第二北向文件;Step 702: Appending the collected data to the first northbound file to generate a second northbound file.
这里的第二北向文件由将采集到的数据追加写入到第一北向文件中生成,相当于在第一北向文件后面增加了采集到的数据的文件。但是北向文件可以包括第一北向文件及第二北向文件。The second northbound file here is generated by additionally writing the collected data to the first northbound file, which is equivalent to adding the collected data to the file after the first northbound file. However, the northbound file may include a first northbound file and a second northbound file.
还有,上述第二网元网管可以作为最终网元网管,也可以作为中间网元网管,是最终网元网管还是中间网元网管,都和实际应用有关。如图2所示,上述第二网元网管作为最终网元网管,上述采集到的数据包括通过最终网元网管26(网元网管包括最终网元网管)管理的至少网元27及网元28,对应的网元子系统收集所监控设备的数据。根据该数据生成第二北向文件(北向文件22包括第二北向文件),综合网管21收集北向文件。In addition, the second network element network management system can be used as the final network element network management system, or can be used as the intermediate network element network management system, and is the final network element network management system or the intermediate network element network management system, which are related to practical applications. As shown in FIG. 2, the second network element network management system is used as the final network element network management unit, and the collected data includes at least the network element 27 and the network element 28 managed by the final network element network management unit 26 (the network element network management unit including the final network element network management unit). The corresponding network element subsystem collects data of the monitored device. A second northbound file is generated based on the data (the northbound file 22 includes a second northbound file), and the integrated webmaster 21 collects the northbound file.
步骤703,修改生成的第二北向文件的锁文件的标志为完成标志。Step 703: Modify the flag of the generated lock file of the second northbound file to be a completion flag.
本发明实施例中,通过后续第二网元网管追加第一网元网管形成一份北向文件,即生成第二北向文件,多个网管生成一套统一的北向接口输出,在综合网管需要用数据时,直接获取第二北向文件,不需要考虑新增设备或者新增管理方式对综合网元的影响,仍然使用与原始北向文件相同的北向文件格式输出,也避免存在综合网管的接口不兼容问题,提高了综合网管获取北向文件的效率。In the embodiment of the present invention, a second northbound file is formed by adding a first network element network management by the second network element network management, that is, a second northbound file is generated, and multiple network management systems generate a unified northbound interface output, and data is needed in the integrated network management system. When the second northbound file is directly obtained, the impact of the newly added device or the new management mode on the integrated network element is not considered, and the same northbound file format output as the original northbound file is still used, and the interface incompatibility problem of the integrated network management is also avoided. , improve the efficiency of the integrated network management to obtain northbound documents.
需要说明的是:上述第二网元网管可以作为最终网元网管,也可以作为中间网元网管,而建立中间网元网管并不是必须的,可以在后期不断进行添加,因此中间网元网管的数目可以一个,也可以是多个,从而实现整个系统的可扩展性。但是所有添加的中间网元网管的执行过程,均可以应用本发明 实施例的北向文件生成的方法实现。对于本发明实施例第二网元网管为中间网元网管或者最终网元网管的实现过程举例如下。It should be noted that the foregoing second network element network management system can be used as the final network element network management system or the intermediate network element network management system, and the establishment of the intermediate network element network management is not necessary, and can be continuously added in the later stage, so the intermediate network element network management The number can be one or more, thereby achieving scalability of the entire system. However, the implementation process of all the added intermediate network element network tubes can apply the present invention. Method implementation of northbound file generation of an embodiment. For the implementation process of the second network element network management system of the embodiment of the present invention, the intermediate network element network management system or the final network element network management system is as follows.
如图8所示,本发明实施例第二网元网管为中间网元网管的整体实现过程如下。As shown in FIG. 8, the overall implementation process of the second network element network management system in the embodiment of the present invention is as follows.
步骤801,中间网元网管检查第一北向文件是否存在锁文件,且锁文件的标志为完成标志。如果锁文件的标志为完成标志,则执行步骤802至步骤805,如果不存锁文件说明可能出现了异常。则执行步骤806。Step 801: The intermediate network element network management checks whether the first northbound file has a lock file, and the lock file identifier is a completion flag. If the flag of the lock file is the completion flag, step 802 to step 805 are performed, and if the lock file is not stored, an exception may occur. Then step 806 is performed.
步骤802,修改锁文件的标志为开始标志。In step 802, the flag of the lock file is modified to be a start flag.
步骤803,向第一北向文件中追加写入数据,生成第二北向文件。 Step 803, adding write data to the first northbound file to generate a second northbound file.
步骤804,修改生成的第二北向文件的锁文件的标志为完成标志。完成修改后,中间网元网管的数据添加完毕。 Step 804, modifying the flag of the generated lock file of the second northbound file as a completion flag. After the modification is completed, the data of the intermediate NE management system is added.
步骤805,中间网元网管检查第一北向文件是否存在锁文件;如果锁文件存在,证明数据被锁,执行步骤807;如果锁文件不存在,则执行步骤806。Step 805: The intermediate network element network management checks whether the first northbound file has a lock file. If the lock file exists, the proof data is locked, and step 807 is performed. If the lock file does not exist, step 806 is performed.
步骤806,禁止修改; Step 806, the modification is prohibited;
步骤806,创建一个锁文件,并设置锁文件的标志为开始标志;按照步骤803执行正常流程;比如、第一网元网管的创建过程,创建北向文件并向其中写入北向数据。由于锁文件的标识为开始标志,因此第二北向文件的数据输出会失败。Step 806: Create a lock file, and set the flag of the lock file as a start flag; perform a normal process according to step 803; for example, the process of creating the first network element network management, create a northbound file, and write northbound data thereto. Since the ID of the lock file is the start flag, the data output of the second north file will fail.
如图9所示,本发明实施例第二网元网管为最终网元网管,创建第二北向文件(即最终北向文件)的整体实现过程如下。As shown in FIG. 9 , in the embodiment of the present invention, the second network element network management is the final network element network management, and the overall implementation process of creating the second northbound file (ie, the final northbound file) is as follows.
步骤901,最终网元网管检查第一/第二北向文件是否存在锁文件的标志,且锁文件的标志为完成标志。如果锁文件的标志为完成标志,则执行步骤902至步骤905,如果不存锁文件说明可能出现了异常。则执行步骤906。In step 901, the network element network management checks whether the first/second northbound file has a lock file identifier, and the lock file identifier is a completion flag. If the flag of the lock file is the completion flag, step 902 to step 905 are performed, and if the lock file is not stored, an exception may occur. Then step 906 is performed.
步骤902,修改锁文件的标志为开始标志。In step 902, the flag of the modified lock file is a start flag.
步骤903,向第一/第二北向文件中写入数据,生成最终北向文件。 Step 903, writing data to the first/second northbound file to generate a final northbound file.
步骤904,修改生成最终北向文件的锁文件的标志为完成标志,并删除锁文件。完成修改后,最终网元网管的数据添加完毕。In step 904, the flag of the lock file that generates the final northbound file is modified to be a completion flag, and the lock file is deleted. After the modification is completed, the data of the final NE network management is added.
步骤905,最终网元网管检查第一/第二北向文件是否存在锁文件。如果锁文件存在,证明数据被锁,执行步骤906;如果锁文件不存在,则执行步 骤907。In step 905, the network element network management finally checks whether the first/second northbound file has a lock file. If the lock file exists, the proof data is locked, step 906 is performed; if the lock file does not exist, the step is executed Step 907.
步骤906,禁止修改; Step 906, prohibiting modification;
步骤907,创建一个锁文件,并设置锁文件的标志为开始标志;之后按照步骤903流程执行;包括按照正常流程(比如第一/第二网元网管的创建过程)创建北向文件并向其中写入北向数据。由于锁文件的标志为开始标志,因此会导致最终北向数据输出失败。Step 907: Create a lock file, and set the flag of the lock file as a start flag; then execute according to the process of step 903; including creating a northbound file and writing to it according to a normal process (such as the first/second network element network management process) Enter the northbound data. Since the flag of the lock file is the start flag, the final northbound data output will fail.
如图10所示,如果该第二网元网管是最终网元网管,本发明实施例的北向文件生成的方法中,在步骤703之后本发明实施例方法还包括:As shown in FIG. 10, if the second network element network management is the final network element network management, in the method for generating a northbound file according to the embodiment of the present invention, after the step 703, the method of the embodiment of the present invention further includes:
步骤704,删除第二北向文件的锁文件。 Step 704, deleting the lock file of the second northbound file.
这里的删除锁文件,表明一次整体的北向文件生成完成,综合网管获取北向文件的数据时,可以根据锁文件判断北向文件的数据是否正常,如果存在锁文件,则任务执行存在问题。在实施的时候需要给每个网元网管和综合网管都留有足够的执行时间。这样避免在上次还没有删除锁文件时,综合网管需要获取北向文件的数据,出现不必要的错误。The delete lock file here indicates that the overall northbound file generation is completed. When the integrated network management obtains the data of the northbound file, the data of the northbound file can be judged according to the lock file. If the lock file exists, the task execution has a problem. In the implementation, it is necessary to leave sufficient execution time for each network element network management and integrated network management. In this way, when the lock file is not deleted last time, the integrated network management needs to obtain the data of the northbound file, and an unnecessary error occurs.
判断是否为最终网元网管,与用户设置有关。本发明实施例最终网元网管具有生成一个完整北向文件的最后一些设置数据。Determine whether it is the final NE network management, which is related to user settings. In the embodiment of the present invention, the final network element network management has the last setting data for generating a complete northbound file.
在第一网元网管没有采集到数据、本身故障或者没有生成第一北向文件时,如果强制从第一网元网管开始生成第一北向文件,那么就没法正常运行,因此本发明实施例的北向文件生成的方法在步骤702之前,本发明实施例方法还包括:在未检测到第一北向文件的锁文件的标志为完成标志时,不进行第一北向文件的锁文件的标志为开始标志的检测。这样可以根据用户需求或者设备进行调整,提高了该方法的适用性。If the data of the first network element is not collected, the fault is not generated, or the first northbound file is not generated, if the first northbound file is forcibly generated from the first network element, the normal operation cannot be performed. Therefore, the embodiment of the present invention The method for generating the northbound file is the method of the embodiment of the present invention. The method further includes: when the flag of the lock file of the first northbound file is not detected as the completion flag, the flag of the lock file of the first northbound file is not the start flag. Detection. This can be adjusted according to user needs or equipment, which improves the applicability of the method.
可选的,本发明实施例的北向文件生成的方法,步骤702可以包括:Optionally, the method for generating a northbound file according to the embodiment of the present invention may include:
步骤7021,获取所述第一北向文件的写入位置;Step 7021: Acquire a write location of the first northbound file.
步骤7022,将采集到的数据根据获取的写入位置追加写入第一北向文件;本发明实施例追加写入完成时,生成第二北向文件。Step 7022: The collected data is additionally written into the first northbound file according to the obtained write position. When the additional write is completed in the embodiment of the present invention, the second northbound file is generated.
本发明实施例,通过获取第一北向文件的写入位置,则不需要获取整个第一北向文件,直接追加写入到第一北向文件的写入位置处,减少了第二网元网管的负荷,也可以实现完整北向文件的生成。 In the embodiment of the present invention, by acquiring the writing position of the first northbound file, the entire northbound file does not need to be acquired, and the write position of the first northbound file is directly added, thereby reducing the load of the second network element network management. It is also possible to generate a complete northbound file.
由于每次综合网管只能获取一份北向文件,新增设备或新增管理方式,会引起综合网管的接口不兼容,因此本发明实施例的北向文件生成的方法还包括:The method for generating the northbound file in the embodiment of the present invention further includes: a method for generating a northbound file according to the embodiment of the present invention, since the integrated network management system can obtain only one copy of the northbound file, and the new device or the new management mode may cause the interface of the integrated network management system to be incompatible.
步骤705,向预置设备发送第二北向文件,并由预置设备存储第二北向文件。Step 705: Send a second northbound file to the preset device, and store the second northbound file by the preset device.
需要说明的是:这里的预置设备可以包括计算机、虚拟机或其他服务器,任何可以实现存储第二北向文件的终端,均属于本发明实施例的保护范围,在此不一一举例。It should be noted that the preset device herein may include a computer, a virtual machine, or another server, and any terminal that can store the second northbound file belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein.
还有,这里发送第二北向文件,即北向文件输出,这是一种典型的数据输出格式。通常文件输出可以是CSV(Comma-Separated Values,逗号分隔值,其文件以纯文本形式存储表格数据(数字和文本))、TXT(TXT是微软在操作系统上附带的一种文本格式,是最常见的一种文件格式,早在DOS时代应用就很多,主要存文本信息,即为文字信息,现在的操作系统大多使用记事本等程序保存,大多数软件可以查看,如记事本,浏览器等等)、XML(Extensible Markup Language,可扩展标记语言)或其他格式。北向文件可以位于预置设备存储的FTP(File Transfer Protocol,文件传输协议)或硬盘的指定目录。北向文件有固定的文件或文件夹名。Also, here is the second northbound file, the northbound file output, which is a typical data output format. Usually the file output can be CSV (Comma-Separated Values, comma-separated values, the file stores the table data (number and text) in plain text), TXT (TXT is a text format that Microsoft attaches to the operating system, is the most common A file format, as early as the DOS era, a lot of applications, mainly text information, that is, text information, the current operating system is mostly saved using a program such as Notepad, most software can be viewed, such as Notepad, browser, etc. ), XML (Extensible Markup Language) or other formats. The northbound file can be located in the specified directory of FTP (File Transfer Protocol) or hard disk stored by the preset device. Northbound files have a fixed file or folder name.
如生成资产信息:通常的命名如下:PORT_20150910.csvSuch as generating asset information: the usual name is as follows: PORT_20150910.csv
表示2015年9月10日网元网管获取到的PORT(端口)资产信息。综合网管拿到第一网元网管和/或第二网元网管上报的全部数据,可以对整个网络进行统一的数据分析。Indicates the PORT (port) asset information obtained by the network element network management on September 10, 2015. The integrated network management system obtains all the data reported by the first network element network management system and/or the second network element network management system, and can perform unified data analysis on the entire network.
本发明实施例,通过将第二北向文件存储在预置设备中,其他每个生成北向文件的网元网管也将生成的北向文件存储于预置设备中,这样综合网元可以从预置设备处直接获取第二北向文件,不需要考虑新增设备或者新增管理方式对综合网元的影响,仍然使用与原始北向文件相同的北向文件格式输出,也避免存在综合网管的接口不兼容问题,提高了综合网管获取北向文件的效率。In the embodiment of the present invention, the second northbound file is stored in the preset device, and the other northbound file that generates the northbound file is also stored in the preset device, so that the integrated network element can be from the preset device. The second northbound file is obtained directly, and the impact of the newly added device or the new management mode on the integrated network element is not considered, and the same northbound file format output as the original northbound file is still used, and the interface incompatibility problem of the integrated network management is also avoided. Improve the efficiency of integrated network management to obtain northbound documents.
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计 算机可执行指令,计算机可执行指令用于执行上述北向文件生成的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores the meter The computer executable instructions are used to execute the above method of generating northbound files.
如图11所示,本发明实施例的总体实现流程如下。As shown in FIG. 11, the overall implementation process of the embodiment of the present invention is as follows.
整个流程按照时间顺序执行,定义第一网元网管凌晨1点运行、中间第一网元网管凌晨2点运行、中间第二网元网管凌晨3点运行,最终网元网管凌晨4点运行、综合网管获取文件凌晨5点获取北向文件。本发明实施例通过两个中间网元网管进行举例,实际应用这两个中间网元网管可以有,也可以后期可以添加,但是执行北向文件生成的过程相同。The entire process is executed in chronological order, defining the first network element network management running at 1 am, the middle first network element network management running at 2 am, the middle second network element network management running at 3 am, and finally the network element network management running at 4 am. The NMS obtains the file to obtain the northbound file at 5 am. The embodiment of the present invention is exemplified by two intermediate network element network management systems. The two intermediate network element network management systems may be used in the actual application, or may be added later, but the process of performing northbound file generation is the same.
步骤1101,第一网元网管创建第一北向文件并写入北向文件数据,且添加锁文件。本实施例,北向文件数据可以包括采集的数据。Step 1101: The first network element network management system creates a first northbound file and writes northbound file data, and adds a lock file. In this embodiment, the northbound file data may include the collected data.
步骤1102,中间第一网元网管追加第一北向文件,添加自身的数据,生成第一个第二北向文件;包括:如果这时候第一网元网管还没有执行完第一北向文件的生成,锁文件的标志并未修改成完成标志,那么中间第一网元网管的第二北向文件生成失败;如果第一网元网管的锁文件的标志变成完成标志,中间第一网元网管追加写入数据到第一北向文件,生成第一个第二北向文件,修改锁文件。本发明实施例,网元网管分为三级,按照顺序分别为第一网元网管、中间第一网元网管、中间第二网元网管。Step 1102: The first network element network management system adds the first northbound file, adds its own data, and generates a first second northbound file. The method includes: if the first network element network management has not executed the first northbound file at this time, If the flag of the lock file is not modified to the completion flag, the second northbound file of the first network element network management fails to be generated; if the flag of the lock file of the first network element network management becomes the completion flag, the first network element of the network element is additionally written. Enter the data into the first north file, generate the first second north file, and modify the lock file. In the embodiment of the present invention, the network element network management is divided into three levels, which are respectively the first network element network management, the intermediate first network element network management, and the intermediate second network element network management.
步骤1103,中间第二网元网管追加第一个第二北向文件,添加自身的数据,生成第二个第二北向文件;包括:如果中间第一网元网管还没有执行完第二北向文件的生成,锁文件的标志并未变成完成标志,那么中间第二网元网管的第二个第二北向文件的生成失败;如果中间第一网元网管的锁文件的标志变成完成标志,中间第二网元网管追加写入数据至第一个第二北向文件,生成第二个第二北向文件,修改锁文件。Step 1103: The second network element of the second network element adds the first second northbound file, adds its own data, and generates a second second northbound file. The method includes: if the first network element of the middle network element has not executed the second northbound file. If the flag of the lock file does not become the completion flag, the generation of the second second northbound file of the second network element network management device fails; if the flag of the lock file of the first network element network management tube becomes the completion flag, the middle The second network element network management additionally writes the data to the first second north file, generates a second second north file, and modifies the lock file.
步骤1104,最终网元网管追加第二个第二北向文件,添加最后数据,生成最终北向文件;包括:最终网元网管追加写入数据至第二个第二北向文件。如果此时的第一网元网管、中间第一网元网管或中间第二网元网管还有没有执行完成生成北向文件,锁文件的标志并未变成完成标志,最终网元网管的生成北向文件失败。最终网元网管添加最后数据生成最终北向文件后,删除锁文件。 Step 1104: The network element network management system adds a second second northbound file, adds the last data, and generates a final northbound file. The method includes: adding, by the network element network management, the write data to the second second northbound file. If the first network element network management system, the first network element network management system, or the second network element network management system in the middle of the network has not been executed to generate the northbound file, the logo of the lock file does not become the completion flag, and finally the north direction of the network element network management is generated. The file failed. After the final NE data is added to the final NE data file, the lock file is deleted.
步骤1105,综合网管获取最终北向文件;最终北向文件可以只有一个北向文件,包含了全部网元网管北向数据的文件。In step 1105, the integrated network management system obtains the final northbound file; the final northbound file may have only one northbound file, and includes files of all the network element network management northbound data.
第三实施例Third embodiment
如图12所示,本发明实施例一种北向文件生成的装置,应用于第一网元网管,其中,所述北向文件生成的装置包括:As shown in FIG. 12, an apparatus for generating a northbound file is applied to a first network element network management device according to an embodiment of the present invention, where the apparatus for generating the northbound file includes:
第一检测处理模块1201,设置为在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和与锁文件对应的第一北向文件,并设置锁文件的标志为开始标志,其中,第一时间点为第一网元网管准备生成未检测到的第一北向文件的时间;The first detection processing module 1201 is configured to: when the first time point is not detected, if the first north file is not detected, create a lock file and a first north file corresponding to the lock file, and set a flag of the lock file as a start flag, The first time point is a time for the first network element network controller to prepare an undetected first northbound file.
第一修改模块1202,设置为将采集到的数据写入到第一北向文件中,并将锁文件的标志修改为完成标志。The first modification module 1202 is configured to write the collected data into the first northbound file and modify the flag of the lock file to a completion flag.
本发明实施例中,通过第一网元网管利用锁文件的标志为开始标志,开始生成第一北向文件,并且在生成第一北向文件之后,将锁文件的标志的开始标志更改为完成标志,这样第一北向文件可以在第一网元网管有效屏蔽下稳定的输出。In the embodiment of the present invention, the first network element network management system uses the flag of the lock file as the start flag to start generating the first northbound file, and after generating the first northbound file, the start flag of the flag of the lock file is changed to the completion flag. In this way, the first northbound file can be stably outputted under the effective shielding of the first network element network management.
需要说明的是,本发明实施例提供的装置是应用上述北向文件生成的方法的装置,则北向文件生成的方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that, the apparatus provided by the embodiment of the present invention is a device that applies the method for generating the northbound file, and all embodiments of the method for generating a northbound file are applicable to the device, and all of the same or similar beneficial effects can be achieved.
本发明又一实施例的北向文件生成的装置还可以包括:The device for generating a northbound file according to another embodiment of the present invention may further include:
检测生成模块,设置为检测到有第一北向文件时,如果未检测到第一北向文件对应的锁文件的标志,则生成一第一北向文件对应的锁文件的标志,并设置生成的锁文件的标志为完成标志;如果检测到第一北向文件对应的锁文件,但锁文件的标志为开始标识,则修改锁文件的标志为完成标志。The detection generation module is configured to: when the first northbound file is detected, if the flag of the lock file corresponding to the first northbound file is not detected, generate a flag of the lock file corresponding to the first northbound file, and set the generated lock file The flag is the completion flag; if the lock file corresponding to the first north file is detected, but the flag of the lock file is the start identifier, the flag of the modified lock file is the completion flag.
本发明又一实施例的北向文件生成的装置还可以包括:The device for generating a northbound file according to another embodiment of the present invention may further include:
第一发送模块,设置为将第一北向文件发送到预置设备,并由预置设备存储。The first sending module is configured to send the first northbound file to the preset device, and is stored by the preset device.
第四实施例Fourth embodiment
如图13所示,本发明实施例的北向文件生成的装置,应用于第二网元网管,第二网元网管处理第一网元网管的第一北向文件,北向文件生成的装置 包括:As shown in FIG. 13 , the device for generating a northbound file according to an embodiment of the present invention is applied to a second network element network management device, and the second network element network management device processes a first northbound file of the first network element network management device and a device for generating a northbound file. include:
第二检测处理模块1301,设置为在到达第二时间点时,如果检测到第一北向文件对应锁文件的标志为完成标志,将锁文件的标志由所述完成标志修改为开始标志;The second detection processing module 1301 is configured to, when the second time point is reached, if the flag of the first northbound file corresponding to the lock file is detected as a completion flag, the flag of the lock file is modified from the completion flag to a start flag;
生成模块1302,设置为将采集到的数据追加写入第一北向文件中,生成第二北向文件;The generating module 1302 is configured to additionally write the collected data into the first northbound file to generate a second northbound file.
第二修改模块1303,设置为修改生成的第二北向文件的锁文件的标志为完成标志。The second modification module 1303 is configured to modify the flag of the generated lock file of the second northbound file as a completion flag.
本发明实施例中,通过后续第二网元网管追加第一网元网管形成一份北向文件,生成第二北向文件,多个网管生成一套统一的北向接口输出,在综合网管需要用数据时,直接获取第一北向文件,不需要考虑新增设备或者新增管理方式对综合网元的影响,仍然使用与原始北向文件相同的北向文件格式输出,也避免存在综合网管的接口不兼容问题,提高了综合网管获取北向文件的效率。In the embodiment of the present invention, a second northbound file is formed by adding a first network element to the second network element network management system to generate a second northbound file, and multiple network management systems generate a unified northbound interface output, when the integrated network management needs data. The first northbound file is obtained directly, and the impact of the newly added device or the new management mode on the integrated network element is not considered, and the same northbound file format output as the original northbound file is still used, and the interface incompatibility problem of the integrated network management is also avoided. Improve the efficiency of integrated network management to obtain northbound documents.
本发明又一可选实施例的北向文件生成的装置还包括:The device for generating a northbound file according to still another alternative embodiment of the present invention further includes:
删除模块,设置为删除第二北向文件的锁文件。Delete the module and set it to delete the lock file of the second north file.
本发明又一实施例的北向文件生成的装置还包括:The apparatus for generating a northbound file according to still another embodiment of the present invention further includes:
检测模块,设置为未检测到所述第一北向文件的锁文件的标志为完成标志时,不进行所述第一北向文件的锁文件的标志为开始标志的检测。The detecting module is configured to detect that the flag of the lock file of the first northbound file is not the flag when the flag of the lock file of the first northbound file is not detected is the start flag.
本发明又一实施例的北向文件生成的装置中,所述生成模块1302包括:In the apparatus for generating a northbound file according to another embodiment of the present invention, the generating module 1302 includes:
获取单元,设置为获取所述第一北向文件的写入位置;An obtaining unit, configured to obtain a writing position of the first northbound file;
生成单元,将采集到的数据追加写入第一北向文件的写入位置,生成第二北向文件。The generating unit adds the collected data to the writing position of the first northbound file to generate a second northbound file.
本发明又一实施例的北向文件生成的装置还包括:The apparatus for generating a northbound file according to still another embodiment of the present invention further includes:
第二发送模块,设置为向预置设备发送第二北向文件,由预置设备存储第二北向文件。The second sending module is configured to send a second northbound file to the preset device, and the second northbound file is stored by the preset device.
需要说明的是,本发明提供的装置是应用上述主北向文件生成的方法的装置,则上述北向文件生成的方法的所有实施例均适用于该装置,且均能达 到相同或相似的有益效果。It should be noted that the apparatus provided by the present invention is a device that applies the method for generating a primary northbound file, and all embodiments of the method for generating a northbound file are applicable to the device, and both can reach To the same or similar benefits.
本发明实施例还提供一种系统,包括如上述的北向文件生成的装置。Embodiments of the present invention also provide a system including the apparatus for generating a northbound file as described above.
对于该系统来说,应用于第一网元网管的北向文件生成装置、应用于第二网元网管(中间网元网管及最终网元网管)的北向文件生成装置依次向北向文件添加数据。通过锁文件控制北向数据的写入,避免发生重复或错误的协议。最后综合网管读取最终生成的文件。本发明实施例是在于多个网元网管生成一份北向文件,从而使得整个系统接口更加稳定。For the system, the northbound file generating device applied to the first network element network management device and the northbound file generating device applied to the second network element network management system (the intermediate network element network management system and the final network element network management system) sequentially add data to the northbound file. Control the writing of northbound data through lock files to avoid duplicate or erroneous protocols. Finally, the integrated network management reads the final generated file. In the embodiment of the present invention, a plurality of network element network tubes generate a northbound file, so that the entire system interface is more stable.
其中,该系统中有2个或2个以上的网元网管。网元网管负责收集其管理网元的北向数据,并将北向数据写入北向文件。综合网管读取文件数据获取全网的北向数据的信息。Among them, there are two or more network element network tubes in the system. The NE network management system is responsible for collecting the northbound data of its management network elements and writing the northbound data to the northbound file. The integrated network management reads the file data to obtain the information of the northbound data of the entire network.
相应的由于本发明实施例的北向文件生成的装置,应用于北向文件生成的系统,因此,本发明实施例还提供了一种北向文件生成的系统,其中,上述北向文件生成的装置的所述实现实施例均适用于该系统的实施例中,也能达到相同的技术效果。The apparatus for generating a northbound file according to the embodiment of the present invention is applied to a system for generating a northbound file. Therefore, the embodiment of the present invention further provides a system for generating a northbound file, wherein the device for generating the northbound file is described. The implementation embodiments are all applicable to the embodiment of the system, and the same technical effects can be achieved.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法或者装置中还存在另外的相同要素。It should also be noted that, in this context, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variants thereof is intended to encompass a non-exclusive inclusion, such that a process, method, or device that comprises a plurality of elements includes not only those elements but also other items not specifically listed Elements, or elements that are inherent to such a process, method, item, or terminal device. An element that is defined by the phrase "comprising a singular" does not exclude the presence of the same element in the process, method, or device.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个 模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Accordingly, each of the above embodiments The modules/units may be implemented in the form of hardware, for example by an integrated circuit to implement their respective functions, or in the form of software functional modules, for example by a processor executing a program/instruction stored in a memory to perform its respective functions. The invention is not limited to any specific form of combination of hardware and software.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the descriptions are only for the purpose of understanding the present application, and are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案实现了北向文件的稳定输出,实现了综合网管接口变更时的兼容。 The above technical solution realizes stable output of the northbound file, and realizes compatibility when the integrated network management interface is changed.

Claims (11)

  1. 一种北向文件生成的方法,应用于第一网元网管,所述方法包括:A method for generating a northbound file is applied to a first network element network management system, where the method includes:
    在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和与所述锁文件对应的第一北向文件,并设置所述锁文件的标志为开始标志,其中,所述第一时间点为所述第一网元网管准备生成未检测到的所述第一北向文件的时间;When the first time point is reached, if the first north file is not detected, the lock file and the first north file corresponding to the lock file are created, and the flag of the lock file is set as a start flag, wherein the first a time at which the first network element network management prepares to generate the undetected first northbound file;
    将采集到的数据写入到所述第一北向文件中,并将所述锁文件的标志修改为完成标志。The collected data is written into the first northbound file, and the flag of the lock file is modified to a completion flag.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    检测到有所述第一北向文件时,如果未检测到所述第一北向文件对应的锁文件的标志,则生成一所述第一北向文件对应的锁文件的标志,并设置生成的锁文件的标志为完成标志;如果检测到所述第一北向文件对应的锁文件,但所述锁文件的标志为开始标识,则修改所述锁文件的标志为完成标志。When the first northbound file is detected, if the flag of the lock file corresponding to the first northbound file is not detected, a flag of the lock file corresponding to the first northbound file is generated, and the generated lock file is set. The flag is the completion flag; if the lock file corresponding to the first north file is detected, but the flag of the lock file is the start identifier, the flag of the lock file is modified to be a completion flag.
  3. 根据权利要求1或2所述的方法,所述方法还包括:The method of claim 1 or 2, further comprising:
    将所述第一北向文件发送到预置设备,并由预置设备存储。The first northbound file is sent to the preset device and stored by the preset device.
  4. 一种北向文件生成的方法,应用于第二网元网管,所述第二网元网管处理第一网元网管的第一北向文件,所述方法包括:A method for generating a northbound file is applied to a second network element network management system, where the second network element network management system processes a first northbound file of the first network element network management system, where the method includes:
    在到达第二时间点时,如果检测到所述第一北向文件对应锁文件的标志为完成标志,将所述锁文件的标志由所述完成标志修改为开始标志;When the second time point is reached, if it is detected that the flag of the first northbound file corresponding to the lock file is a completion flag, the flag of the lock file is modified from the completion flag to a start flag;
    将采集到的数据追加写入所述第一北向文件中,生成第二北向文件;Adding the collected data to the first north file to generate a second north file;
    修改生成的所述第二北向文件的锁文件的标志为完成标志。The flag of the lock file of the generated second northbound file is modified to be a completion flag.
  5. 根据权利要求4所述的方法,所述方法还包括:将所述第二北向文件的锁文件的标志修改为完成标志之后:The method of claim 4, further comprising modifying the flag of the lock file of the second northbound file to a completion flag:
    删除所述第二北向文件的锁文件。Delete the lock file of the second north file.
  6. 根据权利要求4所述的方法,所述方法还包括:所述生成第二北向文件之前, The method of claim 4, further comprising: prior to said generating a second northbound file,
    未检测到所述第一北向文件的锁文件的标志为完成标志时,不进行所述第一北向文件的锁文件的标志为开始标志的检测。When the flag of the lock file of the first northbound file is not detected as the completion flag, the flag of the lock file of the first northbound file is not detected as the start flag.
  7. 根据权利要求4至6任一项所述的方法,其中,所述将采集到的数据追加写入所述第一北向文件中包括:The method according to any one of claims 4 to 6, wherein the additionally adding the collected data to the first northbound file comprises:
    获取所述第一北向文件的写入位置;Obtaining a write position of the first northbound file;
    将采集到的数据根据获取的所述写入位置追加写入所述第一北向文件中。The collected data is additionally written into the first north file according to the obtained write position.
  8. 根据权利要求7所述的方法,所述方法还包括:The method of claim 7 further comprising:
    向预置设备发送所述第二北向文件,并由预置设备存储所述第二北向文件。Sending the second northbound file to the preset device, and storing the second northbound file by the preset device.
  9. 一种北向文件生成的装置,应用于第一网元网管,所述装置包括:A device for generating a northbound file is applied to a first network element network management, and the device includes:
    第一检测处理模块,设置为在到达第一时间点时,如果未检测到第一北向文件,创建锁文件和与所述锁文件对应的第一北向文件,并设置所述锁文件的标志为开始标志,其中,所述第一时间点为所述第一网元网管准备生成未检测到的所述第一北向文件的时间;The first detection processing module is configured to: when the first time point is not detected, if the first north file is not detected, create a lock file and a first north file corresponding to the lock file, and set the flag of the lock file to a start flag, where the first time point is a time for the first network element network to prepare to generate the undetected first north file;
    第一修改模块,设置为将采集到的数据写入到所述第一北向文件中,并将所述锁文件的标志修改为完成标志。The first modification module is configured to write the collected data into the first northbound file, and modify the flag of the lock file to a completion flag.
  10. 一种北向文件生成的装置,应用于第二网元网管,所述第二网元网管处理第一网元网管的第一北向文件,所述装置包括:A device for generating a northbound file is applied to a second network element network management system, and the second network element network management system processes a first northbound file of the first network element network management system, where the device includes:
    第二检测处理模块,设置为在到达第二时间点时,如果检测到所述第一北向文件对应锁文件的标志为完成标志,将所述锁文件的标志由所述完成标志修改为开始标志;a second detection processing module, configured to: when the second time point is reached, if the flag of the first northbound file corresponding to the lock file is detected as a completion flag, the flag of the lock file is modified from the completion flag to a start flag ;
    生成模块,设置为将采集到的数据追加写入所述第一北向文件中,生成第二北向文件;a generating module, configured to additionally write the collected data into the first northbound file to generate a second northbound file;
    第二修改模块,设置为修改生成的所述第二北向文件的锁文件的标志为完成标志。The second modification module is configured to modify the generated flag of the lock file of the second northbound file as a completion flag.
  11. 一种北向文件生成的系统,所述系统包括如权利要求9和/或权利要求10的北向文件生成的装置。 A system for northbound file generation, the system comprising the apparatus for generating northbound files according to claim 9 and/or claim 10.
PCT/CN2016/092724 2016-01-18 2016-08-01 Method, apparatus and system for generating northbound file WO2017124726A1 (en)

Applications Claiming Priority (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
CN201610032756.3 2016-01-18

Publications (1)

Publication Number Publication Date
WO2017124726A1 true WO2017124726A1 (en) 2017-07-27

Family

ID=59340745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092724 WO2017124726A1 (en) 2016-01-18 2016-08-01 Method, apparatus and system for generating northbound file

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737635B (en) * 2018-07-02 2023-02-10 深圳联友科技有限公司 Data blocking method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304430A (en) * 2008-06-30 2008-11-12 中兴通讯股份有限公司 Method and system for forwarding north direction document of telecommunication network management system
CN101370288A (en) * 2008-08-06 2009-02-18 深圳华为通信技术有限公司 Network locking method and terminal
CN101635644A (en) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 Method and device for generating north orientation file
CN103607731A (en) * 2013-11-28 2014-02-26 大唐移动通信设备有限公司 Method and device for processing measurement reports

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304430A (en) * 2008-06-30 2008-11-12 中兴通讯股份有限公司 Method and system for forwarding north direction document of telecommunication network management system
CN101370288A (en) * 2008-08-06 2009-02-18 深圳华为通信技术有限公司 Network locking method and terminal
CN101635644A (en) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 Method and device for generating north orientation file
CN103607731A (en) * 2013-11-28 2014-02-26 大唐移动通信设备有限公司 Method and device for processing measurement reports

Also Published As

Publication number Publication date
CN106982132A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
US7698391B2 (en) Performing a provisioning operation associated with a software application on a subset of the nodes on which the software application is to operate
JP4570312B2 (en) Method and apparatus for providing volume snapshot dependency in a computer system
CN113094242A (en) Distributed computing dependency management system
US9442822B2 (en) Providing a visual representation of a sub-set of a visual program
US8533230B2 (en) Expressing manageable resource topology graphs as dynamic stateful resources
US8060891B2 (en) Management of external hardware appliances in a distributed operating system
CN110825420A (en) Configuration parameter updating method, device, equipment and storage medium for distributed cluster
US20100241690A1 (en) Component and dependency discovery
US20180307735A1 (en) Integrating relational and non-relational databases
US8914482B2 (en) Translation of technology-agnostic management commands into multiple management protocols
CN113704790A (en) Abnormal log information summarizing method and computer equipment
US20080228849A1 (en) Apparatus and Methods for a Message Buffering System
WO2012131868A1 (en) Management method and management device for computer system
WO2017124726A1 (en) Method, apparatus and system for generating northbound file
CN112261114A (en) Data backup system and method
CN116501700A (en) APP formatted file offline storage method, device, equipment and storage medium
CN113835786B (en) Data docking system, method and computer readable storage medium
CN116069744A (en) Data processing method, device, equipment, storage medium and product
JP2009530707A (en) Command line pipelining
CN113672558B (en) Archive management method based on SOA
Koyama et al. Log message with JSON item count for root cause analysis in microservices
CN117235107B (en) Data access processing method and device, electronic equipment and storage medium
JP6798340B2 (en) Operational specification analyzer, operation specification analysis method and operation specification analysis program
CN111797062B (en) Data processing method, device and distributed database system
Vincy et al. Understanding hadoop framework through single-node cluster installation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16885986

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16885986

Country of ref document: EP

Kind code of ref document: A1