03-13-2014 08:16 AM - edited 03-01-2019 11:34 AM
Has anyone developed any scripts or ? that can extract the serial numbers of their UCS equipment? For the life of me I can't understand why the blade export utility doesn't include serial number.
We're not using UCS Central yet.
Any help appreciated.
thanks.
Solved! Go to Solution.
03-13-2014 09:42 AM
My favorite CLI commands are (putty session to fabric interconnect required)
"show Fabric-interconnect inventory expand" ===> Fabric Interconnect, Expansion Modules, Fans and PSUs
"show chassis inventory expand" ===> Chassis, IOM, PSU's and Servers
"show server inventory expand" ===> Servers and Adapters
03-13-2014 09:42 AM
My favorite CLI commands are (putty session to fabric interconnect required)
"show Fabric-interconnect inventory expand" ===> Fabric Interconnect, Expansion Modules, Fans and PSUs
"show chassis inventory expand" ===> Chassis, IOM, PSU's and Servers
"show server inventory expand" ===> Servers and Adapters
03-13-2014 10:18 AM
Kenny,
Thanks a lot! That worked great.
take care.
03-13-2014 11:30 AM
Just to add to the above you can use grep ,egrep etc to get exactly what you want. These are the options available to sort out the output
UCS# show chassis inventory expand detail |
begin count cut egrep end exclude grep head include last less no-more sort tr uniq wc
If you want to use UCS Powertool you can use these commands below , i have given two examples to stdout in either text or csv format. Remove the Export to get output on term.
PS C:\get-ucsblade | select Serial, Slotid, Model, Chassisid > Blade.txt
PS C:\ Get-UcsChassis | select serial,id,dn | Export-Csv .\Chassis.csv
Example output:
PS C:\get-ucsblade | select Serial, Slotid, Model, Chassisid
Serial SlotId Model ChassisId
------ ------ ----- ---------
QCIXXXXXXXX 1 N20-B6620-1 1
QCIXXXXXXXX 2 N20-B6620-1 1
QCIXXXXXXXX 3 N20-B6620-1 1
QCIXXXXXXXX 4 N20-B6620-1 1
QCIXXXXXXXX 5 N20-B6620-1 1
QCIXXXXXXXX 6 N20-B6620-1 1
QCIXXXXXXXX 7 N20-B6620-1 1
QCIXXXXXXXX 8 N20-B6620-1 1
03-13-2014 12:23 PM
Thanks. The egrep method works for what I need but you piqued my interest in powertool:)
thanks.
03-13-2014 09:55 AM
Ron,
Please delete this other duplicate thread https://supportforums.cisco.com/discussion/12139456/ucs-equpiment-serial-nbrs
-Kenny
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide