SelectNode Method

Used to select individual nodes in the loaded MIB module(s).

Syntax

ANSI (Cross Platform)
int SelectNode(const char* lpszSelector);

Unicode (Windows)
INT SelectNode(LPCWSTR lpszSelector);
- (void)selectNode:(NSString*)selector;
#define MID_MIBBROWSER_SELECTNODE 8

IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_MibBrowser_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

SelectNode is used for selecting individual nodes and should be called before querying node information.

The Selector parameter can be a label such as "internet", an OID such as "1.3.6.4", a combination of the two: "iso.3.dod.internet", or a label in a particular module such as "RFC1213-MIB!interfaces".

Either '.' or ':' can be used to separate SubIds. If a SubId starts with "0x" or follows the ":" separator then its hexadecimal value is used. For instance, "0x1.0x3.0x6.0x1A" is the same as "1:3:6:1A".

All properties and methods of the class will operate on the selected node. For example, calling ListSuccessors will only list the successors of the selected node.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 C++ Edition - Version 20.0 [Build 8202]