Wrote this a while ago and it comes in handy all the time. It’s specific to Cisco devices (although it probably works on a lot of imitators). Basically you add your host, username, passwords and the command you’d like executed on the Cisco device to the config file (poller.hosts). Run the script and it saves the output for you. You can add multiple host entries and then add an entry to your cron file to periodically run cisco_poller.pl
You need one input file which defaults to poller.hosts. As you can see the fields are seperated with a colon. Very handy detail, you can actually pipe to include which makes the output even more grep friendly. Below are a few examples to get you started with your poller.hosts file.
192.168.0.3:User:Pass:pass:show inter | i error
192.168.0.4:MyUser:MyPass:MyPass:sh ip eigrp neighbor