Re: sending snmp traps from z/OS



It can be done but it does require a lot of research and you get to become real familiar with the SNMP RFC's. We've used the DPI to create a sub-agent, register it with the agent (SNMP), send SNMP traps (also using TRAPFWD) and handle GET requests from other platforms.

Don Poitras <poitras@xxxxxxxxx> 11/26/2008 11:29 AM >>>
In article <LISTSERV%200811251749450833.10AF@xxxxxxxxxxx> you wrote:
On Tue, 25 Nov 2008 09:23:10 -0500, Don Poitras
<poitras@xxxxxxxxx> wrote:

...
If you're willing to write some code, you can use DPI to issue the
traps. See:

http://publibz.boulder.ibm.com/cgi-
bin/bookmgr_OS390/BOOKS/ezap4002/5.0
...

I hadn't looked at DPI for several years so I had to refesh my
memory. I could have easily overlooked something, but as near
as I can tell, DPI is primarily for communication between agent and
subagent. A subagent can use DPI to generate a trap.

Isn't that what the OP was asking how to do? Yes, this requires
the standard MVS SNMP agent to be up and running.

However, (if I understand the term manager) it sounds like this
really should be a SNMP manager function. Sort of a manager to
manager process (which may be outside of official SNMP use.) I
see in a z/OS 1.9 manual that there is an SNMP Manager API
available in 1.9. I'm stuck on 1.8 so I can't check this out, but I
saw a "What's new" doc on the web that says:

z/OS Communications Server also provides an extension of the
SNMP Manager API, the SNMP Notification API, which
leverages the functionality of the SNMP Manager API to send
notifications to SNMP agents and/or SNMP Notification
Receivers. Available notifications include Informs and both
Version 1 and Version 2 Traps.

I think this API is really the way to go if you have 1.9 or later.

The OP wanted to send traps, not receive them.

I've never looked into "Informs", but I gather they are sort of
"guaranteed delivery" traps.
Pat O'Keefe

--
Don Poitras - SAS Development - SAS Institute Inc. - SAS Campus Drive
sasdtp@xxxxxxx (919) 531-5637 Cary, NC 27513

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

.



Relevant Pages

  • Re: sending snmp traps from z/OS
    ... If you're willing to write some code, you can use DPI to issue the ... see in a z/OS 1.9 manual that there is an SNMP Manager API ... notifications to SNMP agents and/or SNMP Notification ... Version 1 and Version 2 Traps. ...
    (bit.listserv.ibm-main)
  • Re: sending snmp traps from z/OS
    ... If you're willing to write some code, you can use DPI to issue the ... the standard MVS SNMP agent to be up and running. ... see in a z/OS 1.9 manual that there is an SNMP Manager API ... Version 1 and Version 2 Traps. ...
    (bit.listserv.ibm-main)
  • Re: sending snmp traps from z/OS
    ... this "sending" to an SNMP agent is about! ... see in a z/OS 1.9 manual that there is an SNMP Manager API ... notifications to SNMP agents and/or SNMP Notification ... Version 1 and Version 2 Traps. ...
    (bit.listserv.ibm-main)
  • Re: SNMPing
    ... eXc Software has a way to display SNMP traps (and can ... The end result is that you get your traps (from any snmp ... > alert notification in MOM 2005. ... > to compile them. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: sending snmp traps from z/OS
    ... This is the SNMP support for NetView that Chris is referring to. ... was, in fact, just for issuing SNMP queries and receiving traps. ...
    (bit.listserv.ibm-main)