ms5812
Enthusiast
Enthusiast

running vim-cmd command to enable MOB in ESXi6.X

I need some assistance, we are in the midst of deploying Nagios across our enterprise and it needs the enableMob as seen below on all of our Hosts across multiple data-centers. I have the multiple DC's covered but need the command string in PowerCLI to enable MOB as it is disabled by default in 6.X. I've searched and come up with the SSH method but need it on a much broader scale. Any help is greatly appreciated.

Here is the command vim-cmd proxysvc/add_np_service "/mob" httpsWithRedirect /var/run/vmware/proxy-mob

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10160...

pastedImage_1.png

Tags (1)
0 Kudos
1 Reply
LucD
Leadership
Leadership

Try like this

Get-VMHost | %{

    Get-AdvancedSetting -Entity $_ -Name  "Config.HostAGent.plugins.solo.enableMOb" |

    where{$_.Value -eq $false} |

    Set-AdvancedSetting -Value $true -Confirm:$false

}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos