IPWorks SNMP 2020 Python Edition

Questions / Feedback?

send_response Method

Sends a response packet to a Get, Get-Next, Get-Bulk, or Set request.

Syntax

def send_response(remote_host: str, remote_port: int, request_id: int, community: str, error_status: int, error_index: int) -> None: ...

Remarks

Use this method to send asynchronous response packets. A valid RequestId must be specified. on_send_response sends an unauthenticated response packet. Depending upon the value of the snmp_version property, the packet is constructed as an SNMPv1, SNMPv2c, or SNMPv3 (unauthenticated) response PDU. To send authenticated or encrypted SNMPv3 responses, use send_secure_response

The RemoteHost and RemotePort parameters are used to determine where the response is to be sent. The object identifiers, types, and values for the request are taken from the objects collection. The RequestId, Community, ErrorStatus, and ErrorIndex parameters are used to specify other properties of the response.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Python Edition - Version 20.0 [Build 8202]