Table of Contents

Search

  1. Preface
  2. Installation Overview
  3. Before You Begin
  4. Pre-Installation Tasks
  5. B2B Data Exchange Installation
  6. Post-Installation Tasks
  7. Installing the Partners Portal on Non-B2B Data Exchange Nodes
  8. Upgrading B2B Data Exchange
  9. Starting and Stopping B2B Data Exchange
  10. Optional B2B Data Exchange Configuration
  11. Migrating OEM Managed File Transfer Endpoint
  12. Installing and Configuring the B2B Data Exchange Accelerator for Data Archive
  13. Uninstallation

Installation and Configuration Guide

Installation and Configuration Guide

Adding an SNMP Appender to the log4j.xml File

Adding an SNMP Appender to the log4j.xml File

Add an SNMP appender to the
B2B Data Exchange
server or Operation Console copies of the log4j.xml file to customize the output destination for log messages.
  1. Back up the log4j.xml file that you want to edit from one of the following locations:
    • B2B Data Exchange
      server:
      <
      DX
      InstallationDir>/conf
    • Operation Console:
      <
      DX
      InstallationDir>/
      DataExchange
      /tomcat/shared/classes
  2. Open the file in a text editor and search for the following text:
    SNMP_TRAP is a sample appender
  3. To edit the sample appender with the actual values of your appender, remove the comment indicators from the SNMP_TRAP appender and edit the appender parameters and values based on your requirements.
    You can also add an appender below the sample appender instead of editing the sample appender.
  4. To set the formatting of the log messages, edit the layout element.
    The following example shows the layout element of the sample appender:
    <layout class="org.apache.log4j.PatternLayout">    <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] {%t} %m%n"/> </layout>
    For information about the layout pattern options, see the description on the Apache Website: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
  5. To activate the appender, search for the following text:
    <root>
  6. Add the appender name to the appender list.
    The following example shows the appender list after you add the appender name:
    <root>    <priority value="INFO"/>    <appender-ref ref="BROKER-LOG"/>    <appender-ref ref="CONSOLE"/>    <appender-ref ref="SNMP_TRAP"/> </root>
  7. Save the log4j.xml file.
After you add the SNMP appender, configure your SNMP manager to listen for the log messages.

0 COMMENTS

We’d like to hear from you!