I found this script in the archives and cleaned it up a little for our AIX
environment. Thought I would throw it back out there for anyone interested.
#!/usr/bin/ksh
for file in `ls /usr/OV/snmp_mibs/mib-import`
do
cd /usr/OV/snmp_mibs/mib-import
echo "Processing $file">>/usr/OV/emsscripts/errormibload
echo " ">>/usr/OV/emsscripts/errormibload
/usr/OV/bin/xnmloadmib -load $file 2>/usr/OV/emsscripts/temperror
cat /usr/OV/emsscripts/temperror
cat /usr/OV/emsscripts/temperror >>/usr/OV/emsscripts/errormibload
echo " ">>/usr/OV/emsscripts/errormibload
echo "Done Processing $file">>/usr/OV/emsscripts/errormibload
echo " ">>/usr/OV/emsscripts/errormibload
done
cd /usr/OV/emsscripts
Thanks Shailesh
Scott Bursik
|