Configuring SNMP Traps
Keywords: MegaRAID SAS SW UG

> Configuring SNMP Traps

> To receive SNMP traps, perform the following steps:

> 1. | Stop the Avago SAS SNMP Agent by using the following command:

> #/etc/init.d/lsi_mrdsnmpd stop

> 2. | Edit the /etc/lsi_mrdsnmp/sas/sas_TrapDestination.conf file, and add the IP address as shown in the following excerpt.

> #################################################

> # Agent Service needs the IP addresses to sent trap

> # The trap destination may be specified in this file

> # or using snmpd.conf file. Following indicators can

> # be set on "TrapDestInd" to instruct the agent to

> # pick the IPs as the destination.

> # 1 - IPs only from snmpd.conf

> # 2 - IPs from this file only

> # 3 - IPs from both the files

> #################################################

> TrapDestInd 2

> ############# Trap Destination IP #################

> # Add port no after IP address with no

> # space after

> # colon to send the SNMP trap

> # message to custom port.

> # Alternatively, you can also use

> # trapsink command

> # in snmpd.conf to send the SNMP trap

> # message to

> # custom port, else default SNMP trap

> # port 162 shall be used.

> 127.0.0.1 public

> 145.147.201.88:1234 testComm #################################################

> NOTE Solaris also supports Custom community support.

> 3. | If ‘TrapDestInd’ above is set to 1, the IP addresses shall be taken from the /etc/sma/snmp/snmpd.conf file in the following format: ’com2sec snmpclient 172.28.157.149 public’ the ’Trapsink’ and ’TrapCommunity’ tokens are supported for sending customized SNMP traps.

> NOTE In Solaris 11 x86, the file will be taken from the /etc/net-snmp/snmp/snmpd.conf file.

> 4. | Start the Avago SAS SNMP Agent by entering the following command:

> #/etc/init.d/lsi_mrdsnmpd start

DB09000202-21, Rev 2.2, July 2015
Copyright© 2015 by Avago Technologies. All rights reserved.