Obtaining a list of ThousandEyes Agent IP Addresses with te-iplist

Last updated: Sun Jan 26 12:28:14 GMT 2020

Customers may need the IP addresses of ThousandEyes Agents in order to construct firewall rules or similar filters. We do not publish a list of IP addresses, but customers can use the ThousandEyes application program interface (API) to obtain the IP addresses of both Cloud Agents assigned to your organization and Enterprise Agents assigned to your Account Group. You can query the API with a web browser, a custom script, or a RESTful API tool to obtain the latest list of IP addresses, or you can use our command-line tool - te-iplist.

Note that for Cloud Agents, the IP address assignment is relatively constant but subject to change without notice. Consult the Knowledge Base article Obtaining a list of ThousandEyes Agent IP Addresses for more information.


te-iplist is a command-line interface (CLI) utility that queries ThousandEyes API for the Agents available for your account and outputs Agent IPs in different forms (IP list, subnet list, IP range list, IP block list) and formats (plain text, CSV, JSON, XML).


 On Linux and macOS ensure the utility is executable before the usage:

chmod +x te-iplist


Refer to the te-iplist documentation for all available parameters or issue the command with the -h switch:

./te-iplist -h

User and API Token

In the te-iplist commands illustrated in the following sections, the authentication fields need to be filled in this way:  

<user> : it's the user email.
<user-api-token> : it's the API Basic Authentication Token.

They can be retrieved in this page of the app: Account Settings > Users and Roles > Profile tab.

Usage examples

Display a list of all Cloud and Enterprise Agent IP addresses (-o ip):

$ ./te-iplist -u <user> -t <user-api-token> -o ip

Display a minimal list of subnets (-o subnet-loose) that cover Enterprise Agent IP addresses (-e). List should include Agent names as comments (-n):

$ ./te-iplist -u <user> -t <user-api-token> -o subnet-loose -e -n    # kubernetes te-agent-pod # ip-10-0-1-48.localdomain; csc-internal; office-12     # kubernetes te-agent-pod; ip-10-0-1-48.localdomain; csc-internal; office-12

Display a list of IP blocks (-o block-strict) of Cloud Agents (-c) IPv6 (-6) addresses:

$ ./te-iplist -u <user> -t <user-api-token> -o block-strict -c -6


Display a list of IP ranges (-o range-strict) of Enterprise Agents private (-e-private) IPv4 (-4) addresses:

$ ./te-iplist -u <user> -t <user-api-token> -o range-strict -e-private -4 -n - # primoz-centos-te; centos6 -   # thousandeyes-va-14244; thousandeyes-va-14403; thousandeyes-va66

Create a comma separated values (CSV) file which includes all Agents and all output formats:

$ ./te-iplist -u <user> -t <user-api-token> -o csv > all-agents.csv

You can open CSV file as a spreadsheet in your favorite Spreadsheet editor, such as LibreOffice Calc, Numbers or Google Sheets. Unfortunately Microsoft Excel does not support CSV files with new lines inside cells and will not import the generated CSV.

Loose vs Strict

IP subnets, IP ranges and IP blocks can be displayed in loose or strict notations. Strict notation covers only the IP addresses that are used by the Agents. Loose notation covers all IP addresses that are used by the Agents, but may also cover some of the addresses that are not used by the Agents. Loose notation typically covers all the Agent IP addresses with fewer entries. For example, IP addresses:

can be covered by multiple strict subnet notations:

or by a single loose subnet notation:

You should select the notation that is acceptable by your security standards.

Account Groups

Users assigned to multiple Account Groups can list the Agents available in a specific Account Group with the -a <accountGroupId> argument. You can list available Account Group IDs with:

te-iplist -u <user> -t <user-api-token> -account-groups

If -a is not provided, user's login Account Group is used.  For users in multiple organizations, only one login Account Group can be assumed; others will need to be specified.