CN105281934B - Method and system for storing single board log information - Google Patents
Method and system for storing single board log information Download PDFInfo
- Publication number
- CN105281934B CN105281934B CN201410301972.4A CN201410301972A CN105281934B CN 105281934 B CN105281934 B CN 105281934B CN 201410301972 A CN201410301972 A CN 201410301972A CN 105281934 B CN105281934 B CN 105281934B
- Authority
- CN
- China
- Prior art keywords
- network element
- syslog
- gateway
- port
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for storing veneer log information, which comprises the following steps: presetting a communication interface of wavelength division equipment according to a networking mode between a network element and a system log Syslog server to bind a log information sending path; and when the network element generates the log information, sending the log information to the Syslog server according to the bound log information sending path so as to be stored by the Syslog server. The invention also provides a single board log information storage system for realizing the method. The invention can avoid the occurrence of log information loss events and improve the safety and reliability of the system.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for storing veneer log information.
Background
In the development and practical application of WDM (Wavelength Division device) single board software, it is a very difficult problem to acquire intermediate information and software fault information during software operation. How to obtain the middle running state of the single board and the software abnormal information of the single board which occurs once in the normal execution process of the single board software is a problem which needs to be solved urgently for analyzing the single board software fault.
The universal log module on the single board can record key information in the normal execution process of the single board software in a log file mode according to user requirements, and also supports recording abnormal printing information into the log file when the single board is in an abnormal condition. Meanwhile, the functions of inquiring, retrieving, reporting and the like of the log information of the user are supported in various modes, and the user can conveniently and remotely obtain the log content. However, the information is stored in the storage space of the board in the form of a file, the board generates a large amount of log information after long-time operation, and the storage space of the board is limited, which may cause information loss.
Disclosure of Invention
The invention mainly aims to provide a method for storing single board log information, which aims to effectively solve the technical problem that the log information is possibly lost at present.
In order to achieve the above object, the present invention provides a method for storing veneer log information, which comprises the following steps:
presetting a communication interface of wavelength division equipment according to a networking mode between a network element and a system log Syslog server to bind a log information sending path;
and when the network element generates the log information, sending the log information to the Syslog server according to the bound log information sending path so as to be stored by the Syslog server.
Preferably, the presetting of the communication interface according to the networking mode between the network element and the system log Syslog server includes:
when the network element and the Syslog server are in a direct communication relation, setting an IP address and a port of the Syslog server for a first configuration interface of a single board on the network element, and sending a message to the Syslog server by using a first message interface.
Preferably, the presetting of the communication interface according to the networking mode between the network element and the system log Syslog server includes:
when the network element and the Syslog server communicate through the proxy equipment which is a main control board, the IP address and the port of the network element to the Syslog server are set by using a second configuration interface, and meanwhile, a port is opened in the proxy equipment to receive messages sent by other single boards and the messages are forwarded to the Syslog server by using a second message interface;
when the proxy equipment is a gateway single board, setting an IP address and a port from the proxy equipment to a Syslog server by using a third configuration interface, simultaneously opening a port in the proxy equipment to receive a message sent by a network element, and forwarding the message to the Syslog server by using a second message interface;
the method comprises the steps that a first configuration interface is used on a single board to set an IP and a port of a network element main control board, and a first message interface is used for sending a Syslog message to the main control board.
Preferably, the presetting of the communication interface according to the networking mode between the network element and the system log Syslog server includes:
when the network element is connected with the Syslog server through an access network element, and the access network element is used as a gateway, an IP address and a port of the Syslog server are configured on the gateway, and a designated User Datagram Protocol (UDP) port is opened on the gateway to receive Syslog messages sent by the network element; the Syslog messages are processed in a manner that they are directly forwarded to the Syslog server without modification.
Preferably, when the network element is connected to the Syslog server through the access network element, and the access network element is used as a gateway, the step of configuring an IP address and a port of the Syslog server on the gateway, and simultaneously opening a designated UDP port on the gateway to receive the Syslog message sent by the network element includes:
when the type of the access gateway is a common network element gateway, the gateway single board is an interface board, and a Syslog server is set to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously opening a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the IP section modification cost network element IP of the messages to the gateway through the second message interface;
and setting the IP and the port of the single board to the server as the IP and the port of the main control board of the network element by using a first configuration interface, and sending a Syslog message to the main control board by using a first message interface.
Preferably, when the network element is connected to the Syslog server through the access network element, and the access network element is used as a gateway, the step of configuring an IP address and a port of the Syslog server on the gateway, and simultaneously opening a designated UDP port on the network element to receive the Syslog message sent by the network element includes:
when the access gateway is an enhanced network element gateway, the gateway single board is a main control board, and a Syslog server is arranged to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the gateway single board to a Syslog server by using a first configuration interface, simultaneously starting a specified UDP port on the gateway single board, receiving the Syslog message sent by a network element, and forwarding the Syslog message to the Syslog server by using a message interface without modification;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously starting a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the messages to the gateway by using a second message interface;
and setting the IP address and the port of the single board to the main control board of the local network element by using a third configuration interface, and sending the Syslog message to the main control board by using the first message interface.
The invention also provides a storage system of the veneer log information, which comprises the wavelength division equipment and the Syslog server, wherein the network element comprises:
the communication setting module is used for presetting a communication interface of the wavelength division equipment according to a networking mode between the network element and the system log Syslog server so as to bind a log information sending path;
and the log information sending module is used for sending the log information to the Syslog server according to the bound log information sending path when the network element generates the log information so as to be stored by the Syslog server.
Preferably, the communication setting module is configured to:
when the network element and the Syslog server are in a direct communication relation, setting an IP address and a port of the Syslog server for a first configuration interface of a single board on the network element, and sending a message to the Syslog server by using a first message interface.
Preferably, the communication setting module is configured to:
when the network element and the Syslog server communicate through the proxy equipment, the proxy equipment sets an IP address and a port from the proxy equipment to the Syslog server by using a second configuration interface when the proxy equipment is a main control board, and simultaneously opens a port in the proxy equipment to receive messages sent by other single boards and forwards the messages to the Syslog server by using a second message interface; when the proxy equipment is a gateway single board, the third configuration interface is used for setting the IP address and the port from the proxy equipment to the Syslog server, meanwhile, a port is opened in the proxy equipment for receiving the message sent by the network element, and the message is forwarded to the Syslog server by using the second message interface;
the method comprises the steps that a first configuration interface is used on a single board to set an IP and a port of a network element main control board, and a first message interface is used for sending a Syslog message to the main control board.
Preferably, the communication setting module is configured to:
when the network element is connected with the Syslog server through an access network element, and the access network element is used as a gateway, an IP address and a port of the Syslog server are configured on the gateway, and a designated User Datagram Protocol (UDP) port is opened on the gateway to receive Syslog messages sent by the network element; the Syslog messages are processed in a manner that they are directly forwarded to the Syslog server without modification.
Preferably, the communication setting module is configured to:
when the type of the access gateway is a common network element gateway, the gateway single board is an interface board, and a Syslog server is set to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously opening a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the IP section modification cost network element IP of the messages to the gateway through the second message interface;
and setting the IP and the port of the single board to the server as the IP and the port of the main control board of the network element by using a first configuration interface, and sending a Syslog message to the main control board by using a first message interface.
Preferably, the communication setting module is configured to, when the access gateway is an enhanced network element gateway, set the Syslog server as a main control board to communicate with the access gateway through a DCN network;
setting an IP address and a port from the gateway single board to a Syslog server by using a first configuration interface, simultaneously starting a specified UDP port on the gateway single board, receiving the Syslog message sent by a network element, and forwarding the Syslog message to the Syslog server by using a message interface without modification;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously starting a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the messages to the gateway by using a second message interface;
and setting the IP address and the port of the single board to the main control board of the local network element by using a third configuration interface, and sending the Syslog message to the main control board by using the first message interface.
According to the scheme of the invention, the network element is improved, and flexible communication configuration modes and interfaces are provided according to different networking modes, so that the network element can send the log information to the Syslog server for storage in various networking modes, the occurrence of log information loss events is avoided, and the safety and reliability of the system are improved.
Drawings
Fig. 1 is a flow chart illustrating a method for storing veneer log information according to a preferred embodiment of the present invention;
FIG. 2 is a diagram illustrating various architectures of devices in the Syslog protocol according to a preferred embodiment of the present invention;
FIG. 3 is a diagram illustrating a single board/sub-rack debugging environment according to a preferred embodiment of the present invention;
FIG. 4 is a diagram illustrating a single cell debug environment in accordance with a preferred embodiment of the present invention;
FIG. 5 is a diagram illustrating a multi-network element networking environment in accordance with a preferred embodiment of the present invention;
fig. 6 is a schematic structural diagram of a storage system for single board log information according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, in an embodiment of the present invention, a method for storing veneer log information at least includes the following steps:
step S10, presetting a communication interface of wavelength division equipment according to a networking mode between a network element and a system log Syslog server so as to bind a log information sending path; as is known, there are two networking methods: 1. direct connection; 2. and (5) connecting the gateway. The gateway connection is divided into: the generic network element Gateway (GNE) and the Enhanced Gateway (EGNE). In the gateway connection, the more specific device is an access network element, which has the function of a network element and also has the function of a gateway. Under different networking modes, the single board, the module and the communication mode are also very different. The invention sets communication interfaces according to different networking modes so as to realize remote data transmission and flexible network configuration between the network element and the Syslog server, and the realization is based on RFC3164 protocol to send messages.
The invention improves the network element according to different networking modes, presets different communication interfaces to form and bind the log information sending path, thereby realizing that the log information of the single board is sent to the Syslog server and is stored in the Syslog server.
Referring to fig. 2, currently, under the RFC3164 protocol, there are the following communication modes between a network element and a server: the network element is in communication connection with the server directly or through the proxy equipment. The RFC3164 protocol requires three types of devices:
1. device: a message producer;
2. relay: message forwarding relay;
3. a Collector: a message collector.
In the embodiment of the invention, the wavelength division equipment is introduced as follows:
the network element consists of a main control board and various single boards, and in the embodiment of the invention, the main control board and the single boards are additionally provided with configuration interfaces;
the single board is a device for generating the syslog message;
the proxy equipment operates on the main control board as relay equipment and needs to modify the ip section in the received syslog message;
the gateway network element is used for isolating the non-access network element and directly transmitting the syslog information to the syslog server without modification when the syslog information of other network elements is received by the relay equipment;
syslog server: the system is deployed on a pc server as an information collector by using common syslog software.
Specifically, the communication interface may include:
the first message interface is used for sending and generating a Syslog message structure conforming to an RFC3164 protocol;
the second message interface, the sending agent device modifies the IP section in the first message interface and forwards the modified IP section to the message structure of the Syslog server;
the gateway comprises a first configuration interface, a second configuration interface and a third configuration interface, wherein the first configuration interface is used for configuring an IP address and a port from the gateway to a Syslog server;
a second configuration interface for configuring the IP address and port of the proxy device to the Syslog server;
and the third configuration interface is used for configuring the Syslog server IP address and the port of the single board.
And 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, so as to be stored by the Syslog server.
The technical scheme of the invention is explained in detail by taking the above modes as examples:
in an embodiment of the present invention, when the network element and the Syslog server are in a direct communication relationship, the step S10 may include:
when the network element and the Syslog server are in a direct communication relation, setting an IP address and a port of the Syslog server for a first configuration interface of a single board on the network element, and sending a message to the Syslog server by using a first message interface.
Referring to fig. 3, fig. 3 is a single board/sub-rack debugging environment in which the Syslog server and the single board can directly communicate. The aforementioned method may comprise the steps of:
step S11, deploying Syslog server software on a server (computer);
and step S12, setting the IP address and port of the Syslog server on the board using the third configuration interface, and sending the message to the Syslog server using the first message interface.
Referring to fig. 4 and 5, in another embodiment of the present invention, when the network element communicates with the Syslog server through the proxy device, and the proxy device is a main control board, the IP address and the port of the Syslog server are set by using the second configuration interface, and meanwhile, a port is opened inside the proxy device to receive messages sent by other boards, and the messages are forwarded to the Syslog server by using the second message interface;
when the proxy equipment is a gateway single board, setting an IP address and a port from the proxy equipment to a Syslog server by using a third configuration interface, simultaneously opening a port in the proxy equipment to receive a message sent by a network element, and forwarding the message to the Syslog server by using a second message interface;
the method comprises the steps that a first configuration interface is used on a single board to set an IP and a port of a network element main control board, and a first message interface is used for sending a Syslog message to the main control board.
Specifically, the present embodiment includes the following two debugging environments:
single-network element debugging environment
FIG. 4 is a single-net element debug environment. In the debugging environment, the connection mode is the same as that of a single board/subframe debugging environment, the single board can be directly communicated with the Syslog server or communicated with the Syslog server through proxy equipment, and the proxy equipment is used as relay equipment to forward Syslog messages. Specifically, the method may include the steps of:
firstly, deploying Syslog server software on a PC server;
the proxy equipment sets the IP address and the port of the Syslog server by using the second configuration interface, and simultaneously, a port is opened by default inside to receive messages sent by other single boards, and the messages are forwarded to the Syslog server by using the second message interface
And setting the server as the IP and the port of the network element main control board by using a third configuration interface on the single board, and sending the Syslog message to the main control board by using the first message interface.
Two, multiple network element network environment
FIG. 5 is a multi-network element debug environment. The gateway is not configured in the environment, each network element main control module can directly communicate with the server, and the single board sends the Syslog message to the server through the network element proxy equipment. In this scenario, multiple Syslog servers may be deployed, each of which collects log information of different network elements. Specifically, the method may include the steps of:
firstly, deploying Syslog server software on a PC server;
then, the proxy device uses the second configuration interface to set the IP address and port of the Syslog server, and different servers can be set on different network element proxy devices due to the deployment of multiple Syslog servers. Meanwhile, a designated port is opened in the proxy equipment to receive messages sent by other single boards of the network element, and the messages are forwarded to the Syslog server by using a second message interface;
and setting the third configuration interface on the single board as the IP and the port of the main control board of the network element, and sending the Syslog message to the main control board by using the first message interface.
In an embodiment, when the network element is connected to the Syslog server through an access network element, and the access network element is a gateway, the foregoing step S10 includes:
step S100, configuring an IP address and a port of a Syslog server on a gateway, and simultaneously starting a specified UDP port on the gateway to receive a Syslog message sent by a network element; the Syslog messages are processed in a manner that they are directly forwarded to the Syslog server without modification.
In the embodiment of the invention, the gateway is divided into two cases of a common network element Gateway (GNE) and an Enhanced Gateway (EGNE).
In a preferred embodiment, when the access gateway type is a normal network element gateway, the step S100 includes:
when the type of the access gateway is a common network element gateway, the gateway single board is an interface board, and a Syslog server is set to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously opening a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the IP section modification cost network element IP of the messages to the gateway through the second message interface;
and setting the IP and the port of the single board to the server as the IP and the port of the main control board of the network element by using a first configuration interface, and sending a Syslog message to the main control board by using a first message interface.
Specifically, when the networking method of this embodiment is used in testing and engineering, the non-access network element and the server are isolated from each other, and a Syslog message needs to be sent to the Syslog server through the access network element, and the access gateway of the ordinary gateway network element is a sosc single board of the access network element. Specifically, in this scheme, the step of transferring the log message through the gateway is as follows:
firstly, deploying Syslog server software on a pc server, wherein the pc needs to be communicated with a gateway through a DCN network;
then, setting an ip address and a port of the syslog server on the gateway single board by using the first configuration interface, simultaneously opening a specified UDP port, receiving syslog messages sent by other network elements, and forwarding the syslog messages to the syslog server by using the second message interface without modification;
setting the server as the ip address and port of the gateway by using a second configuration interface on the main control board of other network elements, simultaneously starting a specified UDP port, receiving syslog messages sent by other single boards in the network element, and sending the syslog messages to the gateway by using a second message interface;
and setting a server as an ip and a port of the network element main control board by using a third configuration interface on the single board, and sending the syslog message to the main control board by using the first message interface.
In another preferred embodiment, when the access gateway is an enhanced network element gateway, the step S100 includes:
when the access gateway is an enhanced network element gateway, the gateway single board is a main control board, and a Syslog server is arranged to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the gateway single board to a Syslog server by using a first configuration interface, simultaneously starting a specified UDP port on the gateway single board, receiving the Syslog message sent by a network element, and forwarding the Syslog message to the Syslog server by using a message interface without modification;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously starting a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the messages to the gateway by using a second message interface;
and setting the third configuration interface on the single board as the IP address and the port of the main control board of the network element, and sending the Syslog message to the main control board by using the first message interface.
The networking mode of the enhanced gateway network element is safer, and key message conversion is realized by moving to an SNP board.
Specifically, in this scheme, the step of transferring the log message through the gateway is as follows:
the method comprises the following steps that syslog server software is deployed on a pc server, and the pc needs to be communicated with a gateway through a DCN (distributed computing network);
setting an ip address and a port of a syslog server on a gateway single board (a snp board) by using a first configuration interface, simultaneously starting a designated UDP port on a main control board, receiving syslog messages sent by other network elements, and forwarding the syslog messages to the syslog server by using a second message interface without modification;
setting the server as the ip address and port of the gateway by using a second configuration interface on the main control board of other network elements, simultaneously starting a specified UDP port, receiving syslog messages sent by other single boards in the network element, and sending the syslog messages to the gateway by using a second message interface;
and setting a server as an ip and a port of the network element main control board by using a third configuration interface on the single board, and sending the syslog message to the main control board by using the first message interface.
The invention also provides a single board log information storage system, which is used for realizing the method. Referring to fig. 6, in a preferred embodiment of the present invention, the storage system of the board log information includes a wavelength division device 10 and a Syslog server 20, where the network element includes:
the communication setting module 11 is configured to preset a communication interface of the wavelength division device according to a networking mode between the network element and the system log Syslog server, so as to bind the log information transmission path;
and a log information sending module 12, configured to send, when the network element generates log information, the log information to the Syslog server according to the bound log information sending path, so that the Syslog server stores the log information.
The RFC3164 protocol requires three types of devices:
1. device: a message producer;
2. relay: message forwarding relay;
3, Collector: a message collector.
In the embodiment of the invention, the wavelength division equipment is introduced as follows:
the network element consists of a main control board and various single boards, and in the embodiment of the invention, the main control board and the single boards are additionally provided with configuration interfaces;
the single board is a device for generating the syslog message;
the proxy equipment operates on the main control board as relay equipment and needs to modify the ip section in the received syslog message;
the gateway network element is used for isolating the non-access network element and directly transmitting the syslog information to the syslog server without modification when the syslog information of other network elements is received by the relay equipment;
syslog server: the system is deployed on a pc server as an information collector by using common syslog software.
Specifically, the communication interface may include:
the first message interface is used for sending and generating a Syslog message structure conforming to an RFC3164 protocol;
the second message interface, the sending agent device modifies the IP section in the first message interface and forwards the modified IP section to the message structure of the Syslog server;
the gateway comprises a first configuration interface, a second configuration interface and a third configuration interface, wherein the first configuration interface is used for configuring an IP address and a port from the gateway to a Syslog server;
a second configuration interface for configuring the IP address and port of the proxy device to the Syslog server;
and the third configuration interface is used for configuring the Syslog server IP address and the port of the single board.
And 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, so as to be stored by the Syslog server.
In one embodiment of the present invention, the communication setting module 11 is configured to:
when the network element and the Syslog server are in a direct communication relation, setting an IP address and a port of the Syslog server for a first configuration interface of a single board on the network element, and sending a message to the Syslog server by using a first message interface.
In a further embodiment of the invention, the communication setting module 11 is configured to:
when the network element and the Syslog server communicate through the proxy equipment, the proxy equipment sets an IP address and a port from the proxy equipment to the Syslog server by using a second configuration interface when the proxy equipment is a main control board, and simultaneously opens a port in the proxy equipment to receive messages sent by other single boards and forwards the messages to the Syslog server by using a second message interface; when the proxy equipment is a gateway single board, the third configuration interface is used for setting the IP address and the port from the proxy equipment to the Syslog server, meanwhile, a port is opened in the proxy equipment for receiving the message sent by the network element, and the message is forwarded to the Syslog server by using the second message interface;
the method comprises the steps that a first configuration interface is used on a single board to set an IP and a port of a network element main control board, and a first message interface is used for sending a Syslog message to the main control board.
In another embodiment of the present invention, the communication setting module 11 is configured to:
when the network element is connected with the Syslog server through an access network element, and the access network element is used as a gateway, an IP address and a port of the Syslog server are configured on the gateway, and a designated User Datagram Protocol (UDP) port is opened on the gateway to receive Syslog messages sent by the network element; the Syslog messages are processed in a manner that they are directly forwarded to the Syslog server without modification.
In one embodiment of the present invention, the communication setting module 11 is configured to:
when the type of the access gateway is a common network element gateway, the gateway single board is an interface board, and a Syslog server is set to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously opening a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the IP section modification cost network element IP of the messages to the gateway through the second message interface;
and setting the IP and the port of the single board to the server as the IP and the port of the main control board of the network element by using a first configuration interface, and sending a Syslog message to the main control board by using a first message interface.
In another embodiment of the present invention, the communication setting module 11 is configured to:
when the access gateway is an enhanced network element gateway, the gateway single board is a main control board, and a Syslog server is arranged to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the gateway single board to a Syslog server by using a first configuration interface, simultaneously starting a specified UDP port on the gateway single board, receiving the Syslog message sent by a network element, and forwarding the Syslog message to the Syslog server by using a message interface without modification;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously starting a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the messages to the gateway by using a second message interface;
and setting the IP address and the port of the single board to the main control board of the local network element by using a third configuration interface, and sending the Syslog message to the main control board by using the first message interface.
The structure and the operation principle of the single board log information storage system of the present invention may refer to the embodiments shown in fig. 1 to 5 of the foregoing method, and include all the technical features of the foregoing embodiments, which are not described in detail herein. Due to the network element 10, the storage system of the veneer log information can provide flexible communication configuration modes and interfaces according to different networking modes, so that the network element can send the log information to the Syslog server 20 for storage in various networking modes, the occurrence of log information loss events is avoided, the safety and reliability of the system are improved, and networking and use are facilitated.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (6)
1. A method for storing single board log information is characterized by comprising the following steps:
presetting a communication interface of wavelength division equipment according to a networking mode between a network element and a system log Syslog server to bind a log information sending path;
when the network element generates the log information, sending the log information to a Syslog server according to the bound log information sending path for the Syslog server to store;
wherein, the presetting of the communication interface according to the networking mode between the network element and the Syslog server comprises:
when the network element and the Syslog server communicate through the proxy equipment which is a main control board, the IP address and the port of the network element to the Syslog server are set by using a second configuration interface, and meanwhile, a port is opened in the proxy equipment to receive messages sent by other single boards and the messages are forwarded to the Syslog server by using a second message interface;
when the proxy equipment is a gateway single board, setting an IP address and a port from the proxy equipment to a Syslog server by using a third configuration interface, simultaneously opening a port in the proxy equipment to receive a message sent by a network element, and forwarding the message to the Syslog server by using a second message interface;
setting a first configuration interface on a single board as an IP and a port of a network element main control board, and sending a Syslog message to the main control board by using a first message interface;
or the like, or, alternatively,
when the network element is connected with the Syslog server through an access network element, and the access network element is used as a gateway, an IP address and a port of the Syslog server are configured on the gateway, and a designated User Datagram Protocol (UDP) port is opened on the gateway to receive Syslog messages sent by the network element; the Syslog messages are processed in a manner that they are directly forwarded to the Syslog server without modification.
2. The method for storing veneer log information according to claim 1, wherein, when the network element is connected to the Syslog server through the access network element, and the access network element is used as a gateway, the gateway configures an IP address and a port of the Syslog server, and opens a designated UDP port on the gateway to receive the Syslog message sent by the network element, the method comprising:
when the type of the access gateway is a common network element gateway, the gateway single board is an interface board, and a Syslog server is set to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously opening a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the IP section modification cost network element IP of the messages to the gateway through the second message interface;
and setting the IP and the port of the single board to the server as the IP and the port of the main control board of the network element by using a first configuration interface, and sending a Syslog message to the main control board by using a first message interface.
3. The method for storing veneer log information according to claim 1, wherein, when the network element is connected to the Syslog server through the access network element, and the access network element is used as a gateway, the gateway configures an IP address and a port of the Syslog server, and opens a designated UDP port on the network element to receive the Syslog message sent by the network element, the method comprising:
when the access gateway is an enhanced network element gateway, the gateway single board is a main control board, and a Syslog server is arranged to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the gateway single board to a Syslog server by using a first configuration interface, simultaneously starting a specified UDP port on the gateway single board, receiving the Syslog message sent by a network element, and forwarding the Syslog message to the Syslog server by using a message interface without modification;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously starting a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the messages to the gateway by using a second message interface;
and setting the IP address and the port of the single board to the main control board of the local network element by using a third configuration interface, and sending the Syslog message to the main control board by using the first message interface.
4. A storage system of single board log information is characterized in that the storage system comprises a wavelength division device and a Syslog server, and a network element in the storage system of the single board log information comprises:
the communication setting module is used for presetting a communication interface of the wavelength division equipment according to a networking mode between the network element and the system log Syslog server so as to bind a log information sending path;
the log information sending module is used for sending log information to the Syslog server according to the bound log information sending path when the network element generates the log information, so that the log information can be stored by the Syslog server;
the communication setting module is used for:
when the network element and the Syslog server communicate through the proxy equipment, the proxy equipment sets an IP address and a port from the proxy equipment to the Syslog server by using a second configuration interface when the proxy equipment is a main control board, and simultaneously opens a port in the proxy equipment to receive messages sent by other single boards and forwards the messages to the Syslog server by using a second message interface; when the proxy equipment is a gateway single board, the third configuration interface is used for setting the IP address and the port from the proxy equipment to the Syslog server, meanwhile, a port is opened in the proxy equipment for receiving the message sent by the network element, and the message is forwarded to the Syslog server by using the second message interface;
setting a first configuration interface on a single board as an IP and a port of a network element main control board, and sending a Syslog message to the main control board by using a first message interface;
or;
when the network element is connected with the Syslog server through an access network element, and the access network element is used as a gateway, an IP address and a port of the Syslog server are configured on the gateway, and a designated User Datagram Protocol (UDP) port is opened on the gateway to receive Syslog messages sent by the network element; the Syslog messages are processed in a manner that they are directly forwarded to the Syslog server without modification.
5. The system for storing veneer log information according to claim 4, wherein the communication setting module is configured to:
when the type of the access gateway is a common network element gateway, the gateway single board is an interface board, and a Syslog server is set to be communicated with the access gateway through a DCN network;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously opening a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the IP section modification cost network element IP of the messages to the gateway through the second message interface;
and setting the IP and the port of the single board to the server as the IP and the port of the main control board of the network element by using a first configuration interface, and sending a Syslog message to the main control board by using a first message interface.
6. The board log information storage system according to claim 4, wherein the communication setting module is configured to, when the access gateway is an enhanced network element gateway, set the gateway board as a main control board, and set the Syslog server to communicate with the access gateway through the DCN network;
setting an IP address and a port from the gateway single board to a Syslog server by using a first configuration interface, simultaneously starting a specified UDP port on the gateway single board, receiving the Syslog message sent by a network element, and forwarding the Syslog message to the Syslog server by using a message interface without modification;
setting an IP address and a port from the network element main control board to the gateway by using a second configuration interface, simultaneously starting a specified UDP port on the main control board, receiving Syslog messages sent by other single boards in the network element, and sending the messages to the gateway by using a second message interface;
and setting the IP address and the port of the single board to the main control board of the local network element by using a third configuration interface, and sending the Syslog message to the main control board by using the first message interface.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410301972.4A CN105281934B (en) | 2014-06-27 | 2014-06-27 | Method and system for storing single board log information |
PCT/CN2014/090472 WO2015196694A1 (en) | 2014-06-27 | 2014-11-06 | Single-board log information storage method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410301972.4A CN105281934B (en) | 2014-06-27 | 2014-06-27 | Method and system for storing single board log information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105281934A CN105281934A (en) | 2016-01-27 |
CN105281934B true CN105281934B (en) | 2020-02-14 |
Family
ID=54936633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410301972.4A Active CN105281934B (en) | 2014-06-27 | 2014-06-27 | Method and system for storing single board log information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105281934B (en) |
WO (1) | WO2015196694A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776064B (en) * | 2016-11-29 | 2020-06-09 | 北京元心科技有限公司 | Method and device for managing logs in multiple systems |
CN109818799B (en) * | 2019-02-19 | 2022-03-25 | 上海雷腾软件股份有限公司 | Log collection and analysis method and device |
CN111782445B (en) * | 2020-06-28 | 2023-08-15 | 百度在线网络技术(北京)有限公司 | Configuration method and device of equipment debugging environment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794646A (en) * | 2005-04-27 | 2006-06-28 | 华为技术有限公司 | Method for obtaining of daily information from network element equipment by network management server |
CN1825812A (en) * | 2005-02-25 | 2006-08-30 | 华为技术有限公司 | System and method for managing network web log information |
CN1852149A (en) * | 2005-09-20 | 2006-10-25 | 华为技术有限公司 | Method for verifying network-unit server in network management system |
CN1855840A (en) * | 2005-04-26 | 2006-11-01 | 华为技术有限公司 | Method for network management device to obtain log data from network element |
CN1874253A (en) * | 2005-06-02 | 2006-12-06 | 华为技术有限公司 | Method for managing system log |
CN101212347A (en) * | 2006-12-31 | 2008-07-02 | 中兴通讯股份有限公司 | Method and device for obtaining operation log of network element management system |
CN101321086A (en) * | 2007-06-08 | 2008-12-10 | 华为技术有限公司 | Connecting equipment management method and connecting equipment, management equipment and communication system |
CN101621405A (en) * | 2009-07-07 | 2010-01-06 | 中兴通讯股份有限公司 | Distributed type management monitoring system, monitoring method and establishing method thereof |
CN102064969A (en) * | 2010-12-27 | 2011-05-18 | 大唐移动通信设备有限公司 | Method and equipment for processing logs |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7904430B2 (en) * | 2005-08-09 | 2011-03-08 | At&T Intellectual Property I, L.P. | End-user portal session logging by portlets |
-
2014
- 2014-06-27 CN CN201410301972.4A patent/CN105281934B/en active Active
- 2014-11-06 WO PCT/CN2014/090472 patent/WO2015196694A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1825812A (en) * | 2005-02-25 | 2006-08-30 | 华为技术有限公司 | System and method for managing network web log information |
CN1855840A (en) * | 2005-04-26 | 2006-11-01 | 华为技术有限公司 | Method for network management device to obtain log data from network element |
CN1794646A (en) * | 2005-04-27 | 2006-06-28 | 华为技术有限公司 | Method for obtaining of daily information from network element equipment by network management server |
CN1874253A (en) * | 2005-06-02 | 2006-12-06 | 华为技术有限公司 | Method for managing system log |
CN1852149A (en) * | 2005-09-20 | 2006-10-25 | 华为技术有限公司 | Method for verifying network-unit server in network management system |
CN101212347A (en) * | 2006-12-31 | 2008-07-02 | 中兴通讯股份有限公司 | Method and device for obtaining operation log of network element management system |
CN101321086A (en) * | 2007-06-08 | 2008-12-10 | 华为技术有限公司 | Connecting equipment management method and connecting equipment, management equipment and communication system |
CN101621405A (en) * | 2009-07-07 | 2010-01-06 | 中兴通讯股份有限公司 | Distributed type management monitoring system, monitoring method and establishing method thereof |
CN102064969A (en) * | 2010-12-27 | 2011-05-18 | 大唐移动通信设备有限公司 | Method and equipment for processing logs |
Also Published As
Publication number | Publication date |
---|---|
WO2015196694A1 (en) | 2015-12-30 |
CN105281934A (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2712002C (en) | Diagnostics methods for a communications device | |
CN101216800B (en) | LINUX log controller and method | |
CN108965203A (en) | A kind of resource access method and server | |
CN104486146A (en) | Communication method for testing console and testing equipment | |
CN105281934B (en) | Method and system for storing single board log information | |
KR101619736B1 (en) | Method, apparatus and system for manageing private network remotely using session initiation protocol | |
JPWO2013128483A1 (en) | RELAY DEVICE, RELAY DEVICE CONTROL METHOD, AND NETWORK SYSTEM | |
CN101894059A (en) | Method and system for detecting operating condition | |
CN101262371A (en) | Configuration method and device of network devices | |
JP2013543307A (en) | Control method, apparatus, and system | |
CN101465858B (en) | Method for implementing private network penetration of monitoring business, network appliance and server | |
CN105721274A (en) | Method and device for integrating variety of instant messaging | |
CN113300871A (en) | Networking method and device of simulation network | |
CN101753330B (en) | Method for managing equipment based on VRF interface | |
TWI795619B (en) | Gateway device with built-in server module and communication system thereof | |
CN102594611A (en) | Trap session chain table updating method for webmaster agent | |
CN102684924A (en) | Network management workstation and debugging method of network management software | |
EP2214382A1 (en) | Method of reception of device logging information and method of transmission of device logging information | |
KR20090063504A (en) | Oma-dm system, device management server and terminal device | |
CN105684352B (en) | Belong to the device of private network, the device and method of managing device and medium | |
CN113810425B (en) | Parallel network transmission method, device, equipment and storage medium | |
US20230300118A1 (en) | Tunnelled remote intent mechanism | |
EP4254901A1 (en) | Information processing apparatus, information processing system, information processing method, and program | |
US8255503B2 (en) | Method and apparatus for communicating text-based commands through a network | |
US20230318876A1 (en) | Information processing apparatus, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |