noc.core.script.snmp.beef

Module Contents

class noc.core.script.snmp.beef.BeefSNMP(script)

Bases: noc.core.script.snmp.base.SNMP

name = beef_snmp
MAX_REQUEST_SIZE = 65535
get_socket(self)
close(self)
snmp_server(self)

SNMP server coroutine :return:

snmp_get_response(self, pdu)

Process SNMP GET request :param pdu: Parsed request PDU :return: error_status, error_index, varbinds

snmp_getnext_response(self, pdu)

Process SNMP GETNEXT request :param pdu: Parsed request PDU :return: error_status, error_index, varbinds

snmp_getbulk_response(self, pdu)

Process SNMP GETBULK request :param pdu: Parsed request PDU :return: error_status, error_index, varbinds

class noc.core.script.snmp.beef.BeefServerIOStream(socket, script, *args, **kwargs)

Bases: tornado.iostream.IOStream

connect(self, *args, **kwargs)

Always connected :param args: :param kwargs: :return:

close(self)
class noc.core.script.snmp.beef.BeefClientIOStream

Bases: tornado.iostream.IOStream

get_timeout(self)
settimeout(self, timeout)
sendto(self, pdu, address)
recvfrom(self, buffsize)