|
|
Basic mapper configuration is performed automatically at installation time. Manual configuration may be required to carry out additional tasks.
The following lines are added to /etc/netmgt/snmpd.peers at installation time. These instruct SNMP to forward traps from the DMTF enterprise OID (412).
"dmi2snmpd.trapper" 1.3.6.1.4.1.412.1.2 "nopassword" "dmi2snmpd.commander" 1.3.6.1.4.1.412 "nopassword"In addition one line of the following format should be added to snmpd.peers for every other trap enterprise OID you wish to be forwarded:
"dmi2snmpd.trapper" <trap enterprise OID> "nopassword"If this line is not specified, SNMP will fail to send the trap and the mapper will re-send it with, dynamically generated, OID under dmtf.1.2 (1.3.6.1.4.1.412.1.2)
Add the addresses of the station to which traps are to be sent to the file /etc/netmgt/snmpd.trap. For Example:
ip public 123.45.6.78 162
Add the following line to the file /etc/netmgt/snmpd.comm:
ip public 0.0.0.0 writeyou also ensure that dmi is started with the write enable (-w) flag; and you should be aware that, as with any other form of SNMP write access, this exposes your system to a degree of security risk. This can be reduced, but not eliminated, by defining a different community name for such access types, for example:
ip <new community> 0.0.0.0 write
The DMI to SNMP standard does not address the SNMP trap filtering issue. This release gives a proprietary solution for this problem. The mapper uses a configuration file /etc/dmi/dmi2snmp.cfg which contains the list of enabled or disabled trap (enterprise or subtree) OIDs. The section ``enable traps'' contains the list of trap OIDs that are to be passed to SNMP agent. All other traps are masked.
The section ``disable traps'' contains the list of trap OIDs that are be masked; all other traps are passed to the SNMP agent. In the case that the configuration file contains both sections, the ``enable traps'' are applied first and ``disable traps'' leads only to the masking of relevant traps.
If there is no configuration file, all traps are passed to SNMP. Examples:
Only DMTF dmiMIBObjects's traps (under 1.3.6.1.4.1.412.1) are allowed:
[enable traps] 1.3.6.1.4.1.412.1All DMTF traps (under 1.3.6.1.4.1.412) are disabled:
[disable traps] 1.3.6.1.4.1.412All DMTF traps (under 1.3.6.1.4.1.412) are enabled except 1.3.6.1.4.1.412.2.4.17
[enable traps] 1.3.6.1.4.1.412
[disable traps] 1.3.6.1.4.1.412.2.4.17