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

Through XML API, can i discover things like Model, Serial, # of chassis?

pzanwar
Cisco Employee
Cisco Employee

Through XML API, can i discover things like Model, Serial, # of chassis?

5 Replies 5

tcerling
Level 4
Level 4

Here is what is available from the Get-UcsChassis PowerTool command, which uses the common API for pulling data.

AckProgressIndicator  : ack-not-in-progress

AdminState            : acknowledged

ConfigState           : ok

ConnPath              : {A, B}

ConnStatus            : {A, B}

DiscoveryStatus       :

FabricEpDn            : fabric/server/chassis-1

Id                    : 1

LcTs                  : 1969-12-31T16:00:00.000

LicGP                 : 0

LicState              : license-ok

ManagingInst          : B

MfgTime               : 2011-03-27T01:00:00.000

Model                 : N20-C6508

OperQualifier         : {chassis-power, psu-power}

OperQualifierReason   : N/A

OperState             : power-problem

Operability           : operable

PartNumber            : 68-3231-01

Power                 : redundancy-failed

Presence              : unknown

Revision              : 0

Sacl                  :

SeepromOperState      : operable

Serial                : FOX1515GZV2

Thermal               : ok

ThermalStateQualifier :

UsrLbl                :

Vendor                : Cisco Systems Inc

VersionHolder         : yes

Vid                   : 01

Dn                    : sys/chassis-1

Rn                    : chassis-1

Status                :

XtraProperty          : {}

Ucs                   : sjc02-151-E21-UCS

AckProgressIndicator  : ack-not-in-progress
AdminState            : acknowledged
ConfigState           : ok
ConnPath              : {A, B}
ConnStatus            : {A, B}
DiscoveryStatus       :
FabricEpDn            : fabric/server/chassis-1
Id                    : 1
LcTs                  : 1969-12-31T16:00:00.000
LicGP                 : 0
LicState              : license-ok
ManagingInst          : B
MfgTime               : 2011-03-27T01:00:00.000
Model                 : N20-C6508
OperQualifier         : {chassis-power, psu-power}
OperQualifierReason   : N/A
OperState             : power-problem
Operability           : operable
PartNumber            : 68-3231-01
Power                 : redundancy-failed
Presence              : unknown
Revision              : 0
Sacl                  :
SeepromOperState      : operable
Serial                : FOX1515GZV2
Thermal               : ok
ThermalStateQualifier :
UsrLbl                :
Vendor                : Cisco Systems Inc
VersionHolder         : yes
Vid                   : 01
Dn                    : sys/chassis-1
Rn                    : chassis-1
Status                :
XtraProperty          : {}
Ucs                   : sjc02-151-E21-UCS

Thanks, i think in addition to this, to find out FI model, we can do -

Get-UcsNetworkElement

I kind of found this from another question in the forum. So this helps, thanks. Is there any other way of doing this through API ?

What are you looking for?  The API remains a constant across the various tools that can be used.  PowerTool is one.  Python can be used.  You can use a high level programming language to call the API.  Cisco publishes the API so customers and partners can write to it.  So could you clarify what you are looking to do?

I was looking more for rest api call, but i realize that, that's not supported today. This is good information, thanks for your inputs.

Ok, that makes sense.  Good suggestion - I'll pass it on.

Review Cisco Networking products for a $25 gift card