Suryantofang

January 17, 2012

Telnet Bash Script for dynamips

Filed under: Cisco, Linux — suryantofang @ 3:37 pm

I was lazy to telnet my Lab one by one so I search from google some solution for my lazy butt..

This was script I was found :

#!/bin/bash
# — start multi-tabbed telnet session
web="telnet localhost 2002"
web2="telnet localhost 2004"
r1="telnet localhost 2005"
r2="telnet localhost 2006"
r3="telnet localhost 2007"
r4="telnet localhost 2008"
dsw1="telnet localhost 2011"
dsw2="telnet localhost 2009"
asw1="telnet localhost 2017"
asw2="telnet localhost 2001"
pc1="telnet localhost 2003"
ftp="telnet localhost 2000"
gnome-terminal \
--window --maximize -e "$web" -t WEB \
--tab -e "$web2" -t WEB2 \
--tab -e "$r1" -t R1 \
--tab -e "$r2" -t R2 \
--tab -e "$r3" -t R3 \
--tab -e "$r4" -t R4 \
--tab -e "$dsw1" -t DSW1 \
--tab -e "$dsw2" -t DSW2 \
--tab -e "$asw1" -t ASW1 \
--tab -e "$asw2" -t ASW2 \
--tab -e "$pc1" -t PC1 \
--tab -e "$ftp" -t FTP
## ended here
Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.