VMware Cloud Community
Vimal348
Enthusiast
Enthusiast
Jump to solution

How to remove software vib using powershell

Hello,

Can someone please help me to remove the below 3 software vib from our ESXi hosts which prevent the upgrade from 6.7 to 7.0

esxcli software vib remove -n scsi-mpt3sas
esxcli software vib remove -n net-qlge
esxcli software vib remove -n scsi-snic

I am able to run the above commands by connecting each ESXi hosts. But we have almost 450 esxi hosts. So I am looking for something I can use with the help of powershell.

Appreciate your help in advance!

 

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I suggest you use the V2 switch.
Then you can use the CreateArgs() method to see which parameters are needed.
When the hash table is ready call the Invoke() method, as explained in that post I linked to


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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

You could use Get-EsxCli
Have a look at PowerCLI 6.3 R1: Get-ESXCLI Why the V2? for more details.


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

0 Kudos
Vimal348
Enthusiast
Enthusiast
Jump to solution

Thank you very much for helping me @LucD 

Is this something like this:
$esxcli = Get-EsxCli -VMHost <Host Name>
$esxcli.software.vib.remove --vibname 'scsi-mpt3sas'

But I am getting error. Not sure what will be the correct commands 

0 Kudos
LucD
Leadership
Leadership
Jump to solution

I suggest you use the V2 switch.
Then you can use the CreateArgs() method to see which parameters are needed.
When the hash table is ready call the Invoke() method, as explained in that post I linked to


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

0 Kudos
Vimal348
Enthusiast
Enthusiast
Jump to solution

Thank you @LucD ,

You Rocking again. Once again you helped me.

0 Kudos