Difference between revisions of "Bandwidth on ESXi"

From AutoVM WIKI
Jump to navigation Jump to search
Line 1: Line 1:
Bandwidth configuration should be done per ESXi server.
Go to the AutoVM admin area and create a user with admin access, then copy the user token.


At first, upload the bash script through this address and upload it on one of your ESXi server's datastores.
'''Bandwidth configuration should be done per ESXi server.'''


Then enable ESXi server SSH access. (read how to enable SSH on ESXi)
Enable ESXi server SSH access. (Read how to [[Enable SSH on ESXi]])


Connect to your ESXi server through SSH and follow the below step:
Download [https://raw.githubusercontent.com/autovmcompany/tools/main/scripts/bandwidth.sh bandiwdth.sh] on your computer, and upload it on one of your ESXi server's datastores.
 
Connect to your ESXi server through SSH and follow the below steps:


#Change DATASTORE_NAME on the below command and enter the datastore that you uploaded the bandwidth.sh file on it.
#Change DATASTORE_NAME on the below command and enter the datastore that you uploaded the bandwidth.sh file on it.
#Change domain.com
# Edit domain.com
#Change TOKEN
# Change TOKEN and replace the token that you created at first.
# Becareful about HTTP or HTTPS  
# Becareful about HTTP or HTTPS  


  $ echo 'sh /vmfs/volumes/DATASTORE_NAME/bandwidth.sh http://backend.domain.com/candy/backend/hook/machine/bandwidth TOKEN' > /etc/rc.local.d/local.sh
  $ echo 'sh /vmfs/volumes/DATASTORE_NAME/bandwidth.sh http://backend.domain.com/candy/backend/hook/machine/bandwidth TOKEN' > /etc/rc.local.d/local.sh

Revision as of 16:59, 2 November 2021

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)

Download bandiwdth.sh on your computer, and upload it on one of your ESXi server's datastores.

Connect to your ESXi server through SSH and follow the below steps:

  1. Change DATASTORE_NAME on the below command and enter the datastore that you uploaded the bandwidth.sh file on it.
  2. Edit domain.com
  3. Change TOKEN and replace the token that you created at first.
  4. Becareful about HTTP or HTTPS
$ echo 'sh /vmfs/volumes/DATASTORE_NAME/bandwidth.sh http://backend.domain.com/candy/backend/hook/machine/bandwidth TOKEN' > /etc/rc.local.d/local.sh