473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

sending an SNMP trap in c#. how?

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

Aug 9 '06 #1
0 4031

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gionni | last post by:
Is it possible to send a snmp trap from vb6? Are there any free (or cheap) libreries? Specifically I have to send a trap to OpenView. Thanks and cheers, Gionni
1
by: Gionni | last post by:
Hello everyone, I have to send a snmp trap. I have a snmp manager (Openview) and I have started the Windows agent. Now I don't know what to do anymore. I believe I have to use the snmpapi.dll,...
4
by: Jeremy Sanders | last post by:
Hi - I'd like to write a program which basically does a few snmpgets. I haven't been able to find a python package which gives you a nice high-level and simple way of doing this (like PHP has)....
10
by: Bennett F. Dill | last post by:
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
7
by: Vittorio Pavesi | last post by:
Anyone know how to send an SNMP trap from a VB application ? Thanks Vittorio
4
by: basetta | last post by:
Hi, I have to create a vb6 program that it can receive snmp trap. I am been able to create one with a form and winsock control that receive data but I'd like to do a program without forms that it...
2
by: Sleurhutje | last post by:
Hi, I need to add SNMP functionality to an existing app. I need to be able to read specific real-time data from another system using SNMP traps. Anyone know a good sample or libs that can do...
1
by: idoha | last post by:
Hi All, I need to send SNMP traps of a very specific forma (version 2 snmp trap). The format is as following: 07/31/2007 16:31:47 2 172.21.49.66 172.21.49.66 1.3.6.1.4.1.6387.1.2.3.3.1.2.12 ...
1
by: Dirk Van de moortel | last post by:
{ OOPS, posted this to moderated group perl.cpan.discuss as well, so it can take a while to get through, if it gets through at all Otherwise sorry for duplicate posting } We need to set up a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.