Use the polled async mode to produce the method for equipment alarm information
Technical field
The present invention relates to network equipment monitoring management technology, relate in particular to a kind of by using the polled async mode to produce the method for equipment alarm information.
Background technology
The fast development of the Internet and telecommunications industry has in recent years brought development opportunity to equipment manufacturers, the network equipment that a large amount of equipment manufacturers release emerges in an endless stream, operator's applied equipment when supervising the network also is multifarious, and quantity is also extremely huge, these have brought very big challenge all for network operation and management.
At present, utilize network that equipment is carried out the main flow that telemanagement is present device management techniques development, (SNMP, Simple Network Management Protocol) just can manage long-range equipment by Simple Network Management Protocol.At present by NM server can monitor network equipment real-time running state, fault check and repair professional granting, the statistics of performance, the management of form etc.Can pass through a large amount of network equipment of NM server telemanagement, and all network equipments are had identical administration interface, significantly reduce the complexity of operation.
Most important function is exactly that running status, the fault of real-time monitoring equipment checked and repaired in network management.Existing technology be employing equipment initiatively report and alarm information realize to the mode of NM server.Therefore realize the real-time monitoring equipment running status in the prior art, fault is checked and repair function, the alarm that at first needs network management system can the equipment of receiving to report.And to make the network equipment alarming information report to NM server, need to solve following problem:
1) can send: promptly whether equipment supports the alarm report function.
2) where send: promptly equipment will be known the NM server address that warning information need be sent in the network.Need in network, configure the server address of alarm report in the equipment.
3) how to guarantee to send to: guaranteeing that promptly the warning information that equipment reports in the network can send to NM server accurately, is to adopt the UDP bag to send a warning message in the prior art, if packet loss can not retransmit.
4) solve the above problems in existing environment and also have following difficult point: at first, have some low side devices in the network at present, itself does not support the alarm report function.Secondly, when existing a large amount of all kinds equipment all to need to dispose in the network (newly-increased NM server or change the NM server address), how could be convenient, fast and accurate configure the server address of alarm report to each equipment; Or equipment need be with alarm report to a plurality of servers, and equipment reports address number limited when can support.Once more, the principle of Ethernet has determined all inevitable situation that the alarm packet loss occurs in any one network.At last, owing to be initiatively report and alarm information of equipment, bag also may appear alarming by the situation of fire compartment wall shielding in the network.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of can realize the reporting functions of warning information in the network management system by using the polled async mode to produce the method for equipment alarm information, thereby reach the network equipment is monitored in real time.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of using the polled async mode to produce equipment alarm information, this method comprises:
A, will need monitored device to add in the polled async formation according to different rank, and configure polling time interval, opening needs the snoop queue service that starts;
B, network management system are by Simple Network Management Protocol SNMP, the instruction of the monitored device in the respective queue being sent the taking equipment relevant information;
C, the regulation response time in, receive all return informations;
D, judge whether to receive return information, if do not receive the state information of this equipment in the network management system, then the facility information that this is got is made as this device losses; If receive the state information of this equipment in the network management system, then execution in step E;
E, the local state information of whether preserving this equipment of judgement, if do not have, the status information of equipment of then this being got is preserved, and finishes this time poll process; Otherwise, execution in step F;
F, further relatively whether this status information of equipment of getting is consistent with this status information of equipment that preserve this locality, if consistent, finishes this time poll process; Otherwise, execution in step G;
G, this status information of equipment of getting and local this status information of equipment of preserving are compared, produce corresponding different warning information according to the equipment state situation of change, and the status information of equipment that this is got is kept at this locality, return execution in step B then.
Wherein, step D is described if do not receive the state information of this equipment in the network management system, further comprises:
D1, judge that this equipment do not get the number of times of status information of equipment continuously and whether surpass default threshold value, if then the facility information that this is got is made as device losses; Otherwise, return step D1.
Provided by the present invention by using the polled async mode to produce the method for equipment alarm information, have the following advantages:
Generally adopt network equipment active report and alarm information to realize monitoring and the management of network management system in the existing technology to the network equipment to the mode of NM server.The present invention then adopts the polled async technology, obtain the various state informations of equipment by the network management system active to the mode that the network equipment issues the poll instruction, judge by the mode whether status information of equipment of relatively this acquisition and the local before status information of equipment of preserving change whether monitored device exists alarm, can effectively solve existing alarm by this method and report insoluble difficult point in the mechanism.
Description of drawings
Fig. 1 realizes the method flow diagram of alarm function for the present invention by the network equipment being sent the polled async instruction mode.
Embodiment
Below in conjunction with accompanying drawing and embodiments of the invention method of the present invention is described in further detail.
Fig. 1 realizes the method flow diagram of alarm function for the present invention by the network equipment being sent the polled async instruction mode, and as shown in Figure 1, this method comprises the steps:
Step 101, will need monitored device to add in the polled async formation according to different rank, and configure polling time interval, opening needs the snoop queue service that starts.
Step 102, network management system are by Simple Network Management Protocol (SNMP), the instruction of the monitored device in the respective queue being sent the taking equipment relevant information.
Step 103, the regulation response time in, receive all return informations, execution in step 104.
Here, the response time of described regulation, promptly the polling interval can be set according to the network configuration of reality.As, 2 seconds~30 seconds.
Step 104, judge whether to receive return information, if do not receive the state information of this equipment in the network management system, then execution in step 105; Otherwise if receive the state information of this equipment in the network management system, then execution in step 106.
Step 105, this facility information of getting is made as this device losses.
Step 106, the local state information of whether preserving this equipment of judgement, if do not have, then execution in step 107; Otherwise, execution in step 108.
Step 107, this status information of equipment of getting is preserved, and finished this time poll process.
Step 108, further relatively whether this status information of equipment of getting is consistent with the status information of equipment that preserve this locality, if consistent, then execution in step 109; Otherwise, execution in step 110.
Step 109, finish this polling procedure to all devices.
Step 110, change to produce warning information, and the status information of equipment that this is got is kept at this locality, return execution in step 102 then according to equipment state.
As, No. 1 interface message of the state information of certain equipment of preserving before in the network management system is link up, and No. 1 interface message is link down in the state information of the equipment that will newly obtain, then will produce No. 1 interface connection lost alarms of this equipment in network management system, then the state information of the equipment that will newly obtain is replaced the facility information of preserving in the network management system.If certain equipment return information is not received in continuous 2 times or 3 times (concrete number of times user is configurable), in network management system, produce this device losses alarm.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.