04-05-2017 04:26 PM
I'm attempting to automate the creation of our Service Profile Templates, and have just about everything done. However, I am unable to figure out how to configure a Service Profile Template to use a SAN Connectivity Policy. I do not see that as an option in the Add-UcsServiceProfile CmdLet.
How is this done with the UCS PowerTool. I'm having the same issue with LAN Connectivity Policies.
Thanks
Sean
Solved! Go to Solution.
09-27-2017 05:51 AM
Hi Sean,
The SAN and LAN connection policies are both defined in the vnicConnDef object.
To Get the vnicConnDef object Get the Service Profile and then Get the vnicConnDef object
PowerTool C:\> Get-UcsServiceProfile -Name test | Get-UcsVnicConnDef
LanConnPolicyName : test
OperLanConnPolicyName : org-root/lan-conn-pol-test
OperSanConnPolicyName : org-root/san-conn-pol-test
PropAcl : 0
Sacl :
SanConnPolicyName : test
Ucs : SJC18-L14-UCSMINI1
Dn : org-root/ls-test/conn-def
Rn : conn-def
Status :
XtraProperty : {}
If I want to change the SAN policy to one called san-conn, I would get the policy and then set it
PowerTool C:\> Get-UcsServiceProfile -Name test | Set-UcsVnicConnDef -SanConnPolicyName San-Conn-Policy
LanConnPolicyName : test
OperLanConnPolicyName : org-root/lan-conn-pol-test
OperSanConnPolicyName : org-root/san-conn-pol-san-conn
PropAcl : 0
Sacl :
SanConnPolicyName : san-conn
Ucs : SJC18-L14-UCSMINI1
Dn : org-root/ls-test/conn-def
Rn : conn-def
Status :
XtraProperty : {}
Hope that helps.
Regards,
John
09-27-2017 05:51 AM
Hi Sean,
The SAN and LAN connection policies are both defined in the vnicConnDef object.
To Get the vnicConnDef object Get the Service Profile and then Get the vnicConnDef object
PowerTool C:\> Get-UcsServiceProfile -Name test | Get-UcsVnicConnDef
LanConnPolicyName : test
OperLanConnPolicyName : org-root/lan-conn-pol-test
OperSanConnPolicyName : org-root/san-conn-pol-test
PropAcl : 0
Sacl :
SanConnPolicyName : test
Ucs : SJC18-L14-UCSMINI1
Dn : org-root/ls-test/conn-def
Rn : conn-def
Status :
XtraProperty : {}
If I want to change the SAN policy to one called san-conn, I would get the policy and then set it
PowerTool C:\> Get-UcsServiceProfile -Name test | Set-UcsVnicConnDef -SanConnPolicyName San-Conn-Policy
LanConnPolicyName : test
OperLanConnPolicyName : org-root/lan-conn-pol-test
OperSanConnPolicyName : org-root/san-conn-pol-san-conn
PropAcl : 0
Sacl :
SanConnPolicyName : san-conn
Ucs : SJC18-L14-UCSMINI1
Dn : org-root/ls-test/conn-def
Rn : conn-def
Status :
XtraProperty : {}
Hope that helps.
Regards,
John
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: