# VMware vCenter

## Prerequisites: <a href="#prerequisites" id="prerequisites"></a>

VMware vCenter is a management software to manage and monitor VMware vSphere virtual infrastructure environments. CloudFabrix's RDA supports integrating with VMware vCenter through it's API interface to collect the inventory on-demand or on schedule basis.

* Supported VMware vCenter versions are 5.5, 6.x and above.
* User account with 'read-only' access permissions for all of the Virtual Infrastructure objects (Datacenter, Cluster, ESXi Host, Virtual Machine, Datastore, Resource Pool etc)

## Creating an user account with read-only permissions for API access: <a href="#enabling-api-access-on-appdynamics-saas-controller" id="enabling-api-access-on-appdynamics-saas-controller"></a>

**Step 1**: Login to VMware vCenter web client  using a supported web browser with an user account which has enough privileges to create a new account and set the read-only permissions for all Virtual Infrastructure objects.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXFfPdYgE7wdZyCwSXD%2F-MXGQOtj0oSV4CjdCEuW%2FScreen%20Shot%202021-04-02%20at%2012.12.54%20AM.png?alt=media\&token=47ce6cf0-4569-466c-a2af-e212a51f8790)

**Step 2**: Click on '**Menu**' and click on '**Administration**'.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXFfPdYgE7wdZyCwSXD%2F-MXGR9zzhk638idWE3Po%2FScreen%20Shot%202021-04-02%20at%2012.15.27%20AM.png?alt=media\&token=0663f64c-395a-46fb-a26a-203d3cfe4dde)

**Step 3**: Click on '**Users and Groups**'  on left menu, click on '**Users**', select domain as '**vsphere.local**' and click on ' **Add User**' button.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXFfPdYgE7wdZyCwSXD%2F-MXGT3fxtGYnl--h5DIm%2FScreen%20Shot%202021-04-02%20at%2012.24.30%20AM.png?alt=media\&token=66a338a3-28fe-41ac-8b98-17550c5b3a62)

**Step 4**: Enter user account details as shown below and click on **Add** button.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXFfPdYgE7wdZyCwSXD%2F-MXGUG1txcM-pHcN0C9I%2FScreen%20Shot%202021-04-02%20at%2012.29.45%20AM.png?alt=media\&token=a666ad78-eb02-4be2-9294-157d4df8bde3)

**Step 5**: Click on '**Menu**' and click on '**Home**' button.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXFfPdYgE7wdZyCwSXD%2F-MXGUpq1SP0AhJnz6cVC%2FScreen%20Shot%202021-04-02%20at%2012.32.13%20AM.png?alt=media\&token=952b8336-ba1d-440c-b58c-5ffaeb4350fb)

**Step 6**: Click on '**vSphere Cluster**' icon and click on '**vCenter**' object on left and click on '**Permissions**' tab and click on '**+**' button.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXFfPdYgE7wdZyCwSXD%2F-MXGVv6eO0V1wEUo3ZWq%2FScreen%20Shot%202021-04-02%20at%2012.36.59%20AM.png?alt=media\&token=1e45c80a-7e54-48a3-8d87-4b9e303bb35f)

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXGWAAMGo-IWRwCVgpK%2F-MXGWcMs3IetqxitGsg0%2FScreen%20Shot%202021-04-02%20at%2012.40.01%20AM.png?alt=media\&token=6a5ce2f6-140e-4c0e-a577-6a9f8ac65456)

**Step 7**: Under '**vsphere.local**' domain, enter 'readonly' user account which was created above and select the '**Role**' as '**Read-only**' and click on '**OK**'.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXGWAAMGo-IWRwCVgpK%2F-MXGXETrmBS84J7aX1Tn%2FScreen%20Shot%202021-04-02%20at%2012.42.43%20AM.png?alt=media\&token=e29a54c3-739b-452b-b7c4-5bc412e89146)

## Adding VMware vCenter as Datasource/Extension in 'RDA': <a href="#adding-appdynamics-as-datasource" id="adding-appdynamics-as-datasource"></a>

VMware vCenter or any other datasource/extension's configuration is configured in RDA's user interface.  Login into RDA's user interface using a browser.

**https\://\<rda-ip-address>:9998**

