...
This is a small command line interface (CLI) utility to gather very specific SQL Server telemetry information that drives the optimization of SQL Server licensing. The focus of this application is to gather data about running and operational SQL Servers in a manner that allows for the export of the information without providing the access credentials to the report-requesting organization. This can be compiled and run on Windows, Mac, and Linux for all of the most common chipsets, but the default packages are compiled for the following platforms:
...
For other operating systems and build targets, please contact support@cloudreachhelpdesk@cloudamize.com
How to Use
In order to use this, you will need to download from the links provided above, this will provide you with the latest version of the application. Since this is a CLI based application, it is required that you have some knowledge of how to use your Terminal or Command Line (Powershell for Windows is perfectly acceptable as well). Regardless of Operating System (Input)
In the directory where you downloaded the application, create a new file called servers.csv
- which can be done with vi, emacs, Notepad, Excel, or any other format that can write to in CSV format. The format for this file is on each line write . Write out the Data Source Name (DSN) connection string for each of the SQL servers you would like to gather the information. You can provide 1 or 3000, there is no limit. The recommended connection string uses a URL format:
...
In your Windows command prompt of preference (Command Prompt or Powershell), change the directory to where you downloaded the file and saved the aforementioned servers.csv file.
Run the following command.
Code Block |
---|
sqlserver-telemetry.exe servers.csv |
...
In your Linux terminal, change the directory to where you downloaded the file and saved the aforementioned servers.csv file.
Run the following command.
Code Block |
---|
./sqlserver-telemetry servers.csv |
...
This utility will generate a JSON file called telemetry.json
that which is a machine and human-readable list of all of the output for the telemetry commands run against each of the listed DSN connection strings in the servers.csv
file. For each connection string, it will capture the following information as accessible from within SQL Server AND the permissions allowed to the connection string account:
...
In order to make this more resilient, any errors identified during the execution of this utility will be silently captured and stored in the Errors field. This allows for maximal telemetry gathering without having to repeatedly trial and error within a customers customer's site. It is important to note that the output will NOT have any sensitive credential information and can therefore be exported with minimal to no risk associated. Issue
File (Output) Upload
Follow these steps in the Cloudamize Console to upload the SQL Telemetry output file:
When the above process completes, there will be a telemetry.json file in the Downloads folder
Log into the Cloudamize Console
Navigate to the Settings page
On the Inventory Settings > Pre-Cloud pane, you will see a tab called SQL Telemetry
Select SQL Telemetry and then click on the Upload link to upload the
telemetry.json
file.
We will fill in the following data collected from the above process where the data was not collected by the agent or agentless data collector.
On-Prem Server Name (REQ'D)
On-Prem SQL Server Edition(REQ'D)
On-Prem SQL Server Version(RCM'D)
On-Prem Operating System(REQ'D)
SQL Cluster Name
Passive Instance Using Log Ship, DB Mirroring(Non-Cluster)
SQL Availability Group
SQL Availability Group Role
SQL Max Server Mem in MB
SQL DB Mirroring Present
...
If you have any questions, concerns, or issues, please contact support@cloudreach helpdesk@cloudamize.com. This application is built using the Go Programming Language in order to allow for safe and reliable software that is cross-platform.