pex.proto.snmp.client

Module Contents

class pex.proto.snmp.client.SNMPClient(host: str, port: int, timeout: int = 15)

Bases: object

Subclass of pex.proto.snmp module.

This subclass of pex.proto.snmp module represents Python implementation of the SNMP client.

get(community: str, oid: str, version: int = 1, retries: int = 0) bytes

Get OID from SNMP server.

Parameters:
  • community (str) – SNMP server community string

  • oid (str) – SNMP server oid

  • version (int) – SNMP protocol version

  • retries (int) – number of retries

Return bytes:

SNMP server response