Forum Discussion
Nik
Jul 18, 2011Cirrus
automate command-line statistics
i'm looking to create a script that will run daily and print a list of virtual servers and nodes that have zero activity since the last reset followed by a reset. this will be sent out via email. th...
The_Bhattman
Jul 18, 2011Nimbostratus
Here are a couple of commands that I will throw our there
F5 Connection Count Summarization
b conn | grep 3.3.126.53 | awk '{print $1 }' | cut -d : -f 1 | uniq -c | sort
F5 Virtual List via BIGIP.conf for v9.x
awk 'BEGIN {RS="}";FS=RS} // {print $1"}";} ' /config/bigip.conf
show all VIP addresses with MAX Conns greater than 200
snmpwalk -c l0cal 127.0.0.1 F5-BIGIP-LOCAL-MIB::ltmVirtualAddrStatClientMaxConns|awk -F: '{if($4 > 200) print }'
show all VIP addresses with Curr Conns greater than 200
snmpwalk -c l0cal 127.0.0.1 F5-BIGIP-LOCAL-MIB::ltmVirtualAddrStatClientCurConns|awk -F: '{if($4 > 200) print }'
Leave out the awk -F: '{if($4 > 200) print }' to see all VIP addresses
NOTE: Make sure you allow SNMP from local loop address 127.0.0.1 from the GUI
I hope this helps
Bhattman
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects