Installation : Installing and Configuring an SNMP Agent : Installing and Configuring an SNMP Agent on Linux

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. To do this, perform the following steps:
 
*NOTE  
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.
1.
 
*NOTE  
Before installation, check whether there is any pass command 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.
The snmpd.conf file structure should be the same as lsi_mrdsnmpd.conf. For reference, a sample conf file (lsi_mrdsnmpd.conf) is in the /etc/lsi_mrdsnmp directory.
2.
com2sec        snmpclient       172.28.136.112         public
In this example, the IP address of the remote machine is 172.28.136.112.
3.
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.
Trapsink HOST [community [port] ]
Specify the custom port number; else the default SNMP trap port, 162, is used to send traps.
5.
To run/stop the snmpd daemon, enter the following command:
/etc/init.d/snmpd start/stop
6.
/etc/init.d/lsi_mrdsnmpd start/stop
You can check the status of the SAS SNMP Agent daemon by issuing the following command:
/etc/init.d/lsi_mrdsnmpd status
7.
snmpwalk -v1 -c public localhost .1.3.6.1.4.1.3582
8.
snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A %v\n"
 
*NOTE  
To receive a trap in a local machine with Net-SNMP version 5.3, you must modify the snmptrapd.conf file (generally located at /var/net-snmp/snmptrapd.conf). Add "disableAuthorization yes" in snmptrapd.conf and then execute "sudo snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A %v\n".

It is assumed that snmpd.conf is located at /etc/snmp for Red Hat and /etc for SLES. You can change the file location from /etc/init.d/lsi_mrdsnmpd file.
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:
1.
Copy /etc/snmp/snmpd.conf to /etc/snmpd.conf.
2.
Modify the /etc/init.d/snmpd file and change SNMPDCONF=/etc/snmp/snmpd.conf entry to SNMPDCONF=/etc/snmpd.conf.
3.
Run LSI SNMP rpm.