Automation

 View Only
  • 1.  collect hosts info accross multiple vCenters

    Posted Oct 18, 2022 01:29 PM

    hello all,

    We have multiple vCenters servers I'm trying is to collect some basic data (for start).

    I'm not sure why I get the data in  { }.

     am I missing something obvious here or I'm overthinking it?

    Thanks, Mike



  • 2.  RE: collect hosts info accross multiple vCenters

    Posted Oct 18, 2022 04:03 PM

    Your $esxi variable contains an array of ESXi nodes, hence all derived properties are also arrays (which the {} indicates)

    You can add another loop over all ESXi nodes.
    Something like this for example