(ip, port, timeout, retries, engine, auth_data, context_data)
return target
Register a device by IP and port, and return an opaque string that can be used later to execute PySNMP commands.
Register a device by IP and port, and return an opaque string that can be used later to execute PySNMP commands.
Register a device by IP and port and return an opaque string that can be used later to execute PySNMP commands .
def register_device_target(ip, port, timeout, retries, engine, auth_data, context_data):
    # type: (str, int, float, int, SnmpEngine, Any, ContextData) -> str
    """
    Register a device by IP and port, and return an opaque string that can be used later to execute PySNMP commands.
    """
    transport = UdpTransportTarget((ip, port), timeout=timeout, retries=retries)
    target, _ = lcd.configure(engine, auth_data, transport, context_data.contextName)
    return target
def register_device_target ( ip , port , timeout , retries , engine , auth_data , context_data ) : # type: (str, int, float, int, SnmpEngine, Any, ContextData) -> str transport = UdpTransportTarget ( ( ip , port ) , timeout = timeout , retries = retries ) target , _ = lcd . configure ( engine , auth_data , transport , context_data . contextName ) return target