start_collecting_stats.py
Use this script to collect performance statistics. The current statistics, before the
script runs, are written to the ${MTX_LOG_DIR}/netstats_before.log
file.
After running this script, run the stop_collecting_stats.py script to
stop the statistics collection and write the data to the
${MTX_LOG_DIR}/netstats_after.log
file. The differences between the
before and after data is written to the ${MTX_LOG_DIR}/netstats_diff.log
file.
Statistics Utilities lists the utilities called by the start_collecting_stats.py script.
For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.
Utility | Statistics | Log File |
---|---|---|
iostat | CPU statistics, asynchronous input/output (AIO), and input/output statistics for the system, adapters, TTY devices, disks, CD-ROMs, tapes, and file systems. | iostat_stdout.log |
mpstat | Performance statistics for all logical processors. | mpstat_stdout.log |
mtx_pidstat | MATRIXX process statistics. | mtx_pidstat_stdout.log |
netstat | Network connections, routing information, network interfaces, multicast membership. Includes statistics for IP, ICMP, TCP, and UDP. | netstats_after.log
netstats_before.log |
sar | System activity information. The system-wide statistics among all processors are calculated as averages for values expressed as percentages and for others, as sums. | sar_stderr.log
sar_stdout.log |
vmstat | Kernel threads, virtual memory, disks, hypervisor pages, traps, and processor activity. The system-wide statistics among all processors are calculated as averages for values expressed as percentages and for others, as sums. | vmstat_stdout.log |
Syntax
start_collecting_stats.py
Example
run_cmd_on_blade.py -b 1 start_collecting_stats.py