Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[c22744]: mkindex Maximize Restore History

Download this file

mkindex    22 lines (17 with data), 427 Bytes

#!/bin/sh
# mkindex - Makes index of MIBS
# $Id$
FILE=mib_index.txt

echo "Creating $FILE"

echo "MIB Index" > $FILE

# refresh index files
for d in `find . -mindepth 1 -type d -not -name CVS`; do
    snmptranslate -M$d sysName > /dev/null 2>&1
done

# Add contents of each .index to our index
for f in `find . -name .index`; do
    echo "" >> $FILE
    echo $f >> $FILE
    cat $f | sort -i >> $FILE
    echo "" >> $FILE
done