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

Parameters:
  • addr – Address of the appliance
  • port – port to contact, 8765 by default
get_all()[source]

Get all traps that were caught.

Returns: List of dicts.

install()[source]

Install the listener to the appliance

setup[source]
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.