WO2015196694A1 - 单板日志信息的存储方法及系统 - Google Patents

单板日志信息的存储方法及系统 Download PDF

Info

Publication number
WO2015196694A1
WO2015196694A1 PCT/CN2014/090472 CN2014090472W WO2015196694A1 WO 2015196694 A1 WO2015196694 A1 WO 2015196694A1 CN 2014090472 W CN2014090472 W CN 2014090472W WO 2015196694 A1 WO2015196694 A1 WO 2015196694A1
Authority
WO
WIPO (PCT)
Prior art keywords
syslog
gateway
board
port
message
Prior art date
Application number
PCT/CN2014/090472
Other languages
English (en)
French (fr)
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 WO2015196694A1 publication Critical patent/WO2015196694A1/zh

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for storing log information of a single board.
  • the general-purpose log module on the board can record the key information during the normal execution of the board software in the log file mode. It also records the abnormal print information to the log file when the board is abnormal. At the same time, it supports the functions of querying, retrieving and reporting user log information in a variety of ways, which is convenient for users to obtain log content remotely.
  • the information is saved in the storage space of the board.
  • the board generates a large amount of log information after a long period of running. The storage space of the board is limited and may cause information loss.
  • the embodiment of the invention provides a method for storing log information of a single board, which aims to effectively solve the technical problem that the current log information may be lost.
  • a method for storing log information of a board includes:
  • the log information is sent to the Syslog server according to the bound log information sending path, and is stored by the Syslog server.
  • the preset communication interface according to the networking manner between the network element and the system log Syslog server includes:
  • the network element is The first configuration interface of the board sets the IP address and port of the Syslog server, and sends a message to the Syslog server by using the first message interface.
  • the preset communication interface according to the networking manner between the network element and the system log Syslog server includes:
  • the second configuration interface is used to set the IP address and port of the Syslog server on the main control board, and Opening a port in the proxy device to receive the message sent by the other board, and using the second message interface to forward the message sent by the other board to the Syslog server;
  • the third configuration interface is used to set the IP address and port of the Syslog server on the gateway board. Opening a port in the proxy device to receive the message sent by the network element, and using the second message interface to forward the message sent by the network element to the Syslog server;
  • the preset communication interface according to the networking manner between the network element and the system log Syslog server includes:
  • the IP address and port of the Syslog server are configured on the gateway, and the gateway is enabled on the gateway.
  • a specified user datagram protocol UDP port receives the Syslog message sent by the network element; the Syslog message is directly modified to the Syslog server without modification.
  • the step of configuring the Syslog server's IP address and port on the gateway, and simultaneously opening a designated port on the gateway to receive the Syslog message sent by the network element includes:
  • the gateway board is an interface board
  • the Syslog server is configured to communicate with the access gateway through a data communication network DCN;
  • the second configuration interface On the main control board of the NE, use the second configuration interface to set the IP address and port of the gateway. At the same time, the specified UDP port is enabled on the main control board, and the Syslog message sent by other boards in the NE is received. The IP segment of the Syslog message is modified and the IP address of the network element is sent to the gateway through the second message interface.
  • the first message interface is used to send the Syslog message to the main control board.
  • the step of configuring the Syslog server's IP address and port on the gateway, and simultaneously opening a specified user datagram protocol UDP port on the network element to receive the Syslog message sent by the network element includes:
  • the gateway board is a main control board, and the Syslog server is configured to communicate with the access gateway through the DCN;
  • gateway board use the first configuration interface to set the IP address and port of the Syslog server. At the same time, enable a specified UDP port on the gateway board to receive the Syslog message sent by the NE. Do not modify the message interface. Syslog messages are forwarded to the Syslog server;
  • the second configuration interface On the NE main control board, use the second configuration interface to set the IP address and port of the gateway. At the same time, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the NE.
  • the message interface sends the Syslog message to the gateway;
  • a wavelength division device comprising:
  • a communication setting module configured to: preset a communication interface of the wavelength division device according to a networking manner between the wavelength division device and the system log Syslog server, to bind the log information sending path;
  • the log information sending module is configured to: when the WDM device generates the log information, send the log information to the Syslog server according to the bound log information sending path, for the Syslog server to store.
  • the communication setting module is set to:
  • the Syslog server IP address and port are set for the first configuration interface of the board on the wavelength division device, and the first message interface is used to send a message to the Syslog server.
  • the communication setting module is set to:
  • the second configuration interface is used to set the IP address and port of the Syslog server on the main control board, and at the same time
  • the proxy device internally opens a port to receive the message sent by the other board, and uses the second message interface to forward the message to the Syslog server;
  • the proxy device is the gateway
  • the third configuration interface is used in the board.
  • the IP address and port of the Syslog server are set on the gateway board, and a port is opened inside the proxy device to receive the message sent by the network element, and the second message interface is used to forward the message sent by the network element to the Syslog server.
  • the communication setting module is set to:
  • the IP address and port of the Syslog server are configured on the gateway, and the gateway is configured on the gateway.
  • the UDP port of the specified user datagram protocol is enabled to receive the Syslog message sent by the network element; the Syslog message is directly modified and sent to the Syslog server without modification.
  • the communication setting module is set to:
  • the gateway board is an interface board
  • the Syslog server is configured to communicate with the access gateway through a data communication network DCN;
  • the second configuration interface On the main control board of the NE, use the second configuration interface to set the IP address and port to the gateway. At the same time, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the WDM device. Transmitting the IP segment of the Syslog message to the IP address of the network element, and then sending the IP segment to the gateway through the second message interface;
  • the communication setting module is set to:
  • the gateway board is a main control board, and the Syslog server is configured to communicate with the access gateway through the DCN;
  • gateway board use the first configuration interface to set the IP address and port of the Syslog server. At the same time, enable a specified UDP port on the gateway board to receive the Syslog message sent by the NE. Do not modify the message interface. Syslog messages are forwarded to the Syslog server;
  • the second configuration interface On the NE main control board, use the second configuration interface to set the IP address and port of the gateway. At the same time, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the WDM device.
  • the second message interface sends the Syslog message to the gateway;
  • a computer program comprising program instructions that, when executed by a wavelength division device, cause the wavelength division device to perform the method described above.
  • a computer readable storage medium carrying the computer program A computer readable storage medium carrying the computer program.
  • the solution of the embodiment of the present invention improves the network element and provides a flexible communication configuration mode and interface according to different networking modes, so that the network element can send log information to the Syslog server for storage in multiple networking modes.
  • the occurrence of log information loss events is avoided, and the security and reliability of the system are improved.
  • FIG. 1 is a schematic flowchart of a method for storing log information of a board according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic diagram of multiple architectures of devices in the Syslog protocol according to a preferred embodiment of the present invention
  • FIG. 3 is a schematic diagram of a single board/subrack debugging environment according to a preferred embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a single network element commissioning environment according to a preferred embodiment of the present invention.
  • FIG. 5 is a multi-network element networking environment according to a preferred embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a storage system for log information of a board according to a preferred embodiment of the present invention.
  • a method for storing log information of the board includes at least the following steps:
  • the communication interface of the wavelength division device is preset according to the networking mode between the network element and the system log Syslog server, and the log information transmission path is bound.
  • the following two networking modes are known: Connection; 2, gateway connection.
  • Gateway connections are classified into two types: ordinary network element gateway (GNE) and enhanced gateway (EGNE).
  • GNE network element gateway
  • EGNE enhanced gateway
  • the special device is the access network element, which has the function of the network element and also has the function of the gateway.
  • the networking mode the methods of board and module and communication are also very different.
  • the embodiment of the present invention sets a communication interface according to different networking modes, so that remote data transmission and flexible network configuration are implemented between the network element and the Syslog server, and the implementation is based on the RFC3164 protocol for packet transmission.
  • the embodiment of the present invention improves the network element according to different networking modes, and presets different communication interfaces to form and bind the log information sending path, so as to send the log information of the board to the Syslog server, so that it can be in the Syslog.
  • the server saves.
  • the communication modes between the network element and the server are as follows: the network element directly communicates with the server, and the network element communicates with the server through the proxy device, and the network element directly or through the proxy device
  • the server makes a communication connection.
  • the RFC3164 protocol requires three types of devices:
  • Relay message forwarding relay
  • the wavelength division device is introduced as follows:
  • the network element is composed of a main control board and various boards.
  • the main control board and the board are configured with an interface;
  • a board is a device that generates a syslog message.
  • the proxy device runs as the relay device on the main control board and needs to modify the ip segment in the received syslog message.
  • the gateway network element is used to isolate the non-access network element, and the slog message is sent to the syslog server, and is added to the syslog server.
  • Syslog server Use the commonly used syslog software to deploy on the pc server as a collector of information.
  • the foregoing communication interface may include:
  • a first message interface configured to send and generate a Syslog message structure conforming to the RFC3164 protocol
  • the sending proxy device modifies the message structure forwarded to the Syslog server after modifying the IP segment in the first message interface
  • the first configuration interface is configured to configure an IP address and a port of the Syslog server on the gateway;
  • a second configuration interface configured to configure an IP address of the proxy device Syslog server on the proxy device And port
  • the third configuration interface is used to configure the IP address and port of the Syslog server on the board.
  • step S20 when the network element generates the log information, the log information is sent to the Syslog server according to the bound log information sending path, and is stored by the Syslog server.
  • step S10 when the network element is in a direct communication relationship with the Syslog server, the foregoing step S10 may include:
  • the Syslog server IP address and port are set for the first configuration interface of the board on the NE.
  • the first message interface is used to send messages to the Syslog server.
  • FIG. 3 is a single board/subrack debugging environment, in which the Syslog server and the board can directly communicate.
  • the foregoing method may include the following steps:
  • Step S11 deploying the Syslog server software on the server (computer);
  • step S12 the third configuration interface is used on the board to set the IP address and port of the Syslog server, and the first message interface is used to send a message to the Syslog server.
  • the proxy device when the network element communicates with the Syslog server through the proxy device, when the network element communicates with the Syslog server through the proxy device, the proxy device is the main control board.
  • the second configuration interface is used to set the IP address and port of the Syslog server on the main control board.
  • a port is opened inside the proxy device to receive messages sent by other boards, and the second message interface is used to forward the message to the Syslog server.
  • the third configuration interface is used to set the IP address and port of the Syslog server on the gateway board.
  • a port is opened inside the proxy device to receive the message sent by the network element, and the second message interface is used to forward the message.
  • the embodiment includes the following two debugging environments:
  • Figure 4 shows a single NE debugging environment.
  • the connection mode is the same as that of the board/subrack debugging environment.
  • the board can directly communicate with the Syslog server, or communicate with the Syslog server through the proxy device.
  • the proxy device acts as a relay device to perform Syslog message forwarding.
  • the foregoing method can be packaged Including the following steps:
  • the proxy device uses the second configuration interface to set the IP address and port of the Syslog server. At the same time, a port is opened by default to receive messages sent by other boards, and the second message interface is used to forward to the Syslog server.
  • Figure 5 shows the multi-network element debugging environment.
  • a gateway is not configured in the environment, and each network element master module can directly communicate with the server.
  • the board sends a Syslog message to the server through the network element proxy device.
  • Multiple Syslog servers can be deployed in the scenario to collect log information of different NEs. Specifically, the foregoing method may include the following steps:
  • the proxy device uses the second configuration interface to set the IP address and port of the Syslog server. Since multiple Syslog servers are deployed, different servers can be set on different network element proxy devices. At the same time, a specified port is opened in the proxy device to receive the message sent by other boards of the NE, and the second message interface is used to forward the message to the Syslog server.
  • step S10 when the network element is connected to the Syslog server through the access network element and the access network element is used as the gateway, the foregoing step S10 includes:
  • Step S100 Configure the IP address and port of the Syslog server on the gateway, and enable a specified user datagram protocol UDP port to receive the Syslog message sent by the network element on the gateway.
  • the processing method of the Syslog message is directly modified without modification. Go to the Syslog server.
  • the gateway is divided into two types: a common network element gateway (GNE) and an enhanced gateway (EGNE).
  • GNE common network element gateway
  • EGNE enhanced gateway
  • step S100 when the access gateway type is a common network element gateway, the foregoing step S100 includes:
  • the gateway board is an interface board
  • the Syslog server is configured to communicate with the access gateway through the DCN.
  • the second configuration interface On the main control board of the NE, use the second configuration interface to set the IP address and port of the gateway. At the same time, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the NE.
  • the IP address of the IP segment modification cost network element is sent to the gateway through the second message interface;
  • the networking mode of the embodiment is used in the test and the engineering, and the non-access network element is isolated from the server, and the Syslog message is sent to the Syslog server through the access network element, and the common gateway network element is used.
  • the access gateway is a sosc board that accesses the NE.
  • the step of relaying the log message through the gateway is:
  • the Syslog server software is deployed on the pc server, and the PC needs to communicate with the gateway through the DCN;
  • Gateway On the other NE main control board, use the second configuration interface to set the IP address and port of the gateway. At the same time, enable a specified UDP port to receive the syslog message sent by other boards in the NE.
  • step S100 when the access gateway is an enhanced network element gateway, the foregoing step S100 includes:
  • the gateway board is the main control board
  • the Syslog server is connected to the access gateway through the DCN.
  • the gateway board use the first configuration interface to set the IP address and port of the Syslog server. At the same time, enable a specified UDP port on the gateway card to receive the Syslog message sent by the NE. Do not modify the message interface to send the Syslog message. Forward to the Syslog server;
  • the NE main control board use the second configuration interface to set the IP address and port of the gateway. At the same time, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the NE.
  • the message interface is sent to the gateway;
  • the networking mode of the enhanced gateway NE is more secure, and the key packet conversion is implemented to the SNP board.
  • the step of relaying the log message through the gateway is:
  • the syslog server software is deployed on the pc server, and the pc needs to communicate with the gateway through the DCN network;
  • gateway board On the gateway board (snp board), use the first configuration interface to set the IP address and port of the syslog server. At the same time, enable a specified UDP port on the main control board to accept syslog messages sent by other NEs.
  • the second message interface is forwarded to the syslog server;
  • Gateway On the other NE main control board, use the second configuration interface to set the IP address and port of the gateway. At the same time, enable a specified UDP port to receive the syslog message sent by other boards in the NE.
  • the embodiment of the invention further provides a storage system for the board log information, which is used to implement the above method.
  • the storage system of the board log information includes a wavelength division device 10 and a Syslog server 20, wherein the wavelength division device 10 includes:
  • the communication setting module 11 is configured to preset a communication interface of the wavelength division device according to a networking manner between the wavelength division device and the system log Syslog server, so as to bind the log information transmission path;
  • the log information sending module 12 is configured to send log information to the Syslog server according to the bound log information sending path for the Syslog server to store when the WDM device generates the log information.
  • the RFC3164 protocol requires three types of devices:
  • Relay message forwarding relay
  • 3Collector The message collector.
  • the wavelength division device is introduced as follows:
  • the network element is composed of a main control board and various boards.
  • the main control board and the board are configured with an interface;
  • a board is a device that generates a syslog message.
  • the proxy device runs as a relay device on the main control board and needs to modify the received syslog message.
  • IP segment in IP
  • the gateway network element is used to isolate the non-access network element, and the slog message is sent to the syslog server, and is added to the syslog server.
  • Syslog server Use the commonly used syslog software to deploy on the pc server as a collector of information.
  • the foregoing communication interface may include:
  • a first message interface configured to send and generate a Syslog message structure conforming to the RFC3164 protocol
  • the sending proxy device modifies the message structure forwarded to the Syslog server after modifying the IP segment in the first message interface
  • the first configuration interface is configured to configure an IP address and a port of the Syslog server on the gateway;
  • a second configuration interface configured to configure an IP address and a port of the Syslog server on the proxy device
  • the third configuration interface is used to configure the IP address and port of the Syslog server on the board.
  • step S20 when the network element generates the log information, the log information is sent to the Syslog server according to the bound log information sending path, and is stored by the Syslog server.
  • the communication settings module 11 is configured to:
  • the Syslog server IP address and port are set for the first configuration interface of the board on the WDM device.
  • the first message interface is used to send messages to the Syslog server.
  • the communication setting module 11 is configured to:
  • the proxy device When the proxy device communicates with the Syslog server through the proxy device, the proxy device sets the IP address and port of the Syslog server to the Syslog server using the second configuration interface, and opens a port inside the proxy device to receive other boards.
  • the sent message is forwarded to the Syslog server by using the second message interface.
  • the proxy device is the gateway board, the third configuration interface is used to set its IP address and port to the Syslog server, and a port is opened inside the proxy device to receive the network element.
  • the incoming message is forwarded to the Syslog server using the second message interface;
  • the communication settings module 11 is configured to:
  • the WDM device When the WDM device is connected to the Syslog server through the access NE and the access NE is used as the gateway, configure the IP address and port of the Syslog server on the gateway, and enable a finger on the gateway.
  • the UDP port of the user datagram protocol receives the Syslog message sent by the NE. The processing of the Syslog message is forwarded directly to the Syslog server without modification.
  • the communication settings module 11 is configured to:
  • the gateway board is an interface board
  • the Syslog server is configured to communicate with the access gateway through the DCN network.
  • the second configuration interface On the main control board of the NE, use the second configuration interface to set the IP address and port to the gateway. At the same time, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the NE.
  • the IP segment of the message is modified to the IP address of the network element, and is sent to the gateway through the second message interface;
  • the communication settings module 11 is configured to:
  • the gateway board is the main control board
  • the Syslog server is configured to communicate with the access gateway through the DCN network.
  • the gateway board use the first configuration interface to set the IP address and port to the Syslog server. At the same time, enable a specified UDP port on the gateway card to accept the Syslog message sent by the NE. Give the Syslog server;
  • the second configuration interface On the main control board of the NE, use the second configuration interface to set the IP address and port to the gateway. Then, you can enable a specified UDP port on the main control board to receive Syslog messages sent by other boards in the NE.
  • the second message interface is sent to the gateway;
  • the structure and the working principle can be referred to the embodiment shown in FIG. 1 to FIG. 5, which includes all the technical features of the foregoing embodiments, and will not be described in detail herein.
  • the storage system for the log information of the board in the embodiment of the present invention can provide a flexible communication configuration mode and interface according to different networking modes, so that the wavelength division device can log in multiple networking modes.
  • the information is sent to the Syslog server 20 for storage, which avoids the occurrence of log information loss events, improves the security and reliability of the system, and facilitates networking and use.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention improves the WDM device and provides a flexible communication configuration mode and interface according to different networking modes, so that the NE can send log information to the Syslog server for storage in a plurality of networking modes to avoid The occurrence of log information loss events improves the security and reliability of the system.

