Forum Discussion
mitraj93
Nimbostratus
Oct 22, 2019Script to Reset Stats on All Partitions
We are going through a migration project where we often have to reset stats on a lot of LTMs periodically to check for traffic on legacy configurations Is there a way I can use a remote shell script...
Simon_Blakely
Employee
Oct 22, 2019Here is a bash one-liner that iterates through the partitions and resets the stats:
for i in `tmsh -q -c "list auth partition" | grep auth | awk '{print $3}'`; do echo $i; tmsh -q -c "cd /$i; reset-stats ltm rule; reset-stats ltm virtual; reset-stats ltm node; reset-stats ltm pool; reset-stats ltm snatpool; reset-stats ltm virtual-address"; doneHelp guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
