SNMP

The RADIUS server's agent runs SNMP V2c.

The server uses the standard MIBs as described in RFC  2619 (RADIUS Authentication Server MIB) and RFC  2621 (RADIUS Accounting Server MIB).   These are the trees for the authentication and accounting MIBs.

In addition to these mibs it also provides standard access to sysDescr, sysObjectId, sysUpTime, sysContact, sysName, sysLocation, and sysServices.  The sysContact, sysName and sysLocation may be set through the SNMP Set command.  These parameters may also be set using the RADIUSServer.setSNMPParameters() method.

Community names, SNMP port, and trap manager address are set through the RADIUSServer.startSNMP(...) method.

On start up the authentication and accounting servers each send cold start traps.   The only other built in trap catches thread exceptions and sends them to the trap manager.  Programmers may send their own traps by using the sendTrap() methods in the various implementations they provide as well as using the RADIUSServer.sendSNMPTrap().

Traps may be completely disabled by setting the trapCommunity parameter to null in the RADIUSServer.startSNMP(...) method.

SNMP may be completely disabled by using the RADIUSServer.startSNMP() with no arguments.  SNMP statistics will continue to be kept but the SNMP agent will not be active, will not response to requests, and will not send traps.

One of the RADIUSServer.startSNMP() methods must be called before configuring the server.  In other words SNMP should be started just after the RADIUSServer() constructor.

When all the servers (authentication and accounting) have been shut down SNMP may then be shut down use the RADIUSServer.stopSNMP() method.

The RADIUSServer.getSNMPStats().toString() returns a string version of the SNMP counts.