Abstract

一种单板日志信息的存储方法和系统,该方法包括:根据网元与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;当网元产生日志信息时,根据绑定的日志信息发送路径向Syslog服务器发送日志信息,以供Syslog服务器存储。

Description

单板日志信息的存储方法及系统 技术领域
本发明涉及通信技术领域,特别涉及一种单板日志信息的存储方法和系统。
背景技术
在WDM(Wavelength Division Multiplexing,波分设备)单板软件开发和实际应用中,对于软件运行中的中间信息以及软件故障信息的获取一直是一个很棘手的问题。如何在单板软件正常执行过程中,获取单板运行的中间状态以及单板曾经发生的软件异常信息,对分析单板软件故障是一个迫切需要解决的问题。
单板上的通用日志模块能以日志文件的方式,根据用户需求,记录单板软件正常执行过程中的关键信息,还支持在单板出现异常状况下,记录异常打印信息到日志文件中。同时以多种方式支持用户日志信息的查询、检索、上报等功能,方便用户远程获取日志内容。但这些信息以文件的形式保存在单板的存储空间,单板在长时间运行后会产生大量的日志信息,而单板的存储空间又有限,有可能造成信息丢失。
发明内容
本发明实施例提供一种单板日志信息的存储方法,旨在有效解决目前日志信息可能丢失的技术问题。
一种单板日志信息的存储方法,包括:
根据网元与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;
当所述网元产生日志信息时,根据绑定的日志信息发送路径向所述Syslog服务器发送所述日志信息,以供所述Syslog服务器存储。
可选地,所述根据网元与系统日志Syslog服务器之间的组网方式预设通信接口包括:
当所述网元与所述Syslog服务器之间为直接通信关系时,为所述网元上 的单板的第一配置接口设置所述Syslog服务器的IP地址和端口,使用第一消息接口向所述Syslog服务器发送消息。
可选地,所述根据网元与系统日志Syslog服务器之间的组网方式预设通信接口包括:
当所述网元与所述Syslog服务器之间通过代理设备通信,且所述代理设备为主控板时,使用第二配置接口在所述主控板上设置Syslog服务器的IP地址和端口,同时在所述代理设备内部开启一个端口接收其他单板发来的消息,使用第二消息接口将所述其他单板发来的消息转发给Syslog服务器;
当所述网元与所述Syslog服务器之间通过代理设备通信,且所述代理设备为网关单板时,使用第三配置接口在所述网关单板上设置Syslog服务器的IP地址和端口,同时在所述代理设备内部开启一个端口接收所述网元发来的消息,使用第二消息接口转发所述网元发来的消息给所述Syslog服务器;
在单板上使用第一配置接口设置网元主控板的IP和端口,使用第一消息接口发送Syslog消息给主控板。
可选地,所述根据网元与系统日志Syslog服务器之间的组网方式预设通信接口包括:
当所述网元与所述Syslog服务器之间通过接入网元连接,所述接入网元作为网关时,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网关上开启一个指定的用户数据报协议UDP端口接收所述网元发送过来的Syslog消息;对Syslog消息不做修改直接转发到Syslog服务器。
可选地,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网关上开启一个指定的端口接收所述网元发送过来的Syslog消息的步骤包括:
当接入网关类型为普通网元网关时,网关单板为接口板,设置所述Syslog服务器通过数据通信网络DCN与所述接入网关互通;
在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,并把所述Syslog消息的IP段修改成本网元的IP地址后通过第二消息接口发送给网关;
在单板上使用第一配置接口设置所述单板到所述Syslog服务器的IP地址 和端口为本网元主控板的IP地址和端口,使用第一消息接口发送所述Syslog消息给主控板。
可选地,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网元上开启一个指定的用户数据报协议UDP端口接收所述网元发送过来的Syslog消息的步骤包括:
当所述接入网关为增强型网元网关时,网关单板为主控板,设置所述Syslog服务器通过DCN与所述接入网关互通;
在网关单板上使用第一配置接口设置Syslog服务器的IP地址和端口,同时在网关单板上开启一个指定的UDP端口,接收网元发送来的Syslog消息,不做修改使用消息接口将所述Syslog消息转发给所述Syslog服务器;
在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,以第二消息接口将所述Syslog消息发送给网关;
在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
一种波分设备,包括:
通信设置模块,其设置为:根据波分设备与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;以及
日志信息发送模块,其设置为:当波分设备产生日志信息时,根据绑定的日志信息发送路径向Syslog服务器发送日志信息,以供Syslog服务器存储。
可选地,所述通信设置模块是设置为:
当所述波分设备与Syslog服务器之间为直接通信关系时,为所述波分设备上的单板的第一配置接口设置Syslog服务器IP地址和端口,使用第一消息接口向Syslog服务器发送消息。
可选地,所述通信设置模块是设置为:
当所述波分设备与所述Syslog服务器之间通过代理设备通信,且所述代理设备为主控板时,使用第二配置接口在主控板上设置Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收其他单板发来的消息,使用第二消息接口转发给Syslog服务器;当所述波分设备与所述Syslog服务器之间通过代理设备通信,且所述代理设备为网关单板时使用第三配置接口在 网关单板上设置Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收网元发来的消息,使用第二消息接口将所述网元发来的消息转发给Syslog服务器;
在单板上使用第一配置接口设置网元主控板的IP和端口,使用第一消息接口发送Syslog消息给主控板。
可选地,所述通信设置模块是设置为:
当所述波分设备与所述Syslog服务器之间通过接入网元连接,所述接入网元作为网关时,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网关上开启一个指定的用户数据报协议UDP端口接收所述网元发送过来的Syslog消息;对Syslog消息不做修改直接转发到Syslog服务器。
可选地,所述通信设置模块是设置为:
当接入网关类型为普通网元网关时,网关单板为接口板,设置所述Syslog服务器通过数据通信网络DCN与所述接入网关互通;
在网元主控板上使用第二配置接口设置其到网关的IP地址和端口,同时在主控板开启一个指定的UDP端口,接收本波分设备内其他单板发送过来的Syslog消息,并把所述Syslog消息的IP段修改成本网元的IP地址后通过第二消息接口发送给网关;
在单板上使用第一配置接口设置其到服务器的IP地址和端口为本网元主控板的IP地址和端口,使用第一消息接口发送所述Syslog消息给主控板。
可选地,所述通信设置模块是设置为:
当所述接入网关为增强型网元网关时,网关单板为主控板,设置所述Syslog服务器通过DCN与所述接入网关互通;
在网关单板上使用第一配置接口设置Syslog服务器的IP地址和端口,同时在网关单板上开启一个指定的UDP端口,接收网元发送来的Syslog消息,不做修改使用消息接口将所述Syslog消息转发给所述Syslog服务器;
在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接收本波分设备内其他单板发送过来的Syslog消息,以第二消息接口将所述Syslog消息发送给网关;
在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
一种计算机程序,包括程序指令,当该程序指令被波分设备执行时,使得该波分设备可执行上面所述的方法。
一种载有所述计算机程序的计算机可读存储介质。
本发明实施例的方案通过对网元进行改进,根据不同的组网方式提供灵活的通信配置方式和接口,使得网元在多种组网方式下均可将日志信息发送至Syslog服务器以便保存,避免了日志信息丢失事件的发生,提高了系统的安全性和可靠性。
附图概述
图1为本发明一较佳实施例中单板日志信息的存储方法的流程示意图;
图2为本发明一较佳实施例中Syslog协议中设备多种架构示意图;
图3为本发明一较佳实施例中单板/子架调测环境示意图;
图4为本发明一较佳实施例中单网元调测环境示意图;
图5为本发明一较佳实施例中多网元组网环境;
图6为本发明一较佳实施例中单板日志信息的存储系统的结构示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的较佳实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
参照图1,本发明一实施例中,该单板日志信息的存储方法至少包括以下步骤:
步骤S10,根据网元与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;已知的,目前存在以下两种组网方式:1、直接连接;2、网关连接。网关连接根据实际情况分为:普通网元网关(GNE)和增强型网关(EGNE)两种情况。在网关连接中,比较特殊的设备是接入网元,它具有网元的功能,同时还具有网关的功能。不同的 组网方式下,单板和模块、通信的方式也有很大不同。本发明实施例根据不同的组网方式设置通信接口,以使网元与Syslog服务器之间实现远程数据传递和灵活网络配置,该实现基于RFC3164协议进行报文发送。
本发明实施例根据不同的组网方式对网元进行改进,预设不同的通信接口以形成并绑定日志信息发送路径,从而实现将单板的日志信息发送到Syslog服务器,使其得以在Syslog服务器保存。
参照图2,目前,RFC3164协议下,网元与服务器的通信方式有以下几种:网元直接与服务器进行通信连接,网元通过代理设备与服务器进行通信连接,网元直接或者通过代理设备与服务器进行通信连接。RFC3164协议需要有三种类型设备:
1、Device:消息产生者;
2、Relay:消息转发中继;
3、Collector:消息收集者。
本发明实施例中,波分设备介绍如下:
网元,由主控板和各种单板组成,本发明实施例中,主控板和单板增加配置接口;
单板,是产生syslog消息的装置;
代理设备,作为中继设备运行在主控板,需要修改接收到的syslog消息中的ip段;
网关网元,用来隔离非接入网元,作为中继设备接收到其他网元的syslog消息时不做修改直接转发给syslog服务器,本发明实施例中,增加一个配置接口;
Syslog服务器:使用常用的syslog软件,部署在pc服务器上,作为信息收集者。
较佳地,前述通信接口可包括:
第一消息接口,用于发送生成符合RFC3164协议的Syslog消息结构;
第二消息接口,发送代理设备修改了第一消息接口中IP段后转发给Syslog服务器的消息结构;
第一配置接口,用于在网关上配置Syslog服务器的IP地址和端口;
第二配置接口,用于在代理设备上配置代理设备Syslog服务器的IP地址 和端口;
第三配置接口,用于配置单板的Syslog服务器IP地址和端口。
步骤S20,当网元产生日志信息时,根据绑定的日志信息发送路径向Syslog服务器发送日志信息,以供Syslog服务器存储。
以下将以上述几种方式为例,详细说明本发明实施例的技术方案:
在本发明的一个实施例中,当网元与Syslog服务器之间为直接通信关系时,上述步骤S10可包括:
当网元与Syslog服务器之间为直接通信关系时,为网元上的单板的第一配置接口设置Syslog服务器IP地址和端口,使用第一消息接口向Syslog服务器发送消息。
参照图3,图3为单板/子架调试环境,该环境下Syslog服务器与单板能够直接连通。前述方法可包括以下步骤:
步骤S11,把Syslog服务器软件部署在服务器(计算机)上;
步骤S12,在单板上使用第三配置接口设置Syslog服务器的IP地址和端口,使用第一消息接口向Syslog服务器发送消息。
参照图4和图5,在本发明的另一实施例中,当网元与Syslog服务器之间通过代理设备通信时,当网元与Syslog服务器之间通过代理设备通信,代理设备为主控板时,使用第二配置接口在主控板上设置Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收其他单板发来的消息,使用第二消息接口转发给Syslog服务器;
当代理设备为网关单板时,使用第三配置接口在网关单板上设置Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收网元发来的消息,使用第二消息接口转发给Syslog服务器;
在单板上使用第一配置接口设置网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
较佳地,本实施例包含以下两种调试环境:
一、单网元调试环境
图4为单网元调试环境。此种调试环境下,连线方式和单板/子架调试环境一样,单板可以直接与Syslog服务器通信,也可以通过代理设备与Syslog服务器通信,代理设备作为中继设备进行Syslog消息转发。前述方法可以包 括以下步骤:
首先,把Syslog服务器软件部署在PC服务器上;
代理设备使用第二配置接口设置Syslog服务器的IP地址和端口,同时要在内部默认开启一个端口接收其他单板发来的消息,使用第二消息接口转发给Syslog服务器
在单板上使用第三配置接口设置网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
二、多网元组网环境
图5为多网元调试环境。该环境中未配置网关,各网元主控模块都能与服务器直接通信,单板通过网元代理设备向服务器发送Syslog消息。该场景中可以部署多个Syslog服务器,各自收集不同网元的日志信息。具体的,前述方法可以包括以下步骤:
首先,把Syslog服务器软件部署在PC服务器上;
然后,代理设备使用第二配置接口设置Syslog服务器的IP地址和端口,因部署了多个Syslog服务器,可在不同的网元代理设备上设置不同的服务器。同时在代理设备内部开启一个指定的端口接收网元其他单板发来的消息,使用第二消息接口转发给Syslog服务器;
在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
在一实施例中,当网元与Syslog服务器之间通过接入网元连接,接入网元作为网关时,前述步骤S10包括:
步骤S100,在网关上配置Syslog服务器的IP地址和端口,同时在网关上开启一个指定的用户数据报协议UDP端口接收网元发送过来的Syslog消息;对Syslog消息的处理方式为不做修改直接转发到Syslog服务器。
本发明实施例中,网关分为普通网元网关(GNE)和增强型网关(EGNE)两种情况。
在一优选方案中,当接入网关类型为普通网元网关时,前述步骤S100包括:
当接入网关类型为普通网元网关时,网关单板为接口板,设置Syslog服务器通过DCN与接入网关互通;
在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,并把消息的IP段修改成本网元的IP地址通过第二消息接口发送给网关;
在单板上使用第一配置接口设置服务器的IP地址和端口为本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
可选的,在测试和工程中用到本实施例组网方式,非接入网元与服务器之间是隔离的,需要通过接入网元把Syslog消息发送到Syslog服务器,普通网关网元的接入网关是接入网元的sosc单板。可选的,本方案中,通过网关中转日志消息的步骤是:
首先,把Syslog服务器软件部署在pc服务器上,pc需要通过DCN与网关互通;
然后在网关单板上使用第一配置接口设置syslog服务器的IP地址和端口,同时需要开启一个指定的UDP端口,接受其他网元发送来的syslog消息,不做修改使用第二消息接口转发给syslog服务器;
在其他网元主控板上使用第二配置接口设置网关的IP地址和端口,同时开启一个指定的UDP端口,接收本网元内其他单板发送过来的syslog消息,以第二消息接口发送给网关;
在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送syslog消息给主控板。
在另一可选方案中,当接入网关为增强型网元网关时,前述步骤S100包括:
当接入网关为增强型网元网关时,网关单板为主控板,设置Syslog服务器通过DCN与接入网关互通;
在网关单板上使用第一配置接口设置Syslog服务器的IP地址和端口,同时在网关单板上开启一个指定的UDP端口,接收网元发送来的Syslog消息,不做修改使用消息接口将Syslog消息转发给Syslog服务器;
在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,以第二消息接口发送给网关;
在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
增强型网关网元的组网方式更加安全,同时关键的报文转换实现移到SNP板实现。
可选的,本方案中,通过网关中转日志消息的步骤是:
把syslog服务器软件部署在pc服务器上,pc需要通过DCN网络与网关互通;
在网关单板(snp板)上使用第一配置接口设置syslog服务器的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接受其他网元发送来的syslog消息,不做修改使用第二消息接口转发给syslog服务器;
在其他网元主控板上使用第二配置接口设置网关的IP地址和端口,同时开启一个指定的UDP端口,接收本网元内其他单板发送过来的syslog消息,以第二消息接口发送给网关;
在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送syslog消息给主控板。
本发明实施例还提供一种单板日志信息的存储系统,用以实现上述方法。参照图6所示,本发明一实施例中,该单板日志信息的存储系统包括波分设备10和Syslog服务器20,其中所述波分设备10包括:
通信设置模块11,设置为根据波分设备与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;
日志信息发送模块12,设置为当波分设备产生日志信息时,根据绑定的日志信息发送路径向Syslog服务器发送日志信息,以供Syslog服务器存储。
RFC3164协议需要有三种类型设备:
1、Device:消息产生者;
2、Relay:消息转发中继;
3Collector:消息收集者。
本发明实施例中,波分设备介绍如下:
网元,由主控板和各种单板组成,本发明实施例中,主控板和单板增加配置接口;
单板,是产生syslog消息的装置;
代理设备,作为中继设备运行在主控板,需要修改接收到的syslog消息 中的IP段;
网关网元,用来隔离非接入网元,作为中继设备接收到其他网元的syslog消息时不做修改直接转发给syslog服务器,本发明实施例中,增加一个配置接口;
Syslog服务器:使用常用的syslog软件,部署在pc服务器上,作为信息收集者。
可选的,前述通信接口可包括:
第一消息接口,用于发送生成符合RFC3164协议的Syslog消息结构;
第二消息接口,发送代理设备修改了第一消息接口中IP段后转发给Syslog服务器的消息结构;
第一配置接口,用于在网关上配置Syslog服务器的IP地址和端口;
第二配置接口,用于在代理设备上配置Syslog服务器的IP地址和端口;
第三配置接口,用于配置单板的Syslog服务器IP地址和端口。
步骤S20,当网元产生日志信息时,根据绑定的日志信息发送路径向Syslog服务器发送日志信息,以供Syslog服务器存储。
在本发明的一个实施例中,通信设置模块11设置为:
当波分设备与Syslog服务器之间为直接通信关系时,为波分设备上的单板的第一配置接口设置Syslog服务器IP地址和端口,使用第一消息接口向Syslog服务器发送消息。
在本发明的又一个实施例中,通信设置模块11设置为:
当波分设备与Syslog服务器之间通过代理设备通信时,代理设备为主控板时使用第二配置接口设置其到Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收其他单板发来的消息,使用第二消息接口转发给Syslog服务器;代理设备为网关单板时使用第三配置接口设置其到Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收网元发来的消息,使用第二消息接口转发给Syslog服务器;
在单板上使用第一配置接口设置为网元主控板的IP和端口,使用第一消息接口发送Syslog消息给主控板。
在本发明的另一个实施例中,通信设置模块11设置为:
当波分设备与Syslog服务器之间通过接入网元连接,接入网元作为网关时,在网关上配置Syslog服务器的IP地址和端口,同时在网关上开启一个指 定的用户数据报协议UDP端口接收网元发送过来的Syslog消息;对Syslog消息的处理方式为不做修改直接转发到Syslog服务器。
本发明的一个实施方案中,通信设置模块11设置为:
当接入网关类型为普通网元网关时,网关单板为接口板,设置Syslog服务器通过DCN网络与接入网关互通;
在网元主控板上使用第二配置接口设置其到网关的IP地址和端口,同时在主控板开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,并把消息的IP段修改成本网元的IP地址,通过第二消息接口发送给网关;
在单板上使用第一配置接口设置其到服务器的IP和端口为本网元主控板的IP和端口,使用第一消息接口发送Syslog消息给主控板。
本发明的另一个实施方案中,通信设置模块11设置为:
当接入网关为增强型网元网关时,网关单板为主控板,设置Syslog服务器通过DCN网络与接入网关互通;
在网关单板上使用第一配置接口设置其到Syslog服务器的IP地址和端口,同时在网关单板上开启一个指定的UDP端口,接受网元发送来的Syslog消息,不做修改使用消息接口转发给Syslog服务器;
在网元主控板上使用第二配置接口设置其到网关的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,以第二消息接口发送给网关;
在单板上使用第三配置接口设置其到为本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
本发明实施例单板日志信息的存储系统,其结构和工作原理具体可参照前述方法图1至图5所示实施例,包含了前述实施例所有技术特征,在此就不一一详述。由于具有前述波分设备10,本发明实施例单板日志信息的存储系统可根据不同的组网方式提供灵活的通信配置方式和接口,使得波分设备在多种组网方式下均可将日志信息发送至Syslog服务器20以便保存,避免了日志信息丢失事件的发生,提高了系统的安全性和可靠性,并且方便了组网和使用。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是 利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。
工业实用性
本发明实施例通过对波分设备进行改进,根据不同的组网方式提供灵活的通信配置方式和接口,使得网元在多种组网方式下均可将日志信息发送至Syslog服务器以便保存,避免了日志信息丢失事件的发生,提高了系统的安全性和可靠性。

Claims (14)

  1. 一种单板日志信息的存储方法,包括:
    根据网元与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;
    当所述网元产生日志信息时,根据绑定的日志信息发送路径向所述Syslog服务器发送所述日志信息,以供所述Syslog服务器存储。
  2. 如权利要求1所述的单板日志信息的存储方法,其中,所述根据网元与系统日志Syslog服务器之间的组网方式预设通信接口包括:
    当所述网元与所述Syslog服务器之间为直接通信关系时,为所述网元上的单板的第一配置接口设置所述Syslog服务器的IP地址和端口,使用第一消息接口向所述Syslog服务器发送消息。
  3. 如权利要求1所述的单板日志信息的存储方法,其中,所述根据网元与系统日志Syslog服务器之间的组网方式预设通信接口包括:
    当所述网元与所述Syslog服务器之间通过代理设备通信,且所述代理设备为主控板时,使用第二配置接口在所述主控板上设置Syslog服务器的IP地址和端口,同时在所述代理设备内部开启一个端口接收其他单板发来的消息,使用第二消息接口将所述其他单板发来的消息转发给Syslog服务器;
    当所述网元与所述Syslog服务器之间通过代理设备通信,且所述代理设备为网关单板时,使用第三配置接口在所述网关单板上设置Syslog服务器的IP地址和端口,同时在所述代理设备内部开启一个端口接收所述网元发来的消息,使用第二消息接口转发所述网元发来的消息给所述Syslog服务器;
    在单板上使用第一配置接口设置网元主控板的IP和端口,使用第一消息接口发送Syslog消息给主控板。
  4. 如权利要求1所述的单板日志信息的存储方法,其中,所述根据网元与系统日志Syslog服务器之间的组网方式预设通信接口包括:
    当所述网元与所述Syslog服务器之间通过接入网元连接,所述接入网元作为网关时,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网关上开启一个指定的用户数据报协议UDP端口接收所述网元发送过来的Syslog消息;对Syslog消息不做修改直接转发到Syslog服务器。
  5. 如权利要求4所述的单板日志信息的存储方法,其中,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网关上开启一个指定的端口接收所述网元发送过来的Syslog消息的步骤包括:
    当接入网关类型为普通网元网关时,网关单板为接口板,设置所述Syslog服务器通过数据通信网络DCN与所述接入网关互通;
    在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,并把所述Syslog消息的IP段修改成本网元的IP地址后通过第二消息接口发送给网关;
    在单板上使用第一配置接口设置所述单板到所述Syslog服务器的IP地址和端口为本网元主控板的IP地址和端口,使用第一消息接口发送所述Syslog消息给主控板。
  6. 如权利要求4所述的单板日志信息的存储方法,其中,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网元上开启一个指定的用户数据报协议UDP端口接收所述网元发送过来的Syslog消息的步骤包括:
    当所述接入网关为增强型网元网关时,网关单板为主控板,设置所述Syslog服务器通过DCN与所述接入网关互通;
    在网关单板上使用第一配置接口设置Syslog服务器的IP地址和端口,同时在网关单板上开启一个指定的UDP端口,接收网元发送来的Syslog消息,不做修改使用消息接口将所述Syslog消息转发给所述Syslog服务器;
    在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接收本网元内其他单板发送过来的Syslog消息,以第二消息接口将所述Syslog消息发送给网关;
    在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
  7. 一种波分设备,包括:
    通信设置模块,其设置为:根据波分设备与系统日志Syslog服务器之间的组网方式预设波分设备的通信接口,以绑定日志信息发送路径;以及
    日志信息发送模块,其设置为:当波分设备产生日志信息时,根据绑定的日志信息发送路径向Syslog服务器发送日志信息,以供Syslog服务器存储。
  8. 如权利要求7所述的波分设备,其中,所述通信设置模块是设置为:
    当所述波分设备与Syslog服务器之间为直接通信关系时,为所述波分设备上的单板的第一配置接口设置Syslog服务器IP地址和端口,使用第一消息接口向Syslog服务器发送消息。
  9. 如权利要求7所述的波分设备,其中,所述通信设置模块是设置为:
    当所述波分设备与所述Syslog服务器之间通过代理设备通信,且所述代理设备为主控板时,使用第二配置接口在主控板上设置Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收其他单板发来的消息,使用第二消息接口转发给Syslog服务器;当所述波分设备与所述Syslog服务器之间通过代理设备通信,且所述代理设备为网关单板时使用第三配置接口在网关单板上设置Syslog服务器的IP地址和端口,同时在代理设备内部开启一个端口接收网元发来的消息,使用第二消息接口将所述网元发来的消息转发给Syslog服务器;
    在单板上使用第一配置接口设置网元主控板的IP和端口,使用第一消息接口发送Syslog消息给主控板。
  10. 如权利要求7所述的波分设备,其中,所述通信设置模块是设置为:
    当所述波分设备与所述Syslog服务器之间通过接入网元连接,所述接入网元作为网关时,在所述网关上配置所述Syslog服务器的IP地址和端口,同时在网关上开启一个指定的用户数据报协议UDP端口接收所述网元发送过来的Syslog消息;对Syslog消息不做修改直接转发到Syslog服务器。
  11. 如权利要求10所述的波分设备,其中,所述通信设置模块是设置为:
    当接入网关类型为普通网元网关时,网关单板为接口板,设置所述Syslog服务器通过数据通信网络DCN与所述接入网关互通;
    在网元主控板上使用第二配置接口设置其到网关的IP地址和端口,同时在主控板开启一个指定的UDP端口,接收本波分设备内其他单板发送过来的Syslog消息,并把所述Syslog消息的IP段修改成本网元的IP地址后通过第二消息接口发送给网关;
    在单板上使用第一配置接口设置其到服务器的IP地址和端口为本网元主控板的IP地址和端口,使用第一消息接口发送所述Syslog消息给主控板。
  12. 如权利要求10所述的波分设备,其中,所述通信设置模块是设置为:
    当所述接入网关为增强型网元网关时,网关单板为主控板,设置所述Syslog服务器通过DCN与所述接入网关互通;
    在网关单板上使用第一配置接口设置Syslog服务器的IP地址和端口,同时在网关单板上开启一个指定的UDP端口,接收网元发送来的Syslog消息,不做修改使用消息接口将所述Syslog消息转发给所述Syslog服务器;
    在网元主控板上使用第二配置接口设置网关的IP地址和端口,同时在主控板上开启一个指定的UDP端口,接收本波分设备内其他单板发送过来的Syslog消息,以第二消息接口将所述Syslog消息发送给网关;
    在单板上使用第三配置接口设置本网元主控板的IP地址和端口,使用第一消息接口发送Syslog消息给主控板。
  13. 一种计算机程序,包括程序指令,当该程序指令被波分设备执行时,使得该波分设备可执行权利要求1-6任一项所述的方法。
  14. 一种载有权利要求13所述计算机程序的计算机可读存储介质。
