NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Diag Mode in a Node of a cDOT filer

aselvan
21,931 Views

Hi All,

I am trying to login into the diag mode in a node of a cDOT filer.Any help is highly appreciated !!

Regards

Aravindhan Selvan

1 ACCEPTED SOLUTION

cole
15,902 Views

Here is one example using Invoke-NcSsh:

Invoke-NcSsh -Command 'system node run -node * -command "priv set diag; registry walk options"'

View solution in original post

10 REPLIES 10

scottgelb
21,685 Views

node run to get to the node shell, then priv set diag.

cmode-single::> node run local

Type 'exit' or 'Ctrl-D' to return to the CLI

cmode-single-01> priv set diag

Warning: These diagnostic commands are for use by NetApp

         personnel only.

cmode-single-01*>

aselvan
21,685 Views

Hi Scott,

Thank you for the response. I would like to get into the Diag mode of  the node via Powershell.

Regards

Aravindhan Selvan

scottgelb
21,685 Views

Sorry I didn't see which forum this was posted.

Sent from my iPhone 5

cole
21,685 Views

It is not possible to login to diag mode. What are you attempting to do? There still might be a solution, depending on what you are attempting.

aselvan
21,685 Views

Hi Cole,

Thank you for the reply. I am trying to write a script

1. which would login into the node of the CDOT filer's to get the registry value for the auto-grow trigger which based on the size. ( For more Info https://kb.netapp.com/support/index?page=content&id=3011632&actp=search&viewlocale=en_US&searchid=null) .

2. If i don't have the desired value, the script would go and change it.

Regards

Aravindhan Selvan

cole
21,685 Views

Ok, so you would just need to use the cmdlets Get-NcVolAutosize and Set-NcVolAutosize.  Is this the data you are looking for (I'm just looking at one volume below as an example)?

#7 PS2 D:\Development\PowerShell> Get-NcVolAutosize -VserverContext vs-vmware -Name test | fl *

   NcController           : den-cluster

Name                   : test

IsEnabled              : False

IncrementSize          : 10485760

MaximumSize            : 251658240

MinimumSize            : 209715200

GrowThresholdPercent   : 85

ShrinkThresholdPercent : 50

Mode                   : off

aselvan
21,685 Views

Thanks again. I think you are using 8.2 version ONTAP . But in 8.1 version cluster ONTAP , the autogrow would trigger based on the registry value we set @ the node level . which i am trying to modify

Regards

Aravindhan Selvan

cole
21,685 Views

I have sent you an email with one possible solution to this.

JGPSHNTAP
21,685 Views

I'm interested in this as well.  We use the setflag command for 7-mode.

cole
15,903 Views

Here is one example using Invoke-NcSsh:

Invoke-NcSsh -Command 'system node run -node * -command "priv set diag; registry walk options"'

Public