NetMaster can receive SNMP traps
search cancel

NetMaster can receive SNMP traps

book

Article ID: 29749

calendar_today

Updated On:

Products

NetMaster Network Automation SOLVE NetMaster Network Management for SNA NetMaster Network Management for TCP/IP NetMaster File Transfer Management

Issue/Introduction

Can NetMaster receive SNMP traps?

 

Resolution

NetMaster can be used to receive SNMP Traps. 

 

Here is how it can be implemented : 

1) $IPSASNT NCL procedure can be used for this purpose and is provided from hlq.CC11EXEC library.

 

The description of this proc is as follows: 

"This procedures is a sample for receiving SNMP traps and then performing some custom processes with those traps.

This particular example writes the text of the trap to the OCS window in which the procedure is running. 

 

 

2) The procedure can be started from anywhere (i.e : NMREADY) through the following command : 

 SUB BSYS START $IPSASNT 

 

The $IPSASNT has some optional parameters as follows : 

 $IPSASNT <PORT={number|162}> 

--- 

<DEBUG={YES|DISPLAY|NO}> 

-- 

NOTE: To terminate this procedure once it has been started you must use the FLUSH command or terminate the environment where it is 

running." 

 

It is a long running proc and is similar to a Server. 

 

By default, the procedure receives an SNMP trap and performs a simple action. It writes a message in the activity log and in OCS. 

It can be tailored for specific purposes. 

 

For complex action, I suggest raising an Event which can be trapped by an Event Detector accessible from /IPADMIN.E (Custom Type). 

The Event can be coded through the &EVENT NCL statement within the .PROCESS-TRAP subroutine. 

 

If changes are required to the PROC copy the procedure to your hlq.TESTEXEC dsn.