Cisco Poller Perl Script

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

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.

poller.hosts: ver ver inter | i error ip eigrp neighbor

Leave a Reply


You are commenting using your account. Log Out /  Change )

Google photo


Twitter picture


Facebook photo


Connecting to %s

%d bloggers like this: