Discovery Agent Commands (Mac & Linux)

Modified on Wed, 12 Aug, 2020 at 8:40 PM

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 -scan
  • Manually trigger add device action if the device is not created in Freshservice after the agent is installed: dotnet FSAgentService.dll -add_device
  • Force update the discovered device details to Freshservice: dotnet FSAgentService.dll -update
  • Uninstall discovery agent and update Freshservice: dotnet FSAgentService.dll -uninstall
  • Complete uninstall of discovery agent without updating Freshservice: dotnet FSAgentService.dll -uninstall_force



These commands are supported from Mac Agent v4.0 and Linux Agent v3.0 onwards.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article