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

Disk Sanitization

sbrack
6,275 Views

Is there any function / Cmdlet in the PowerShell ToolKit I can use for scripting the disk sanitization process? My customer is searching an elegant way to automate the process of erasing old storage systems securely. Security demands are high so we have to use the disk sanitization feature.

1 ACCEPTED SOLUTION

cknight
6,275 Views

I don't have a great answer for this question.  There are no APIs for the disk sanitization feature, hence no cmdlets.  I would normally recommend Invoke-NaSsh, but that CLI command offers no switch to suppress confirmation warnings, so the SSH invocation doesn't return.  You need some kind of scriptable SSH tool with an 'expect' feature that allows you to dismiss the confirmation.

View solution in original post

2 REPLIES 2

cknight
6,276 Views

I don't have a great answer for this question.  There are no APIs for the disk sanitization feature, hence no cmdlets.  I would normally recommend Invoke-NaSsh, but that CLI command offers no switch to suppress confirmation warnings, so the SSH invocation doesn't return.  You need some kind of scriptable SSH tool with an 'expect' feature that allows you to dismiss the confirmation.

paleon
6,275 Views

The Invoke-NaSsh cmdlet allows users to execute any command they would enter at the command line.  Get-NaDisk and Get-NaDiskOwner would be useful for identifying which disks belong to which aggregate and which controller.

Public