#
# All lines beginning with # as the first character are comments
# The format of this trap_maps file should be
# 
# enterprise oid
# {
#    GENERIC-TRAP gen_trap
#    SPECIFIC-TRAP spec_trap   OPTIONAL
#    NOTIFICATION  notf
#    ATTRIBUTE-MAP attribute_mapping;   OPTIONAL
#    FDN-MAP fdn_mapping;;
# }
#
# where
#   oid is the oid of the enterprise in dot notation
#   gen_trap is an integer in the range of 0 to 6 inclusive.
#   spec_trap is any integer value
#   notf is any defined notification in the platform; 
#        a keyword DISCARD can be used to discard this trap
#   attribute_mapping is of the form
#     attribute=value; 
#     where
#      attribute is any valid attribute type for the corresponding notification
#      value is either a varbindvalue or ASN.1 string format constant; 
#             a keyword $ALLVARS can be used to get the enterprise, 
#            specific-trap, and the list of all the variable bindings
#  fdn_mapping is of the form
#    /attribute=value/attribute=value ;;
#    for specifying fully distinguised name; 
#    attribute and value have the same meaning as stated above
#
#   or
#
#    attribute={object-class 0 | varbindvalue}/attribute={object-class 0 
#                | varbindvalue} ;;
#       this template would be appended to the Fully DN of the proxy agent
#
#  or
#
#    ;; 
#     for no FDN mapping
#
# Note: key-words are case insensitive
# White spaces could be any number of spaces and tabs
#
# The incoming trap's enterprise will be matched with the first possible 
# enterprise block. So for example,
#
#
#  enterprise 1.3.6.1.4.1
#  {
#    .....
#    .....
#    .....
#  }
#
# will match incoming traps with enterprises of 1.3.6.1.4.1.42, 1.3.6.1.4.1.43
#
# If custom mapping needs to be done then those enterprise blocks should be
# placed before the generic enterprise blocks. 
#
#

enterprise 1.3.6.1.4.1
{
# coldStart
    GENERIC-TRAP 0
    NOTIFICATION coldStartTrap
    ATTRIBUTE-MAP    
       probableCause=localValue : 100;
       perceivedSeverity=critical;
       additionalText=$ALLVARS;
    FDN-MAP ;;

#warmStart
    GENERIC-TRAP 1
    NOTIFICATION warmStartTrap
    ATTRIBUTE-MAP    
       probableCause=localValue : 200;
       perceivedSeverity=major;
       additionalText=$ALLVARS;
    FDN-MAP ;;

#linkDown
    GENERIC-TRAP 2
    NOTIFICATION linkDownTrap
    ATTRIBUTE-MAP    
       probableCause=varbindvalue1;
       perceivedSeverity=major;
       additionalText=$ALLVARS;
    FDN-MAP ;;

#linkUp
# For the linkUp trap to clear the linkDown trap automatically,
# make the NOTIFICATION type same for both linkDown and linkUp traps.
# For example if the NOTIFICATION in the following entry is linkDownTrap
# it would clear the linkDown trap for the same probableCause value
# generated from the same device.
    GENERIC-TRAP 3
    NOTIFICATION linkUpTrap
    ATTRIBUTE-MAP    
       probableCause=varbindvalue1;
       perceivedSeverity=cleared;
       additionalText=$ALLVARS;
    FDN-MAP ;;

#authenticationFailure
    GENERIC-TRAP 4
    NOTIFICATION authenticationFailureTrap
    ATTRIBUTE-MAP    
       probableCause=localValue : 500;
       perceivedSeverity=warning;
       additionalText=$ALLVARS;
    FDN-MAP ;;

#egpNeighborLoss
    GENERIC-TRAP 5
    NOTIFICATION egpNeighborLossTrap
    ATTRIBUTE-MAP    
       probableCause=localValue : 600;
       perceivedSeverity=minor;
       additionalText=$ALLVARS;
    FDN-MAP ;;

#enterpriseSpecific
    GENERIC-TRAP 6
    NOTIFICATION enterpriseSpecificTrap
    ATTRIBUTE-MAP
# By default probableCause will have the specific-trap value
       perceivedSeverity=indeterminate;
       additionalText=$ALLVARS;
    FDN-MAP ;;

}
