Solved

Vspher CLI: Script  For Serial No of ESXi host

Posted on 2013-11-15
3
2,043 Views
Last Modified: 2013-11-23
Hi,

Anybody please share me script used to fetch the Serial No of ESXi hosts as i have 400 esxi details need to consolidate.

Or

Please let me know the vsphere cli command for the same
0
Comment
Question by:kbjijo
  • 2
3 Comments
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39652142
this depends on your hardware, vendor, make and model, are you using the vendors version of ESXi, which version of ESXi

see this script here:-

http://philthevirtualizer.com/2012/02/17/powercli-get-hp-dl-server-serial-number-via-vcenter-and-ilo/

otherwise you can also use:-

/sbin/esxcli hardware platform get

or

/usr/sbin/dmidecode |grep -A4 “System Information”

but depends on ESXi version
0
 

Author Comment

by:kbjijo
ID: 39652480
I am looking for the command remotely too pull the information ( Apprx: 400 ESXi)

Please let em know the vSphere CLI Cmdlet.

_.Hardware.SystemInfo.OtherIdentifyingInfo[0].IdentifierValue _> This value returns NULL for my ESXi.
0
 
LVL 119
ID: 39652680
what servers do you have?

did you see the script?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question