---
title: "Toolkit - Passing environment variables that are set on the managed entity using the toolkit plugin"
description: "Passing environment variables set on a managed entity using the toolkit plugin enables script access. The toolkit plugin calls the script path and retrieves the environment variable defined on the managed entity."
url: "https://docs.itrsgroup.com/docs/faq/geneos/18192583390109-geneos-toolkit-passing-environment-variables-that-are-set-on-the-managed-entity-using-the-toolkit-plugin/index.html"
---
Here we have a VAR that was defined on a Managed Entity:

![Geneos - Toolkit - Passing environment variables that are set on the managed entity using the toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/18192583390109-18192585102365-mceclip1.png)

Please take note that you can define the path of your script as ./samplescript.sh

![Geneos - Toolkit - Passing environment variables that are set on the managed entity using the toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/18192583390109-18192583385629-mceclip3.png)

This calls out the script and enables it to call out the Env. variable that was defined on the managed entity.

![Geneos - Toolkit - Passing environment variables that are set on the managed entity using the toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/18192583390109-18192583386397-mceclip2.png)

Sampler Script:

![Geneos - Toolkit - Passing environment variables that are set on the managed entity using the toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/18192583390109-18192585103389-mceclip4.png)

Doing so should give you an output like this:

![Geneos - Toolkit - Passing environment variables that are set on the managed entity using the toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/18192583390109-18192585103645-mceclip5.png)


