nv-l
[Top] [All Lists]

Load Mibs Script

To: nv-l@lists.tivoli.com
Subject: Load Mibs Script
From: Scott.Bursik@fritolay.com
Date: Tue, 13 Mar 2001 15:35:29 -0600
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


<Prev in Thread] Current Thread [Next in Thread>
  • Load Mibs Script, Scott . Bursik <=

Archive operated by Skills 1st Ltd

See also: The NetView Web