PCT/CN2014/090472 2014-06-27 2014-11-06 单板日志信息的存储方法及系统 WO2015196694A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410301972.4 2014-06-27
CN201410301972.4A CN105281934B (zh) 2014-06-27 2014-06-27 单板日志信息的存储方法及系统

Publications (1)

Publication Number Publication Date
WO2015196694A1 true WO2015196694A1 (zh) 2015-12-30

Family

ID=54936633

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090472 WO2015196694A1 (zh) 2014-06-27 2014-11-06 单板日志信息的存储方法及系统

Country Status (2)

Country Link
CN (1) CN105281934B (zh)
WO (1) WO2015196694A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776064B (zh) * 2016-11-29 2020-06-09 北京元心科技有限公司 多系统中管理日志的方法及装置
CN109818799B (zh) * 2019-02-19 2022-03-25 上海雷腾软件股份有限公司 日志采集分析方法及设备
CN111782445B (zh) * 2020-06-28 2023-08-15 百度在线网络技术(北京)有限公司 设备调试环境的配置方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852149A (zh) * 2005-09-20 2006-10-25 华为技术有限公司 一种网络管理系统中对网元服务器进行认证的方法
CN1874253A (zh) * 2005-06-02 2006-12-06 华为技术有限公司 一种系统日志管理方法
CN101621405A (zh) * 2009-07-07 2010-01-06 中兴通讯股份有限公司 分布式管理监控系统及其监控方法、创建方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825812A (zh) * 2005-02-25 2006-08-30 华为技术有限公司 管理网络日志信息的系统及方法
CN1855840A (zh) * 2005-04-26 2006-11-01 华为技术有限公司 一种网络管理器从网元设备获取日志信息的方法
CN100361454C (zh) * 2005-04-27 2008-01-09 华为技术有限公司 一种网络管理服务器从网元设备获取日志信息的方法
US7904430B2 (en) * 2005-08-09 2011-03-08 At&T Intellectual Property I, L.P. End-user portal session logging by portlets
CN101212347A (zh) * 2006-12-31 2008-07-02 中兴通讯股份有限公司 一种获取网元管理系统的操作日志的方法及装置
CN101321086A (zh) * 2007-06-08 2008-12-10 华为技术有限公司 连接设备的管理方法及连接设备、管理设备和通信系统
CN102064969A (zh) * 2010-12-27 2011-05-18 大唐移动通信设备有限公司 一种日志的处理方法和设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874253A (zh) * 2005-06-02 2006-12-06 华为技术有限公司 一种系统日志管理方法
CN1852149A (zh) * 2005-09-20 2006-10-25 华为技术有限公司 一种网络管理系统中对网元服务器进行认证的方法
CN101621405A (zh) * 2009-07-07 2010-01-06 中兴通讯股份有限公司 分布式管理监控系统及其监控方法、创建方法

