MegaRAID Storage Manager Online Help System

Installation > Installing and Configuring an SNMP Agent > Installing and Configuring an SNMP Agent on Solaris

Installing and Configuring an SNMP Agent on Solaris

This section explains how to install and configure SAS SNMP Agent for the Solaris operating system. To install and configure SNMP for Solaris, perform the procedures described in the following sections:

Prerequisites

This package requires that you have Solaris System Management Agent installed on the Solaris machine.

Installing SNMP on Solaris

To install SNMP for Solaris, perform the following procedure:

  1. Unzip the LSI SAS SNMP Agent package.
  2. Run the install script by executing the following command:
  3. # ./install.sh

    The installation will exit if there are any existing versions of storelib and sassnmp installed on the Solaris machine. Uninstall the existing version by using the following commands:
    # pkgrm storelib (to uninstall storelib library)
    # pkgrm sassnmp (to uninstall LSI SAS SNMP Agent)

LSI SAS SNMP MIB Location

After you install the LSI SAS SNMP Agent package, the MIB file LSI-AdapterSAS.mib is installed under /etc/lsi_mrdsnmp/sas directory.

Starting, Stopping, and Checking the Status of the LSI SAS SNMP Agent

The following commands are used to start, stop, restart, and check the status of the Solaris System Management Agent (net snmpd) daemon:

The following commands are used to start, stop, restart, and check the status of the SAS SNMP Agent daemon:

Configuring snmpd.conf

By default, SNMP queries (walk, get) can be executed from any remote machine without any changes to the snmpd.conf file. To quickly add a new community and client access, perform the following steps:

  1. Stop the SMA service by executing the following command:
  2. # svcadm disable svc:/application/management/sma:default
  3. Add read-only and read-write community names.
    1. Add a read-only community name and client/hostname/ipaddress under "SECTION: Access Control Setup" in the /etc/sma/snmp/snmpd.conf file, as shown in the following excerpt:
    2. #################################################
      # SECTION: Access Control Setup
      #This section defines who is allowed to talk to your # running SNMP Agent.
      # rocommunity: a SNMPv1/SNMPv2c read-only access
      # community name
      # arguments: community
      # [default|hostname|network/bits] [oid]
      # rocommunity snmpclient 172.28.157.149
      #################################################
    3. Add a read-write community name and client/hostname/ipaddress under "SECTION: Access Control Setup" in the /etc/sma/snmp/snmpd.conf file, as shown in the following excerpt:
    4. #################################################
      # SECTION: Access Control Setup
      # This section defines who is allowed to talk to your # running
      # snmp agent.
      # rocommunity: a SNMPv1/SNMPv2c read-only access
      # community name
      # arguments: community
      # [default|hostname|network/bits] [oid]
      # rwcommunity snmpclient 172.28.157.149
      #################################################
  4. Start the SMA service by using the following command:
  5. # svcadm enable svc:/application/management/sma:default

    Refer to the command man snmpd.conf for more information about configuring the snmpd.conf file.

Configuring SNMP Traps

To receive SNMP traps, perform the following steps:

  1. Stop the LSI SAS SNMP Agent by using the following command:
  2. #/etc/init.d/lsi_mrdsnmpd stop
  3. Edit the /etc/lsi_mrdsnmp/sas/sas_TrapDestination.conf file and add the ipaddress as shown in the following excerpt:
  4. #################################################
    # 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##################
    127.0.0.1 public
    172.28.157.149 public
    #################################################
  5. Start the LSI SAS SNMP Agent by entering the following command:
  6. #/etc/init.d/lsi_mrdsnmpd start
Uninstalling the SNMP Package

The uninstall.sh script is located under the /etc/lsi_mrdsnmp/sas directory. Use the following command to uninstall the package:

# cd /etc/lsi_mrdsnmp/sas
# ./uninstall.sh


DB09-000202-04  37857-02  Rev. E  October 2010
Copyright© 2010 by LSI Corporation. All rights reserved.
You can find a list of the LSI U.S. distributors, international distributors, sales offices, and design resource centers on the LSI web site at:  http://www.lsi.com/cm/ContactSearch.do