This is a simple bash script that looks for all IOU processes that have been started with the ‘wrapper-linux’ utility and then kills those processes.
In short, it does
- a process status ‘ps -ef’ ,
- the output is filtered with grep for the term wrapper or rapper,
- awk then selects the second element of the line ( which is the process number)
- then xargs is used to build the list into command line output
#!/bin/bash
#
# Stop IOU Processes
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#
ps -ef | grep [w]rapper | awk '{ print $2 }' | xargs kill
#
exit 0
Other posts in the series
- Cisco IOU:Connect IOU with real or external networks
- Cisco IOU:Scripted Start Multiple Routing with L2IOU, memory
- Cisco IOU: What can Cisco do for Testing, Validation & the IPv6 challenge ?
- Cisco IOU: Starting Multiple Routers
- Cisco IOU: Shutting down the IOU Processes (This post)
