This post is more than 5 years old

20 Posts

4925

July 8th, 2016 02:00

Register ESXi hosts managed by a vCenter

Hello,

I'm currently working on a project that uses the Unity Rest API. I'm trying to automatically register ESXi hosts that are managed by a vCenter.

I understand that vCenter and ESXi are hostContainer from the API point of view but I'm not sure to understand how to link them...

Can someone help me ?

Regards

20 Posts

July 8th, 2016 13:00

Thank you all for helping !

I've find the solution in the API documentation (I know... RTFM...). For the record, it's a 2 step process:

  1. Ask the vCenter to provide a list of hosts than can be imported.
  2. Import the vCenter and the hosts in the same request

Hope it can help somebody else...

Regards,

24 Posts

July 8th, 2016 07:00

I'm not sure what you are intending here. Unity (and VNX before it) automatically detects and registers ESXi host initiators once they are zoned into the array and the host is powered on. There is no need to perform this manually unless it is pre-staging the environment before the host is online.

Can you clarify what you need if the automatic detection and registration is not working or is not what you desire?

Here is the Host connectivity to Access VMWare Datastores Guide  https://support.emc.com/docu69326_Unity-Family-Configuring-Hosts-to-Access-Vmware-Datastores.pdf?language=en_US

Cheers!

20 Posts

July 8th, 2016 08:00

Thanks for the reply,

Unity seems quiet different than VNX as you can register a vCenter manually and it will import for you the hosts associated to. There are some advantages to that:

  • You don't have to connect a ESXi to be able to see his initiators.
  • When you authorize an ESXi to access a VMware LUN, the Unity will automatically force a rescan of the ESXi HBA and (if necessary) create a VMFS datastore.

This is very easy to configure in the GUI but I can't find a way to do that through the Rest API...

Regards,

4 Operator

 • 

8.6K Posts

July 8th, 2016 08:00

what is the equivalent Unity CLI command ?

Top