RemoteEngineId Property

The Engine Id of the remote agent.

Syntax

ANSI (Cross Platform)
int GetRemoteEngineId(char* &lpRemoteEngineId, int &lenRemoteEngineId);
int SetRemoteEngineId(const char* lpRemoteEngineId, int lenRemoteEngineId); Unicode (Windows) INT GetRemoteEngineId(LPSTR &lpRemoteEngineId, INT &lenRemoteEngineId);
INT SetRemoteEngineId(LPCSTR lpRemoteEngineId, INT lenRemoteEngineId);
@property (nonatomic,readwrite,assign,getter=remoteEngineId,setter=setRemoteEngineId:) NSString* remoteEngineId;
- (NSString*)remoteEngineId;
- (void)setRemoteEngineId:(NSString*)newRemoteEngineId;

@property (nonatomic,readwrite,assign,getter=remoteEngineIdB,setter=setRemoteEngineIdB:) NSData* remoteEngineIdB; - (NSData*)remoteEngineIdB; - (void)setRemoteEngineIdB:(NSData*)newRemoteEngineId;
#define PID_SNMPMGR_REMOTEENGINEID 20

IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_SNMPMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_SNMPMgr_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property is only used for SNMPv3 packets (see SNMPVersion), and is reset every time RemoteHost or RemotePort changes.

RemoteEngineId is normally discovered through the Discover method. However, by manually supplying a value for the property, RemoteEngineId discovery step may be eliminated, thus avoiding the extra roundtrip to the agent (RemoteEngineBoots and RemoteEngineTime are also required for User authentication - please refer to the Discover method for more information).

Data Type

Binary String

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