Posted on July 6, 2021 6:47 pm
 |  Asked by Jonas Pfefferle
 |  200 views
0
0
Print Friendly, PDF & Email

Hi

Is there a way to gracefully shutdown an ProcMgr controlled agent/daemon programmatically? (like calling shutdown from the CLI)

I don’t want the agent to be restarted if there is an error which cannot be solved by a restart.

Thanks,

Jonas

0
Posted by Debasish Paul
Answered on July 7, 2021 2:21 pm

Hi Jonas,

Good Day! I understand you are looking for our assistance to know if there is a cli command to shutdown a procMgr controlled agent from CLI. May i know which agent are you looking to shutdown and why? This will help me access the impact of shutting down the agent as well as look into the possibilities of shutting it down gracefully.

Thanks,
Debasish

0
Posted by Jonas Pfefferle
Answered on July 7, 2021 4:43 pm

Hi Debasish

Sorry, I guess my question was not clear. I wrote an EOS extension with the SDK (https://github.com/aristanetworks/EosSdk). And I was wondering if there is a way to programmatically (from the code) shutdown the agent gracefully. I don't want the agent to be restarted if I know that the error is not recoverable even after restart.

Thanks,

Jonas

0
Answered on July 27, 2021 7:00 am

Hi Jonas

You can use the command "agent x shutdown" .

When you set off the shutdown command, agent will wait until agent_shutdown_complete_is true. This method is always initiated before agent shuts.

You can refer to this document http://aristanetworks.github.io/EosSdk/docs/1.7.0/ref/agent.html that provides some more context to this.

Hope that helps

Thanks,

Nikhitha jossie

Post your Answer

You must be logged in to post an answer.