If an issue persists or is not covered in our Troubleshooting section, the Teramind Support team is ready to assist.
To effectively diagnose and expedite the resolution of the problem, we require a copy of your Agent logs. Logs provide detailed insights into the operation of the Teramind Agent, which can help in diagnosing and resolving various issues. By sharing these logs with support, you enable faster investigation and resolution.
This guide provides detailed instructions on how to collect and submit the necessary log files.
Windows Logging
All Windows methods require downloading and using the TMDIAG utility and running an elevated Command Prompt. This tool is used to collect Teramind Agent logs, conduct diagnostics and debugging by our support team.
Method 1: Collecting Logs to Reproduce an Issue (Quick Method)
This method is best when the issue can be quickly and reliably reproduced.
1. Download TMDIAG: Download tmdiag.zip from https://static-www.teramind.co/download/tmdiag.zip and extract it (e.g., to C:\temp\tmdiag).
2. Open Elevated Command Prompt:
Open the Start Menu, search for
cmd.exe.Right-click on it and select Run as administrator.
3. Navigate to the Tool's Folder:
cd C:\temp\tmdiag
4. Run Log Capture Command:
Execute the following command (or an alternate one provided by Teramind Support):
tmdiag reproduce issue diag
5. Reproduce the Issue: Keep the Command Prompt window open. Perform the steps that cause the issue.
6. Finalize and Submit: Once the issue is reproduced, switch back to the Command Prompt and hit any key.
This generates
issue.zipin thetmdiagfolder.
7. Submit the File: Submit the ZIP to [email protected]. You can also send it via the chat or attach it with a support ticket (Cloud customers only).
Method 2: Collecting Logs for Extended Periods (Long-Term Logging)
Use this method when the issue is intermittent, hard to reproduce, or requires logging across a reboot.
1. Download and Setup: Follow Steps 1-3 from the Method 1 above to download and navigate to the tmdiag folder in an Elevated Command Prompt.
2. Enable Persistent Logging:
tmdiag log agent on tmdiag log svc on restart
3. Wait for Issue to Occur: Logging is now active. Repeat the steps that previously caused the issue, or, if you aren't sure, use the computer normally until the issue is reproduced.
4. Collect and Report: Once the issue occurs, run the collection command:
tmdiag collect report
This generates
report.zipin thetmdiagfolder.
5. Submit the File: Submit the ZIP to [email protected]. You can also send it via the chat or attach it with a support ticket (Cloud customers only).
6. Disable Logging (Clean Up):
tmdiag log all off tmdiag service tsvchst restart
Method 3: Collecting Logs with Video (TMDIAG+)
This is the same process as the Quick Method, but uses a different tool to include an MP4 video recording of the session, which can be crucial for detailed investigation.
1. Download TMDIAG+: Download tmdiag+.zip from https://static-www.teramind.co/download/tmdiag+.zip and extract it (e.g., to C:\temp\tmdiag+).
2. Open Elevated Command Prompt: Follow Step 2 from the Method 1 above.
3. Navigate to the Tool Folder:
cd C:\temp\tmdiag+
4. Run Log Capture Command:
tmdiag reproduce issue diag
5. Reproduce the Issue: Keep the Command Prompt open, and perform the steps that cause the issue.
6. Finalize and Submit: Hit any key after reproducing the issue.
This generates
issue.zipandissue.mp4in thetmdiag+folder.
7. Submit the Files: Submit both files to [email protected]. You can also send them via the chat or attach them with a support ticket (Cloud customers only).
Method 4: Collecting Agent Connectivity Logs (Manual Method)
Support may request these specific logs to diagnose connection issues.
1. Open File Explorer: Open File Explorer:
2. Enter the Logs Folder Path: Enter the following path in the address bar:
C:\ProgramData\{4CEC298-5CE4-48F-A717-8FC833D817A}\logs
3. Compress Files: Select all the .log files in the folder, right-click, and choose Compress to ZIP file (or equivalent option):
4. Submit the File: Submit the ZIP to [email protected]. You can also send it via the chat or attach it with a support ticket (Cloud customers only).
macOS Logging
For macOS, logging is enabled by modifying the Agent configuration file.
1. Open Agent Configuration: Open the following file in a text editor like TextEdit:
/usr/local/teramind/agent/etc/agent.conf
2. Enable Logging: Add the following line to the end of the file:
log-settings=file:~/tmagent.log
(Optional: You can specify a different path, e.g., file:~/Library/Logs/tmagent.log)
3. Configure Log Parameters (Optional): Use the following parameters to change the default log file settings and set the level of detail (granularity) for the logs:
Parameter | Example |
log-file-size |
|
log-file-count |
|
log-total-size |
|
log-level Lets you specify how much information is captured in the log. The values can be from 0-2.
If no value/invalid value is specified,
Here’s an example log where the |
|
4. Restart Agent Service: Open the Terminal app and run the command corresponding to your Agent type:
Revealed Agent:
sudo killall tmui; open '/usr/local/teramind/agent/bin/Teramind Agent.app'
Hidden Agent:
sudo killall "System Monitoring"; open "/usr/local/teramind/agent/bin/System Monitoring.app"
5. Locate Logs: After reproducing the issue, navigate to the employee's Home folder (or the path you specified). Log files will be named in the format: tmagent_yyyy-mm-dd_hh-mm-ss.log.
6. Compress the Logs (Optional): Use the following command in Terminal to create a single ZIP file of the logs for easy submission:
sudo zip -r ~/Downloads/logs.zip /usr/local/teramind/agent/logs
This creates
logs.zipin your Downloads folder.
7. Submit the Files: Submit the .log files (or the ZIP) to [email protected]. You can also send them via the chat or attach them with a support ticket (Cloud customers only).

