Author | Forum: PowerSNMP for .NET Topic: GetTable returns a type as a value in Dart.PowerSNMP.Variable |
mithunbabu From: Atlanta, GA USA Posts: 6 Member Since: 07/19/11 |
posted July 19, 2011 4:08 PM Hi, I am using POwerSNMP for .NET version 1.2.1. I know it is old and not updated. But I'm trying to see if it possible to fix this without going through the whole cost of upgradation. In code I'm calling the method Dart.PowerSNMP.Manager.GetTable(XYZ...) and it returns a collection of Variable[,]. Now the issue is one of the variable eg. - Varaibles[1, 21].Value has the value "{Dart.PowerSNMP.SimpleType.Id}". And if I try a Varaibles[1, 21].Value.ToString() it throws an exception - "dart.powersnmp.decodingexception" and exception.Message - Invalid OID value encoding. But the same SNMP OID values look proper when I try querying through other 3rd party tools. OID- that I'm looking at - 1.3.6.1.2.1.2.2.1.2.2 Any help appreciated. Thanks |
mithunbabu From: Atlanta, GA USA Posts: 6 Member Since: 07/19/11 |
posted July 19, 2011 4:59 PM Guys, I just downloaded the latest version of PowerSNMP and tried it with the Sample application, and I get the same issue. This is the object info I picked from the latest version of your sample code- {Name: ifSpecific Oid: 1.3.6.1.2.1.2.2.1.22 Syntax: Id Access: ReadOnly Status: Mandatory Description: A reference to MIB definitions specific to the particular media being used to realize the interface. For example, if the interface is realized by an ethernet, then the value of this object refers to a document defining objects specific to ethernet. If this information is not present, its value should be set to the OBJECT IDENTIFIER { 0 0 } , which is a syntatically valid object identifier, and any conformant implementation of ASN.1 and BER must be able to generate and recognize this value. } All other Variables returned are of the type Dart.PowerSNMP.SimpleType.Integer, except the one with OID - 1.3.6.1.2.1.2.2.1.22 Any ides as to why? Thanks |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 19, 2011 5:31 PM Hi, What is the value of the variable? If you could, please perform a Get of this Oid using your old version. Wire the Trace event to create a log file of the request and response (see the help file for example code). Please be sure to just perform this single Get, to keep the log succinct. Please zip up the log and send it to support@dart.com, and we will take a look. Thanks, -ken ------ |
mithunbabu From: Atlanta, GA USA Posts: 6 Member Since: 07/19/11 |
posted July 19, 2011 6:15 PM The value of the variable is another variable, instead of a value. The object type of the value(which is another variable) is {Dart.PowerSNMP.SimpleType.Id}. I apologize but how do you "Wire the Trace event to create a log file of the request and response" Could you point me to a sample code please. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 20, 2011 8:52 AM Hi, Sorry, I just meant add a handler for the Manager.Trace event to your code. This event provides the bytes sent and received by the component. On the Trace event's help file page there is example code for writing these bytes to a file. After you perform the Get, the encoded request and response will be in the file. Please send in the file as a zipped attachment, so we can see what the variable's value is. Thanks, -ken ------ |
mithunbabu From: Atlanta, GA USA Posts: 6 Member Since: 07/19/11 |
posted July 20, 2011 11:00 AM I have sent details by mail to support@dart.com Your help is greatly appreciated. Thanks. |
Reply | PowerSNMP for .NET Topics | Forums |
This site is powered by
![]() |