net-snmp-utils (net-snmp for Windows) binary downloaded and installed in order to utilize snmptranslate.
yum install net-snmp-utils
Windows (The default components of the install package should be sufficient)
perl-CGI package installed in order to have access to the CGI::Carp module
Place the MIB that contains trap information and any dependency MIBs (e.g. CISCO-SMI.MIB) into the <TRAVERSE_HOME>/plugin/mibs directory
Open a command prompt and navigate to <TRAVERSE_HOME>/plugin/mibs
Run <TRAVERSE_HOME>/utils/trap2xml.pl with the -i and -o parameter, where -i is the input and -o is the output xml of the rule file. Basic trap rule generation only requires -i and -o, please see notes below for further adjustments.
<TRAVERSE_HOME>/utils/trap2xml.pl -i FILE.mib -o /tmp/50_rule_trap_file.xml
- By default, all generated rules within the file are 'accepted', assigned a 'critical' severity, show on the event console, and have an auto-clear of '900' seconds. Please see the -s (--state) parameter under the usage (trap2xml -h)