Python script for iTerm that opens telnet sessions in new tabs.
Overview
A simple Python script that opens telnet sessions to multiple routers. This makes it faster to work with Cisco CML and associated breakout tool. It uses iTerm’s built in Python API.
The example below opens a new tab, then issues telnet localhost {i}
command for all even numbered ports (9000 - 9026). This matches the default port assigned to Cisco IOSv devices.
Demonstration
Code
1 | #!/usr/bin/env python3.7 |