<?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>How to use new cmdlet generated from ConvertTo-UCSCmdlet</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>How to use new cmdlet generated from ConvertTo-UCSCmdlet</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-22T18:16:15Z</updated>
  <dc:date>2013-05-22T18:16:15Z</dc:date>
  <entry>
    <title>RE: How to use new cmdlet generated from ConvertTo-UCSCmdlet</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9377291" />
    <author>
      <name>tbenne13.jhmi.edu (simulated)</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9377291</id>
    <updated>2012-12-14T16:24:24Z</updated>
    <published>2012-12-14T16:24:24Z</published>
    <summary type="html">vijay,
thanks for the reply i understand the cmdlet now but would like to view the presentation. can you pls reattach? there is no attachment in this post.</summary>
    <dc:creator>tbenne13.jhmi.edu (simulated)</dc:creator>
    <dc:date>2012-12-14T16:24:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from tbenne13.jhmi.edu (simulated) in Unified Computing UCS</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8048314" />
    <author>
      <name>tbenne13.jhmi.edu (simulated)</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8048314</id>
    <updated>2012-10-25T22:21:37Z</updated>
    <published>2012-10-25T22:21:37Z</published>
    <summary type="html">[quote=Bhaskar Jayakrishnan]Tim,

Where is the template and where are you trying to add it too ?

This will work, assuming you have 1 SP template named “template” in org-root and you are trying to create an instance in org-root/org-CVS:
Get-UcsServiceProfile -Name template | Add-UcsServiceProfileFromTemplate -NewName templateInstance –DestinationOrg (Get-UcsOrg –Level root | Get-UcsOrg -Name CVS -LimitScope)

Thanks,
- bhaskar
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Thursday, October 25, 2012 11:33 PM
To: cdicuser@developer.cisco.com
Subject: New Message from tbenne13.jhmi.edu (simulated) in Unified Computing UCS Manager - Microsoft Discussions: Add-UcsServiceProfileFromTemplate 'org-root' is an unexpected token

tbenne13.jhmi.edu (simulated) has created a new message in the forum "Microsoft Discussions": -------------------------------------------------------------- Hi,
I am trying to run the command Add-UcsServiceProfileFromTemplate the DestinationOrg is a child of root named CVS. I always get the same error "Add-UcsServiceProfileFromTemplate : MTWDAVDC2UCSN4:'org-root' is an unexpected token." for the parameter -DestinationOrg I have used  -DestinationOrg 'org-root' ,  -DestinationOrg (get-ucsorg -Name "org-root"),  -DestinationOrg (get-ucsorg -Name "CVS"), -DestinationOrg (Get-UcsOrg -Level root).
Running the cmdlet get-ucsorg returns
PS C:\&gt; get-ucsorg
Descr        :
Level        : root
Name         : root
Dn           : org-root
Rn           : org-root
Status       :
XtraProperty : {}
Ucs          : "MYUCS"

Descr        : Cloud
Level        : 1
Name         : CVS
Dn           : org-root/org-CVS
Rn           : org-CVS
Status       :
XtraProperty : {}
Ucs          : "MYUCS"
If i don't use the --DestinationOrg parameter it returns the same result.

Has nayone successfully used the Add-UcsServiceProfileFromTemplate? Any help on this error is appreciated.


thanks,
tim
--
To respond to this post, please click the following link: or simply reply to this email.[/quote]</summary>
    <dc:creator>tbenne13.jhmi.edu (simulated)</dc:creator>
    <dc:date>2012-10-25T22:21:37Z</dc:date>
  </entry>
  <entry>
    <title>Add-UcsServiceProfileFromTemplate 'org-root' is an unexpected token</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8043114" />
    <author>
      <name>tbenne13.jhmi.edu (simulated)</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8043114</id>
    <updated>2012-10-25T18:02:54Z</updated>
    <published>2012-10-25T18:02:44Z</published>
    <summary type="html">Hi,
I am trying to run the command Add-UcsServiceProfileFromTemplate the DestinationOrg is a child of root named CVS. I always get the same error [b]"Add-UcsServiceProfileFromTemplate : MTWDAVDC2UCSN4:'org-root' is an unexpected token." [/b]for the parameter -DestinationOrg I have used  -DestinationOrg 'org-root' ,  -DestinationOrg (get-ucsorg -Name "org-root"),  -DestinationOrg (get-ucsorg -Name "CVS"), -DestinationOrg (Get-UcsOrg -Level root). 
Running the cmdlet get-ucsorg returns 
PS C:\&gt; get-ucsorg
Descr        :
Level        : root
Name         : root
Dn           : org-root
Rn           : org-root
Status       :
XtraProperty : {}
Ucs          : "MYUCS"
 
Descr        : Cloud
Level        : 1
Name         : CVS
Dn           : org-root/org-CVS
Rn           : org-CVS
Status       :
XtraProperty : {}
Ucs          : "MYUCS"
If i don't use the --DestinationOrg parameter it returns the same result.
 
Has nayone successfully used the Add-UcsServiceProfileFromTemplate? Any help on this error is appreciated.
 
 
thanks,
tim</summary>
    <dc:creator>tbenne13.jhmi.edu (simulated)</dc:creator>
    <dc:date>2012-10-25T18:02:44Z</dc:date>
  </entry>
  <entry>
    <title>How to use new cmdlet generated from ConvertTo-UCSCmdlet</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8019259" />
    <author>
      <name>tbenne13.jhmi.edu (simulated)</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8019259</id>
    <updated>2012-10-24T19:56:12Z</updated>
    <published>2012-10-24T19:56:12Z</published>
    <summary type="html">Hi,
I am new to powertool but not to powershell and and having a problem with the usage of the result from ConvertTo-UCSCmdlet. I just created a new service profile from a template and verified it completed successfully. I found the xml in the log file and pasted just that to a new txt file then ran the ConvertTo-UCSCmdlet cmdlet with the -xml parameter and the path to the file i created with the xml. It completed successfully with a warning "WARNING: Please review the generated cmdlets before deployment." not a big deal and shows the cmdlets as output. Everything looks good. Now my quastion is: I assume a new cmdlet was created that performs the task that was in the XML, How do I now use that new command? what is the new cmdlet?
 
thanks,
tim</summary>
    <dc:creator>tbenne13.jhmi.edu (simulated)</dc:creator>
    <dc:date>2012-10-24T19:56:12Z</dc:date>
  </entry>
</feed>

