Click here to Skip to main content
15,919,778 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Working on this code to find the value of the interface-down trap but can't seem to get it to work. Here code which provides numerous errors.

C#
public void getValue(){
   IPEndPoint ip = new IPEndPoint(IPAddress.Parse("192.163.77.11"), 161);
   OctetString oc = new OctetString("public");
   List a = new List { new Variable(new ObjectIdentifier("1.3.6.1.2.1.2.2.1.8")) };
   var result = Messenger.Get(VersionCode.V1, ip, oc, a, 60000);
}


Thank you so much in advance!
Posted
Updated 22-Jul-15 11:03am
v3
Comments
[no name] 22-Jul-15 16:09pm    
"can't seem to get it to work" but "here is my working code"?

Huh?

Why are you reposting this?
raharel 22-Jul-15 16:36pm    
apologies!! Been a long day. Code does not work, and I think it is due to the fact that the object identifier is invalid on my switch. Edited question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900