<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>What's the command to assign a Service Profile to a Blade?</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>What's the command to assign a Service Profile to a Blade?</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-24T20:20:28Z</updated>
  <dc:date>2013-05-24T20:20:28Z</dc:date>
  <entry>
    <title>Automatic reply: New Message from Muhammad Afzal in Unified Computing UCS M</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8597630" />
    <author>
      <name>John Kennedy</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8597630</id>
    <updated>2012-11-15T23:11:48Z</updated>
    <published>2012-11-15T23:11:48Z</published>
    <summary type="html">I am out of the office until the 20th of November, 2012. For FlexPod issues, please contact Arun Garg (arung@cisco.com&lt;https://mail.cisco.com/ecp/Organize/arung@cisco.com&gt;) or Chris O'Brien (chrobrie@cisco.com). Thanks for your patience - JFK</summary>
    <dc:creator>John Kennedy</dc:creator>
    <dc:date>2012-11-15T23:11:48Z</dc:date>
  </entry>
  <entry>
    <title>iSCSI boot using the initiator pool; powertool script not running</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8531936" />
    <author>
      <name>John Kennedy</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8531936</id>
    <updated>2012-11-13T19:04:32Z</updated>
    <published>2012-11-13T19:04:32Z</published>
    <summary type="html">All, 
I am trying to create a service profile with iscsi boot vnics that use the iscsi-initiator-pool. I used convertto-ucscmdlet to generate a script while performing the tasks manually. The resulting script gave an error "

WARNING: Attempt to set non-existent property 'IdentPoolName' in class 'VnicIPv4If'.
WARNING: Attempt to set non-existent property 'IdentPoolName' in class 'VnicIPv4If'.
Complete-UcsTransaction : ucsm:XML PARSING ERROR: unknown attribute 'identPoolName' in element 'vnicIPv4If'
At C:\Users\johnken\Desktop\FlexPod Scripts\scripts\Add-IPMIAddresses.ps1:26 char:24
+ Complete-UcsTransaction &lt;&lt;&lt;&lt; 
    + CategoryInfo          : NotSpecified: (:) [Complete-UcsTransaction], Exception
    + FullyQualifiedErrorId : 300,Cisco.Ucs.Cmdlets.CompleteUcsTransaction

 
Sounds like the version I'm using doesn't have this property written in. 
Any idea how I can script this?
 

Start-UcsTransaction
$mo = Get-UcsOrg -Level root  | Add-UcsServiceProfile -AgentPolicyName "" -BiosProfileName "" -BootPolicyName "Boot-Fabric-A" -Descr "" -DynamicConPolicyName "" -ExtIPState "none" -HostFwPolicyName "VM-Host-Infra" -IdentPoolName "UUID_Pool" -LocalDiskPolicyName "default" -MaintPolicyName "" -MgmtAccessPolicyName "" -MgmtFwPolicyName "VM-Host-Infra" -Name "VM-Host_Infra_Fabric_A" -PowerPolicyName "default" -ScrubPolicyName "" -SolPolicyName "" -SrcTemplName "" -StatsPolicyName "default" -Type "updating-template" -UsrLbl "" -Uuid "0" -VconProfileName "VM-Host-Infra"
$mo_1 = $mo | Add-UcsVnicDefBeh -ModifyPresent -Action "none" -NwTemplName "" -Type "vhba"
$mo_2 = $mo | Add-UcsVnic -AdaptorProfileName "VMWare" -Addr "derived" -AdminVcon "1" -IdentPoolName "" -Mtu 1500 -Name "iSCSI-vNIC-A" -NwCtrlPolicyName "" -NwTemplName "iSCSI_Template_A" -Order "3" -PinToGroupName "" -QosPolicyName "" -StatsPolicyName "default" -SwitchId "A"
$mo_3 = $mo | Add-UcsVnic -AdaptorProfileName "VMWare" -Addr "derived" -AdminVcon "1" -IdentPoolName "" -Mtu 1500 -Name "iSCSI-vNIC-B" -NwCtrlPolicyName "" -NwTemplName "iSCSI_Template_B" -Order "4" -PinToGroupName "" -QosPolicyName "" -StatsPolicyName "default" -SwitchId "A"
$mo_4 = $mo | Add-UcsVnic -AdaptorProfileName "VMWare" -Addr "derived" -AdminVcon "1" -IdentPoolName "" -Mtu 1500 -Name "vNIC-A" -NwCtrlPolicyName "" -NwTemplName "vNIC_Template_A" -Order "1" -PinToGroupName "" -QosPolicyName "" -StatsPolicyName "default" -SwitchId "A"
$mo_5 = $mo | Add-UcsVnic -AdaptorProfileName "VMWare" -Addr "derived" -AdminVcon "1" -IdentPoolName "" -Mtu 1500 -Name "vNIC-B" -NwCtrlPolicyName "" -NwTemplName "vNIC_Template_B" -Order "2" -PinToGroupName "" -QosPolicyName "" -StatsPolicyName "default" -SwitchId "A"
$mo_6 = $mo | Add-UcsVnicFcNode -ModifyPresent -Addr "pool-derived" -IdentPoolName "node-default"
$mo_7 = $mo | Add-UcsVnicIScsi -ModifyPresent -AdaptorProfileName "default" -Addr "derived" -AdminVcon "any" -AuthProfileName "" -ConfProfileName "" -ExtIPState "none" -IdentPoolName "" -InitiatorName "" -IqnIdentPoolName "IQN_Pool_A" -Name "iSCSI-vNIC-A" -NwTemplName "" -Order "1" -PinToGroupName "" -QosPolicyName "" -StatsPolicyName "default" -SwitchId "A" -VnicName "iSCSI-vNIC-A"
$mo_7_1 = $mo_7 | Add-UcsVnicVlan -ModifyPresent -Name "" -VlanName "iSCSI-VLAN"
$mo_7_1_1 = $mo_7_1 | Add-UcsVnicIScsiStaticTargetIf -AuthProfileName "" -IpAddress $FAS_A_iSCSI_IP -Name $FAS_A_iSCSI_IQN -Port 3260 -Priority 1
$mo_7_1_1_1 = $mo_7_1_1 | Add-UcsVnicLun -ModifyPresent -Bootable "no" -Id 0
$mo_7_1_2 = $mo_7_1 | Add-UcsVnicIPv4If -ModifyPresent -Name ""
$mo_7_1_2_1 = $mo_7_1_2 | Set-UcsManagedObject -PropertyMap @{IdentPoolName="iscsi-initiator-pool"; }
$mo_8 = $mo | Add-UcsVnicIScsi -ModifyPresent -AdaptorProfileName "default" -Addr "derived" -AdminVcon "any" -AuthProfileName "" -ConfProfileName "" -ExtIPState "none" -IdentPoolName "" -InitiatorName "" -IqnIdentPoolName "IQN_Pool_B" -Name "iSCSI-vNIC-B" -NwTemplName "" -Order "2" -PinToGroupName "" -QosPolicyName "" -StatsPolicyName "default" -SwitchId "A" -VnicName "iSCSI-vNIC-B"
$mo_8_1 = $mo_8 | Add-UcsVnicVlan -ModifyPresent -Name "" -VlanName "iSCSI-VLAN"
$mo_8_1_1 = $mo_8_1 | Add-UcsVnicIScsiStaticTargetIf -AuthProfileName "" -IpAddress $FAS_A_iSCSI_IP -Name $FAS_A_iSCSI_IQN -Port 3260 -Priority 1
$mo_8_1_1_1 = $mo_8_1_1 | Add-UcsVnicLun -ModifyPresent -Bootable "no" -Id 0
$mo_8_1_2 = $mo_8_1 | Add-UcsVnicIPv4If -ModifyPresent -Name ""
$mo_8_1_2_1 = $mo_8_1_2 | Set-UcsManagedObject -PropertyMap @{IdentPoolName="iscsi-initiator-pool"; }
$mo_9 = $mo | Add-UcsServerPoolAssignment -ModifyPresent -Name "Infra_Pool" -Qualifier "" -RestrictMigration "no"
$mo_10 = $mo | Set-UcsServerPower -State "admin-down"
Complete-UcsTransaction</summary>
    <dc:creator>John Kennedy</dc:creator>
    <dc:date>2012-11-13T19:04:32Z</dc:date>
  </entry>
  <entry>
    <title>What's the command to assign a Service Profile to a Blade?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3980007" />
    <author>
      <name>John Kennedy</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3980007</id>
    <updated>2011-06-01T00:56:18Z</updated>
    <published>2011-06-01T00:56:18Z</published>
    <summary type="html">For some reason, I can't determine exacly how to take the service profiles I have and attach/assign them to blades or server pools. Documentation isn't guiding me, and I can't seem to guess. </summary>
    <dc:creator>John Kennedy</dc:creator>
    <dc:date>2011-06-01T00:56:18Z</dc:date>
  </entry>
</feed>

