lextudio / sharpsnmplib

C# SNMP Library (#SNMP) - Open source SNMP implementation for C# and .NET
https://sharpsnmp.com
MIT License
357 stars 152 forks source link

How to show the result of snmpget on Web Form #553

Closed lextudio-support closed 1 week ago

lextudio-support commented 1 week ago

Dear whom it may concern

if I would like to show the result of snmpget on the web form,could you point me some directions where should I start ?

Traditionally,if I want to execute snmpget , I have to debug snmpget first.

Then,there is a "snmpget.exe" in C:\sharpsnmplib-47968\Samples\C#\snmpget\bin\Debug (my default diectory)

Following this,execute visual studio console(2010) and then change the diectory into

C:\]sharpsnmplib-47968\Samples\C#\snmpget\bin\Debug.

Finally,I made some commands such as "snmpget -v=3 -l=NOAUTHNOPRIV -a=MD5 -A=authentication -x=DES -

X=privacy -u=user localhost1.3.6.1.2.1.1.1.0"to see the result.

My problem is that if I click one button and then it can send the result of snmpget on the web form, how should I set

parameters,classes and references to reach this goal ? Could you give me some examples?

Thank you !

James Lai

Original Reported Date: 2010-07-07T19:50:25.797-07:00 Original CodePlex Discussion Thread ID: 218702

lextudio-support commented 1 week ago

Copied from CodePlex without authors:

Hi James,

snmpget.exe only shows how to utilize #SNMP API to make SNMP GET operation. So if you want to do SNMP operations in ASP.NET WebForms, you should directly use the API instead of calling snmpget.exe.

Regards,

Lex

Original Posted Date: 2010-07-14T02:15:07.433-07:00

lextudio-support commented 1 week ago

Marked as Answer Date: 2013-10-06T05:02:48.117-07:00