3

Inside a tmux session on iTerm2, I'm running mininet on vagrant with ubuntu/trusty64 as base box. I'm looking for a solution to start shell on multiple hosts in mininet topology in iTerm2 (ideally as new pane/tab in my existing tmux session).

Example -

# ssh into vagrant box
vagrant ssh

# create minimal topology
sudo mn --topo minimal --controller remote 

# opens xterm (XQuartz) window, connected to host1 
mininet> xterm h1

# starts bash on host1
mininet> h1 bash
system64
  • 909
  • 1
  • 11
  • 27

1 Answers1

3

Method one: You can run shell command and script in the xterm window. enter image description here

Method two: You can run directly on mininet console.

mininet> h1 bash script.sh
Write sth on h1
mininet>

The script.sh contains simple echo command.

Ehsan Ab
  • 679
  • 5
  • 16
  • I'm familiar with both the methods, but they do not serve my purpose. Method 1 - Is there any way to open bash in terminal emulator (iTerm2) instead of xterm (XQuartz)? Method 2 - I want access to shell of all hosts together, don't want to switch between hosts. – system64 Aug 18 '15 at 20:35
  • oooh okay in a question it was "a host". Not sure about accessing all hosts. Though I see the use for it when there is lot of hosts. – Ehsan Ab Aug 18 '15 at 20:50