Under '**Notebook**', click on '**CFXDX Python 3**' box

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvHoBvh7w9qGIU_z-A%2F-McvJao2W2zwuMV05Ek3%2FScreen%20Shot%202021-06-23%20at%205.01.23%20PM.png?alt=media\&token=1aa15ba1-6465-4c67-9cc8-ac4ed66f895f)

In the '**Notebook**' command box, type **`botadmin()`** and **`alt (or option) + Enter`** to open datasource administration menu.

Click on '**Add**' menu and under **Type** drop down, select **`vmware-vcenter`**

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvHoBvh7w9qGIU_z-A%2F-McvLpTSfHkATU0kDn3T%2FScreen%20Shot%202021-06-23%20at%205.11.06%20PM.png?alt=media\&token=a5729f3f-0398-439b-b003-1aeefc4549a1)

* **type**: Datasource/Extension type. In this context, it is '**vmware-vcenter**'
* **name**: Datasource/Extension label which should be unique within the RDA
* **Hostname:** VMware vCenter's IP Address or DNS name
* **Username**: User account that was created with 'read-only' permissions
* **Password**: User account's password

Click on '**Check Connectivity**' to verify the network access and credentials validity. Once it is validated, click on '**Add**' button to add the vCenter as datasource.

## VMware vCenter data exploration in '**RDA**': <a href="#adding-appdynamics-as-datasource" id="adding-appdynamics-as-datasource"></a>

Once VMware vCenter integration details are configured in the RDA's as datasource, it will be ready to connect to VMware vCenter instance and explore the data for the analysis.

* Run the below command to check and verify network access to VMware vCenter instance using the read-only user account's credentials entered within the RDA's datasource configuration.  The '**status**' output should show as '**OK**'

```
check vcenter
```

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXGYp_leXLfN0fNkvtG%2F-MXG_DlXFqgRHNDfr4Xy%2FScreen%20Shot%202021-04-02%20at%2012.55.50%20AM.png?alt=media\&token=12d2494e-f986-4a9d-a9b9-b5be2c412c3a)

```
> tags vcenter

or

> bots vcenter
```

* Run the below command within the **RDA CLI** to list the available '**Tags**' or '**Bots**' for VMware vCenter extension. In this example, the VMware vCenter extension is labelled as '**vcenter**' which will be referenced within each applicable tag name.

{% hint style="info" %}
Each listed '**tag**' starts with a special character (i.e. **\*** or **#** or **@**) and each hints about **tag's** filtering capability. For more information abut them, please refer to "[**RDA Terminology**](https://docs.cloudfabrix.io/rda/introduction-to-rda/rda-terminology)"
{% endhint %}

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MXGYp_leXLfN0fNkvtG%2F-MXGZcI4Z4ArW4Uv-hU9%2FScreen%20Shot%202021-04-02%20at%2012.52.58%20AM.png?alt=media\&token=d6edd4dd-4327-4e3d-a4a2-3b28e702f33d)

Tags:

* **vms**: Collects VMware virtual machine inventory
* **hosts**: Collects VMware ESXi Hosts and Cluster inventory
* **vswitches**: Collects VMware Standard & Distributed vSwitch inventory
* **datastores**: Collects VMware datastore storage inventory

Run the below commands to query and collect the VMware virtual machine inventory data.

```
> bot *vcenter:vms
```

```
*vcenter:vms> data
```

Run the below commands to query and collect the ESXi Hosts and Cluster inventory data.

```
> bot *vcenter:hosts
```

```
*vcenter:hosts> data
```

Run the below commands to query and collect the ESXi Standard & Distributed vSwitch inventory data.

```
bot *vcenter:vswitches
```

```
*vcenter:vswitches> data
```

Run the below commands to query and collect the ESXi datastore inventory data.

```
bot *vcenter:datastores
```

```
*vcenter:datastores> data
```

## VMWare vCenter exploration in '**RDA**': <a href="#adding-appdynamics-as-datasource" id="adding-appdynamics-as-datasource"></a>

Once VMWare vCenter integration details are configured in RDA as a datasource, it will be ready to connect to targe Nagios and explore the data for the analysis.

For the details on vCenter data collection bots, refer [**CloudFabrix RDA Bot documentation.**](https://bot-docs.cloudfabrix.io/Bots/vmware-vcenter/)
