Entries Tagged as ''

TCL Expect Script to Bring Lab Up

My Lab enviornment is running on a server with around 10 router-simulators. Without script, I have to login server by using SSH session first, then TELNET to dynagen session to interact with router simulator. This job is tedious. So, I came up with some script to automate my routing job.

First, we need a Tcl script for each connection.

#!/usr/bin/expect

spawn ssh root@10.2.111.198
expect “password:”
send “d7j3f8g8\n”
expect “root@common-server”
send “telnet 127.0.0.1 2000\n”
interact

There are two key parts. One is “expect “password:”. TCL Expect has a nice feature that you can send a password to interact with shell command. The other is “interact” command. Without it, we cannot interupt TCL session.

Then, we can put all start router-simulator script to a bash shell.

gnome-terminal -e ./open_router_sim.tcl

You Never Know How High You Are

I like this poem written by Emily Dickinson, although some people think she is somehow “high”. Sometimes you never know you potential abilities. So, you tried, then, you knew it.

I have been told to get the knowledge of a new platform, which combines Ethernet and Fibre Channel. I spent one week to go through a 600-pages document and two reference books. Right now, at least, I can be a product sales to tell people what’s the product and how many features does it has, etc.

The platform is Nexus 5000, which provides a unified fabric crossbar architecture in data plane. It support I/O consolidation by combining Ethernet and Fibre Channel over Ethernet in one physical interface, connecting to Storage Server with Covered Network Adapter. Also, it support Fibre Channel Module to connect with SAN. So, it has all nice features of Ethernet, and also has fibre channel characters.

I remeber I have told myself to learn from success. Right now, learning a new product in one week is a good modle for the feature. COPY EXPERIENCE of SUCCESS.