all groups > c# > february 2004 >
You're in the

c#

group:

SNMP Trap


RE: SNMP Trap lancer NO[at]SPAM nsoftware.removeme.com
2/20/2004 1:05:58 PM
c#:
[quoted text, click to view]

To send traps,
look for a trap or agent component. IP*Works! Contains managed SNMPMgr and
SNMPAgent components, as well as complete manager and agent demo applications,
supporting SNMPv3 funtionality.

Regards,
Lance R.
/n software - IP*Works!
Internet Toolkit http://www.nsoftware.com/

-
SNMP Trap Bennett F. Dill
2/20/2004 8:28:58 PM
Hi I'd like help writing a c# console app that can send an SNMP trap. I've
seen some documents on writng an SNMP server, but I don't want to receive
traps, I only want to send them.

Thanks
Ben

Re: SNMP Trap Bennett F. Dill
2/20/2004 9:31:29 PM
I was hoping that I would be able to use system.management or
system.management.instrumentation...

I just need to find better docs or something. Seems like sending a trap
should be simple!

Perhaps I should find an SNMP RFC and just create a send myself...


[quoted text, click to view]

Re: SNMP Trap Bennett F. Dill
2/20/2004 11:04:00 PM
Thanks for the follow-up. The thing that is causing me problems here is
that in looking at this page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmi/html/msdn_wmi_snmp.asp?frame=true

It seems to say that WMI includes several built-in providers. An SNMP
provider being one of them, and then the page goes on to demonstrate how
SNMP has messages and one of the messages is a notify or a trap.

This lead me to believe that maybe, just maybe WMI did what I was looking
for.

Thanks again,
Ben


[quoted text, click to view]

Re: SNMP Trap Willy Denoyette [MVP]
2/20/2004 11:42:01 PM
Actually you can use the System.Management classes, all you need is an snmp
WMI provider, I guess only W2K3 has it installed per default. Check
following URL for details on set-up.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/setting_up_the_wmi_snmp_environment.asp


Willy.

[quoted text, click to view]

Re: SNMP Trap Willy Denoyette [MVP]
2/20/2004 11:49:57 PM
Correction, did not read your original posting, the WMI's snmp provider is a
snmp client only provider, so you can only receive snmp mib's.

Willy.
[quoted text, click to view]

AddThis Social Bookmark Button