LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2009, 02:06 AM   #1
flipboi
Member
 
Registered: Oct 2003
Location: Manila
Distribution: Fedora Core 2, FreeBSD 5.2.1
Posts: 46

Rep: Reputation: 15
Question Linux scripting and Cisco


I need a script that will login to a Cisco device (with ACS), will execute several show commands (in privileged exec mode), and the output of the show commands will be saved in the somewhere in the linux box.

Can this be possible?

Thanks in advance!
 
Old 02-19-2009, 02:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, totally. I'd probably suggest using expect to wrap it. check out some expect documentation and examples and see how you get on.
 
Old 02-19-2009, 05:32 AM   #3
flipboi
Member
 
Registered: Oct 2003
Location: Manila
Distribution: Fedora Core 2, FreeBSD 5.2.1
Posts: 46

Original Poster
Rep: Reputation: 15
I'm a newbie with regards to "expect".

I need to execute some show commands below on 250+ Cisco devices and save them all in my linux box.

show running-config
show version
show cdp neighbors detail
show interface

... and more commands.

Any expect experts out there who can help?

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Richard Stallman's FSF Suing Cisco for GPL Violations - Cisco dissapointed LXer Syndicated Linux News 2 12-12-2008 07:58 AM
Cisco 831 Cisco Router and Cable Modem metallica1973 Linux - Networking 3 07-14-2008 08:00 PM
Cisco, Telnet, and Bash Scripting gss6 Linux - General 2 04-20-2007 02:21 PM
linux cisco gabsik Linux - Hardware 3 05-31-2006 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration