The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bash telnet session logging ramnet Shell Programming and Scripting 2 06-01-2009 01:32 AM
Need Help on Telnet using PERL Scripting sudhakaryadav Shell Programming and Scripting 2 01-22-2009 06:20 AM
Shell scripting with Telnet juniordevil Shell Programming and Scripting 1 09-08-2006 02:43 AM
Telnet FTP scripting w33man UNIX for Dummies Questions & Answers 2 09-18-2003 01:45 PM
scripting Telnet TRUEST UNIX for Dummies Questions & Answers 2 07-01-2003 01:35 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-01-2009
ppucci ppucci is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 16
BASH (or else) scripting for Telnet

Hi everybody,

I am thinking on writing a shell script to telnet to Cisco routers, and I am looking for help. I have researched some and could not find much on the topic, or at least much of help anyway...

I read "expect" is one solution, but I am looking for something more flexible, as I might be looking into several different type of responses and actions.

For instance, I may get different prompts when logging in like:

Code:
Username:
or
Code:
Password:
and once I am past login, I might get either:

Code:
hostname>
for a session with no privileges
or
Code:
hostname#
for a session in privileged mode.

And so forth...

Any clues?
 

Bookmarks

Tags
bash, cisco, script, telnet

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0