The dScribe agent lets dScribe load metadata from sources inside your network, such as an on-premise SQL Server or PostgreSQL database, without opening your firewall to incoming traffic. You install it once on a Windows machine that can reach those sources. It connects out to dScribe and forwards only the connections dScribe makes to the sources you allow.
Before you start
A Windows machine: Windows Server 2016 or later, or Windows 10 or later, 64-bit, that stays on. You need administrator rights to install. Pick a server that only administrators log on to.
Outbound access to dScribe: the machine must be allowed to connect to
gateway.dscribedata.comon port 443. The agent keeps one connection open (a websocket over HTTPS). No inbound rule is needed.Access to your sources: the machine must reach each source's host and port, for example
sql01.corp.local:1433.A proxy, if you use one: write down its address, for example
http://proxy.corp:8080. The agent runs as a Windows service, and services do not use the proxy configured in Windows, so you enter it during the installation.Access in dScribe: you need to be an administrator in dScribe. If you do not see Admin > Agents, ask your dScribe contact to switch on agents for your organisation.
Install the agent
In dScribe, go to Admin > Agents and create an agent. Give it a name that says where it runs, for example "Plant network". The Install panel opens.
Click Download installer. The download link is valid for 30 minutes; open the panel again for a new one. The panel shows the file's SHA-256 checksum if you want to verify it.
Copy the key shown in the panel. Keep it private: it lets the agent log in to dScribe as your organisation.
On the Windows machine, run
dscribe-agent-<version>.msiand follow the wizard:API key: paste the key.
Network: enter your proxy if the machine reaches the internet through one. Under Allowed sources, you can list the only hosts dScribe may reach through this agent (see Allowed sources). Leave a field empty if it does not apply.
On the last page, leave Open the agent's status page ticked and click Finish. The status page opens in your browser.
Back in dScribe, the Install panel shows Connected, usually within a minute.
You can now choose this agent as the connection method when you add or edit a source in dScribe. Enter the source's host and port as the agent's machine sees them.
Install without the wizard
For automated deployments, run this from an administrator command prompt in the folder with the installer. The Install panel in dScribe shows the exact command with your key.
msiexec /i dscribe-agent-<version>.msi /qn API_KEY=<key>
You can add these optional properties:
Property | Example | Use it to |
|---|---|---|
|
| Reach dScribe through a proxy. With a login: |
|
| Limit the hosts dScribe may reach through this agent. |
|
| Move the status page to another port, or turn it off with |
Without API_KEY, a silent installation stops with an error and installs nothing.
Allowed sources
By default the agent connects to any host dScribe asks for, as long as the machine can reach it. To limit it, list the allowed sources, separated by commas:
sql01.corp.local:1433: that host, on that port onlysql01.corp.local: that host, any port*.dwh.corp.local: any host underdwh.corp.local10.20.0.0/16:5432: any IP address in that range, on port 5432
Names are compared exactly as written and never looked up. An IP range therefore only matches sources that are configured in dScribe by IP address, and a host name only matches sources configured by that name. The agent refuses anything else and logs the refusal.
The status page
On the agent's machine, open Start > dScribe > dScribe Agent status, or go to http://127.0.0.1:47621. The page is only available on that machine. It never shows the key or the proxy password.
Connection: the agent's version, whether it is connected and since when, the number of reconnections and the last error.
Test the connection to dScribe: checks each step to dScribe and says which one fails: name lookup (DNS), the network or the proxy, the TLS certificate, and dScribe's answer.
Test a source: enter
host:portto check that this machine can reach a source. It also checks the allowed sources and, if you tick TLS, the source's certificate.Open connections: the connections dScribe currently has open through the agent, with their traffic.
Recent log: the latest messages from the agent.
The full log is in Event Viewer > Windows Logs > Application, source dScribeAgent.
Change a setting
The agent's settings are in the registry, under HKEY_LOCAL_MACHINE\SOFTWARE\dScribe\Agent. Change or add a value with the Registry Editor, then restart the dScribe Agent service (in Services, or Restart-Service dScribeAgent in an administrator PowerShell).
Value | Type | Meaning |
|---|---|---|
| String | The agent's key |
| String | The proxy to reach dScribe through |
| String | The allowed sources, separated by commas |
| DWORD | The status page's port (default 47621); 0 turns the page off |
| DWORD | Seconds before the first reconnection attempt (default 10). Later attempts wait longer, up to 5 minutes. |
If a value cannot be used, for example a proxy that is not a valid address, the service keeps running but does not connect. The status page and the Event Viewer then name the setting to fix.
Troubleshooting
Start with the status page: click Test under Test the connection to dScribe and look at the first step that fails.
What you see | What it means | What to do |
|---|---|---|
The DNS step fails | The machine cannot look up | Check the machine's DNS. Networks that only reach the internet through a proxy often cannot look up outside names: enter the proxy. |
The TCP step says "no answer" | A firewall drops outgoing traffic to port 443. | Allow outbound HTTPS to |
The TLS step says the certificate is not trusted | A proxy or firewall inspects HTTPS traffic with its own certificate. | Install your organisation's root certificate in the machine's Local Computer > Trusted Root Certification Authorities store, or exclude |
The gateway step gives an unexpected answer, such as 407 or 400 | The proxy needs a login, or blocks websockets. | Add the login to the proxy address, and allow websocket connections to |
All tests pass, but the agent does not connect, and the log says "auth token not found" | The key is wrong, or the agent was deleted in dScribe. | Copy the key again from Admin > Agents, put it in the |
The last error starts with "invalid settings" | A setting cannot be used. | Fix the setting it names and restart the service. |
A source fails to load with | The agent is offline. | Check that the dScribe Agent service is running and look at the status page. |
A source fails to load, and the agent's log says "not in AllowedDestinations" | The source is not in the allowed sources. | Add it, exactly as the source's host is written in dScribe, and restart the service. |
Test a source says "connection refused" | The host answers, but nothing listens on that port. | Check the port, and that the database accepts TCP connections. |
Test a source says "no answer" | A firewall between the agent and the source drops the traffic. | Allow the agent's machine to reach the source on that port. |
The status page does not open | The page is turned off, or another program uses port 47621. The Event Viewer then shows a warning. | Set |
Still stuck? Email [email protected] with a screenshot of the status page, including the test results, and the agent's events from the Event Viewer.
Update the agent
Download the new installer from Admin > Agents and run it. It updates the agent in place and keeps the key and every other setting. You cannot install an older version over a newer one.
Remove the agent
Uninstall dScribe Agent from Settings > Apps (or Programs and Features). This removes the service, its files and its settings. Then delete the agent in Admin > Agents, so its key no longer works.
