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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2017 09:11 PM
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?
- Labels:
-
UCS Integrations
-
UCS PowerTool

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2017 08:41 PM
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
