#!/bin/sh
 echo "Installing lm_sensors"
 rpm -ivh lm_sensors-2.10.7-4.el5.i386.rpm
 echo "Installing net-snmp"
 rpm -ivh --nodeps net-snmp-5.3.1-24.el5.i386.rpm
 echo "Installing net-snmp-utils"
 rpm -ivh --nodeps net-snmp-utils-5.3.1-24.el5.i386.rpm
 echo "net-snmp-libs"
 rpm -ivh --nodeps net-snmp-libs-5.3.1-24.el5.i386.rpm
 cp -fr snmpd.options /etc/snmp/snmpd.options
 chmod 600 /etc/snmp/snmpd.options
 echo "Installing compat-libstdc"
 rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
 echo "Installing sas_ir_snmp-3.13-0004"
 rpm -ivh sas_ir_snmp-3.13-0004.i386.rpm
 echo "Installing sas_snmp-3.13-0004"
 rpm -ivh sas_snmp-3.13-0004.i386.rpm
 lsi_mrdsnmpd stop
 rm -fr /var/log/snmp*
 cp -fr lsi_mrdsnmpd.rh /etc/lsi_mrdsnmp/lsi_mrdsnmpd.rh
 cp -fr LSI-AdapterSAS.mib /usr/share/snmp/mibs/LSI-AdapterSAS-MIB.txt
 cp -fr LSI-AdapterSASIR.mib /usr/share/snmp/mibs/LSI-AdapterSASIR-MIB.txt
 chmod 755 /etc/lsi_mrdsnmp/lsi_mrdsnmpd.rh
 chmod 755 /etc/lsi_mrdsnmp/lsi_mrdsnmpd.suse
 chmod 755 /etc/lsi_mrdsnmp/sas/uninstall
 chmod 755 /etc/lsi_mrdsnmp/sas/install
 cp -fr lsi_mrdsnmpd.conf /etc/snmp/snmpd.conf
 chown root.sys /etc/snmp/snmpd.conf
 chmod 600 /etc/snmp/snmpd.conf
 chown root.root /etc/snmp
 cp -fr gensassnmp.log /root/
 chmod 644 /root/gensassnmp.log
 lsi_mrdsnmpd start
