View unanswered posts | View active topics It is currently Sat Oct 19, 2019 10:01 pm



Reply to topic  [ 2 posts ] 
 VCLI command for ESX4 
Author Message

Joined: Wed Aug 17, 2011 8:40 pm
Posts: 1
Reply with quote
Post VCLI command for ESX4
Hi,

We are trying to automate the installation of our product on VM.
i found most of the commands via vcli which will enable me to power on power off, take snapshot etc.

But could not find a way to get the iso file on the cd rom.

For previous versions we used setconfig command

vmware-cmd .... setconfig ide0:0.filename ../../...iso

This command is not working in esx 4.
Please suggest an alternate way for doing so.

A similar requirement is ter for floppy. Would that be possible


Wed Aug 17, 2011 8:47 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: VCLI command for ESX4
Have you taken a look at the sample apps that come with the vCLI?
On my PC they're located in these paths -
C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\apps\vm
C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\samples\vm

PowerCLI could also handle the CD change, but that would require porting your script over.

If you don't find a sample vCLI script that can do this, post something in the vCLI forum on VMware's site. William Lam (forum user lamw) does a fair bit with the vCLI and vSphere API and may be able to point you to another script that could leverage the API to make the change you want.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Aug 18, 2011 10:27 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.