Forum Discussion

bsdpruegelknabe's avatar
bsdpruegelknabe
Icon for Nimbostratus rankNimbostratus
Mar 23, 2009

Current used SSL TPS

Hello,

 

how do I get, with iContol, the currently used SSL TPS?

 

Anyone go a hint for that for me please? :-)

 

 

 

Thanks,

 

bsdpruegelknabe

2 Replies

  • I believe you need these values from the Common::Statistic method:

    STATISTIC_SSL_COMMON_TOTAL_NATIVE_CONNECTIONS

    STATISTIC_SSL_COMMON_TOTAL_COMPATIBLE_MODE_CONNECTIONS

    There's a handy bash script by Nathan Bultman that does this with snmp:

     
     ! /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