Library Table of Contents Index Previous Next Comments

Defining or modifying a trap

Defining or modifying a trap  Top

To define or modify a trap, complete the following step.

Step

Action

1

Enter the following command:

snmp traps trapname.parm value 

trapname is the name of the user-defined trap you want to create or change.

parm is one of the following parameters. For more information about these parameters, see SNMP parameters.

  • var
  • trap-id
  • trigger
  • edge-1 and edge-2
  • edge-1-direction and edge-2-direction
  • interval
  • interval-offset
  • rate-interval
  • backoff-calculator
  • backoff-step
  • backoff-multiplier
  • priority
  • message

value is the value you assign to trapname.parm.

Example of trap definitions  Top

The following example sets a cifstotalops trap [1] that is evaluated every 10 seconds [2]. The value received from the previous evaluation and the current value are used to calculate the number of CIFS operations per hour [3]. If the number exceeds one million [4], the trap fires and continues to fire every hour [5] until the total number of CIFS operations drops below one million.


 
snmp traps cifstotalops.var snmp.1.3.6.1.4.1.789.1.7.3.1.1.1.0 [1]
snmp traps cifstotalops.trigger level-trigger
snmp traps cifstotalops.edge-1 1000000 [4]
snmp traps cifstotalops.interval 10 [2]
snmp traps cifstotalops.backoff-calculator step-backoff [5]
snmp traps cifstotalops.backoff-step 3590 [5]
snmp traps cifstotalops.rate-interval 3600 [3]
snmp traps cifstotalops.priority alert
snmp traps cifstotalops.message snmp.1.3.6.1.4.1.789.1.7.3.1.1.1.0

Library Table of Contents Index Previous Next Comments