Jon Hall | 685359e | 2015-08-28 11:11:47 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jon Hall | 3a44010 | 2015-07-06 14:47:26 -0700 | [diff] [blame] | 2 | # This script will kill any TestON, ssh, and Mininet sessions that are running. |
| 3 | sudo kill -9 `ps -ef | grep "./cli.py" | grep -v grep | awk '{print $2}'` |
Jon Hall | f632d20 | 2015-07-30 15:45:11 -0700 | [diff] [blame] | 4 | sudo kill -9 `ps -ef | grep "bin/teston" | grep -v grep | awk '{print $2}'` |
Jon Hall | 3a44010 | 2015-07-06 14:47:26 -0700 | [diff] [blame] | 5 | sudo kill -9 `ps -ef | grep "ssh -X" | grep -v grep | awk '{print $2}'` |
| 6 | sudo mn -c |
Jon Hall | 685359e | 2015-08-28 11:11:47 -0700 | [diff] [blame] | 7 | sudo pkill -f mn.pid |
pingping-lin | 90dfe2f | 2015-09-28 10:57:42 -0700 | [diff] [blame] | 8 | sudo pkill bgpd |
| 9 | sudo pkill zebra |
pingping-lin | 5f964c6 | 2015-12-16 11:35:08 -0800 | [diff] [blame] | 10 | sudo pkill vrrpd |
pingping-lin | 90dfe2f | 2015-09-28 10:57:42 -0700 | [diff] [blame] | 11 | sudo kill -9 `ps -ef | grep "bird" | grep -v grep | awk '{print $2}'` |