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)
   avmaint kill $sessionid

that's it so simple