After installing a DLP agent on a macOS device, the Enforce Console displays the machine name as "apples-MacBook-Pro" instead of the device's actual hostname, causing confusion in endpoint identification.
Unlike Windows, Mac uses different names for different purposes. Ideally while setting up a new machine, one needs to make sure that all the names are set to the same on Mac endpoints.
To check all the names, run the below commands
1] hostname
2] sudo scutil --get ComputerName
3] sudo scutil --get LocalHostName
4] sudo scutil --get HostName
If any of the above names are different, then it can show incorrect name on the Enforce Console
The following commands can be used to set all the names
How to set the Mac hostname or computer name from the terminal
1] sudo scutil --set HostName expectedhostname
2] sudo scutil --set LocalHostName expectedhostname
3] sudo scutil --set ComputerName expectedhostname
4] dscacheutil -flushcache
5] Restart your Mac
After doing the expected change, please check the endpoint name on the enforce.