# How can you tell what version of sensu-go you're running

**URL:** <https://discourse.sensu.io/t/how-can-you-tell-what-version-of-sensu-go-youre-running/2963>\
**Category:** Getting Started\
**Created:** [July 22, 2022, 4:08pm UTC](https://discourse.sensu.io/t/how-can-you-tell-what-version-of-sensu-go-youre-running/2963 "2022-07-22T16:08:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinh](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sinh](https://discourse.sensu.io/u/sinh)\
**Post date:** [July 22, 2022, 4:08pm UTC](https://discourse.sensu.io/t/how-can-you-tell-what-version-of-sensu-go-youre-running/2963/1 "2022-07-22T16:08:06Z")

</div>

Hi -

I’m trying to figure out how to identify the “version” of sensu-go that is currently running. I’m aware of that you can run the commercial release of sensu-go for free (up to 100 nodes) but there is no node restriction in the OSS version. Before I go adding all the nodes I have in my environment into Sense I would like to know how I can identify whether I’m running the OSS version or the non-OSS version.

I’m not using a pre-compiled binary or their pre-built images. I ended up grabbing the source for both go and web and made docker containers out of it and running those.

Thanks.

---

<div class="post-metadata">

**Author:** ![calebhailey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/calebhailey/32/46_2.png) [@calebhailey](https://discourse.sensu.io/u/calebhailey)\
**Post date:** [July 26, 2022, 5:37pm UTC](https://discourse.sensu.io/t/how-can-you-tell-what-version-of-sensu-go-youre-running/2963/2 "2022-07-26T17:37:34Z")

</div>

The `/version` API can be used to check your Sensu backend version(s):

> **[/version | Sensu Go 6.7](https://docs.sensu.io/sensu-go/latest/api/other/version/)**
>
> Read this API documentation for information about the Sensu /version API endpoint, which provides HTTP access to Sensu and etcd versions.

Example:

```auto
$ curl -s http://127.0.0.1:8080/version 
{
  "etcd": {
    "etcdserver": "3.5.4",
    "etcdcluster": "3.5.1"
  },
  "sensu_backend": "6.7.2",
  "api_groups": {
    "core/v2": "v2.14.0",
    "core/v3": "v3.6.1"
  }
}

```

You can also use the [`/entities` API](https://docs.sensu.io/sensu-go/latest/api/core/entities/) to get version information for all of your connected agents. This works really well with tools like [`jq`](https://stedolan.github.io/jq/).

Example:

```auto
$ curl -sX GET -H "Authorization: Key $SENSU_API_KEY" "http://127.0.0.1:8080/api/core/v2/namespaces/default/entities" | jq .[] | jq '{name: .metadata.name, version: .sensu_agent_version}'
{
  "name": "3dc4fbb5e07c",
  "version": "6.7.2"
}
{
  "name": "learn.sensu.io",
  "version": ""
}
{
  "name": "workshop_app_1",
  "version": ""
}

```

Or if you have a lot of proxy entities – as shown above, from my Sensu Go Workshop environment, I have two proxy entities which would not have an agent version – you can [use a field selector to only return agent entities](https://docs.sensu.io/sensu-go/latest/api/core/entities/#get-a-subset-of-entities-with-response-filtering).

Example (`/entities?fieldSelector=entity.entity_class+matches+'agent'`):

```auto
$ curl -sX GET -H "Authorization: Key $SENSU_API_KEY" "http://127.0.0.1:8080/api/core/v2/namespaces/default/entities?fieldSelector=entity.entity_class+matches+'agent'" | jq .[] | jq '{name: .metadata.name?, version: .sensu_agent_version}'
{
  "name": "3dc4fbb5e07c",
  "version": "6.7.2"
}

```

I hope this helps!
