So I’ve got a nice script to remove VIBs from ESX hosts that I point it at but the problem is that there are a number of parameters I can define but I don’t know *exactly* how they work and I can’t find strict definitions.
If I look at this list here: https://www.virten.net/2016/11/how-to-use-esxcli-v2-commands-in-powercli/
I can see that the command I’m interested in: $esxcli.software.vib.remove
has 5 parameters I can define:
I know what vibname, force and dryrun do but I don’t exactly understand what maintenancemode and noliveinstall do specifically.
My hope is that maintenancemode = $true would tell the command not to run unless the server was in maintenancemode, and I’m not exactly certain what noliveinstall would do.
Also, in the scripts I’ve seen it in, the parameters seem to all be answered in order like this: **$null, $false, $false, $true, @($_.Name)** but other than vibname, I’m not 100% certain of the order, and I don’t want to get it wrong.
I did a LOT of searching trying to find definitions of the parameters and it was hard enough just finding this list, so I’m not sure what I’m missing there but some clarity would be helpful. Thanks!
View Reddit by junon – View Source