Difference between revisions of "Bandwidth on ESXi"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
echo '*/10 * * * * /bin/sh /vmfs/volumes/'''DATASTORE_NAME'''/bandwidth.sh http://backend.'''domain''' '''TOKEN'''' >> /var/spool/cron/crontabs/root | echo '*/10 * * * * /bin/sh /vmfs/volumes/'''DATASTORE_NAME'''/bandwidth.sh http://backend.'''domain''' '''TOKEN'''' >> /var/spool/cron/crontabs/root | ||
EOL | EOL | ||
Disable ESXi SSH service |
Revision as of 14:11, 23 February 2022
Go to the AutoVM admin area and create a user with admin access, then copy the user token.
Bandwidth configuration should be done per ESXi server.
Enable ESXi server SSH access. (Read how to Enable SSH on ESXi)
Connect to your ESXi server through SSH and follow the below steps:
- Change DATASTORE_NAME, DOMAIN, TOKEN on the below commands:
- Becareful about HTTP or HTTPS
$ cd /vmfs/volumes/DATASTORE_NAME/ && wget http://file.autovm.net/vmware/modules/bandwidth.sh $ cat > /etc/rc.local.d/local.sh <<EOL echo '*/10 * * * * /bin/sh /vmfs/volumes/DATASTORE_NAME/bandwidth.sh http://backend.domain TOKEN' >> /var/spool/cron/crontabs/root EOL
Disable ESXi SSH service