-- *****************************************************************
-- MY-V1-TRAP.mib:  My Switch SNMPv1 Trap MIB
--
-- $Copyright$
-- 
-- *****************************************************************
--

MY-V1-TRAP DEFINITIONS ::= BEGIN

IMPORTS
    myMacNotiHisMacChangedMsg
        FROM MY-ADDRESS-MIB
    mySystemHardChangeDesc
        FROM MY-SYSTEM-MIB    
    stormViolationAlarmType
        FROM MY-TRAFFIC-CTRL-MIB
    mySystemHwPower,mySystemHwFan                
		  FROM MY-SYSTEM-MIB
    lineDetectStatus,lineDetectPosition
        FROM MY-INTERFACE-MIB
    myModules, switch
        FROM MY-SMI;

 --
 -- snmpv1-trap definitions 
 --
          
 sysHardChangeDetected TRAP-TYPE
   	ENTERPRISE switch
   	VARIABLES  { mySystemHardChangeDesc }
   	DESCRIPTION
         "System hardware has changed include number of devices or number of modules 
          or the place or type of the module is change."
     ::= 1

 portSecurityViolate TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { ifIndex }
     DESCRIPTION
         "the port security violate trap indicates that port security rule 
          is violated when port security of this port is opened."
     ::= 2
     
 stormViolationAlarm TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { ifIndex,stormViolationAlarmType}
     DESCRIPTION
         "while the storm threshold has been set, if more broadcast 
         is send to the port, then this trap will be sent."
     ::= 3

 macNotification TRAP-TYPE
   	ENTERPRISE switch
   	VARIABLES  { myMacNotiHisMacChangedMsg }
   	DESCRIPTION
          "This notification is generated when there is enough MAC
           address information to fully occupy a maximum size SNMP trap
           message. This notification is also generated when there
           is at least one MAC address changed or removed and the amount
           of time elapsed from the previous notification is greater
           than the maximum wait time denoted by myMacNotificationInterval object. 
   
           If there are more MAC addresses information than can fit into
           one myMacNotiHisMacChangedMsg object, then multiple notifications
           will be generated."
     ::= 4
     
 powerStateChange TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { mySystemHwPower}
     DESCRIPTION
         "while the state of power changed, then this trap will be sent."
     ::= 5
     
 fanStateChange TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { mySystemHwFan}
     DESCRIPTION
         "while the state of fan changed, then this trap will be sent."
     ::= 6

pimNeighborLoss TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  {ifIndex }
     DESCRIPTION
        "A pimNeighborLoss trap signifies the loss of an adjacency
         with a neighbor.  This trap should be generated when the
         neighbor timer expires, and the router has no other
         neighbors on the same interface with a lower IP address than
         itself."
    ::= 7
    
  igmpVersionConflicted TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  {myIgmpInterfaceIfIndex,
                 myIgmpInterfaceVersion,
                 myIgmpInterfaceHostVersion }
     DESCRIPTION
        "A igmpVersionErr trap signifies version is 
         different in the interface with host.This trap 
         should be generated when interface run  version 
         IGMPV1 and reported by host which run version IGMPV2.
         also when interface run version IGMPV2 and reported 
         by host which run version IGMPV1."        
    ::= 8
    
  dvmrpRouteInformation TRAP-TYPE
     ENTERPRISE switch     
     DESCRIPTION
        "A dvmrpRouteInformation trap signifies the
        Number of routes is more than The limit of 
        myDvmrpRoutehogNotification in one minute,
        then the trap should be generated."
    ::= 9
 
 entityNotification TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { myEntityStateChgDesc}
     DESCRIPTION
         "while the state of entity changed or some failure happened, this trap will be sent."
     ::= 10
     
 clusterMemberStateChange TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  {scMemberOperStatus}
     DESCRIPTION
         "while the state of member switch changed, then this trap will be sent.
          either state of member switch change from active to inactive or from
          inactive to active."
     ::= 11
                                                              
 temperatureWarning TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { myTemperatureWarningDesc }
     DESCRIPTION
         "while the temperature of one of modules reach warning temperature, then this trap will be sent."
     ::= 12
                                                              
 lineDetect TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { ifIndex, lineDetectStatus,lineDetectPosition }
     DESCRIPTION
         "³ֶ·߶·⣬´Ӷ·
          ·״̬лָʱ֪ͨ."
     ::= 13     

  smpFrameRelay TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  {mySMPSwitchIP,mySMPSwitchInterfaceID,mySMPSwitchInterfaceVLANID,
      			  mySMPFrameContentLength,mySMPFrameContent}
      DESCRIPTION
              "TrapϢݣյָĵĽIP,
              ձĵĶ˿,ĵĳԼϢ"
      ::= 14


 smpArpAttack TRAP-TYPE
     ENTERPRISE switch
     VARIABLES  { mySMPArpAttackSubnetIP, mySMPArpAttackSubnetIPNum, mySMPArpAttackInterfaceSlot,
               mySMPArpAttackInterfacePort, mySMPArpAttackInterfaceVlanID, mySMPArpAttackFrameContent,
               mySMPArpAttackStatus, mySMPArpAttackCriticalStatus, mySMPArpAttackMac, 
               mySMPArpAttackInterfaceIndex }
     DESCRIPTION
         "⵽ARPʱSMP;."
     ::= 15     
END
