cterasdk.edge.snmp module#

class cterasdk.edge.snmp.SNMP(gateway)#

Bases: BaseCommand

Edge Filer SNMP Configuration APIs

disable()#

Disable SNMP

enable(port=161, community_str=None, username=None, auth_password=None, privacy_password=None)#

Enable SNMP

Parameters:
  • port (int,optional) – SNMP server port, defaults to 161

  • community_str (str,optional) – SNMPv2c community string

  • username (str,optional) – SNMPv3 username

  • auth_password (str,optional) – SNMPv3 authentication password

  • privacy_password (str,optional) – SNMPv3 privacy password

get_configuration()#
is_enabled()#

Check if SNMP is enabled

Returns:

True is SNMP is enabled, else False

Return type:

bool

modify(port=None, community_str=None, username=None, auth_password=None, privacy_password=None)#

Modify current SNMP configuration. Only configurations that are not None will be changed. SNMP must be enabled

Parameters:
  • port (int,optional) – SNMP server port, defaults to 161

  • community_str (str,optional) – SNMPv2c community string

  • username (str,optional) – SNMPv3 username

  • auth_password (str,optional) – SNMPv3 authentication password

  • privacy_password (str,optional) – SNMPv3 privacy password