lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

Problem with RowCount from Messenger.Walk #386

Closed lextudio-support closed 4 hours ago

lextudio-support commented 4 hours ago

Hey there,

i am creating my own getTable function. Therefore i make a snmp walk within the subtree and create an two dimensional Array Variable[,] will the results.

To do so i need the row count of the walk.

When i call Messenger.Walk it normally returns the row count. That works for all elements that has a simple identifier like 7.1 and 6.1 where 7 and 6 stands for the row.

For example the IF Table. I get the correct rowcount of 48 for my switch.

When i now do the walk on items like in the Printer MIB which has an index value like 5.1.6 and 6.1.6 it always returning zero, no matter how many rows exists.

That is a problem as i dont know how to create table data now.

Anyone knows a workaround for this.

Original Reported Date: 2012-10-10T05:56:20.007-07:00 Original CodePlex Discussion Thread ID: 398817

lextudio-support commented 4 hours ago

Copied from CodePlex without authors:

The row count was used to help #SNMP's GetTable function. As the problem you observed, it is not easy to handle complex tables, and abandoned.

You will have to implement your own row counting. We have a plan to support complex tables after finishing the new MIB compiler.

Regards,

Lex

Original Posted Date: 2012-10-13T01:38:42.717-07:00

lextudio-support commented 4 hours ago

Marked as Answer Date: 2013-10-06T04:11:02.557-07:00