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:
- Open the ospf.conf or bgp.conf file for editing using sm_edit.
- 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
}
- Save and close the configuration file.
- Repeat the preceding steps for the other configuration file.
- 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