Jump to content
Welcome to our new Citrix community!
  • 0

Enter/exit maintenance mode with the API (xapi) and restart toolstack


birduser birduser

Question

Hi, I got two questions:

 

1. How can I enter/exit the the maintenance mode with the xen API?

Like the docs describe here: https://xapi-project.github.io/xen-api/classes/host.html

I can only find "host.enable" and "host.disable". Is it the same? 

 

2. How can I restart the toolstack (respectively the xapi) with the xen API?

I found "host.restart_agent" in the "host" class of the xapi:

https://xapi-project.github.io/xen-api/classes/host.html

Is this it, or what exactly is "the agent"?

 

Thanks!

Link to comment

5 answers to this question

Recommended Posts

  • 1

I'm not an API guy, but I am pretty confident host enable/disable and entering/exiting maintenance 

mode are indeed the same.  I would expect restarting the agent would be the toolstack as well as 

you suspect. Some simple scripting while watching XenCenter would verify. 

 

--Alan--

 

  • Like 1
Link to comment
  • 0

Thank for the responses! I tried, and when Disabling a host, the XenCenter shows it in maintenance mode, so indeed, enable and disable seems to be enter/exit maintenance mode. I just ask myself why are there two different terms used.

 

I will give a feedback when I tried "host.restart_agent" but I did not found the time to test it yet.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...