Please provide your feedback in this short Flings' survey.
This fling has been deprecated.
Jul 18, 2018

i am having a hard time getting all the packages to install in my windows 7 desktop. can this be run from a linux server?

Jul 18, 2018

Yes, you can run the script from Linux server

The following instructions work for me

1. install python 3.6
$ sudo yum -y install python36u python36u-pip

2. install pyvmoni and other packages
$sudo python3.6 -m pip install pyvmomi
$sudo python3.6 -m pip install crypto
$sudo python3.6 -m pip install pyopenssl

3. download ESXi Compatibility Checker and run
$python3.6 ./compchecker.py -s <host> -u <username>

Thanks!
Heejeong

Jul 18, 2018

Yes, you can run the script from Linux server

1. install python 3.6
$ sudo yum -y install python36u python36u-pip

2. install pyvmoni and other packages
$sudo python3.6 -m pip install pyvmomi
$sudo python3.6 -m pip install crypto
$sudo python3.6 -m pip install pyopenssl

3. download ESXi Compatibility Checker and run
$python3.6 ./compchecker.py -s <host> -u <username>

Thanks!
Heejeong

Jul 10, 2018

This tool has worked well for 32 hosts, but did not for two.
Server`1, version 5.5.0, build 3116895, ProLiant DL380p Gen8
Server2, version 5.5.0, build 3116895, ProLiant DL380p Gen8

What I am getting it the following error:
> collecting host information...
Please wait, this may take few minutes depending on the number of ESXi hosts...
Traceback (most recent call last):
File "C:\SWSETUP\compchecker_v1_8951845\compchecker.py", line 106, in <module>
compchecker()
File "C:\SWSETUP\compchecker_v1_8951845\compchecker.py", line 59, in __init__
raise(e)
File "C:\SWSETUP\compchecker_v1_8951845\compchecker.py", line 32, in __init__
self.hostmanager.connect()
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostmanager.py", line 56, in connect
self.connect_to_vchosts()
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostmanager.py", line 76, in connect_to_vchosts
if vc.connect(host, user, password, port, thumbprint):
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostresource.py", line 175, in connect
self.children.append(DCResource(self.hostname).set_datacenter(dc))
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostresource.py", line 256, in set_datacenter
for host in dc.get_hosts():
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostaccess.py", line 198, in get_hosts
self.collect_hosts()
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostaccess.py", line 193, in collect_hosts
self.hosts = super(DataCenter, self).collect_hosts()
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostaccess.py", line 80, in collect_hosts
hs = child.collect_hosts()
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostaccess.py", line 79, in collect_hosts
for child in self.get_children():
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostaccess.py", line 214, in get_children
self.children.append(Host(host_entity))
File "C:\SWSETUP\compchecker_v1_8951845\tools\hostaccess.py", line 229, in __init__
self.set_about_info(host.config.product if host and host.config else None)
File "C:\Program Files (x86)\Python 3.6.5\lib\site-packages\pyVmomi\VmomiSupport.py", line 574, in __call__
return self.f(*args, **kwargs)
File "C:\Program Files (x86)\Python 3.6.5\lib\site-packages\pyVmomi\VmomiSupport.py", line 394, in _InvokeAccessor
return self._stub.InvokeAccessor(self, info)
File "C:\Program Files (x86)\Python 3.6.5\lib\site-packages\pyVmomi\StubAdapterAccessorImpl.py", line 47, in InvokeAccessor
raise objectContent.missingSet[0].fault
pyVmomi.VmomiSupport.SystemError: (vmodl.fault.SystemError) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = '',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
reason = 'unexpected error reading property'
}

I have tested the password and I am able to login to the system through VMware client.

Thank You for any help you can give me,
Todd

Jul 10, 2018

HI Todd,

It seems that pyvmomi fails to read Host.config information of the specific hosts. Can you access the host via MOB, the managed object browser? (https://<your-host-name>/mob) And browse the host config (Data Object Type: HostConfigInfo) to see it's accssible?
Thanks,
Heejeong

Jul 11, 2018

Managed Object Type: ManagedObjectReference:ServiceInstance
Managed Object ID: ServiceInstance

Properties

NAME TYPE VALUE
capability Capability capability
content ServiceContent content
serverClock dateTime "2018-07-11T12:19:18.264838Z"

Methods

RETURN TYPE NAME
dateTime CurrentTime
HostVMotionCompatibility[] QueryVMotionCompatibility
ServiceContent RetrieveServiceContent
ProductComponentInfo[] RetrieveProductComponents
Event[] ValidateMigration

Jul 11, 2018

I can access the MOB web page. What I do not see data object type: HostConfigInfo.

Jul 11, 2018

Hi Todd,

You will need to navigate the MOB tree to search the specific hosts and their hostconfig information. Do you have all permissions for the hosts?
Can you check the health status of the hosts?
Thanks,
Heejeong

Jul 09, 2018

is it possible to stuff this all into a photon machine and run it as an applaince?

Jul 09, 2018

I will investigate and get back to you. Thanks!

Jul 03, 2018

Hi everyone,

Pip installation problem solution;

This Windows 10 python solution of the problem, Python installation setup is automatic installation. :(

Python setup first screen select to Customize Installation and second screen select all options and Python setup third page (Advance Options) pages select to Add Python to environment variables select and install Python.

Successfully Python install please restart Windows 10 PC and try pip installation commands, first pip module installation command run this users default folder.

C:\Users\Username\python -m pip install pyvmomi
C:\Users\Username\python -m pip install crypto
C:\Users\Username\python -m pip install pyopenssl

and try this

C:\compchecker\compchecker.py -s vc-or-esx-hostname -u username

Best regards.

Jul 03, 2018

Thanks for the information!