Forum Discussion
2 Replies
Sort By
- JRahmAdminI believe you need these values from the Common::Statistic method:
! /bin/bash This script calculates TPS for any host. This script assumes that the SNMP community name is public and that it uses version 2C of SNMP. HOST=$1 COMMUNITY="public" TNCs="F5-BIGIP-SYSTEM-MIB::sysClientsslStatTotNativeConns.0" TCCs="F5-BIGIP-SYSTEM-MIB::sysClientsslStatTotCompatConns.0" interval=10 seconds TNC1=`snmpget -Ov -Oe -Ot -Oq -v2c -c $COMMUNITY $HOST $TNCs` TCC1=`snmpget -Ov -Oe -Ot -Oq -v2c -c $COMMUNITY $HOST $TCCs` echo "sleeping... do not disturb" sleep $interval TNC2=`snmpget -Ov -Oe -Ot -Oq -v2c -c $COMMUNITY $HOST $TNCs` TCC2=`snmpget -Ov -Oe -Ot -Oq -v2c -c $COMMUNITY $HOST $TCCs` echo "TCC1=$TCC1 TCC2=$TCC2 TNC1=$TNC1 TNC2=$TNC2" let TPS="(($TNC2-$TNC1)+($TCC2-$TCC1)) /$interval" echo "`date` $TPS" >> TPS_over_time.txt
- bsdpruegelknabeNimbostratusThanks! That helps a lot! :-)