This article hasn't been updated for over 5 years. The information below may be obsolete.

Killing multiple Avamar backup sessions

Ever needed to kill a bunch of backup sessions on your Avamar system? simply follow these instructions:-

Login your Avamar system as admin

Load your keys

ssh-agent bash
ssh-add ~/.ssh/dpnid

run the following loop

avmaint sessions | grep sessionid | cut -d \" -f2 > list
for sessionid in $(cat list)
do
   avmaint kill $sessionid
done

that's it so simple