CacheEntry Event

Shows engines and users in the internal cache.

Syntax

ANSI (Cross Platform)
virtual int FireCacheEntry(SNMPTrapMgrCacheEntryEventParams *e);
typedef struct {
const char *EngineId; int lenEngineId;
int EngineBoots;
int EngineTime;
const char *User;
const char *AuthenticationProtocol;
const char *AuthenticationPassword;
const char *EncryptionAlgorithm;
const char *EncryptionPassword; int reserved; } SNMPTrapMgrCacheEntryEventParams; Unicode (Windows) virtual INT FireCacheEntry(SNMPTrapMgrCacheEntryEventParams *e);
typedef struct {
LPCSTR EngineId; INT lenEngineId;
INT EngineBoots;
INT EngineTime;
LPCWSTR User;
LPCWSTR AuthenticationProtocol;
LPCWSTR AuthenticationPassword;
LPCWSTR EncryptionAlgorithm;
LPCWSTR EncryptionPassword; INT reserved; } SNMPTrapMgrCacheEntryEventParams;
- (void)onCacheEntry:(NSData*)engineId :(int)engineBoots :(int)engineTime :(NSString*)user :(NSString*)authenticationProtocol :(NSString*)authenticationPassword :(NSString*)encryptionAlgorithm :(NSString*)encryptionPassword;
#define EID_SNMPTRAPMGR_CACHEENTRY 2

virtual INT IPWORKSSNMP_CALL FireCacheEntry(LPSTR &lpEngineId, INT &lenEngineId, INT &iEngineBoots, INT &iEngineTime, LPSTR &lpszUser, LPSTR &lpszAuthenticationProtocol, LPSTR &lpszAuthenticationPassword, LPSTR &lpszEncryptionAlgorithm, LPSTR &lpszEncryptionPassword);

Remarks

CacheEntry events are triggered by a call to ShowCache. One event is fired for each user and engine. If there are no users for a particular engine, a single event is fired with the engine information, but empty values for user information.

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