We followed the steps:
This gives the error that agent install is corrupt.
Then we did the following step:
This uninstall the agent successfully.
Then we installed again:
This install the agent successfully.
We check the agent status with following command,
It shows the agent is started good.
We successfully able to stop end start the agent with following commands: