Installing and Configuring an SNMP Agent on the Linux Operating System

> Installing and Configuring an SNMP Agent on the Linux Operating System

> Perform these steps to install and configure 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 the -U version. The RPM -U version will probably fail with this RPM.

> 1. | Install the Avago SAS SNMP Agent using rpm -ivh <sas rpm>.

> After installation, the LSI-AdapterSAS.mib SAS MIB file is in the /etc/lsi_mrdsnmp/sas directory.

> This RPM makes the necessary modification needed in the snmpd.conf file to run the agent.

> NOTE Before installation, check if there is any pass command that starts with 1.3.6.1.4.1.3582 OID in the snmpd.conffile.

> If so, delete all of the old pass commands that start with 1.3.6.1.4.1.3582 OID. This situation can occur if an earlier version of the Avago SNMP Agent was installed in the system.

> The snmpd.conf file structure should be the same as lsi_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

> In this example, 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 to the com2sec section of the snmpd.conf file.

> For example, to get a trap in 10.0.0.144, add the following to the snmpd.conf file.

> # sec.name source communitycom2sec snmpclient 10.0.0.144 public

> 4. | To run or stop the snmpd daemon, enter the following command:

> /etc/init.d/snmpd start/stop

> 5. | To start or 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 entering the following command:

> /etc/init.d/lsi_mrdsnmpd status

> 6. | Issue an SNMP query in this format:

> snmpwalk -v1 -c public localhost .1.3.6.1.4.1.3582

> 7. | Get the SNMP trap from local machine by entering the following command:

> 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 the snmptrapd.conf file and then run the sudo snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A %v\n” command.

> It is assumed that the snmpd.conf file is located in the /etc/snmp directory for Red Hat operating system and the /etc directory for the SLES operating system. You can change the file location from the /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 the RPM.

> Before you install a new version, you must uninstall all previous versions.

> For the SLES 10 operating system, perform these steps to run SNMP:

> 1. | Copy the /etc/snmp/snmpd.conf file to the /etc/snmpd.conf file.

> 2. | Modify the /etc/init.d/snmpd file, and change the SNMPDCONF=/etc/snmp/snmpd.conf entry to SNMPDCONF=/etc/snmpd.conf.

> 3. | Run LSI SNMP rpm.

DB09000202-21, Rev 2.2, July 2015
Copyright© 2015 by Avago Technologies. All rights reserved.