Skip to main content

Windows / Linux / Mac agent issue

Applies to: Medulla
Version: All
Environment: Windows / Linux / macOS / Public SaaS / Private SaaS / On-Premise
Category: Diagnostics / Agent / Connectivity

Overview

To facilitate the diagnosis of incidents encountered on a Medulla-managed workstation—such as an agent that is no longer reporting, an incomplete inventory, a failed deployment, or a communication issue with the server—Medulla provides a cross-platform diagnostic tool.

This script automatically performs dozens of checks on the workstation to help support teams quickly identify the source of the problem.

Unlike the old PowerShell script, which was limited to Windows workstations, this new tool works on:

  • Windows;
  • Linux;
  • macOS.

Note:
The script is written in Python. Since Python is automatically installed with the Medulla agent, no additional installation is normally required on managed workstations.

Important:
The diagnostic must be run using an account with administrator privileges. On Linux and macOS, use sudo. Without these privileges, certain checks and log collections may be incomplete.


Download the script

Download the diagnostic script from the following link:

https://dl.medulla-tech.io/nc/medulla_diagnostic_monolithic.py

In most browsers, right-click the link and select:

Save Link As...

Tip:
Save the script to the user’s Downloads folder so you can easily find it and the generated reports.


Prerequisites

Before running the diagnostic, check the following:

  • the workstation has a Medulla agent installed;
  • the script has been downloaded locally;
  • you have administrator rights on the workstation;
  • the workstation is connected to the network;
  • the script is run directly from the workstation experiencing the issue.

Important:
To obtain a complete diagnosis, the script must be run with elevated privileges: open a command prompt as an administrator on Windows, or run the command with sudo on Linux and macOS.

Note:
The script does not make any changes to the workstation’s configuration. It only performs checks and collects the information needed for diagnosis.


Running on Windows

Open a PowerShell console or Command Prompt as an administrator.

Open PowerShell as an administrator

From the Start menu:

  1. Search for PowerShell.
  2. Right-click on Windows PowerShell or Terminal.
  3. Select Run as administrator.
  4. Confirm the User Account Control prompt.

Important:
The word Administrator must appear in the window title. If it does not, close the console and reopen it with administrator privileges.

Navigate to the script’s folder using PowerShell

cd "$env:USERPROFILE\Downloads"

If the folder is named Téléchargements in French, Windows generally uses the system path Downloads anyway.

Run the diagnostic with PowerShell

python medulla_diagnostic_monolithic.py

If the python command is not recognized, try:

py medulla_diagnostic_monolithic.py

Running from the Command Prompt

Open the Command Prompt as an administrator, then run:

cd /d "%USERPROFILE%\Downloads"

Then:

python medulla_diagnostic_monolithic.py

Or, if necessary:

py medulla_diagnostic_monolithic.py

Note:
Python is installed with the Medulla agent. Depending on the workstation configuration, the available command may be python or py.


Running on Linux

Open a terminal with an account authorized to use sudo.

Navigate to the folder containing the script:

cd ~/Downloads

Then run the diagnostic with administrator privileges:

sudo python3 medulla_diagnostic_monolithic.py

Depending on your distribution, the following command may also work:

sudo python medulla_diagnostic_monolithic.py

You may be prompted for the current account password by sudo.

Important:
Do not run the command python3 medulla_diagnostic_monolithic.py without sudo. The script may not be able to access certain configuration files, services, or logs required for support.


Running on macOS

Open the Terminal app using an account with administrator privileges on the Mac.

Navigate to the folder where the script was downloaded:

cd ~/Downloads

Then run the diagnostic with administrator privileges:

sudo python3 medulla_diagnostic_monolithic.py

You may be prompted for the macOS administrator account password.

Important:
You must use sudo to allow the script to access system information, configuration files, and logs needed for the diagnostic.

Note:
The script automatically detects that it is running on macOS and adjusts the checks accordingly.


Available parameters

In most cases, the script should be run without any parameters.

