How to gather statistics from a virtual Traffic Manager cluster.
"stats" command inside "zcli" tool will output all possible statistics for a virtual Traffic Manager, i.e. type:
zclistats
You can also review the vTM's Control API documentation's "System.Stats" interface for statistical information.
If you need to extract the output to a file, follow instructions below:
If you have a script file called stats-rate-script and in the file you have the line below:stats rateThen you can call the file with zcli:zcli stats-rate-script orzcli --formatoutput stats-rate-script which should create a CSV of the output, or use the --formatoutput argument and that should give something similar to the interactive mode.It is recommended to do this in the /logs directory where there should be plenty of space.
Feedback
Please tell us how we can make this article more useful.