This method only works for a few scenarios. Might be replaced by new methods in the future. If it does not work for you, parse WALK result on your own.
Gets a table of variables.
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntax[ObsoleteAttribute("This method only works for a few scenarios. Might be replaced by new methods in the future. If it does not work for you, parse WALK result on your own.")]
public static Variable[,] GetTable(
VersionCode version,
IPEndPoint endpoint,
OctetString community,
ObjectIdentifier table,
int timeout,
int maxRepetitions
)
<ObsoleteAttribute("This method only works for a few scenarios. Might be replaced by new methods in the future. If it does not work for you, parse WALK result on your own.")>
Public Shared Function GetTable (
version As VersionCode,
endpoint As IPEndPoint,
community As OctetString,
table As ObjectIdentifier,
timeout As Integer,
maxRepetitions As Integer
) As Variable(,)
Dim version As VersionCode
Dim endpoint As IPEndPoint
Dim community As OctetString
Dim table As ObjectIdentifier
Dim timeout As Integer
Dim maxRepetitions As Integer
Dim returnValue As Variable(,)
returnValue = Messenger.GetTable(version,
endpoint, community, table, timeout,
maxRepetitions)
public:
[ObsoleteAttribute(L"This method only works for a few scenarios. Might be replaced by new methods in the future. If it does not work for you, parse WALK result on your own.")]
static array<Variable^,2>^ GetTable(
VersionCode version,
IPEndPoint^ endpoint,
OctetString^ community,
ObjectIdentifier^ table,
int timeout,
int maxRepetitions
)
[<ObsoleteAttribute("This method only works for a few scenarios. Might be replaced by new methods in the future. If it does not work for you, parse WALK result on your own.")>]
static member GetTable :
version : VersionCode *
endpoint : IPEndPoint *
community : OctetString *
table : ObjectIdentifier *
timeout : int *
maxRepetitions : int -> Variable[,]
Parameters
- version VersionCode
- Protocol version.
- endpoint IPEndPoint
- Endpoint.
- community OctetString
- Community name.
- table ObjectIdentifier
- Table OID.
- timeout Int32
- The time-out value, in milliseconds. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
- maxRepetitions Int32
- The max repetitions.
Return Value
Variable
RemarksThis method supports SNMP v2c and v3.
See Also