sending an SNMP trap in c#. how?

B

Bill Schmidt

I am attempting to send an SNMP trap using C#. however I have been
unable to find a way to do it. websearching has turned up a small
number of 3rd party tools that should be able to do this, however the
ones that are available for use without purchase are tend to be poorly
documented and I am unable to find a trap method. I have read that
this should be able to be done with WMI using a management object,
however once again all thats stated is that it can be done without an
example of how to do it.

I need to use a v1 trap. and have 3 oid's to be used. basically:

Misc trap oid:

integer variable: a defined integer which corresponds to a table in
order to determine what the description of the trap is

string variable: a detailed string of what the specific message is.

each item has an oid assigned to it.

I am assuming it would be something along the lines of

define the management object somehow
mo.some_method(ipaddress, oid, int_variable_oid, int_value,
string_variable_oid, string_variable)

However, I am unsure of how I would actually go about doing it.

Any help would be appreciated, Thank you.

-Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top