blob: abeb2e9aa01cf1b1c06fe25102a75eec5acb87c3 [file] [log] [blame]
Jon Hall685359e2015-08-28 11:11:47 -07001#!/bin/bash
Jon Hall3a440102015-07-06 14:47:26 -07002# This script will kill any TestON, ssh, and Mininet sessions that are running.
3sudo kill -9 `ps -ef | grep "./cli.py" | grep -v grep | awk '{print $2}'`
Jon Hallf632d202015-07-30 15:45:11 -07004sudo kill -9 `ps -ef | grep "bin/teston" | grep -v grep | awk '{print $2}'`
Jon Hall3a440102015-07-06 14:47:26 -07005sudo kill -9 `ps -ef | grep "ssh -X" | grep -v grep | awk '{print $2}'`
6sudo mn -c
Jon Hall685359e2015-08-28 11:11:47 -07007sudo pkill -f mn.pid