z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SNMP notification API functions

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

The SNMP manager API can also be used to send notifications. When sending a notification, you can build the PDU using either the snmpBuildV1TrapPDU() or snmpBuildV2TrapOrInformPDU() function, which is defined in the snmpntfy.h file. Use the following SNMP manager API functions to use the SNMP notification API. See SNMP manager API functions for descriptions of these functions.
  • snmpAddVarBind
  • snmpBuildSession
  • snmpCreateVarBinds
  • snmpFreePDU
  • snmpFreeVarBinds
  • snmpInitialize
  • snmpSendRequest
  • snmpSetLogFunction
  • snmpSetLogLevel
  • snmpSetRequestId
  • snmpTerminate
  • snmpTerminateSession

After each call to one of these functions, your SNMP manager should verify that a successful return code, SNMP_MGR_RC_OK, was returned. If an error occurred during the function call, an invalid return code is returned. In addition to the error code, your SNMP manager API log file contains information about the specific cause of the error. See Debugging the SNMP manager API for more information about how to use the debugging features.

By calling the following functions from your SNMP manager, you build the data structures necessary to send an SNMP notification to an SNMP agent or subagent.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014