Cisco IOU: Shutting Down the IOU Processes

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

  1. a process status ‘ps -ef’ ,
  2. the output is filtered with grep for the term wrapper or rapper,
  3. awk then selects the second element of the line ( which is the process number)
  4. 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

  1. Cisco IOU:Connect IOU with real or external networks
  2. Cisco IOU:Scripted Start Multiple Routing with L2IOU, memory
  3. Cisco IOU: What can Cisco do for Testing, Validation & the IPv6 challenge ?
  4. Cisco IOU: Starting Multiple Routers
  5. Cisco IOU: Shutting down the IOU Processes (This post)
About Greg Ferro

Greg Ferro is a Network Engineer/Architect, mostly focussed on Data Centre, Security Infrastructure, and recently Virtualization. He has over 20 years in IT, in wide range of employers working as a freelance consultant including Finance, Service Providers and Online Companies. He is CCIE#6920 and has a few ideas about the world, but not enough to really count.

He is a host on the Packet Pushers Podcast, blogger at EtherealMind.com and on Twitter @etherealmind and Google Plus

  • Wade

    This should work equally well:

    $killall wrapper-linux