Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how to change the espsilon node using powershell cmdlets
2019-05-08
07:11 AM
2,681 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I'm trying to automate the ontap upgrade process and i need to trasnfer the epsilon node to another node. I know we can use Invoke-NcSsh and then use the normal ontap command but i want to achive it using PS cmdlet so that i can use the previous varibales. I tried Set-Ncnode but there is no option to trasnfer the epsilon. Any help is highly appricaited.
Here is my code.
#ClusterName
$Cluster = Read-Host "Enter the cluster name to connect"
#credentials to connect the cluster
$creds= Get-Credential -UserName "admin" -Message Null
foreach ($item in $Cluster) {
Connect-NcController $item -Credential $creds}
$epsilonnode= Get-NcNode | where {$_.IsEpsilonNode -eq $true}
Write-Host "The Epsilon node is : $epsilonnode"
$nonepsilonnode = Get-NcNode |where {$_.IsEpsilonNode -eq $false}
$nonepsilonnode
Read-Host -Prompt "Press any key to continue"
$newepsilonnode = Read-Host -Prompt "Enter the node name to trasnfer the Epsilon :"
Write-Host "Trasnferring the Epsilon to $newepsilonnode ...."
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Int ONTAP via CLI, I do not believe it is a one-step process.
You unset (make Epsilon FALSE) it from the node first.
Then Assign (make Epsilon TRUE) it to another node.
Hopefully that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi TMAC,
I am aware the steps in ONTAP CLI but I am looking for a powershell Cmdlet to achieve it.
I cannot use invoke-ncssh cmdlet followed by ontap cli commands because ontap cli doesn't accept $variables.
I want a Powershell cmdlet by using which I can change the epsilon assignments.
Thanks.
