The trap-notify.conf file modified for notification subscription (sheet 2 of 2) is an example of a modified trap-notify.conf file that directs the trap notification adapter to subscribe to IP notifications.

Note:

Use the sm_edit utility to modify the trap-notify.conf file.

# trap-notify.conf - Configuration for the trap notification adapter
#
# Copyright (C) 1999-2000 System Management ARTS (SMARTS)
# All Rights Reserved
#
# $Id: trap-notify.conf,v 1.8.98.1 2007/05/03 22:51:53 enerve Exp $
#
GNA_Notifier::trap-Notifier
{
    #
    # Name of the SAM Server from which to receive notifications.
    #
    serverName = "INCHARGE-SA"
    ConfiguredBy = TrapConfiguration::Trap-Configuration
    {
         #
         # Comma-separated list of destinations to which the traps are sent.  
         # Each entry in the list has three fields:
         # o address -- host-name or IP-address
         # o port    -- UDP port number
         # o version -- SNMP version; either "V1" or "V2C"
         # o community -- community string
         #
         #Destinations = { {"localhost", 162, "V1"},
         #                 {"other-host", 30162, "V2C"}
         #               }
         #DestinationsWithCommunity = { {"localhost", 162, "V1", "public1"},
         #                 {"other-host", 30162, "V2C", ""}
         #               }
         # Comma-separated list of SNMPv3 parameters apart from the ones above.  
         # Each entry in the list has three fields:
         # o address      -- destination host-name or IP-address
         # o port         -- UDP port number
         # o version      -- SNMP version; "V3"
         # o community    -- community string
         # o username     -- target's username (for SNMPv3)
         # o authProtocol -- user's Authentication Protocol (for SNMPv3)
         # o privProtocol -- user's Privacy Protocol (for SNMPv3)
         # o authPassword -- user's Authentication Password (for SNMPv3)
         # o privPassword -- user's Privacy Password (for SNMPv3)
         # o context      -- context (SNMPv3)
    #Sample for individual ports for SNMPv3
         #Uncomment the lines below to send SNMPv3 traps
         #DestinationsSNMPv3={{"localhost", 9000,"V3","public","noAuthNoPriv","", "", "", "", ""}}
         #DestinationsSNMPv3={{"localhost", 9010,"V3","public","md5DesUser","MD5","DES","authPass","privPass","" }}
         
         #Sample for multiple ports for SNMPv3
         #Uncomment the lines below to send SNMPv3 traps
         #DestinationsSNMPv3={{"localhost", 9010,"V3","public","md5DesUser","MD5","DES","authPass","privPass","" }, 
         #                    {"localhost", 9011,"V3","public","noAuthNoPriv","", "", "", "", "" }, 
         #                    {"localhost", 9012,"V3","public","AuthNoPriv","MD5", "", "authPass","","" }, 
         #                    {"localhost", 9013,"V3","public","noAuthPriv","", "DES", "","privPass","" }
         #}
    }
    ReadsInputFrom = GA_SubscriberFE::trap-Subscriber-FrontEnd
    {
         #
         # How long, in seconds, an event must remain active before the 
         # adapter sends a notification.
         #
         eventSmoothingInterval = 0
         #
         # Notification threshold; discard notifications with a certainty
         # below this value, which should be between 0.0 and 1.0.
         #
         minimumCertainty = 0.01
         #
         # Subscriptions.
         #
         SubscribesTo = 
         {
#              #
#              # Choice subscription.
#              #
#              GA_ChoiceSubscription::trap-All-Problems-Subscriptions
#              {
#                       className = ".*"
#                    instanceName = ".*"
#                       eventName = ".*"
#                        problems = TRUE
#                      aggregates = FALSE
#                        symptoms = FALSE
#              }
#             #
#             # NL subscription.
#             #
              # Uncommented this section allow notifier to receive 
              #      subscription together with the change below 
              #
              
              #GA_NLSubscription::trap-Default-NL-Subscriptions
              #{
              #         NLName = "Default"
              #}
              #
              # Profile subscription.
              #
              
              # Comment this section allow notifier to receive 
              #      subscription together with the change above
              #
              
              GA_ProfileSubscription::trap-Default-Profile-Subscriptions
              {
                   profileName = "default"
              }
         }
    }
    #
    # How long, in seconds, to ignore notifications from the server after it
    # connects.  Use this parameter to avoid receiving the initial flood of
    # notifications when the server (re)connects.
    #
    initialEventDelay = 0
}
#
# Local Variables:
# mode: Makefile
# comment-column: 32
# fill-column: 79
# End::
Figure 1. The trap-notify.conf file modified for notification subscription (sheet 2 of 2)