Also Published As

Publication number Publication date
CN105281934A (zh) 2016-01-27
CN105281934B (zh) 2020-02-14

Similar Documents

Publication Publication Date Title
US11070431B2 (en) System and method for network validation architecture for clustered and federated storage systems
US11405260B2 (en) Network model aware diagnosis of a network
US20210135967A1 (en) Intelligent in-band telemetry auto-configuration for ip networks
US7689675B2 (en) System and method for communicating with console ports
WO2017198003A1 (zh) 一种业务处理方法及系统
JP6347813B2 (ja) ネットワークスイッチ、デバイス管理システム、およびそのデバイス管理方法
US11805011B2 (en) Bulk discovery of devices behind a network address translation device
WO2015196694A1 (zh) 单板日志信息的存储方法及系统
CN108347731A (zh) 一种进行安全绑定的方法、介质、设备及终端
WO2016187967A1 (zh) 一种实现日志传输的方法及装置
EP3952212B1 (en) Using a programmable resource dependency mathematical model to perform root cause analysis
CN109600436A (zh) 一种分布式iscsi服务实现方法、系统及相关装置
CN106533775A (zh) 虚拟化成员设备及邻居发现方法
CN104717176B (zh) 一种权限控制方法、系统及服务器
CN109274715A (zh) 车载多通道通信系统的平台资源管理系统
CN114189485A (zh) 一种交换机的网口管理方法、系统及计算机可读存储介质
TWI795619B (zh) 內建伺服模組的閘道裝置與通信系統
CN112751701B (zh) 用于管理网络装置的系统、方法及计算机可读介质
JP2010130113A (ja) ネットワーク管理システム、ネットワーク管理方法、マネージャおよびエージェント
CN113037573B (zh) 网络管理系统及方法
JP3917050B2 (ja) Macコントロールフレームによる装置管理方法
US11729075B1 (en) Time series data collection for a network management system
CN105471594B (zh) 管理资源的方法和设备
CN107248935A (zh) 一种网管发现并监控网元的系统及方法
WO2016107392A1 (zh) 连接实现方法、网络服务器和网关网元

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: 14895728

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: 14895728

Country of ref document: EP

Kind code of ref document: A1