It automatically detects:

  • the operating system;
  • the agent installation folder;
  • the configuration files;
  • the configured Medulla server;
  • the main network settings.

However, it is possible to customize its operation.

Specify a Medulla server

This setting allows you to test a server other than the one configured in the agent.

Windows:

python medulla_diagnostic_monolithic.py -s serveur.medulla.local

Or:

python medulla_diagnostic_monolithic.py --server 192.168.1.20

Linux / macOS:

sudo python3 medulla_diagnostic_monolithic.py -s serveur.medulla.local

Or:

sudo python3 medulla_diagnostic_monolithic.py --server 192.168.1.20

Select the output folder

This setting allows you to save the diagnostic report to a different directory.

Windows:

python medulla_diagnostic_monolithic.py -o C:\Temp

Linux:

sudo python3 medulla_diagnostic_monolithic.py -o /tmp

macOS:

sudo python3 medulla_diagnostic_monolithic.py -o /tmp

Use a custom installation folder

Use this setting if the Medulla agent is not installed in its default location.

Windows:

python medulla_diagnostic_monolithic.py -a "C:\Program Files\Medulla"

Linux / macOS:

sudo python3 medulla_diagnostic_monolithic.py -a /opt/Medulla

Silent mode

This setting reduces the amount of information displayed during execution.

Windows:

python medulla_diagnostic_monolithic.py -q

Linux / macOS:

sudo python3 medulla_diagnostic_monolithic.py -q

Tip:
For standard use, run the script without any parameters so that it automatically retrieves the Medulla agent configuration.


Automatic tests

The script automatically performs dozens of checks to verify that the managed workstation is functioning properly.

System information

  • operating system;
  • system version;
  • architecture;
  • computer name;
  • current user;
  • Python version.

Installing the Medulla agent

  • automatic agent detection;
  • checking the installation directory structure;
  • presence of key executables;
  • detection of installed plugins.

Agent configuration

  • reading configuration files;
  • analysis of agentconf.ini;
  • analysis of cluster.ini;
  • automatic detection of the Medulla server;
  • analysis of communication settings.

File checks

  • verification of the presence of key files;
  • calculation of MD5 hashes when available;
  • checking the syntax of the agent's Python scripts.

Log collection

The main logs from the Medulla agent are automatically collected to facilitate troubleshooting.

Important:
Some logs are accessible only with administrator privileges. Therefore, the script must be run from an administrator console on Windows or with sudo on Linux and macOS.

Network tests

The script also checks network connectivity between the workstation and the Medulla platform.

Note:
The script does not make any changes to the workstation. It only reads, verifies, and collects information for Medulla support.


Analysis of results

Upon completion, the script displays a summary of the main checks performed.

Each test is identified as:

  • OK: the check is valid;
  • WARNING: an anomaly was detected, but it does not necessarily prevent the system from functioning;
  • ERROR: the test failed and requires investigation.

Note:
One or more warnings do not necessarily mean that Medulla is no longer functioning. They help guide the support team’s diagnosis.

Caution:
If the script was not run with administrator privileges, some results may appear as errors or be missing without this necessarily indicating a malfunction in Medulla.


Network tests performed

The script automatically checks network connectivity between the workstation and the Medulla platform.

DNS resolution

  • resolution of the Medulla server name;
  • validation of the obtained IP address.

TCP connectivity

The script automatically tests the main ports used by Medulla.

Port Service
22 SSH
80 HTTP
443 HTTPS
111 RPC Portmapper
2002 Medulla API
2049 NFS
5222 XMPP
8443 HTTPS Medulla
9990 Administration
9999 Alternative administration
22067 Medulla service
55415 Medulla service

UDP connectivity

The following UDP ports are also checked when in use:

  • 67 — DHCP;
  • 69 — TFTP;
  • 111 — RPC Portmapper;
  • 2049 — NFS.

Note:
Not all ports are necessarily used in every environment. Requirements depend on the Medulla architecture and the enabled features.


Information collected

To facilitate troubleshooting, the script automatically collects a set of technical details about the workstation.

System information

  • operating system;
  • version;
  • architecture;
  • computer name;
  • current user;
  • Python version.

Medulla configuration

  • agent configuration;
  • cluster configuration;
  • configured Medulla server;
  • installed plugins;
  • network settings.

File verification

  • presence of main files;
  • integrity check using MD5 hash when available;
  • syntax check of Python scripts.

Logs

The agent’s main logs are automatically retrieved to facilitate support analysis.

Note:
The script collects only the information necessary to diagnose Medulla’s operation.

Important:
Running the script without administrator privileges may result in an incomplete archive. Before sending the file to support, verify that the script was run with the required privileges.


Generated archive

At the end of the diagnostic process, the script automatically generates a ZIP archive containing all the collected information.

The name of this archive includes a timestamp to make it easier to identify.

Example:

pulse_diagnostics_MONPOSTE_20260801_103245.zip

This archive contains, among other things:

  • the complete diagnostic report;
  • system information;
  • the agent's configuration files;
  • collected logs;
  • network test results.

Important:
Do not modify the contents of this archive before sending it to Medulla support.


Submitting to Medulla support

To allow support to begin the analysis and expedite the processing of your request, attach the following to your ticket:

  • the complete ZIP archive generated by the script;
  • a detailed description of the problem you encountered;
  • the date and time of the last test performed;
  • any screenshots of error messages;
  • the name of the affected workstation.

Important:
Without the ZIP archive generated by the diagnostic tool, the Medulla teams may not have the information needed to begin analyzing an incident related to the agent.

These details generally help identify the source of the malfunction more quickly and reduce the need for further back-and-forth communication.


Frequently asked questions

Does the script change the workstation’s configuration?

No.

The script only reads, verifies, and collects information.

Do I need to install Python?

No.

The Python engine used by Medulla is automatically installed with the agent.

Are administrator privileges required?

Yes.

The script must be run:

  • from a console opened as an administrator on Windows;
  • with sudo on Linux;
  • with sudo on macOS.

Without these permissions, certain files, services, and logs may be inaccessible.

Can I run the script multiple times?

Yes.

The script can be run as many times as necessary. A new timestamped archive is generated each time it runs.

Do I need to run the diagnostic again after making a change?

Yes.

After any configuration changes, network fixes, or agent reinstallation, generate a new archive so that support has up-to-date information.

Does the script work on all Medulla environments?

Yes.

  • Public SaaS;
  • Private SaaS;
  • On-Premise.

Best practices

  • always run the diagnostic with administrator privileges;
  • run the script directly on the affected workstation;
  • do not interrupt the script before it finishes running;
  • always submit the complete ZIP archive;
  • do not modify the generated files;
  • run a new diagnostic after any configuration changes;
  • include the date and time of execution in the ticket;
  • keep only the archives necessary for resolving the issue.

Tip:
Before opening a ticket with Medulla support, always run this script with administrator privileges and attach the generated archive. This procedure significantly reduces the time required for diagnosis.


Summary

Item Description
Supported systems Windows, Linux, and macOS
Administrator rights Required
Windows command python medulla_diagnostic_monolithic.py
Linux command sudo python3 medulla_diagnostic_monolithic.py
macOS command sudo python3 medulla_diagnostic_monolithic.py
Installing Python No additional installation is normally required
Automatic detection Yes
Configuration analysis Yes
Log analysis Yes
Installation check Yes
Network testing DNS, TCP, and UDP
ZIP archive generated Yes
Compatible with Public SaaS Yes
Compatible with Private SaaS Yes
Compatible with On-Premise Yes

Recommendation:
The Medulla diagnostic tool is the fastest way to obtain the information needed to analyze an incident. Running it with administrator privileges and sending the complete ZIP archive reduces the need for back-and-forth communication and significantly speeds up the resolution of agent-related issues.