VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
7 Replies Last post: May 3, 2009 11:37 AM by vmwaeiscsi  

viewing a VM's vmware.log posted: Aug 29, 2008 7:54 AM

Click to view bruce.downs's profile Novice 10 posts since
Apr 16, 2008
Does anyone know of a way to view a given VM's vmware.log file in the PowerShell Toolkit?

On ESX 3.x I do the following:
$ tail /vmfs/volumes/VirtualMachines2/de3vc20/vmware.log

or the VM's vmx file
$ tail /vmfs/volumes/VirtualMachines2/de3vc20/de3vc20.vmx

On ESXi, I use the Remote CLI's vifs.pl to copy locally and then view in local viewer.

Either way, it's a tedious task if I use VI Client and Virtual Center as my management interface.

Re: viewing a VM's vmware.log

1. Aug 29, 2008 1:59 PM in response to: bruce.downs
Click to view halr9000's profile Master 813 posts since
Jun 7, 2007
I wish I could answer this one but I can't. There is an experimental file browsing facility with this version of the toolkit but its barebones right now. There is no feature to download the files, just scan the listings.

Creating a PSDrive to browse your inventory

Until VMw enhances this facility and/or writes high level cmdlets, it cannot be done easily. With enough delving into the SDK it would be possible. I need to check out vifs.pl to see what it does.

Other options are to wrap plink.exe or even the RCLI. Would be a little odd and not as robust of course.






Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)

Re: viewing a VM's vmware.log

3. Sep 2, 2008 12:55 AM in response to: bruce.downs
Click to view LucD's profile Champion 2,430 posts since
Oct 31, 2005
Hi Bruce,
Is this a free plug-in ?
Or is it part of their ECM product ?

Re: viewing a VM's vmware.log

5. Sep 2, 2008 12:27 PM in response to: bruce.downs
Click to view LucD's profile Champion 2,430 posts since
Oct 31, 2005
A nice "teaser" ;-)

Would the method you used be feasible from within a PS script ?
I couldn't find an SDK method to "read" the VMX file. :-(

Re: viewing a VM's vmware.log

7. May 3, 2009 11:37 AM in response to: bruce.downs
Click to view vmwaeiscsi's profile Novice 20 posts since
Apr 30, 2009
Hi
can you please write back how to add the plug in for VC to find vmware.log.
thank you
sp

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities