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:\> 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.