vSphere 5.1 sans le webclient : DVS Health Check

Autre fonctionnalité intéressante réservée au Web Client, DVS Health Check permet de remonter les erreurs de config de VLAN, MTU et teaming policy. Voici comment activer le “VlanMtuHealthCheck” et le “TeamingHealthCheck” en PowerCLI sur tous vos DVS où l’un des 2 checks ne serait pas actif :

Get-View -ViewType DistributedVirtualSwitch|?{($_.config.HealthCheckConfig|?{$_.enable -notmatch "true"})}|%{$_.UpdateDVSHealthCheckConfig(@((new-object Vmware.Vim.VMwareDVSVlanMtuHealthCheckConfig -property @{enable=1;interval="1"}),(new-object Vmware.Vim.VMwareDVSTeamingHealthCheckConfig -property @{enable=1;interval="1"})))}

Pour les admins qui aiment bien “aller voir si tout va bien ou pas”, il n’y a que le Web Client :

Et pour les autres, il y a les alarmes (par défaut) :

Bonus, vous pouvez changer l’intervalle par défaut (en minutes). Impossible en GUI :)

Tags: , ,

5 Responses to “vSphere 5.1 sans le webclient : DVS Health Check”

  1. Nice post.
    Like minds think alike ;-)
    We showed the same trick during our VMworld US session.

  2. Thanks Luc, maybe one day we could have a oneliner contest at vmworld :)

  3. [...] If you are interested in a PowerCLI solution, Raphael Schitz (famous for his one-liners) has also created a simple PowerCLI one-liner to modify the health check configurations and you can find more details on his blog here. [...]

  4. [...] If you are interested in a PowerCLI solution, Raphael Schitz (famous for his one-liners) has also created a simple PowerCLI one-liner to modify the health check configurations and you can find more details on his blog here. [...]

  5. [...] If you are interested in a PowerCLI solution, Raphael Schitz (famous for his one-liners) has also created a simple PowerCLI one-liner to modify the health check configurations and you can find more details on his blog here. [...]

Leave a Reply