Skip to content
Nuno Aguiar edited this page Dec 29, 2017 · 2 revisions

SNMPD.addOID

SNMPD.addOID(aOID, aFunction)

Adds a callback when the specified OID (should end in .0) gets look up. The call back aFunction receives the aOID as a parameter. See more: http://www.jitendrazaa.com/blog/java/snmp/creating-snmp-agent-server-in-java-using-snmp4j/


SNMPd.SNMPd

SNMPd.SNMPd(anAddress, aSysDesc) : SNMPd

Prepares a SNMP server listening on the given anAddress (e.g. udp:1.2.3.4/161). Optionally you can also provide a system description (aSysDesc).


SNMPd.setOID

SNMPd.setOID(aOID, aFunction)

Changes the callback for a specific OID (should end in .0). The call back aFunction receives the aOID as a parameter.


SNMPd.start

SNMPd.start(aCommunity)

Starts the SNMP server given a community name. If no community is provided, public is assumed.


SNMPd.stop

SNMPd.stop()

Stops the SNMP server.

Clone this wiki locally