Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just inherited a medium-scale Virtual Environment of just over 100 VMs on three different networks. Unfortunatly, my predicessor did not inventory the physcial hard disks utilized in my 19 physical servers, and if possible, I need a way to identify thier serial numbers without bringing the server down.

Is there a console command that can query this information?

I have a mix of Dell and HP servers, if that in any way helps.

share|improve this question
5  
Why do you need their serial numbers? –  Chopper3 Aug 10 '11 at 15:24
    
Do you have 19 ESXi hosts? –  gravyface Aug 10 '11 at 15:31
    
Chopper - I need the SNs because I have to account for every single item I have in my data center, including every HDD. The only way to accuratly do that is by serial number. –  DodgerUSMC Aug 10 '11 at 15:54
4  
@DodgerUSMC - that's seriously anal - though I'm assuming that one part of your user name shows why, still, seriously control-freakish :) –  Chopper3 Aug 10 '11 at 16:14
1  
@DodgerUSMC: the only place a serial number matters is through the vendor; start there, seriously: why do all this inventory yourself when a Dell service tag can tell you everything you need to know about the system. –  gravyface Aug 10 '11 at 17:07

3 Answers 3

I know you can get this with sdparm, but it's doubtful it's installed. Might be in dmesg; the drive model should be in there at least and you'll need to access tech support mode first.

What I would do is just inventory the Dell service tags (and whatever the HP equivalent is; some others can probably assist there) of the servers and use the vendor's lookup tool to see what shipped with the server, what the warranty covers, etc.

Dell tags should be right on the front of the server if rack mounted or top-front if tower.

You should be able to get this from the tech support mode with dmidecode if it's installed with: dmidecode |grep -i "serial number" and that might even work for the HP servers.

EDIT

Another option (assuming you're using vCenter) would be to install the Dell vCenter plugin; it gives you OpenManage-like functionality (including a complete hardware inventory) for your Dell ESXi hosts. I would imagine that HP has something similar.

Probably the best option for not just disk serial numbers, but for ongoing monitoring/management of the ESXi hosts' hardware.

share|improve this answer
    
Thanks for the reply gravyface. I should clarify now that these servers are all more than three years old, and the odds of them having the shipped HDDs still in them are extremely low. I know for a fact that these servers have been in three different continents in the past three years, and in various states of maintenance. –  DodgerUSMC Aug 10 '11 at 15:53
    
Why would that be "extremely low"? I have dozens of 3-year old servers out there with the original drives in them or the odd one replaced within warranty; I would say that's pretty typical. Any replacements would likely be with the vendor service history. I'd start there; save yourself some work. –  gravyface Aug 10 '11 at 16:50
    
After each use, these HDDs are removed from all servers and placed into a shipping container with no note of where they were installed. They are then shipped to another group of admins whos SOP is to throw the drives into the servers upon arrival, re-initialize, and reformat. Its a less-than-idea setup, believe me. –  DodgerUSMC Aug 10 '11 at 17:17
    
that also would likely void any warranty on the servers. Are you using a SAN to store the virtual machines? –  gravyface Aug 10 '11 at 17:25
    
the warranty on these servers expired long ago. And yes, I have a full cluster of NetApp filers hosting the VMs. –  DodgerUSMC Aug 11 '11 at 1:32

In VMWare ESXI the serial number of physical hard disks are at the end of their name. The whole name looks somthing like

t10.ATA____XXXXXXXXXXXXXXXXXXXXXXXXX____________________SERIALNUMBER

and the serial number is the last part of it.

share|improve this answer

maybe using the vmware api: https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.ScsiLun.html (search serialnumber on that site). Untested. You would need the vmware sdk

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.