How to properly configure the trap-notify.conf to subscribe to a SAM Default notification list to allow for proper starting and function of a SNMP Trap Notifier Adapter.
The trap-notify.conf is the configuration file for a SNMP Trap Notifier and can be found in the <SAMBASEDIR>/smarts/conf/notifier directory.
1.) Open and edit the trap-notify.conf using sm_edit from the <SAMBASEDIR>/smarts/bin directory:
sm_edit ../conf/notifier/trap-notify.conf
2.) At the top of the file you'll see the following:
serverName = "INCHARGE-SA"
This value in the configuration file can be overridden by using the --server option with the sm_notify command.
3.) When inspecting the trap-notify.conf, you'll see that by default, the configuration subscribes to GA_ProfileSubscription::trap-Default-Profile-Subscriptions. When configuring this file, you can only subscribe to one of the three possible options.
-GA_ChoiceSubscription::trap-All-Problems-Subscriptions
-GA_NLSubscription::trap-Default-NL-Subscriptions
-GA_ProfileSubscription::trap-Default-Profile-Subscriptions (subscribed to by default)
4.) If you would rather subscribe to the a SAM domain "Default" notification list for example, unsubscribe to the default subscription to GA_ProfileSubscription::trap-Default-Profile-Subscriptions and subscribe to the GA_NLSubscription::trap-Default-NL-Subscriptions:
trap-notify.conf BEFORE:
SubscribesTo =
{
# #
# # Choice subscription.
# #
# GA_ChoiceSubscription::trap-All-Problems-Subscriptions
# {
# className = ".*"
# instanceName = ".*"
# eventName = ".*"
# problems = TRUE
# aggregates = FALSE
# symptoms = FALSE
# }
# #
# # NL subscription.
# #
# GA_NLSubscription::trap-Default-NL-Subscriptions
# {
# NLName = "Default"
# }
#
# Profile subscription.
#
GA_ProfileSubscription::trap-Default-Profile-Subscriptions
{
profileName = "default"
}
}
}
trap-notify.conf AFTER:
SubscribesTo =
{
# #
# # Choice subscription.
# #
# GA_ChoiceSubscription::trap-All-Problems-Subscriptions
# {
# className = ".*"
# instanceName = ".*"
# eventName = ".*"
# problems = TRUE
# aggregates = FALSE
# symptoms = FALSE
# }
# #
# # NL subscription.
# #
GA_NLSubscription::trap-Default-NL-Subscriptions
{
NLName = "Default"
}
#
# Profile subscription.
#
# GA_ProfileSubscription::trap-Default-Profile-Subscriptions
# {
# profileName = "default"
# }
}
}
5.) Save and exit the file.
6.) After starting the SNMP Trap Notifier Adapter, when inspecting the log file, you should see the following print statement which confirms your subscription in the trap-notify.conf is working.
[October 28, 2014 10:05:18 AM EDT +701ms] t@3528881776 sm_notify
ASL_MSG-*-ASLP-notifier/notify.asl: InCharge Server INCHARGE-SA has connected.
7.) If you encountering any further configuration issues with the trap-notify.conf file, please refer to
https://support.emc.com/kb/165525