09-16-2020 03:58 AM - edited 09-16-2020 03:59 AM
Hi, how to make this with power tool? As I know its possible to assign vNIC template when adding new interface, but how to modify existing ?
Get-UcsServiceProfile -Filter 'Name -ilike XXX*' | Add-UcsVnic -NwTemplName 'NewTemplate' -Name 'eth1'
Solved! Go to Solution.
09-16-2020 05:26 AM - edited 09-16-2020 05:27 AM
figured out, I need to replace with different Vnic Template
Get-UcsServiceProfile -Name "profile_name" -LimitScope | Add-UcsVnic -ModifyPresent -Name "eth0" -NwTemplName "" Get-UcsServiceProfile -Name "profile_name" -LimitScope | Add-UcsVnic -ModifyPresent -Name "eth0" -NwTemplName "template_name"
Just forgot that
-ModifyPresent
can be used.
09-16-2020 04:56 AM - edited 09-16-2020 04:59 AM
Are you trying to modify the vnic template properties itself, or are you wanting to replace an existing template with another one?
Remove-UcsVnicTemplate
Kirk...
09-16-2020 05:26 AM - edited 09-16-2020 05:27 AM
figured out, I need to replace with different Vnic Template
Get-UcsServiceProfile -Name "profile_name" -LimitScope | Add-UcsVnic -ModifyPresent -Name "eth0" -NwTemplName "" Get-UcsServiceProfile -Name "profile_name" -LimitScope | Add-UcsVnic -ModifyPresent -Name "eth0" -NwTemplName "template_name"
Just forgot that
-ModifyPresent
can be used.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide