Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Perl Scripts to manipulate Cisco gear

Perl Scripts to manipulate Cisco gear 9 years 6 months ago #22151

  • MatthewUHS
  • MatthewUHS's Avatar
  • Offline
  • Frequent Member
  • Posts: 39
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Perl Scripts to manipulate Cisco gear 9 years 6 months ago #22160

  • TheBishop
  • TheBishop's Avatar
  • Offline
  • Moderator
  • Posts: 1719
  • Thank you received: 8
  • Karma: 5
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
The administrator has disabled public write access.

Scripts 9 years 6 months ago #22182

  • MatthewUHS
  • MatthewUHS's Avatar
  • Offline
  • Frequent Member
  • Posts: 39
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Perl Scripts to manipulate Cisco gear 9 years 5 months ago #22198

  • DaLight
  • DaLight's Avatar
  • Offline
  • Honored Member
  • Posts: 1302
  • Karma: 1
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.
The administrator has disabled public write access.

Re: Perl Scripts to manipulate Cisco gear 9 years 5 months ago #22206

  • TheBishop
  • TheBishop's Avatar
  • Offline
  • Moderator
  • Posts: 1719
  • Thank you received: 8
  • Karma: 5
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
The administrator has disabled public write access.

Re: Perl Scripts to manipulate Cisco gear 9 years 5 months ago #22207

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Posts: 1446
  • Thank you received: 13
  • Karma: 8
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 expect.nist.gov/


Cheers,
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
The administrator has disabled public write access.
Time to create page: 0.086 seconds

CCENT/CCNA

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

Linux

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