SNMP Help - Trying to do some simple SNMP Gets In VB.NET

  • Thread starter Thread starter elamey
  • Start date Start date
E

elamey

Guest
Problem: Im trying to write a VERY simple program that will get one statistic off of a device. Nothing more complex than that, im not storing the data or trying to control the device, building packets etc....just a read. If you could include an example OID, for placement only I would appreicate it.



Me: Noob+1/2 - Ive written several nice programs in VB.Net that among other things go out and scan network devices, using httpgets and httpfilegets so I wouldnt need a bootstrap tutorial, just a read fuction and what it takes to make that happen.



Comments: Theres a six pack and a pizza (or wheat grass juice and Tofu if you like :-) in it for anyone who could offer up a micro-tutorial on how to do this. Ive spent approx 80 hours the last month scouring the web for any information. There is precious little on the subject out there. Almost every forum thread ends up referencing this article

http://www.codeproject.com/KB/cs/SNMPDLL.aspx

It might be a good and valid article, but its difficult to follow and I dont think it translates to visual basic.



There is a thread in C# General, a moderator over there states "No native snmp support in .net 2.0 but you can use TCPClient." Would anyone know how to set that up and execute an snmp get like that? I have read SNMP can be used through APIs as well, but havent been able

to find any sample code. Or even a "roadmap" on how to set up the code.



I dont want to sound like im begging here....well ok im begging :-)

If someone could help me out I would appreciate it!



Final point, in few sample projects that are out there, much seems to be missing.

The code is posted but doesnt seem to work. If someone helps with a sample on this thread I would REALLY appreicate your adding the following types of things.

1. Files needed (dlls, mibs etc) and where to put them

2. References - If project references are needed please include that

3. Changes to OS (XP Pro Here) if needed.

4. Necessary to download custome dlls ?

Anything like that along with the source code and you would be my hero!



Thank you

Eric

Continue reading...
 
Back
Top