Manager.GetTable(..) fails in V3.1
lextudio-support opened this issue · 3 comments
Hi !
I am just writing a new app, based on this library. To read a table, I copied
over my old code [from 1.5] and changed the signature to this:
Manger m = new Manager();
m.GetTable("ip", "community", new ObjectIdentifier(".1.3.6.1.2.1.10.7.2"));
Although my old code using GetTable - connecting the same device with the same
data - succeeds,
#snmp 3.1 fails with the following error:
System.ArgumentNullException: Value cannot be null.
Parameter name: registry
at Lextm.SharpSnmpLib.Messaging.Messenger.GetTable
(VersionCode version, IPEndPoint endpoint, OctetString community, ObjectIdentifier table, Int32 timeout, Int32 maxRepetitions, IObjectRegistry registry)
at Lextm.SharpSnmpLib.Messaging.Manager.GetTable
(IPEndPoint endpoint, String community, ObjectIdentifier table)
at Lextm.SharpSnmpLib.Messaging.Manager.GetTable
(IPAddress address, String community, ObjectIdentifier table)
at Lextm.SharpSnmpLib.Messaging.Manager.GetTable
(String address, String community, ObjectIdentifier table)
at NCM.Kernel.Poller.ReadTable(Poller poller, AccessParameters ap,
Variable[,]& table)
Any help would be great!
BTW, I am NOT setting "Manager.Objects" [I see no need and find nothing, what
explains, to what this can/must be used ...].
Any help would be really great!
Thanks any, way.
--mabra
Original Reported Date: 2010-01-21T02:32:26.797-08:00
Original CodePlex Discussion Thread ID: 81548
Copied from CodePlex without authors:
Hi mabra,
I think you hit an issue in 3.1. I did change a lot in 3.1 compared to 1.5
release. Therefore, Manager/Messenger.GetTable needs some update in 4.0
release.
You may create an object that implements IObjectRegistry and pass it in to
work around this issue.
Regards,
Lex
Original Posted Date: 2010-01-21T17:52:29.763-08:00
Copied from CodePlex without authors:
This discussion has been copied to a work item. Click
here to
go to the work item and continue the discussion.
Original Posted Date: 2010-01-21T17:53:33.967-08:00
Marked as Answer Date: 2013-10-06T21:24:10.65-07:00