Starting OSPF/BGP/NPM trap receivers and enabling trace
search cancel

Starting OSPF/BGP/NPM trap receivers and enabling trace

book

Article ID: 303823

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

In Smarts, other domains like APM, BGP, OSPF can act as Trap receiver where forwarder rule is added in Trap Exploder which will then be received by respective domains based on port number configured respectively.

Environment

Smarts - 10.1.x

Resolution

Enabling Trap Receiver:

Trap receiver is activated by editing the appropriate <Smarts NPM_suite>.conf configuration file for each Smarts NPM suites like ospf.conf, bgp.conf.

The ospf.conf and bgp.conf files are installed by Smarts in the following directories:

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

Edit domain respective file to activate the corresponding OSPF/BGP trap receiver:

  1. Open the ospf.conf or bgp.conf file using sm_edit utility.
  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, also tracing can be enabled by setting TraceTraps = TRUE, see following for reference: 
    MSI_AdapterManager::BGP-Adapter-Manager {
        Config      = "bgp"
      TrapPort    = 162
      TraceTraps  = TRUE
  3. Save and close the configuration file.
  4. Repeat the preceding steps (1 to 3) for the other configuration file or for other NPM suites.
  5. Restart the Smarts NPM domain for changes to take effect.

The NPM trap listener will be automatically started using the port configured (as long as the port is available). The domain log will report if the trap listener has been started successfully.

Example:

In domain log, line "[March 10, 2025 at 10:49:15 PM MDT +404ms] t@1295947520 Trap-Driver-BGP-Adapter-Manager
ASL_MSG-*-ASLP-bgp/bgp-traps.asl: March 10, 2025 at 10:49:15 PM MDT bgp-traps.asl: Activated on port number 162"
will be printed.

Enabling Trap Tracer:

Trap Trace can be enabled from bgp.conf file as explained in above section or as below:

  • Using dmctl - 
    ./dmctl -s <NPM-DOMAIN> put MSI_AdapterManager::<NPM>-Adapter-Manager::TraceTraps TRUE
    

    Example:

    ./dmctl -s LAB-BGP put MSI_AdapterManager::BGP-Adapter-Manager::TraceTraps TRUE
  • Using GUI -
    • Launch Smarts DMAC console.
    • Attach respective NPM domain.
    • Navigate to MSI_AdapterManager, drill down to NPM-Adapter-Manager.
    • Look for Attribute "TraceTraps" in right side pane.
    • Set it to TRUE and click Apply. 

Additional Information

Further explanation and configuration are available at Configuring SNMP Trap Integration