myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Report to list virtual machines and physical host name

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Report to list virtual machines and physical host name Page: [1]
Login
Message << Older Topic   Newer Topic >>
Report to list virtual machines and physical host name - 8/8/2008 4:31:37 PM  1 votes
nstout

 

Posts: 49
Score: 2
Joined: 8/17/2005
Status: offline
I am not the best at writing SMS / Config Mgr reports, but I managed to get this working and wanted to share. The source is a mashup of several reports with most of it coming from here (http://www.myitforum.com/forums/m_108892/mpage_1/key_virtual%252Cmachine/tm.htm#108892). There are probably others out there that need the same information. I have this on my Config Mgr 2007 SP1 system.

This report lists all the virtual machines and also adds the PhysicalHostName0 property. This tells you the name of the host server the virtual system is sitting on. If anyone can make this look nicer please post a reply.

Here is the report syntax:

SELECT distinct SYS.Netbios_Name0, Gvm.PhysicalHostName0, SYS.User_Name0,
SYS.Resource_Domain_OR_Workgr0,OPSYS.Caption0 as C054, OPSYS.Version0, ENCL.Manufacturer0,
CSYS.Model0, Processor.MaxClockSpeed0, MEM.TotalPhysicalMemory0, WSTATUS.LastHWScan

FROM v_R_System SYS
LEFT JOIN v_GS_VIRTUAL_MACHINE  gvm ON SYS.ResourceID=gvm.ResourceID
LEFT JOIN v_RA_System_IPAddresses IPAddr on SYS.ResourceID = IPAddr.ResourceID
LEFT JOIN v_GS_X86_PC_MEMORY MEM on SYS.ResourceID = MEM.ResourceID
LEFT JOIN v_GS_COMPUTER_SYSTEM CSYS on SYS.ResourceID = CSYS.ResourceID
LEFT JOIN v_GS_PROCESSOR Processor on Processor.ResourceID = SYS.ResourceID
LEFT JOIN v_GS_OPERATING_SYSTEM OPSYS on SYS.ResourceID=OPSYS.ResourceID
LEFT JOIN v_GS_PC_BIOS BIOS on SYS.ResourceID=BIOS.ResourceID
LEFT JOIN v_GS_SYSTEM_ENCLOSURE ENCL on SYS.ResourceID=ENCL.ResourceID
LEFT JOIN v_GS_WORKSTATION_STATUS wSTATUS on SYS.ResourceID=WSTATUS.ResourceID
LEFT JOIN v_R_User USERS on SYS.User_Name0 = USERS.User_Name0
WHERE OPSYS.Caption0 is not null and CSYS.Model0 = 'Virtual Machine'
ORDER BY SYS.Netbios_Name0, SYS.Resource_Domain_OR_Workgr0
Post #: 1
RE: Report to list virtual machines and physical host name - 8/8/2008 4:42:26 PM   
rcrumbaker


Posts: 873
Score: 23
Joined: 5/13/2002
From: Kentucky (aka The Promise Land)
Status: offline
http://myitforum.com/cs2/blogs/rcrumbaker/archive/2008/08/08/report-to-list-virtual-machines-and-physical-host-name.aspx

Excellent POST!!!
I put you on my blog! 

_____________________________

Thanks,
Ron
Microsoft MVP - SMS
rdcrumbaker@gmail.com
My Blog

(in reply to nstout)
Post #: 2
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Report to list virtual machines and physical host name Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.201