You should look at using Perl for this task. It has a number of packages for SNMP and Cisco interfaces.
_________________________
Home page: http://www.kixhelp.com/hb/