« Back to Technical Discussions

RE: Associating a Service Profile to a Blade.

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
I am trying to associate a Service Profile to an available Blade server (“sys/chassis-1/blade-5”)  using curl & HTTP post method. I am doing this on a Cisco UCS Emulator.
Command
"curl -H \"Content-Type: text/xml\" -N -s -d '<configConfMo cookie=\"$cookie\" inHierarchical=\"no\" dn=\"sys/chassis-1/blade-5\"> <inConfig><computeBlade descr=\"XXXXXUUUU1\" name=\"ISV_Blade_V\" assignedToDn=\"org-root/ls-ISV_Profile_File_3\"></computeBlade></inConfig></configConfMo>' http://1X.X6X.XX.4X/nuova";
But it gives me an error.
[ <configConfMo dn="sys/chassis-1/blade-5" cookie="1363262334/5b30d022-02f4-41ac-96a4-806c0fe6eb84" response="yes" errorCode="170" invocationResult="unidentified-fail" errorDescr="Admin implicit props cannot be modified, class=computeBlade, prop=assignedToDn "> </configConfMo> ]
Before executing this command I login <aaaLogin> using XYZ user. This user has all the roles enabled. I can modify the Server Name as well as the description but I cannot associate a server with a Service Profile.
How do I achieve this.
 

Here's an example of associating a service profile w/ a blade with UCSPE 2.1(1aPE3)
Hope this helps emoticon
==>UCSPE-192-168-6-184:
<configConfMo cookie="1362850478/15650465-9841-4654-817d-a11fb53c80a9" dn="org-root/ls-bob" inHierarchical="false"><inConfig><lsServer dn="org-root/ls-bob" status="modified"><lsBinding pnDn="sys/chassis-1/blade-1" rn="pn" /><lsRequirement rn="pn-req" status="deleted" /></lsServer></inConfig></configConfMo>
<==UCSPE-192-168-6-184:
<configConfMo dn="org-root/ls-bob" cookie="1362850478/15650465-9841-4654-817d-a11fb53c80a9" response="yes"> <outConfig> <lsServer agentPolicyName="" assignState="unassigned" assocState="unassociated" biosProfileName="" bootPolicyName="" configQualifier="" configState="not-applied" descr="" dn="org-root/ls-bob" dynamicConPolicyName="" extIPPoolName="ext-mgmt" extIPState="none" fltAggr="1" fsmDescr="" fsmFlags="" fsmPrev="ConfigureSuccess" fsmProgr="100" fsmRmtInvErrCode="none" fsmRmtInvErrDescr="" fsmRmtInvRslt="" fsmStageDescr="" fsmStamp="2013-03-09T18:34:51.791" fsmStatus="nop" fsmTry="0" hostFwPolicyName="" identPoolName="" intId="41030" localDiskPolicyName="" maintPolicyName="" mgmtAccessPolicyName="" mgmtFwPolicyName="" name="bob" operBiosProfileName="" operBootPolicyName="org-root/boot-policy-default" operDynamicConPolicyName="" operExtIPPoolName="" operHostFwPolicyName="org-root/fw-host-pack-default" operIdentPoolName="" operLocalDiskPolicyName="org-root/local-disk-config-default" operMaintPolicyName="org-root/maint-default" operMgmtAccessPolicyName="" operMgmtFwPolicyName="" operPowerPolicyName="org-root/power-policy-default" operScrubPolicyName="org-root/scrub-default" operSolPolicyName="" operSrcTemplName="" operState="unassociated" operStatsPolicyName="org-root/thr-policy-default" operVconProfileName="" owner="management" pnDn="" policyLevel="0" policyOwner="local" powerPolicyName="default" scrubPolicyName="" solPolicyName="" srcTemplName="" statsPolicyName="default" status="modified" type="instance" usrLbl="" uuid="derived" uuidSuffix="0000-000000000000" vconProfileName=""/> </outConfig> </configConfMo>

Found the correct XML .... thanks you all.
# ASSOCIATING A SERVICE PROFILE WITH A SERVER
$profile_dn = "org-root/ls-ISV_Profile_File_2";
$server_dn = "sys/chassis-1/blade-2";
$cmd_configConfMo = $cmd_curl."'<configConfMo cookie=\"$cookie\" inHierarchical=$flag_inHierarchical><inConfig><lsServer dn=\"$profile_dn\"><lsBinding pnDn=\"$server_dn\"/></lsServer></inConfig></configConfMo>'".$url;
 

Thanks a lot Eric.
 
Best Regards,
¬Kshitij