Showing results for 
Search instead for 
Did you mean: 

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

Level 1
Level 1

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?

1 Reply 1

Level 4
Level 4

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.


Sumanth BR

Getting Started

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:

Cisco UCS X-Series Energy Efficiency Offer