cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1518
Views
0
Helpful
1
Replies

Change SAN Connectivity Policy using PowerTool

Sean Lair
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

jomcdono
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

jomcdono
Cisco Employee
Cisco Employee

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

Cisco UCS X-Series Energy Efficiency Offer