Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

UCS equpiment serial nbrs

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.

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
VIP Green

My favorite CLI commands are

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

5 REPLIES
VIP Green

My favorite CLI commands are

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

New Member

Kenny, Thanks a lot! That

Kenny,

 

Thanks a lot! That worked great.

 

take care.

New Member

Just to add to the above you

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

 

New Member

Thanks. The egrep method

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

 

thanks.

Ron,Please delete this other

Ron,

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

 

 

-Kenny

692
Views
0
Helpful
5
Replies
CreatePlease to create content