VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: May 12, 2009 10:13 PM by LucD  

how to get detailed esx host info? posted: May 12, 2009 7:19 AM

Click to view vmsf's profile Enthusiast 58 posts since
Jul 14, 2006

Hi,

Is there a script available to find the following information reg. an esx host:

TIME ZONE, ESX UUID, ESX LICENSE, USERS CONNECTED, LIST OF REGISTERED VMS, LAST 30logins, VMWARE PROCESS LIST, SERIAL NUMBER,

LOCATION, HOSTID, PKGINFO, PASSWD/SHADOW/GROUPS ENTRIES ,

Contents of following files: KRB5.CONF YP.CONF NSCD.CONF

SYSLOG.CONF/INITTAB/SERVICES NETSTAT-NR output.

Thx,

-vmsf

Re: how to get detailed esx host info?

1. May 12, 2009 7:42 AM in response to: vmsf
Click to view harkamal's profile Hot Shot 219 posts since
Mar 19, 2009
Looks like you need professional help...or have you made some initial efforts and seek further help from the forum ?

Re: how to get detailed esx host info?

3. May 12, 2009 8:02 PM in response to: vmsf
Click to view cody.bunch's profile Hot Shot 152 posts since
Dec 28, 2007
Everything in PowerGUI however, has some PowerShell code on the backend that can be viewed. This would work well for some copy/paste into a script. As far as logins, and contents of files, I'm not sure you can get this directly from PowerShell (but I'm sure LucD will tell me otherwise).


-Cody Bunch
vExpert, VCP VI3
http://professionalvmware.com

Re: how to get detailed esx host info?

4. May 12, 2009 10:13 PM in response to: cody.bunch
Click to view LucD's profile Champion 2,430 posts since
Oct 31, 2005
The ESX information you're after can't be obtained directly with the VITK.

The alternative is to set up a session with plink to the COS and get the information from there (provided it is available).
Some examples can be found in Copy files (vmx) , how to script it ??, Retrieve VMX and Scipt to update ESX local file (esx.conf) on all hosts.
But note that the use of plink requires you to set up sudo on the COS.

Coming back to your question, if you can get the information at the console, you can get it with PowerShell via the use of the plink utility.

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