Walks (based on GET NEXT).
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static int Walk(
VersionCode version,
IPEndPoint endpoint,
OctetString community,
ObjectIdentifier table,
IList<Variable> list,
int timeout,
WalkMode mode
)
Public Shared Function Walk (
version As VersionCode,
endpoint As IPEndPoint,
community As OctetString,
table As ObjectIdentifier,
list As IList(Of Variable),
timeout As Integer,
mode As WalkMode
) As Integer
Dim version As VersionCode
Dim endpoint As IPEndPoint
Dim community As OctetString
Dim table As ObjectIdentifier
Dim list As IList(Of Variable)
Dim timeout As Integer
Dim mode As WalkMode
Dim returnValue As Integer
returnValue = Messenger.Walk(version,
endpoint, community, table, list,
timeout, mode)
public:
static int Walk(
VersionCode version,
IPEndPoint^ endpoint,
OctetString^ community,
ObjectIdentifier^ table,
IList<Variable^>^ list,
int timeout,
WalkMode mode
)
static member Walk :
version : VersionCode *
endpoint : IPEndPoint *
community : OctetString *
table : ObjectIdentifier *
list : IList<Variable> *
timeout : int *
mode : WalkMode -> int
Parameters
- version VersionCode
- Protocol version.
- endpoint IPEndPoint
- Endpoint.
- community OctetString
- Community 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.
- mode WalkMode
- Walk mode.
Return Value
Int32
Returns row count if the OID is a table. Otherwise this value is meaningless.
RemarksThis method supports SNMP v1 and v2c.
See Also