The following table lists parameters that you use to create traps.
The sections following the table describe individual parameters. See also Example of trap definitions.
The var parameter associates a user-defined trap name (specified by the trapname variable in the snmp traps command or Trap Name in FilerView) with a specific MIB object. The MIB object is specified in the value field of the snmp traps command. It must be of the form snmp.oid, where oid is an Object Identifier (OID).
Note
The traps.dat file, located in the /etc/mib directory on your filer, can help you determine OIDs. This file maps MIB objects' short names in the Network Appliance MIB files to their numeric OIDs. For more information about a particular OID, see the MIB.
In FilerView, it is only necessary to enter the numerical OID, not the "snmp" prefix.
The trigger parameter specifies the type of triggers that you can set for a trap. If a trap is triggered, data about the event that caused the trigger is sent to the network management stations. You can specify the following values for the trigger parameter:
The edge-1 and edge-2 parameters of a trap specify the threshold values that are compared during trap evaluation to determine whether to fire a trap and send data.
The edge-1 parameter specifies the value for the edge in a single-edge-triggered trap or the first edge in a double-edge-triggered trap. The default value for the edge-1 parameter is MAXINT.
The edge-2 parameter specifies the value for the second edge in a double-edge-triggered trap. The default value for the edge-2 parameter is 0.
Note
The edge-2 parameter is not displayed in FilerView during trap creation unless the double-edge-trigger is selected in the trigger parameter.
The edge-1-direction and edge-2-direction parameters let you set or change the direction that is used to evaluate a trap. The edge-triggered traps only send data when the edge is crossed in either the up or down direction. The default values for the edge-1-direction and the edge-2-direction parameters are
Note
You enter the direction values on the same line as the edge value when you run the snmp traps command.
The edge-2-direction parameter is not displayed in FilerView during trap creation unless the double-edge-trigger is selected in the trigger parameter.
The interval parameter is the time, in seconds, between evaluations of a trap. A trap can only send data as often as it is evaluated, even if the edge values are exceeded sooner. The default value for the interval parameter is 3600.
Note
The interval value for the Network Appliance predefined traps is 60, or one minute.
The interval-offset parameter is the amount of time, in seconds, until the first trap evaluation. The default value for the interval-offset parameter is 0. You can set it to a nonzero value to prevent too many traps from being evaluated at once (at system startup, for example).
The rate-interval parameter specifies the time, in seconds, in which the change in value of a trap's variable (rate of change) is expressed. If the rate-interval value is set for a trap, the samples of data obtained at the interval points (set using the interval parameter) for a trap variable are used to calculate the rate of change. If the calculated value exceeds the value set for the edge-1 or edge-2 parameter, the trap is fired.
For example, to obtain the number of CIFS operations per hour, you specify a rate-interval of 3600. If rate-interval is set to 0, no sampling at interval points occurs and trap evaluation proceeds as with any other kind of trap. The default value for the rate-interval parameter is 0.
The backoff-calculator parameter enables you to change the trap evaluation interval for a trap after a trap fires. After a trap fires and sends data, you might not want it to be evaluated so often. For instance, you might want to know within a minute of when a file system is full, but only want to be notified every hour thereafter that it is still full. The backoff-calculator parameter can take the following values in the value variable field:
The default value for the backoff-calculator parameter is no-backoff.
The backoff-step parameter specifies the number of seconds by which the trap evaluation interval is increased. If a trap interval is 10 and its backoff-step is 3590, the trap is evaluated every 10 seconds until it fires the first time and sends data, and once an hour thereafter. The default value for the backoff-step parameter is 0.
Note
The Backoff Step parameter is not displayed in FilerView during trap creation unless "step" is selected in the Backoff Style field.
The backoff-multiplier parameter specifies the value by which to multiply a trap's evaluation interval each time it fires. If you set backoff-calculator to exponential-backoff and backoff-multiplier to 2, the interval doubles each time the trap fires. The default value for the backoff-multiplier parameter is 1.
Note
The Backoff Multiplier parameter is not displayed in FilerView during trap creation unless "exponential" is selected in the Backoff Style field.
The priority parameter sets the priority of a trap. If several traps are scheduled to fire at the same time, you can use the priority parameter to decide which trap is serviced first. The possible values for the priority parameter, from highest to lowest, are as follows:
The default value for the priority parameter is notification.
The message parameter specifies a message that goes out with a trap. The message can be a string of text or simply the SNMP OID, in the form snmp.oid. If you specify the OID as your message, Data ONTAP sends the information that was trapped concerning the OID. If you don't specify a message parameter for a trap, when the trap fires you see a string with the numerical OID value and its priority level.For example, the following string is sent to the network management stations for the trap cpuUpTime if the message parameter is not set:
cpuUpTime == 10562288.priority == notification
Note
If the message is a string that includes spaces, you must enclose the string in quotation marks (" ").
You can't set the message parameter in FilerView.
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00474
File: snmp10.htm
Last updated: 11/17/03 15:56:26