This is a monitoring script for the Edge to be used when directed by Broadcom Support for troubleshooting Edge perfomance issues. This script can also be used to determine if edge node form factor sizing is appropriate.
The script collects the following data on the Edge node every 60 seconds:
VMware NSX-T Datacenter 3.x
VMware NSX
The installation of this script is strictly only for versions NSX 3.x and 4.0 and 4.1 releases. For NSX version 4.2 and later the script is built-in so go directly to Step 3.
Warning: The script will continue collecting with no log rotation until stopped. Over time this could result in the exhaustion of free space on /var/log. It is important after the investigation completes to stop the script.
As root user SCP the attached script, dp_stats.py to the NSX Edge.
1. ssh as root user and place the script in following location /opt/vmware/nsx-edge/bin/
2. Give appropriate permissions to the script,
3. Add the script to cronjob to run every 20s using the following command,
4. Confirm that following entries are installed in crontab,
5. The data will be collected periodically and dumped to /var/log/vmware/dp-stats.log.
6. To stop and remove the script
Note: Once this script is enabled it will run until stopped. Monitor disk usage for /var/log/vmware/