![]() |
MegaRAID Storage Manager Online Help System |
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:
- Unzip the LSI SAS SNMP Agent package.
- Run the install script by executing the following command:
# ./install.sh
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:
- Start:
# svcadm enable svc:/application/management/sma:default
- Stop:
# svcadm disable svc:/application/management/sma:default
- Restart:
# svcadm restart svc:/application/management/sma:default
- Status:
# svcs svc:/application/management/sma:default
Online indicates that the SMA is started. Disabled indicates that the SMA is stopped.
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:
- Stop the SMA service by executing the following command:
# svcadm disable svc:/application/management/sma:default
- Add read-only and read-write community names.
- 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:#################################################
# 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
#################################################- Add a readwrite community name and client/hostname/ipaddress under "SECTION: Access Control Setup" in
/etc/sma/snmp/snmpd.conf
file, as shown in the following excerpt:#################################################
# 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
#################################################- Start the SMA service by using the following command:
# svcadm enable svc:/application/management/sma:default
Refer to the command
man snmpd.conf
for more information about configuring thesnmpd.conf
file.Configuring SNMP Traps
To receive SNMP traps, perform the following steps:
- Stop the LSI SAS SNMP Agent by using the following command:
#/etc/init.d/lsi_mrdsnmpd stop
- Edit the
/etc/lsi_mrdsnmp/sas/sas_TrapDestination.conf
file and add the ipaddress 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##################
127.0.0.1 public
172.28.157.149 public
#################################################- Start the LSI SAS SNMP Agent by entering the following command:
#/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 |