Walks (based on GET BULK).
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static int BulkWalk(
VersionCode version,
IPEndPoint endpoint,
OctetString community,
OctetString contextName,
ObjectIdentifier table,
IList<Variable> list,
int timeout,
int maxRepetitions,
WalkMode mode,
IPrivacyProvider? privacy,
ISnmpMessage? report
)
Public Shared Function BulkWalk (
version As VersionCode,
endpoint As IPEndPoint,
community As OctetString,
contextName As OctetString,
table As ObjectIdentifier,
list As IList(Of Variable),
timeout As Integer,
maxRepetitions As Integer,
mode As WalkMode,
privacy As IPrivacyProvider,
report As ISnmpMessage
) As Integer
Dim version As VersionCode
Dim endpoint As IPEndPoint
Dim community As OctetString
Dim contextName As OctetString
Dim table As ObjectIdentifier
Dim list As IList(Of Variable)
Dim timeout As Integer
Dim maxRepetitions As Integer
Dim mode As WalkMode
Dim privacy As IPrivacyProvider
Dim report As ISnmpMessage
Dim returnValue As Integer
returnValue = Messenger.BulkWalk(version,
endpoint, community, contextName,
table, list, timeout, maxRepetitions,
mode, privacy, report)
public:
static int BulkWalk(
VersionCode version,
IPEndPoint^ endpoint,
OctetString^ community,
OctetString^ contextName,
ObjectIdentifier^ table,
IList<Variable^>^ list,
int timeout,
int maxRepetitions,
WalkMode mode,
IPrivacyProvider^ privacy,
ISnmpMessage^ report
)
static member BulkWalk :
version : VersionCode *
endpoint : IPEndPoint *
community : OctetString *
contextName : OctetString *
table : ObjectIdentifier *
list : IList<Variable> *
timeout : int *
maxRepetitions : int *
mode : WalkMode *
privacy : IPrivacyProvider *
report : ISnmpMessage -> int
Parameters
- version VersionCode
- Protocol version.
- endpoint IPEndPoint
- Endpoint.
- community OctetString
- Community name (v2c) or user name (v3).
- contextName OctetString
- Context name.
- table ObjectIdentifier
- OID.
- list IListVariable
- A list to hold the results.
- 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.
- mode WalkMode
- Walk mode.
- privacy IPrivacyProvider
- The privacy provider.
- report ISnmpMessage
- The report.
Return Value
Int32Returns row count if the OID is a table. Otherwise this value is meaningless.
RemarksThis method supports SNMP v2c and v3.
See Also