LSI Corporation
- 222 -
12Gb/s MegaRAID SAS Software User Guide
March 2014
Chapter 7: MegaRAID Storage Manager Overview and Installation
Installing and Configuring an SNMP Agent
7.6.4
Installing and Configuring an SNMP Agent on Linux
This section explains how to install and configure the SAS SNMP Agent for the SUSE Linux and Red Hat Linux
operating systems.
Perform the following steps to install and configure the SAS SNMP Agent for the SUSE Linux and Red Hat Linux
operating systems:
NOTE
This procedure requires that you have the 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.
1.
Install the LSI SAS SNMP Agent using the
rpm -ivh
<sas rpm>
command.
NOTE
Before installation, check whether there is any pass command exists
that starts with 1.3.6.1.4.1.3582 OID in snmpd.conf. If so, delete all of
the old pass commands that start with 1.3.6.1.4.1.3582 OID. (This
situation could occur if an earlier version of LSI SNMP Agent was
installed in the system.)
NOTE
After installation, find the SAS MIB file
LSI-AdapterSAS.mib
under the
/etc/lsi_mrdsnmp/sas
directory. RPM makes the
necessary modification needed in the snmpd.conf file to run the
agent.
The
snmpd.conf
file structure should be the same as the file structure l
si_mrdsnmpd.conf
. For reference, a
sample configuration file (
lsi_mrdsnmpd.conf
) is in the
/etc/lsi_mrdsnmp
directory.
2.
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
Here, the IP address of the remote machine is 172.28.136.112.
3.
To receive an SNMP trap to a particular machine, add the IP address of that machine in the
com2sec
section of
the
snmpd.conf
file.
For example, to get a trap in 10.0.0.144, add the following to
snmpd.conf
.
# sec.name source community
com2sec snmpclient 10.0.0.144 public
4.
To send SNMPv1 traps to a custom port, add the following configuration information to the snmpd.conf file:
Trapsink HOST [community [port] ]
Specify the custom port number; otherwise, the default SNMP trap port, 162, is used to send traps.
5.
To run or stop the snmpd daemon, enter the following command:
/etc/init.d/snmpd start
/etc/init.d/snmpd stop
6.
To start/stop the SAS SNMP Agent daemon before issuing a SNMP query, enter the following command:
/etc/init.d/lsi_mrdsnmpd start
/etc/init.d/lsi_mrdsnmpd stop
You can check the status of the SAS SNMP Agent daemon by checked by entering the following command:
/etc/init.d/lsi_mrdsnmpd status
7.
Issue an SNMP query in this format:
snmpwalk -v1 -c public localhost .1.3.6.1.4.1.3582
8.
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"
Summary of Contents for ThinkServer RD650
Page 1: ...ThinkServer 12 Gb s MegaRAID SAS Software User Guide ...
Page 417: ......
Page 418: ......