SNMP: Capturing SSL Statistics per Virtual Server
This question about gathering SSL statistics was recently raised:
"Can we use SNMP to read the number of sessions and TPS to a Virtual Server on BigIP LTM? If so, which SNMP variable can we use fo...
Published Nov 14, 2007
Version 1.0Deb_Allen_18
Historic F5 Account
Joined September 25, 2004
Deb_Allen_18
Historic F5 Account
Joined September 25, 2004
Jeff_Silverman_
Jan 11, 2008Historic F5 Account
Here is a bash script to calculate TPS over time
This is from an article Nathan Bultman wrote:
! /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
You can then import the TPS_over_time.txt file into gnuplot, openOffice, koffice, or MS-Excel and make a graph of TPS over time.