VMware Cloud Community
AlbertWT
Virtuoso
Virtuoso
Jump to solution

List custom VIB in ESX 4.1 hosts ?

Hi People,

Is there any quick way to list any custom VIB in the ESX 4.1 hosts running the data center ?

I got approximately 30 VMhost and wondering if there is any way to list all of those custom VIb before I upgrade it to ESXi.

Thanks.

/* Please feel free to provide any comments or input you may have. */
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

As you can see from the returned object, there is no software element in there.

The vibs cannot be listed with this method in vSphere 4.*


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

View solution in original post

10 Replies
LucD
Leadership
Leadership
Jump to solution

Not sure if this works against an ESX 4.1, but can you try

$esxcli = Get-EsxCli -VMHost MyEsx

$esxcli.software.vib.list()


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

AlbertWT
Virtuoso
Virtuoso
Jump to solution

Luc,

Thanks for the assistance, it seems that in order to et the VIB, the connection must be using direct connection to the ESX host, not through VCenter.

Therefore I tried by using the following script but it is failed even though it is connected:

Connect-VIServer -Server ESXPROD01.domain.com -User root -Password "lala"

$esxcli = Get-EsxCli -VMHost ESXPROD01.domain.com

$esxcli.software.vib.list()

The error message: You cannot call a method on a null-valued expression.

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

In the latest PowerCLI builds you can call the Get-EsxCli cmdlet while connected to a vCenter.

You have to make sure to use the VMHost parameter.

Which PowerCLI version are you using ?

It looks as if the Get-EsxCli didn't return anything.


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

AlbertWT
Virtuoso
Virtuoso
Jump to solution

Hi Luc, I'm running the latest from PowerGUI console:

Get-PowerCLIVersion

PowerCLI Version

----------------

   VMware vSphere PowerCLI 5.1 Release 2 build 1012425

---------------

Snapin Versions

---------------

   VMWare AutoDeploy PowerCLI Component 5.1 build 768137

   VMWare ImageBuilder PowerCLI Component 5.1 build 768137

   VMware License PowerCLI Component 5.1 build 669840

   VMware VDS PowerCLI Component 5.1 build 1012428

   VMware vSphere PowerCLI Component 5.1 build 1012428

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Does this return anything ?

Get-EsxCli -VMHost ESXPROD01.domain.com

It could be that the VIB functionality is not present in Get-EsxCli in vSphere 4.*


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

RvdNieuwendijk
Leadership
Leadership
Jump to solution

The $esxcli.software.vib.list() command is not available on vSphere 4.1 hosts.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
AlbertWT
Virtuoso
Virtuoso
Jump to solution

Luc and Rob,

The results are as follows:

=============================

EsxCli: ESXPROD01.domain.com

   Elements:

   ---------

   corestorage

   network

   nmp

   swiscsi

   vaai

   vms

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos
AlbertWT
Virtuoso
Virtuoso
Jump to solution

Rob,

I'm connecting through my vMA by following the PDF (vsphere-esxi-vcenter-server-511-upgrade-guide.pdf) page 180:


esxcli --server=server_name software vib list

somehow it returns: Error: Unknown command or namespace software vib list

The ESX server in question is ESX version 4.1.0 433742

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

As you can see from the returned object, there is no software element in there.

The vibs cannot be listed with this method in vSphere 4.*


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

AlbertWT
Virtuoso
Virtuoso
Jump to solution

Yes, I guess you are right Luc, there is no way to list it in PowerShell.

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos