#!/bin/sh

# snapfile=/usr/local/groundwork/nagios/var/tsm/$1_sessions_`date '+%F_%R'`

count=`dsmadmc -se=$1  -id=tsmadmin -pa=tap31sd3ad q sess | grep Tcp/Ip | wc -l`

# rm $snapfile

echo "OK sessions: $count|sessions=$count"
exit 0

