The trapd.conf file, by default located in the BASEDIR/smarts/conf/trapd directory of all VMware Smart Assurance product installations, is a global configuration file used to configure most VMware Smart Assurance built-in trap receivers and most trap adapters (sm_trapd). Only the PORT parameter in this file is applicable to built-in trap receivers because the built-in trap receivers are configured to receive and parse traps, but not to forward traps. The other parameters in the file are applicable for configuring trap adapters to forward traps.
The built-in trap receiver for VoIP Availability Manager is not controlled by the trapd.conf file. The only user-configurable control for the built-in trap receiver is the
“TrapPort = 9001” parameter line in the voip.conf file.
Configuration directory for an SNMP Trap Adapter configured as a trap exploder shows the configuration directory and the trapd.conf file for the SNMP Trap Adapter configured as a trap exploder. (The configuration directory is in the Service Assurance Manager installation area.) A trapd.conf file in the local area, created using the sm_edit utility, takes precedence over the original file containing the installed defaults. A seedfile is required only if the trap exploder is to process SNMPv3 traps.
The following portions of the trapd.conf file are of interest to this discussion. Table 7 on page 87 presents detailed descriptions of the configuration parameters in the trapd.conf file.
# trapd.conf - Configuration file for SNMP Trap Adapter . . . # Following is a list of parameters with a brief description. # More information is available at the end of this file. # # PORT UDP port number the trap adapter listens to. # # WINDOW De-duplication window, in seconds. # # ASCII Controls formatting of non-printable characters. # # TAG Enables tagging of varbind values. # # ENABLE_FWD Enables trap forwarding. # # MATCH Determines whether traps are tested against all forwarding # criteria or up to the first criterion that matches. # # FORWARD Specifies matching criteria for traps and the forwarding # destinations for matched traps. ########## # # Set the parameters here. PORT: 9000 #WINDOW: 10 #ASCII: FALSE #TAG: FALSE ENABLE_FWD: TRUE #MATCH: all #QUEUE_LIMIT_MEGS: 0 #QUEUE_LIMIT_SECONDS: 0 . . . # Traps required by InCharge IP Availability Manager (AM) # # Generic: coldStart, warmStart, LinkUp, LinkDown #FORWARD: * .* <0-3> * host:port . . . # Traps required by InCharge IP Performance Manager (PM) # # Cisco: EnvMon Voltage, Temperature, Fan, RedundantSupply #FORWARD: * .1.3.6.1.4.1.9.9.13.3 6 <2-5> host:port . . .