VMware {code} Community
itm_nakul
Contributor
Contributor

How use vminfo.pl

Hi all..

I am using VI Perl Toolkit on my esx 3.5 server..

i create some virtual machines on it..

i made a machine named "abc+xyz" ..

but when i am using vminfo.pl to get information of that machine, it shows that machine not found.

i am using this command: perl vminfo.pl --url --username myuser --password mypass --vmname abc+xyz from command prompt.

it shows that virtual machine not found.

please solve my issue...

thanks in advance...

regards

NAKUL

0 Kudos
1 Reply
admin
Immortal
Immortal

Have you name your Virtual Machine as "abcxyz" and you passed perl vminfo.pl --url *--username myuser --password mypass --vmname "abcxyz"?*

In that case you are seeing this issue because Perl treats both single and double quotes as string terminators. Try escaping the single quotes in your string with back slashes ( \ ).

Try passing \"abc+xyz\" as vmname

0 Kudos