Hot Downloads



The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me

TOPIC: Perl Scripts to manipulate Cisco gear

Perl Scripts to manipulate Cisco gear 11 years 10 months ago #22151

Has anyone written any Perl scripts to do menial cisco tasks, cl count, cl log, sh int | and the like? I d/l'd active state and have been slowly trudging through the learning mud, maybe I'll check amazon for books or something.

Any suggestions? I'm not the most patient and don't have much time due to my job's workload :-) But I will devote what it takes if I can make my job easier/less time-consuming.

Thanks in advance for anything, even if it is a good kick in the pants motivator.

Re: Perl Scripts to manipulate Cisco gear 11 years 10 months ago #22160

I've not done any scripts specifically for that but do have some check scripts that do things like check Windows services are running, drives can be mapped, nodes pinged and web pages are displaying particular lines of text. What exactly do you want to do? Presumably you'll open a telnet connection to the device then do some work with it. I'd write a mini-script first to debug the telnet part then progress from there

Scripts 11 years 10 months ago #22182

I've been working on some DOS scripts to open telnet sessions, can't find a way to get the logon info to populate. (Not very DOS fluent.) Everyone has been talking about Perl, so I thought I'd give it a try.

Thanks for the suggestions Bishop, I'm formerly UHSsncmrm but had some acc't/profile issues which wouldn't allow me to see forums after logging in. So, after many tries to fix the issue, I just created a new acc't.

Like I said, don't have a great deal of time so this process may drag on, please be patient.

Again, thanks.

Re: Perl Scripts to manipulate Cisco gear 11 years 10 months ago #22198

  • DaLight
  • DaLight's Avatar
  • Offline
  • Honored Member
  • Honored Member
  • Posts: 1302
  • Karma: 1
  • Thank you received: 0
Anyone looking for a scripting environment which is tightly integrated into Windows, .NET, Active Directory should definitely give Windows PowerShell a look. I have been playing with it for a couple of months and it is unbelievable. The only downside is that you can only use it on Windows XP, Vista and 2003.

Re: Perl Scripts to manipulate Cisco gear 11 years 10 months ago #22206

What advantages does powershell give over the existing scripting facilites from the likes of perl etc? I'm not axe-grinding here, just curious and wanting to inform the debate. Tell us what you've discovered

Re: Perl Scripts to manipulate Cisco gear 11 years 10 months ago #22207

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1447
  • Karma: 8
  • Thank you received: 13
Very interesting thread.

We spent a lot of time looking around for a scripting engine that would perform various tasks for our Cisco lab equipment and finally concluded to Linux's Expect Script (also offered for Windows), which is not the easiest to work with, but can get the job done if you have the patience to work with it.

You can check it out at

Chris Partsenidis.
Founder & Editor-in-Chief
Time to create page: 0.117 seconds


Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V


  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup