Quick Guide - How to...  Locate

Enable/Disable SNMP Agent  Locate

SNMP Agent can be enabled or disabled in two ways:

The first way is to access the WSO2 SOA Enablement Server Console and select the SNMP Agent item in the left navigation frame. The first check box displays whether the agent is enabled or disabled. To enable the agent, mark the check box.

The other way is to edit the configuration file %WASP_HOME%/app/system/snmp.jar!/WASP-INF/package.xml manually. Find the SNMP module section:

<!-- SNMP module -→ 
<module name="SnmpModule" ... /> 

In the module element , set the ext:enabled element to true in order to enable SNMP Agent, or set it to false to disable the agent.

Add a Custom Event  Locate

A custom event can be added and specified in the %WASP_HOME%/conf/serverconf.xml file by inserting the following piece of code in the LogEventModule module after the existing default events:

<event type="MYE4100">
  <message>My event message with parameter. {0}.</message>
  <severity>INFO</severity>
</event>

This event will be mapped to the waspGenericEvent.

For detailed information, please refer to Configuring Custom Management Events.

Add a Trap Receiver  Locate

Trap receivers are defined in Trap Sinks for SNMPv1 and v2 and SNMPv3 separately.

Select SNMP Agent/SNMPv1 and v2/Trap Sink or SNMP Agent/SNMPv3/Trap Sink respectively. The table displays existing trap receivers and their properties.

For detailed description of trap sink properties, see Add/Edit SNMPv1 and v2 Trap Sink or Add/Edit SNMPv3 Trap Sink.