VMware Cloud Community
td_sk
Contributor
Contributor

Daily health check report

Hi All,

   I am trying to generate the health check report from all the vcenters in my environment.

I am trying with the following script but the result from one vecenter is appending in all vcenters.

Moreover regarding the network scripts it works perfectly in standard switch. But not in VDS ( cisco nexus)

We replaced all the STD switch to VDS ( nexus) . Out put file also attached for reference.Any help will be great helpful.

Siv

0 Kudos
1 Reply
markdjones82
Expert
Expert

For your Vcenters you are connecting concurrently to each one without disconnecting from the original in the for loop and therefore are getting the data from the previous loop.  Add a disconnect-viserver to the bottom of your fore loop for Vcenter each time.

For VDS

change your line for network to this and see what that gets you: $VMHostView.Config.Network.ProxySwitch

http://www.twitter.com/markdjones82 | http://nutzandbolts.wordpress.com
0 Kudos