VMware Cloud Community
avarcher
Commander
Commander

Windows based 3i cli - passing parameters

I'm trying to use the Windows based CLI for 3i. I've had difficulty passing parameters to the perl scripts, so esxcfg-vmhbadevs.pl works OK as it needs no parameters, but esxcfg-vswitch -l does not.

I've worked around it by setting the directory for perl.exe in the path and prefixing the command with 'perl', as in

'C:\Program Files\VMware\VMware VI Remote CLI\bin>perl esxcfg-vswitch.pl -l --server 192.168.153.128 --username root --password vmware'

I cant see how to do it as per the documentation without the path setting etc, have I missed something? If it makes any difference I'm using Vista to an installed 3i.

Thanks, Andy.

Labels (1)
Reply
0 Kudos
1 Reply
avarcher
Commander
Commander

Can I add that this is not a file association issue, I have the .pl file association set to perl. I can get scripts that need no parameters to work OK, it's just the ones that need parameters passed.

Reply
0 Kudos