You might want to define traps in a configuration file. You load the file with the snmp traps load
command.
If you define and load traps this way, Data ONTAP automatically
backs up your SNMP configuration in Snapshot copies, making it easy
to transfer user-defined traps to other storage systems, and
simplifying recovery of SNMP configurations if there is a disaster.
Steps
- Create a traps configuration file on your storage system—for
example, /etc/mib/mytraps. The name and location of the file is at
your discretion.
- Enter the traps in the configuration file in the following
form:
trapname.parmvalue
The parameters are the same as those used with the snmp traps
command.
- Test each line of the file by entering the snmp traps
command at the command line or by specifying the trap with
FilerView. Make corrections as needed.
- Load the configuration file with the snmp traps load
command. For example:
snmp traps load /etc/mib/mytraps