VMware Cloud Community
katyucha
Contributor
Contributor

List all disks on vmware with api perl

Hi,

I dont know if i ask my question on the right part of the forum... so sorry if i made mistake

I have a Esx 3.5 and want to list all vms and disk size by vm , using api perl (vmware-vcli)

An example file : vminfo.pl show me a lot of informations, but none about disk size.

When i try to have array of devices : @list = $vm->config->hardware-device

The size of @list is 0 ... no device 😕

how to have the list of device?

I've found a lot of script on web, but for vSphere Smiley Sad

Thanks for your help

Katyucha

0 Kudos
1 Reply
AlexD1979
Contributor
Contributor

Sehr geehrte Damen und Herren,

Von Montag, 07.06.2010 bis einschließlich Freitag, 25.06.2010 bin ich nicht im Hause. Bei Fragen oder Problemen können Sie sich an meine Kollegen im Büro oder aber an die Supportadresse support@tecracer.de wenden.

Ihre E-Mail wird nicht weitergeleitet.

===========

Dear Sir or Madame,

From monday, 07/06/10 until Friday, 25/06/10 I am not in office. In urgent cases please contact our support with support@tecracer.de or by phone to my other collegues.

Your mail will not be forwarded.

Mit freundlichen Grüßen / Best Regards

tecRacer GmbH & Co. KG

Alexander Diedler

Programmierer / Netzwerksicherheit

Vahrenwalder Str. 156

D-30165 Hannover

Phone +49 (0) 511 59 0 95 919

Fax +49 (0) 511 59 0 95 590

Cell +49 (0) 172 513 4664

Mail: adiedler@tecracer.de

Internet: www.tecracer.de<http://www.tecracer.de>;

Registergericht Hannover HRA 200331

Geschäftsführer: Markus P. Herrlich, Sven Ramuschkat, Torsten Höpfner

Kompl: tecRacer Verwaltungs GmbH, Hannover HRB 200935

0 Kudos