![]() |
MegaRAID Storage Manager Online Help System |
Installing and Configuring an SNMP Agent on Linux
This section explains how to install and configure SAS SNMP Agent for the SuSE Linux and Red Hat Linux operating systems. To do this, perform the following steps.
This procedure requires that you have Net-SNMP agent installed on the Linux machine.
The RPM has not been created to support -U version.
The RPM -U will probably fail with this RPM.
- Install LSI SAS SNMP Agent using
rpm -ivh
<sas rpm>
After installation, find the SAS MIB file
LSI-AdapterSAS.mib
under the/etc/lsi_mrdsnmp/sas
directory.RPM makes the necessary modification needed in thesnmpd.conf
file to run the agent.Thesnmpd.conf
file structure should be the same aslsi_mrdsnmpd.conf
. For reference, a sample conf file (lsi_mrdsnmpd.conf
) is in the/etc/lsi_mrdsnmp
directory.- To run an SNMP query from a remote machine, add the IP address of that machine in the
snmpd.conf
file, as in this example:com2sec snmpclient 172.28.136.112 public
In this example, the IP address of the remote machine is172.28.136.112
.- To receive an SNMP trap to a particular machine, add the IP address of that machine in the
com2sec
section of thesnmpd.conf
file.For example, to get a trap in 10.0.0.144, add the following tosnmpd.conf
.#sec.name
source
community
com2sec snmpclient 10.0.0.144 public
- To run/stop the
snmpd
daemon, enter the following command:/etc/init.d/snmpd start/stop
- To start/stop the SAS SNMP Agent daemon before issuing a SNMP query, enter the following command:
/etc/init.d/lsi_mrdsnmpd start/stop
You can check the status of the SAS SNMP Agent daemon by checked by issuing the following command:/etc/init.d/lsi_mrdsnmpd status
- Issue an SNMP query in this format:
snmpwalk -v1 -c public localhost .1.3.6.1.4.1.3582
- You can get the SNMP trap from local machine by issuing the following command:
snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A %v\n"
You can install SNMP without the trap functionality. To do so, set the
"TRAPIND"
environment variable to"N"
before running RPM.Before you install a new version, you must uninstall all previous versions.
For SLES 10, perform the following steps to run SNMP:
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 |