-5

I have a virtual machine and boss says "Hey, get me the specs on that server." Presumable because she wants to acquire a comparable one and will ask me to set it up from a backup of our current one.

What's a simple easy way to get the relevant specs?

The VMWare vSphere Client's Summary tab for the virtual machine is completely useless. It truncates all the strings such as the processor name and provides no way to see the whole string. Other settings provide only generic information such as the number of CPU cores.

I also don't know what "specs" she wants in particular, so your guess is as good as mine... whatever would be relevant for setting up a comparable virtual machine. I suppose as much information about the CPU type and speed as possible, network card and speed, OS, memory, disk sizes, etc.

I wish there was just a "getspecs" command I could run at the command line.

masegaloeh
  • 18,236
  • 10
  • 57
  • 106
Triynko
  • 3,418
  • 6
  • 31
  • 30
  • And your OS is...? – tombull89 Mar 03 '14 at 21:08
  • The OS varies. Currently Windows Server 2008 and 2012 Datacenter 64-bit. I would prefer an answer that either works with VMware virtual hosts in general (in which case the OS wouldn't matter), or an approach that would work for various operating systems, such as a multi-platform tool. I'm not sure whether the most detailed specs would be available from within the virtual hosting infrastructure such as through the VMware Client or if more information would be available only within the host OS itself, due to like... availability of drivers affecting emulated clock speed. – Triynko Mar 03 '14 at 21:25
  • 1
    To be clear, do you want the specs of the _physical host machine_? – Michael Hampton Mar 03 '14 at 21:44
  • 2
    Have you considered asking your boss what she means by "specs"? It seems like it would be a shame for you to spend a lot of effort figuring out how to do *x* only to find out that she's actually interested in *y*. – Rob Moir Mar 03 '14 at 22:00
  • 5
    `I also don't know what "specs" she wants in particular` - Seriously? Why do people do this? If my boss or my client asks me for something and I don't fully understand what they're asking me for then I ask them to clarify it for me. I do not ask the gods of the internet to help me figure out what they mean. Half the battle of being good at your job (whatever your job happens to be) is having and using common sense. – joeqwerty Mar 03 '14 at 22:18
  • I get needing to run something to gather utilization stats, but if you have to run a tool when someone says "what are the specs on that server?" then you haven't been properly documenting your inventory to begin with. – TheCleaner Mar 03 '14 at 22:31
  • have you thought to ask your hosting provider? most are pretty open with you; they know they are dealing with professionals... usually. – SnakeDoc Mar 04 '14 at 05:36
  • Have you clarified what "specs" they want? There is no use in trying to answer a question when we don't really know what the question really is. – Rex Mar 04 '14 at 06:45

4 Answers4

1

Coworker just recommended running "dxdiag" from the command line. The DirectX Diagnostic Tool pops up with a "System Information" group on the main tab, which displays:

  • Computer Name: ~omitting~
  • Operating System: Windows Server 2012 Datacenter 64-bit (6.2, Build 9200)
  • Language: English (Regional Setting: English)
  • System Manufacturer: VMware, Inc.
  • System Model: VMware Virtual Platform
  • BIOS: PhoenixBIOS 4.0 Release 6.0
  • Processor: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.2GHz (4 CPUs), ~2.2GHz
  • Memory: 4096MB RAM
  • Page file: 3579MB used, 1220MB available

But it doesn't show disk sizes or anything else.

Triynko
  • 3,418
  • 6
  • 31
  • 30
1

My favorite way to do this is with RVtools. It is free and trusted, it connects to your vCenter server. It is easy to install connect and extract data for an number of VMs.

Helpful hints for RVtools find the view\filter at the top. You can highlight the data wanted and use cntl + c to copy or go to file and export. strong text

Also note that from Windows cmd C:\systeminfo is helpful for finding what you need.

1

Interesting question from your boss, but one that's largely irrelevant in the world of virtualisation.

The specification of your host servers is more relevant, that is, maintaining compatible processor families in your DRS cluster(s), e.g.: compatible EVC modes. Moving on from here, the next most relevant question is how much resource headroom you have; with RAM more often than not being more important that CPU bandwidth, disk I/O or network I/O.

So, if it's a capacity management exercise your boss is trying to address, I'd dig out the host specs (server make/model, #sockets, #cores, hyper-threading setting, EVC mode, physical RAM, #NICs, #HBAs), and their associated loadings, over, say a seven day period.

If it's merely a VM spec she's after, then guest O/S, RAM allocation, number of vCPUs, CPU shares/limits, memory shares/limits should suffice.

All of this is available through vCenter, although not in one place. My preference here is PowerCLI - you can quickly gather all of the above using the VMware cmdlets, such as Get-VMHost, Get-VM. Further information can be gathered using the ".NET views", e.g.:

Connect-ViServer -Server "vcenter-host";
$objGuest = Get-VM -Name "myguestname";
$objGuestView = Get-View -id $objGuest.id;
$objGuest | Format-List;
$objGuestView | Format-List;

The above code is a simple example. Shout if you'd like more info.

Simon Catlin
  • 5,232
  • 3
  • 17
  • 20
0

I would recommend exporting a list. Filter as needed, export to Excel, email to boss and call it a day. And, of course, there are scripts and tools that do essentially the same thing, but I can't imagine why an exported list such as from that link wouldn't be sufficient for the boss.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
  • That's useful, although even after selecting all available fields, it doesn't provide the clock speed of the CPU. The EVC Mode comes closest providing the name of the CPU, but not the clock speed, so even this approach is a bit lacking, and wouldn't work as a general solution for getting the specs quickly and easily. – Triynko Mar 03 '14 at 21:22
  • @Triynko ...because the clock speed is determined by the host, not the guest. The guest just gets a vCPU/vCore of the same clock speed as in the hosts, and reservations, shares or limits on that CPU can be set as a Resource Allocation... but none of that changes the fact that your guest's clock speed is whatever speed CPU your host is running on. – HopelessN00b Mar 04 '14 at 13:43