Smarts NPM: How to start OSPF / BGP trap receivers
search cancel

Smarts NPM: How to start OSPF / BGP trap receivers

book

Article ID: 303823

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How to configure Smarts NPM to start a Trap Receiver for OSPF and BGP domains
How to start Smarts NPM OSPF / BGP trap receivers




The trap receiver is activated by editing the appropriate <Smarts NPM_suite>.conf configuration file for each Smarts NPM suite (ospf.conf, bgp.conf). The ospf.conf and bgp.conf files are installed by Smarts in the following directories:

  • <BASEDIR>/smarts/conf/bgp
  • <BASEDIR>/smarts/conf/ospf

Editing these files to activate the corresponding OSPF/BGP trap receivers is done as follows:

  1. Open the ospf.conf or bgp.conf file for editing using sm_edit.
  2. Set the TrapPort parameter to an appropriate available port. In the following bgp.conf file example, the TrapPort parameter has been set to 162.

    #
    # Copyright (C) 2004 System Management ARTS (SMARTS)
    # All Rights Reserved
    #
    # RCS $Id: bgp.conf,v 1.1.2.1 2004/08/19 18:48:00 sv1 Exp $
    #
    #
    # The purpose of this file is to set up local environment
    # for NPM for BGP.
    #

    MSI_AdapterManager::BGP-Adapter-Manager {
    Config = "bgp"
    TrapPort = 162
    TraceTraps = FALSE
    SyslogName = ""
    TraceSyslog = FALSE
    AdminDownFlag = FALSE
    }

     
  3. Save and close the configuration file.
  4. Repeat the preceding steps for the other configuration file.
  5. Restart the Smarts NPM domain. The NPM trap listener will be automatically started using the port you configured (as long as the port is available). The domain log will report if the trap listener has been started successfully as follows (see Note statement):

    02-Oct-2008 10:12:36 IST ospf-traps.asl: Activated on port number 787


Additional Information

Further configuration is required at the Smarts SAM OI level to send Smarts NPM-related traps to the NPM trap receiver. See the Smarts NPM configuration guide for details on how to do this.