Last updated: 2020-08-12
Source: https://support.freshservice.com/support/solutions/articles/50000002840-discovery-agent-commands-mac-linux-
You can use commands to force the agent to perform operations such as force a scan or update Freshservice. To execute the commands, open terminal and change directory to the 'bin' folder of the discovery agent installed location.
The mac agent default location is /Library/Freshservice-Agent/Freshservice-Discovery-Agent/bin
The Linux agent default location is /usr/local/sbin/Freshservice/Discovery-Agent/bin/
Manually trigger a scan of the device: dotnet FSAgentService.dll -scanManually trigger add device action if the device is not created in Freshservice after the agent is installed: dotnet FSAgentService.dll -add\_deviceForce update the discovered device details to Freshservice: dotnet FSAgentService.dll -updateUninstall discovery agent and update Freshservice: dotnet FSAgentService.dll -uninstallComplete uninstall of discovery agent without updating Freshservice: dotnet FSAgentService.dll -uninstall\_forceThese commands are supported from Mac Agent v4.0 and Linux Agent v3.0 onwards.