cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
539
Views
2
Helpful
1
Replies
Highlighted
Beginner

ssh command or powershell cmdlet to set the iSCSI initiator name at service profile level?

Hi Mates,

I'm able to set the initiator names at NIC's , whereas GUI gives you an option to set the initiator name (single) for the service profile which applies to all the iSCSI NIC's in the Network tab, how could this be achieved using powershell?

Everyone's tags (2)
1 REPLY 1
Highlighted
Enthusiast

Re: ssh command or powershell cmdlet to set the iSCSI initiator name at service profile level?

Hi Geethapiriyan,

You can set the initiator name by using the following cmdlet

1. If the name is not set then you can try the below cmdlet. If your SP name is TestSP

Get-UcsServiceProfile -Name TestSP | Add-UcsVnicIScsiNode -ModifyPresent -InitiatorName "TestName" -InitiatorPolicyName ""

2. If the name is already present and you want to modify it then you can use the below cmdlet

Get-UcsVnicIScsiNode | Set-UcsVnicIScsiNode -InitiatorName RenameTest -Force

Best way to get the cmdlet for a particular configuration is to use the ConvertTo-UcsCmdlet. You can perform any configuration on the UCS Manager GUI and then use ConvertTo-UcsCmdlet to generate the equivalent cmdlets for the configuration. You can refer to the UCS Manager PowerTool User Guide for more details.

Hope this helps.

Thanks,

Sumanth BR

CreatePlease to create content
Content for Community-Ad

Cisco COVID-19 Survey

This widget could not be displayed.