Automation

 View Only
  • 1.  How to remove software vib using powershell

    Posted Feb 17, 2022 06:15 PM

    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!

     

     



  • 2.  RE: How to remove software vib using powershell

    Posted Feb 17, 2022 06:29 PM

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



  • 3.  RE: How to remove software vib using powershell

    Posted Feb 17, 2022 06:42 PM

    Thank you very much for helping me  

    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 



  • 4.  RE: How to remove software vib using powershell
    Best Answer

    Posted Feb 17, 2022 07:03 PM

    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



  • 5.  RE: How to remove software vib using powershell

    Posted Feb 17, 2022 07:14 PM

    Thank you  ,

    You Rocking again. Once again you helped me.