Chassis Inventory Tasks
The examples in this section show how to use the Cisco IMC XML API to retrieve chassis inventory details. Each example shows the XML API request followed by the response from Cisco IMC.
This section includes the following examples:
Retrieving Power Supply Properties
Request:
<configResolveClass cookie="1256511180/f78548f2-ca76-16ca-8004-aaec921b0ff4"
inHierarchical="false" classId="equipmentPsu"/>
Response:
<configResolveClass cookie="1473455878/95c48a0a-1a3c-1c1a-8003-be18652a6ca4"
response="yes" classId="equipmentPsu">
<outConfigs>
<equipmentPsu id="1" pid="UCSC-PSU1-1050W" model="PS-2112-9S-LF"
operability="operable" power="on" presence="equipped" serial="LIT18520J9K"
thermal="ok" vendor="Cisco Systems Inc" voltage="ok" input="0" maxOutput="0"
fwVersion="10062013" dn="sys/chassis-1/psu-1"/>
<equipmentPsu id="2" pid="UCSC-PSU1-1050W" model="PS-2112-9S-LF" operability="operable"
power="on" presence="equipped" serial="LIT18520JCA" thermal="ok" vendor="Cisco Systems Inc"
voltage="ok" input="0" maxOutput="0" fwVersion="10062013" dn="sys/chassis-1/psu-2"/>
<equipmentPsu id="3" pid="UCSC-PSU1-1050W" model="PS-2112-9S-LF" operability="operable"
power="on" presence="equipped" serial="LIT18520JBZ" thermal="ok" vendor="Cisco Systems Inc"
voltage="ok" input="0" maxOutput="0" fwVersion="10062013" dn="sys/chassis-1/psu-3"/>
<equipmentPsu id="4" pid="UCSC-PSU1-1050W" model="PS-2112-9S-LF" operability="operable"
power="on" presence="equipped" serial="LIT18520JC1" thermal="ok" vendor="Cisco Systems Inc"
voltage="ok" input="452" maxOutput="404" fwVersion="10062013" dn="sys/chassis-1/psu-4"/>
</outConfigs>
</configResolveClass>
Retrieving Power Supply Properties Using DN
Request:
<configResolveDn cookie="1256511180/f78548f2-ca76-16ca-8004-aaec921b0ff4"
inHierarchical="true" dn='sys/chassis-1/psu-1'/>
Response:
<configResolveDn cookie="1473455878/95c48a0a-1a3c-1c1a-8003-be18652a6ca4"
response="yes" dn="sys/chassis-1/psu-1">
<outConfig>
<equipmentPsu id="1" pid="UCSC-PSU1-1050W" model="PS-2112-9S-LF" operability="operable"
power="on" presence="equipped" serial="LIT18520J9K" thermal="ok" vendor="Cisco Systems Inc"
voltage="ok" input="0" maxOutput="0" fwVersion="10062013" dn="sys/chassis-1/psu-1"/>
</outConfig>
</configResolveDn>
Retrieving Fan Properties
Request:
<configResolveClass cookie="1256511180/f78548f2-ca76-16ca-8004-aaec921b0ff4"
inHierarchical="true" classId="equipmentFanModule"/>
Response:
<configResolveClass cookie="1256511180/f78548f2-ca76-16ca-8004-aaec921b0ff4"
response="yes" classId="equipmentFanModule">
<outConfigs>
<equipmentFanModule id="1" model="" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1" vendor=""
voltage="not-supported" dn="sys/chassis-1/fan-module-1-1">
<equipmentFan id="1" model="" module="1" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1" vendor=""
voltage="not-supported" rn="fan-1"/>
<equipmentFan id="2" model="" module="1" operability="unknown"
power="on" presence="equipped" serial="" thermal="not-supported"
tray="1" vendor="" voltage="not-supported" rn="fan-2"/>
</equipmentFanModule>
<equipmentFanModule id="2" model="" operability="unknown"
power="on" presence="equipped" serial="" thermal="not-supported"
tray="1" vendor="" voltage="not-supported" dn="sys/chassis-1/fan-module-1-2">
<equipmentFan id="1" model="" module="2" operability="unknown"
power="on" presence="equipped" serial="" thermal="not-supported"
tray="1" vendor="" voltage="not-supported" rn="fan-1"/>
<equipmentFan id="2" model="" module="2" operability="unknown"
power="on" presence="equipped" serial="" thermal="not-supported"
tray="1" vendor="" voltage="not-supported" rn="fan-2"/>
</equipmentFanModule>
<equipmentFanModule id="3" model="" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1"
vendor="" voltage="not-supported" dn="sys/chassis-1/fan-module-1-3">
<equipmentFan id="1" model="" module="3" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1"
vendor="" voltage="not-supported" rn="fan-1"/>
<equipmentFan id="2" model="" module="3" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1"
vendor="" voltage="not-supported" rn="fan-2"/>
</equipmentFanModule>
<equipmentFanModule id="4" model="" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1"
vendor="" voltage="not-supported" dn="sys/chassis-1/fan-module-1-4">
<equipmentFan id="1" model="" module="4" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1" vendor=""
voltage="not-supported" rn="fan-1"/>
<equipmentFan id="2" model="" module="4" operability="unknown" power="on"
presence="equipped" serial="" thermal="not-supported" tray="1" vendor=""
voltage="not-supported" rn="fan-2"/>
</equipmentFanModule>
</outConfigs>
</configResolveClass>
Retrieving Fan Properties Using DN
Request:
<configResolveDn cookie="1256514416/cc6493cf-cb76-16cb-8005-aaec921b0ff4"
inHierarchical="false" dn='sys/chassis-1/fan-module-1-3/fan-2'/>
Response:
<configResolveDn cookie="1256514416/cc6493cf-cb76-16cb-8005-aaec921b0ff4"
response="yes" dn="sys/chassis-1/fan-module-1-3/fan-2">
<outConfig>
<equipmentFan id="2" model="" module="3" operability="unknown"
power="on" presence="equipped" serial="" thermal="not-supported"
tray="1" vendor="" voltage="not-supported"
dn="sys/chassis-1/fan-module-1-3/fan-2"/>
</outConfig>
</configResolveDn>
Retrieving Indicator LED Status
Request:
<configResolveClass cookie="1256514920/8c2af8ff-cb76-16cb-8006-aaec921b0ff4"
inHierarchical="true" classId="equipmentIndicatorLed"/>
Response:
<configResolveClass cookie="1256514920/8c2af8ff-cb76-16cb-8006-aaec921b0ff4"
response="yes" classId="equipmentIndicatorLed">
<outConfigs>
<equipmentIndicatorLed color="green" id="1" name="LED_HLTH_STATUS"
operState="off" dn="sys/chassis-1/indicator-led-1"/>
<equipmentIndicatorLed color="green" id="2" name="LED_PSU_STATUS"
operState="on" dn="sys/chassis-1/indicator-led-2"/>
<equipmentIndicatorLed color="green" id="3" name="LED_TEMP_STATUS"
operState="on" dn="sys/chassis-1/indicator-led-3"/>
<equipmentIndicatorLed color="green" id="4" name="LED_FAN_STATUS"
operState="on" dn="sys/chassis-1/indicator-led-4"/>
</outConfigs>
</configResolveClass>
Retrieving Indicator LED Status using DN
Request:
<configResolveDn cookie="1256515596/c4969312-cc76-16cc-8007-aaec921b0ff4"
inHierarchical="true" dn='sys/chassis-1/indicator-led-3'/>
Response:
<configResolveDn cookie="1256515596/c4969312-cc76-16cc-8007-aaec921b0ff4"
response="yes" dn="sys/chassis-1/indicator-led-3">
<outConfig>
<equipmentIndicatorLed color="green" id="3" name="LED_TEMP_STATUS"
operState="on" dn="sys/chassis-1/indicator-led-3"/>
</outConfig>
</configResolveDn>
Retrieving System Input Output Controller Properties
Request:
<configResolveClass cookie="1256515596/c4969312-cc76-16cc-8007-aaec921b0ff4"
inHierarchical="true" classId="equipmentIOCard"/>
Response:
<configResolveClass cookie="1256515596/c4969312-cc76-16cc-8007-aaec921b0ff4"
response="yes" classId="equipmentIOCard">
<outConfigs>
<equipmentIOCard id="1" description="SIOC - System Input Output Controller"
dn="sys/chassis-1/slot-1">
<mgmtController rn="mgmt" model="NA" serial="NA" subject="sioc"
vendor="Cisco Systems Inc">
<firmwareRunning rn="fw-system"
description="System IO Controller currently running firmware version"
deployment="system" type="sioc" version="0.0(4.r202233)"/>
<firmwareUpdatable rn="fw-updatable"
description="System IO Controller backup firmware version"
adminState="triggered" deployment="backup" operState="ready"
version="2.0(6.11)" protocol="none" remoteServer="" remotePath="" user=""
pwd="" progress="Success" type="sioc"/>
<firmwareBootDefinition rn="fw-boot-def" type="sioc">
<firmwareBootUnit rn="bootunit-combined"
description="System Input Out Controller startup firmware version"
adminState="triggered" image="running" resetOnActivate="no"
type="combined" version="0.0(4.r202233)"/>
</firmwareBootDefinition>
<mgmtIf rn="if-1" description="Chassis Management Interface Network Settings"
id="1" extEnabled="yes" extIp="10.106.145.78" extMask="255.255.255.0"
extGw="10.106.145.1" ifType="physical" mac="F4:0F:1B:92:EC:AA"
hostname="UCS-server-name1" dhcpEnable="yes" dnsUsingDhcp="yes" ddnsEnable="yes"
ddnsDomain="" dnsPreferred="171.70.168.183" dnsAlternate="0.0.0.0"
nicMode="dedicated" vicSlot="1" nicRedundancy="none"
vlanEnable="no" vlanId="1" vlanPriority="0" portProfile=""
v6extEnabled="no" v6extIp="::" v6extGw="::" v6prefix="64"
v6linkLocal="::" v6SlaacIp="::" v6dhcpEnable="no" v6dnsUsingDhcp="no"
v6dnsPreferred="::" v6dnsAlternate="::" subject="blade"/>
</mgmtController>
</equipmentIOCard>
<equipmentIOCard id="2" description="SIOC - System Input Output Controller"
dn="sys/chassis-1/slot-2">
<mgmtController rn="mgmt" model="NA" serial="NA" subject="sioc"
vendor="Cisco Systems Inc">
<firmwareRunning rn="fw-system"
description="System IO Controller currently running firmware version"
deployment="system" type="sioc" version="0.0(4.r202233)"/>
<firmwareUpdatable rn="fw-updatable"
description="System IO Controller backup firmware version"
adminState="triggered" deployment="backup" operState="ready"
version="0.0(4.r202050)" protocol="none" remoteServer=""
remotePath="" user="" pwd="" progress="Success" type="sioc"/>
<firmwareBootDefinition rn="fw-boot-def" type="sioc">
<firmwareBootUnit rn="bootunit-combined"
description="System Input Out Controller startup firmware version"
adminState="triggered" image="running" resetOnActivate="no"
type="combined" version="0.0(4.r202233)"/>
</firmwareBootDefinition>
<mgmtIf rn="if-1" description="Chassis Management Interface Network Settings"
id="1" extEnabled="yes" extIp="10.106.145.253" extMask="255.255.255.0"
extGw="10.106.145.1" ifType="physical" mac="F4:0F:1B:92:7A:C4"
hostname="UCS-server-name2" dhcpEnable="yes" dnsUsingDhcp="yes"
ddnsEnable="yes" ddnsDomain="" dnsPreferred="171.70.168.183"
dnsAlternate="0.0.0.0" nicMode="dedicated" vicSlot="1" nicRedundancy="none"
vlanEnable="no" vlanId="1" vlanPriority="0" portProfile="" v6extEnabled="no"
v6extIp="::" v6extGw="::" v6prefix="64" v6linkLocal="::" v6SlaacIp="::"
v6dhcpEnable="no" v6dnsUsingDhcp="no" v6dnsPreferred="::"
v6dnsAlternate="::" subject="blade"/>
</mgmtController>
</equipmentIOCard>
</outConfigs>
</configResolveClass>
Retrieving System Input Output Controller Properties using DN
Request:
<configResolveDn cookie="1256516771/c56962d3-cb76-16cb-8008-aaec921b0ff4"
inHierarchical="true" dn='sys/chassis-1/slot-2'/>
Response:
<configResolveDn cookie="1256516771/c56962d3-cb76-16cb-8008-aaec921b0ff4"
response="yes" dn="sys/chassis-1/slot-2">
<outConfig>
<equipmentIOCard id="2" description="SIOC - System Input Output Controller"
dn="sys/chassis-1/slot-2">
<mgmtController rn="mgmt" model="NA" serial="NA"
subject="sioc" vendor="Cisco Systems Inc">
<firmwareRunning rn="fw-system"
description="System IO Controller currently running firmware version"
deployment="system" type="sioc" version="0.0(4.r202233)"/>
<firmwareUpdatable rn="fw-updatable"
description="System IO Controller backup firmware version"
adminState="triggered" deployment="backup" operState="ready"
version="0.0(4.r202050)" protocol="none" remoteServer=""
remotePath="" user="" pwd="" progress="Success" type="sioc"/>
<firmwareBootDefinition rn="fw-boot-def" type="sioc">
<firmwareBootUnit rn="bootunit-combined"
description="System Input Out Controller startup firmware version"
adminState="triggered" image="running" resetOnActivate="no"
type="combined" version="0.0(4.r202233)"/>
</firmwareBootDefinition>
<mgmtIf rn="if-1" description="Chassis Management Interface Network Settings"
id="1" extEnabled="yes" extIp="10.106.145.253" extMask="255.255.255.0"
extGw="10.106.145.1" ifType="physical" mac="F4:0F:1B:92:7A:C4"
hostname="UCS-server-name2" dhcpEnable="yes" dnsUsingDhcp="yes"
ddnsEnable="yes" ddnsDomain="" dnsPreferred="171.70.168.183"
dnsAlternate="0.0.0.0" nicMode="dedicated" vicSlot="1"
nicRedundancy="none" vlanEnable="no" vlanId="1"
vlanPriority="0" portProfile="" v6extEnabled="no"
v6extIp="::" v6extGw="::" v6prefix="64" v6linkLocal="::"
v6SlaacIp="::" v6dhcpEnable="no" v6dnsUsingDhcp="no" v6dnsPreferred="::"
v6dnsAlternate="::" subject="blade"/>
</mgmtController>
</equipmentIOCard>
</outConfig>
</configResolveDn>
Configuring Single Server Dual SIOC or Single Server Single SIOC
Request:
<configConfMo dn='sys/chassis-1'
cookie='1485323787/b1213d94-e546-16e5-8004-f22a145daae4' inHierarchical='false'>
<inConfig>
<equipmentChassis dn='sys/chassis-1'
serverSIOCConnectivity ='single-server-single-sioc'
rebootHost='yes' />
</inConfig>
</configConfMo>
Response:
<configConfMo dn='sys/chassis-1'
cookie='1485323787/b1213d94-e546-16e5-8004-f22a145daae4' response="yes">
<outConfig>
<equipmentChassis dn='sys/chassis-1 name="UCS S3260"
serial="FCH18207WEB" model="UCSS-S3260-BASE" usrLbl=""
assetTag="Unknown" serverSIOCConnectivity="single-server-single-sioc"
rebootHost="yes" status="modified"/>
</outConfig>
</configConfMo>
![]() Note |
|

Feedback