utils.snmp_client module

This module provides a client class for the SNMP listener

It automatically detects whether the listener is installed and if it is not, it installs it automatically.

class utils.snmp_client.SNMPClient(addr, port=8765)[source]

Bases: object

Class for accessing the SNMP traps stored in the appliance listener

  • addr – Address of the appliance
  • port – port to contact, 8765 by default

Get all traps that were caught.

Returns: List of dicts.


Install the listener to the appliance

Checks for presence of the listener on the appliance. If it is not present, it then
installs it.

This attribute is lazily evaluated and cached.