cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2591
Views
0
Helpful
5
Replies

UCS equpiment serial nbrs

ron_hawkins
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Walter Dey
VIP Alumni
VIP Alumni

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

View solution in original post

5 Replies 5

Walter Dey
VIP Alumni
VIP Alumni

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

Kenny,

 

Thanks a lot! That worked great.

 

take care.

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

 

Thanks. The egrep method works for what I need but you piqued my interest in powertool:)

 

thanks.

Keny Perez
Level 8
Level 8

Ron,

Please delete this other duplicate thread https://supportforums.cisco.com/discussion/12139456/ucs-equpiment-serial-nbrs

 

 

-Kenny

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card