467,074 Members | 867 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

SNMP Trap

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
Nov 15 '05 #1
  • viewed: 9722
Share:
10 Replies
>

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


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/

-

Nov 15 '05 #2
>

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


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/

-

Nov 15 '05 #3
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...
<la****@nsoftware.removeme.com> wrote in message
news:uZ*************@TK2MSFTNGP12.phx.gbl...


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


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/

-

Nov 15 '05 #4
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...
<la****@nsoftware.removeme.com> wrote in message
news:uZ*************@TK2MSFTNGP12.phx.gbl...


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


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/

-

Nov 15 '05 #5
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/de...nvironment.asp
Willy.

"Bennett F. Dill" <benat@spam_no.dillfamily.org> wrote in message
news:R0****************@fe3.columbus.rr.com...
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...
<la****@nsoftware.removeme.com> wrote in message
news:uZ*************@TK2MSFTNGP12.phx.gbl...
>
>
> 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


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/

-


Nov 15 '05 #6
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/de...nvironment.asp
Willy.

"Bennett F. Dill" <benat@spam_no.dillfamily.org> wrote in message
news:R0****************@fe3.columbus.rr.com...
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...
<la****@nsoftware.removeme.com> wrote in message
news:uZ*************@TK2MSFTNGP12.phx.gbl...
>
>
> 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


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/

-


Nov 15 '05 #7
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.
"Bennett F. Dill" <benat@spam_no.dillfamily.org> wrote in message
news:R0****************@fe3.columbus.rr.com...
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...

Nov 15 '05 #8
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.
"Bennett F. Dill" <benat@spam_no.dillfamily.org> wrote in message
news:R0****************@fe3.columbus.rr.com...
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...

Nov 15 '05 #9
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/de...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
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:eU****************@tk2msftngp13.phx.gbl...
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.
"Bennett F. Dill" <benat@spam_no.dillfamily.org> wrote in message
news:R0****************@fe3.columbus.rr.com...
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...


Nov 15 '05 #10
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/de...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
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:eU****************@tk2msftngp13.phx.gbl...
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.
"Bennett F. Dill" <benat@spam_no.dillfamily.org> wrote in message
news:R0****************@fe3.columbus.rr.com...
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...


Nov 15 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Gionni | last post: by
1 post views Thread by Gionni | last post: by
4 posts views Thread by Jeremy Sanders | last post: by
reply views Thread by Bennett F. Dill | last post: by
4 posts views Thread by basetta | last post: by
reply views Thread by Bill Schmidt | last post: by
2 posts views Thread by Sleurhutje | last post: by
1 post views Thread by idoha | last post: by
1 post views Thread by Dirk Van de moortel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.