cterasdk.core.syslog module#

class cterasdk.core.syslog.Syslog(core)#

Bases: BaseCommand

Portal Syslog Management APIs

disable()#
enable(server, port=514, protocol='UDP', min_severity='info', ca_cert=None)#

Enable Syslog

Parameters:
  • server (str) – Syslog server address

  • port (int,optional) – Syslog server port

  • protocol (cterasdk.core.enum.IPProtocol,optional) – Syslog server IP protocol

  • min_severity (cterasdk.core.enum.Severity,optional) – Minimum Log Severity

  • ca_cert (str,optional) – Path to the PEM-encoded CA certificate.

get_configuration()#

Retrieve the syslog server configuration

import_ca(certificate)#

Import the Syslog Server CA certificate

Parameters:

certificate (str) – Path to the PEM-encoded CA certificate.

import_client_certificate(private_key, certificate)#

Import the Syslog Server CA certificate

Parameters:
  • private_key (str) – Path to the PEM-encoded private key.

  • certificate (str) – Path to the PEM-encoded client certificate.

is_enabled()#

Check if forwarding log messages over syslog is enabled

modify(server=None, port=None, protocol=None, min_severity=None)#

Modify Syslog log forwarding configuration

Parameters: