Pike v8.1 release 6

Class Protocols.SNMP.protocol

Inheritance graph
_Stdio.UDP Stdio.UDP Protocols.SNMP.protocol Protocols.SNMP.agent
Description

SNMP protocol implementation for Pike, implementing RFC 1155 and RFC 1901.


Inherit snmp

inherit Stdio.UDP : snmp


Variable snmp_community

string Protocols.SNMP.protocol.snmp_community

Description

SNMP community string

should be set to the appropriate SNMP community before sending a request.

Note

Set to "public" by default.


Variable snmp_version

int Protocols.SNMP.protocol.snmp_version

Description

SNMP version

currently version 1 and 2 are supported.


Method create

Protocols.SNMP.protocol Protocols.SNMP.protocol(int|void rem_port, string|void rem_addr, int|void loc_port, string|void loc_addr)

Description

create a new SNMP protocol object

Parameter rem_port
Parameter rem_addr

remote address and UDP port (optional)

Parameter loc_port
Parameter loc_addr

local address and UDP port (optional)