blob: d104d3aa8c5a0b66fa562ec24e54b532e766beca [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
pingping-lin90dfe2f2015-09-28 10:57:42 -07008sudo pkill bgpd
9sudo pkill zebra
10sudo kill -9 `ps -ef | grep "bird" | grep -v grep | awk '{print $2}'`