- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- What is HP Server product number and how to get th...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-29-2011 04:22 PM
03-29-2011 04:22 PM
What is HP Server product number and how to get that ?
I'm in the middle of creating a script to get all HP server listing and its warranty in my domain (more than hundreds) but somehow I cannot get the HP Server product number like this (418315-371, 376138-371, etc) ?
getting the Serial number is easy by executing the following powershell script:
Get-WmiObject win32_SystemEnclosure -ComputerName ServerName | select serialnumber
can anyone help me in how to get the server product number ? as this is also mandatory in getting the the warranty (need both PN and SN).
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-18-2012 04:16 AM
07-18-2012 04:16 AM
Re: What is HP Server product number and how to get that ?
here's the script I use - vbscript
but remember if the motherboard was swapped and someone didn't plug in the serial / product id then your stuck.
On Error Resume Next
Const ForReading = 1
Const ForWriting = 2
dim strmanufacturer
dim strserial
dim strbiosver
dim strmodel
dim strprodid
'get the computer name
Set wshShell = WScript.CreateObject( "WScript.Shell" )
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
'WScript.Echo "Computer Name: " & strComputerName
'create the text file
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLogFile = objFSO.CreateTextFile("c:\inventory.csv", _
ForWriting, True)
'read the wmi variables for manufacturer, serial and bios version
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem in colItems
'Wscript.Echo "Manufacturer: " & objItem.Manufacturer
'Wscript.Echo "SerialNumber: " & objItem.SerialNumber
'Wscript.Echo "BIOS version: " & objItem.SMBIOSBIOSVersion
strmanufacturer = trim (objItem.Manufacturer)
strserial = trim (objItem.SerialNumber)
strbiosver = trim (objItem.SMBIOSBIOSVersion)
next
'read the wmi variables for manufacturer, product id and model
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("select * from Win32_ComputerSystem",,48)
For Each objItem in colItems
strOEMStringArray = Join(objItem.OEMStringArray, ",")
strOEMStringArray = trim (strOEMStringArray)
'WScript.Echo "OEMStringArray: " & strOEMStringArray
'wscript.Echo "model: " & objItem.Model
strmodel = objItem.Model
'wscript.echo strmodel
strprodid = trim (strOEMStringArray)
Next
objLogFile.Write strComputerName & ","
objLogFile.Write strmanufacturer & ","
objLogFile.Write strmodel & ","
objLogFile.Write strserial & ","
objLogFile.Write strOEMStringArray & ","
objLogFile.Write strbiosver
objLogFile.Close
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-10-2013 09:42 AM
04-10-2013 09:42 AM
Re: What is HP Server product number and how to get that ?
I know this is a late reply but I figured it could help others who come across this post.
You can get the HP Server Serial Number and Product ID/Number listed in the BIOS using these PowerShell command:
gwmi win32_bios | select SerialNumber
gwmi win32_ComputerSystem | select OEMStringArray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-11-2015 07:38 AM
05-11-2015 07:38 AM
Re: What is HP Server product number and how to get that ?
@HPNAB wrote:I know this is a late reply but I figured it could help others who come across this post.
You can get the HP Server Serial Number and Product ID/Number listed in the BIOS using these PowerShell command:
gwmi win32_bios | select SerialNumber
gwmi win32_ComputerSystem | select OEMStringArray
I just created an account to thank HPNAB for his input. With those powershell CLI's, I was able to get the product ID very quickly for my company.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-07-2015 03:52 PM
10-07-2015 03:52 PM
Re: What is HP Server product number and how to get that ?
Hi all,
so by running these commands we can get the serial# and the product number. Is there anyway to change the serial# without going to BIOS? Is there a powershell script or some other way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-20-2019 01:23 AM
03-20-2019 01:23 AM
Re: What is HP Server product number and how to get that ?
Hi. The script worked like magic, I would like to remotely obtain the same result from another machine.
Thanks
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP