for host in 253 252 251 250 249 do cfgmaker --global "HtmlDir: /var/www/mrtg" \ --global "ImageDir: /var/www/mrtg" \ --global "LogDir: /var/lib/mrtg" \ --global "ThreshDir: /var/lib/mrtg" \ --global "Options[_]: growright,bits" \ \ --ifref=name --ifdesc=descr \ --subdirs=Cisco-Switch-2960G-$host \ public@172.16.0.$host \ \ > /etc/mrtg/switch-2960-$host.cfg indexmaker --output=/var/www/mrtg/switch-2960-$host.html /etc/mrtg/switch-2960-$host.cfg done