Overview
Converged Application Server includes a runtime MBean, SipServletSnmpTrapRuntimeMBean,
that enables applications to easily generate SNMP traps. The Converged Application Server management information base (MIB) contains seven new object identifiers (OIDs) that are reserved for traps generated by an application. Each OID corresponds to a severity level that the application can assign to a trap, in order from the least severe to the most severe:
-
Info
-
Notice
-
Warning
-
Error
-
Critical
-
Alert
-
Emergency
To generate a trap, an application simply obtains an instance of the SipServletSnmpTrapRuntimeMBean
and then executes a method that corresponds to the desired trap severity level (sendInfoTrap()
, sendWarningTrap()
, sendErrorTrap()
, sendNoticeTrap()
, sendCriticalTrap()
, sendAlertTrap()
, and sendEmergencyTrap()
). Each method takes, as a single parameter, the String value of the trap message to generate.
For each SNMP trap generated in this manner, Converged Application Server also automatically transmits the Servlet name, application name, and Converged Application Server instance name associated with the calling Servlet.