Get a list of files in flash with SNMP
From NippAero
snmpwalk -v 1 -c public routername 1.3.6.1.4.1.9.9.10.1.1.4.2.1.1.5 -O n |awk '{print $4}' |sed "s/^\"//" |sed "s/\"$//"
Now to make a simle example of this you can use shell to loop through them all.
for duh in `snmpwalk -v 1 -c public routername 1.3.6.1.4.1.9.9.10.1.1.4.2.1.1.5 -O n |awk '{print $4}' |sed "s/^\"//" |sed "s/\"$//"`
do
echo $duh
done
Categories: SNMP | Network Management | Shell | Script | Cisco
