IPWorks SNMP 2020 Python Edition

Questions / Feedback?

on_cache_entry Event

Shows engines and users in the internal cache.

Syntax

class SNMPTrapMgrCacheEntryEventParams(object):
  @property
  def engine_id() -> bytes: ...
  @property
  def engine_boots() -> int: ...
  @property
  def engine_time() -> int: ...
  @property
  def user() -> str: ...
  @property
  def authentication_protocol() -> str: ...
  @property
  def authentication_password() -> str: ...
  @property
  def encryption_algorithm() -> str: ...
  @property
  def encryption_password() -> str: ...

# In class SNMPTrapMgr:
@property
def on_cache_entry() -> Callable[[SNMPTrapMgrCacheEntryEventParams], None]: ...
@on_cache_entry.setter
def on_cache_entry(event_hook: Callable[[SNMPTrapMgrCacheEntryEventParams], None]) -> None: ...

Remarks

on_cache_entry events are triggered by a call to show_cache. 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 Python Edition - Version 20.0 [Build 8202]