Enable debug in SNMP connector 2

Document ID : KB000103768
Last Modified Date : 29/06/2018
Show Technical Document Details
How do we turn on the Snmp4j logging for trap data in SOI connector for SNMP 2.0 which is built on the IFW framework?

1. Navigate to the SOI\resources folder on SNMP connector machine.

2. Open the log4j.xml file and add the following sections to the file (logger definitions section). 

<appender name="SNMP4J" class="org.apache.log4j.RollingFileAppender"> 
<param name="File" value="&logDir;/snmp4j.log"/> 
<param name="Append" value="true"/> 
<param name="MaxFileSize" value="20MB"/> 
<param name="MaxBackupIndex" value="10"/> 
<layout class="org.apache.log4j.PatternLayout"> 
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss,SSS} %p [%t] %c{2} - %m. %n"/> 

3) Restart CA SAM Integration Services on this SNMP Connector.

4) Then you will see a snmp4j.log file created under SOI\log directory.