@classmethod
    def get_transport_target(cls, instance, timeout, retries):
        if "ip_address" not in instance:
            raise Exception("An IP address needs to be specified")
        ip_address = instance["ip_address"]
        port = int(instance.get("port", 161)) # Default SNMP port
        return cmdgen.UdpTransportTarget((ip_address, port), timeout=timeout, retries=retries)
Entry point to the script.
dataset/ETHPy150Open serverdensity/sd-agent/checks.d/snmp.py/SnmpCheck.get_transport_target--crossover with--dataset/ETHPy150Open googlegenomics/codelabs/Python/PlatinumGenomes-variant-transformation/gvcf-expand-mapper.py/main