vCenter in V4.0 not scanning
Problem
Alvares version RC8, vCenter not scanning correctly.
Checked the connection for vmware is available, credential correct. iQSonar is set up to scan the vCenter as an application.
The below error message appears a number of times it the logging. It appears that the problem is with a missing VMWare dll or a version mismatch. All our namespaces within the code and logging start with iQuate.<something/> this starts with VMWare.
/Scan-10.210.9.249/0003810.210.9.249 <ApplicationUniqueness> A(ESX).S(ESX vSphere Uniqueness).P(vSphere) - WARN - Connection failed unexpectedly
System.Exception: Error connecting to vSphere: ---> System.MissingMethodException: Method not found: 'Void VMware.Vim.VimClient..ctor()'.
at iQuate.iQSonar.Connection.vSphere.vSphereClient.CreateConnection(IPAddress target, Int32 port, ConnectionOptions options)
— End of inner exception stack trace —
at iQuate.iQSonar.Connection.vSphere.vSphereClient.CreateConnection(IPAddress target, Int32 port, ConnectionOptions options)
at iQuate.iQSonar.Connections.SecuredConnectionFactory.CreateConnections(IPAddress target, Int32 port, ConnectionOptions options, IEnumerable`1 credentials, String instance)
The UI may display the following message in the Project Activity details:
"Skipping Strategy because of missing Protocol connection vSphere (audit=ESX@AU.1:ESX_vSphereUniqueness)
Solution:
The issue was down to the version of PowerCLI installed on the scan server. An uninstall of Powercli 5.5 release 2 PowerCLI-5.5.0-1931983.exe (which is currently part of iQSonar scan perquisites documentatin) is required and reinstalled Powercli 5.5 release 1 PowerCLI-5.5.0-1295336.exe
Remove the the traces of PowerCLI-5.5.0-1931983 from the machine in the GAC, located in c:\windows\assembly. Once this was resolved we were able to scan the vCenter
Download of vSphere PowerCLI 5.5 (release 1) PowerCLI-5.5.0-1295336.exe is located here: https://my.vmware.com/group/vmware/get-download?downloadGroup=PCLI550
Related articles