Skip to main content

Rename agents tagged for entities

Applies to: Medulla – Agents
Version: All
Environment: On-Premise / Private SaaS / Shared SaaS
Category: Agents / Support

Agents linked to entities are all displayed with the same agent name, without the entity name.

To automatically rename these agents, log in to the server via the SSH console:

Go to: /var/lib/pulse2/medulla_agent/

cd /var/lib/pulse2/medulla_agent/

In our example, we have 2 entities: 

root@int:/var/lib/pulse2/medulla_agent# ls -l
total 8
drwxr-xr-x 2 root root 4096 Sep 25 15:06 bc25260b-b8e1-11f1-8b96-bc24115cf392
drwxr-xr-x 2 root root 4096 Sep 25 15:08 ff7cc7cf-b8e1-11f1-8b96-bc24115cf392

For each entity, we have the following binaries: 

root@int:/var/lib/pulse2/medulla_agent# ls -l bc25260b-b8e1-11f1-8b96-bc24115cf392
total 222940
-rw-rw-rw- 1 syncthing nogroup     13521 Sep 25 15:06 Medulla-Agent-linux-MINIMAL-latest.sh
-rw-rw-rw- 1 syncthing nogroup  80522943 Sep 25 15:06 Medulla-Agent-mac-arm64-latest.pkg
-rw-rw-rw- 1 syncthing nogroup 147742485 Sep 25 15:06 Medulla-Agent-windows-FULL-latest.exe
root@int:/var/lib/pulse2/medulla_agent# ls -l ff7cc7cf-b8e1-11f1-8b96-bc24115cf392
total 222940
-rw-rw-rw- 1 syncthing nogroup     13521 Sep 25 15:08 Medulla-Agent-linux-MINIMAL-latest.sh
-rw-rw-rw- 1 syncthing nogroup  80522956 Sep 25 15:08 Medulla-Agent-mac-arm64-latest.pkg
-rw-rw-rw- 1 syncthing nogroup 147742488 Sep 25 15:08 Medulla-Agent-windows-FULL-latest.exe

If you want to rename them while still being able to make them available through the Medulla interface, copy them and then rename them: 

root@int:/var/lib/pulse2/medulla_agent/bc25260b-b8e1-11f1-8b96-bc24115cf392# cp Medulla-Agent-windows-FULL-latest.exe /root/medulla-agent/ && mv /root/medulla-agent/Medulla-Agent-windows-FULL-latest.exe /root/medulla-agent/Medulla-Agent-windows-entiteA-latest.exe
root@int:/var/lib/pulse2/medulla_agent/bc25260b-b8e1-11f1-8b96-bc24115cf392#

In the target directory, list the renamed agent:

root@int:~/medulla-agent# ls
Medulla-Agent-windows-entiteA-latest.exe

This step must be repeated if the agents are regenerated, for example, when Medulla is updated.