Whether you use PowerShell to pull inventory information from Cisco UCS Manager or from VMware vCenter or from Microsoft SCOM, you will find those tools just report the processor name exactly as Intel or AMD display them. I find those strings to be unfriendly if you want to display them for a user or perform any further processing on them.
They look like this:
Intel(R) Xeon(R) CPU E7- 2860 @ 2.27GHz
Intel(R) Xeon(R) CPU E7-L8867 @ 2.13GHz
Intel(R) Xeon(R) CPU E5-2650L 0 @ 1.80GHz
Intel(R) Xeon(R) CPU E5-2643 0 @ 3.30GHz
Intel(R) Xeon(R) CPU E7- 4850 @ 2.00GHz
Intel(R) Xeon(R) CPU E5-2440 0 @ 2.40GHz
Intel(R) Xeon(R) CPU E5-2695 v2 @ 2.40GHz
Intel(R) Xeon(R) CPU X5687 @ 3.60GHz
Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
Take a look at the list above and notice all the irregularities:
1. The E7 processors have a space after the dash and the E5 processors do not.
2. The E5 processors have a zero between the model name and the speed.
3. The Westmere/Nehalem processors have a lot of spaces between the word CPU and the model name.
4. Second generation E5 processors have "v2" after the model name.
In addition to these irregularities, you likely don't need the words Xeon or CPU or the speed of the processor.
How do we make the ugly list above look like the list below?
Intel E5-2695 v2
It's all done with regular expressions in PowerShell. If you're not already familiar, a regular expression is a very powerful search mechanism that can appear very intimidating to the uninitiated. Luckily, I've written a function called Get-FriendlyProcName that takes care of the all of the complicated searching and replacing for you. You can provide it a single argument or give it pipeline input like this:
Get-FriendlyProcName "Intel(R) Xeon(R) CPU E5-2695 v2 @ 2.40GHz"
The UCS drives I have are firmware A005 since we keep them updated with HUU as recommended. The UCS-C22-M3 requires a 9240-8i for ESXi to be able to be installed. We are trying to find an actual use for it. The 9240-8i requires firmware A001 to be on my d...
I don't manage this system directly, but I'm involved in a project where we have a few C220 M5 with a VIC 1457 mLOM adapter installed.The settings for the "External adapters" is greyed out, and my theory at the moment is that the server has a "default ser...
does anyone know a simple way to export server inventory into a .csv file?ssh# show server versionmy goal is to have a easy to ready csv file with running firmware versionswe dont have intersight show server versionServer 1/1:CIMC:Running-Vers:...
I currently have the primary and secondary DNS servers defined in Unity. I'm wondering if there is a way to set a tertiary DNS server. Has anyone found a way to set a third DNS server? For example something like this:set network dns primary X.X.X.Xse...
Hello, I'm setting up a new UCS chassis with some B200M5 blades VIC1440.Connecting these blades for boot on san on VNX backend worked with no issue and setup of esxi 6.5 worked perfectly. Just facing right now an issue for connecting those blade...