Hi,
We have try this ESX - ESXi inventory with our .3.5 ESX .
After some test, i found that the libcrypt-ssleay-perl was not
install. It's because we have a http redirection to https.
After that, we can now log in ;)
But with a ESX 3.5, we got some bugs.
'systemInfo' => {
'otherIdentifyingInfo' => [
{
'identifierType' => {
'summary' => 'AssetTag',
'label' => 'AssetTag',
'key' => 'AssetTag'
},
'identifierValue' => ' unknown'
},
{
'identifierType' => {
'summary' => 'ServiceTag',
'label' => 'ServiceTag',
'key' => 'ServiceTag'
},
'identifierValue' => 'XXXXXXXXXXXX'
}
],
'model' => 'PowerEdge M600',
'uuid' => 'XXXXXXXXXXXXXXX',
'vendor' => 'Dell Inc.'
}
},
I have to fix
$inventory->setBios({
...
ASSETTAG =>
$hostFullInfo->[0]{hardware}{systemInfo}{otherIdentifyingInfo}{identifierValue},
});
To
$inventory->setBios({
...
ASSETTAG =>
$hostFullInfo->[0]{hardware}{systemInfo}{otherIdentifyingInfo}[1]{identifierValue},
});
After that i have another bug in the getVirtualMachineList();
This is the answer of the SOAP ESX 3.5 :-(
<soapenv:Body>
<soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring></faultstring><detail><InvalidPropertyFault
xmlns="urn:vim25"
xsi:type="InvalidProperty"><name>datastoreFolder</name></InvalidPropertyFault></detail></soapenv:Fault>
</soapenv:Body>
....
'_msg' => 'Internal Server Error', Too bad :(
I will continu the debugging ;)
Best Regards,
Ludovic.
Le 16/02/2011 18:42, Gonéri Le Bouder a écrit :
Hi,
During the last days I worked on ESX and ESXi inventory. The goal is
to create a nice interface
in GLPI. So far, I create a command line script to collect the
information and create a .ocs file.
An import point: we don't have dependency against VMware Perl library.
This will help a lot the
deployment of the tool.
We plan to finish the GLPI integration in the coming weeks.
I would be glad if you can give it a try on your ESX(i) servers to
ensure everything go right.
# Retrieve the files from the git repository. A git snapshot of the
agent is required
git clone git://github.com/fusinv/fusioninventory-agent.git
<http://github.com/fusinv/fusioninventory-agent.git>
cd fusioninventory-agent.git
git checkout 2.1.x
cd ..
git clone git://github.com/fusinv/fusioninventory-agent-task-esx.git
<http://github.com/fusinv/fusioninventory-agent-task-esx.git>
cd fusioninventory-agent-task-esx
perl -I../fusioninventory-agent/lib -Ilib ./fusioninventory-esx --user
root --password passord --host esx-server --directory /tmp
# this will generate a .ocs file in /tmp
# You can now push it in the server (ocsinventory of
GLPI+FusionInventory 4 GLPI beta1)
../fusioninventory-agent/fusioninventory-injector -v --file
/tmp/esx-server-2011-01-25-14-11-07.ocs -u https://myserver/ocsinventory
The script had been tested against OCSinventory 1.3.x server and
GLPI0.78+FusionInventory for GLPI beta1.
Best regards,
--
Gonéri Le Bouder
_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel
_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel