הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Friday, March 8, 2013 10:51 AM
Hi,
I have to develop an application that has to fetch data from devices running SNMP using snmpget...
1. What method should i use to program this??
2. Should i rely on some third party API's or is it possible to develop an API by myself..
3. Does socket programming has anything to do with this..
I am using Visual Studio 2008 Express edition for development...
Kindly help me out..
Thanks,
Anantha Subramaniam
All replies (5)
Friday, March 8, 2013 12:18 PM ✅Answered
I don't recommend use 3rd party dll unless source code is provided. I usually recommend going to msdn and doing a search for code projects. There doesn't seem to be any VB code projects that does SNMP without source code. There are a few for C#. You can use the C# code and create a dll and then reference the compiled C# in you VBnet project. The code in th ewebsite below I believe does that.
http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=12993
Here is a good C# project
http://www.codeproject.com/Articles/12993/SNMP-library
jdweng
Friday, March 8, 2013 2:11 PM ✅Answered
Anantha,
Managed program languages like VB and C# are not meant for this kind of low level OS tasks.
Use for that unmanaged C++ or even C. You even can think about Intel Assembler if the task are done on a real low level of the Internet protocol.
http://en.wikipedia.org/wiki/Snmp
Success
Cor
Friday, March 8, 2013 3:11 PM ✅Answered
Take a look at this library
http://sharpsnmplib.codeplex.com/
I'd read the documentation carefully to see if this is what you need.
SNMP uses UDP.
What are you trying to accomplish?
"Those who use Application.DoEvents() have no idea what it does and those who know what it does never use it." JohnWein
Monday, March 11, 2013 4:32 AM
Hi dbasnett,
I need to develop a module that could be used as a simple snmp get module by taking ip, oid, community string and snmp version as inputs from user...
Regards,
N.Anantha Subramaniam
Monday, March 11, 2013 4:35 AM
Hi Cor,
As I know only VB, could you guide me which language to choose and how to write a simple snmp get module using that??
Regards,
N.Anantha Subramaniam