Cloud Articles and Resources

Data ONTAP PowerShell Toolkit - Stand up a new, unconfigured controller

Every NetApp controller starts its life in a shipping container, without a hostname or any other configuration.  NetApp provides tools like FAS Easy-Start Wizard to bring up the box from this state, but a PowerShell equivalent would allow rollout scenarios to be scripted.  The Data ONTAP PowerShell Toolkit provides a cmdlet, Initialize-NaController, that borrows code from FAS Easy-Start to do precisely this.

In the unconfigured state, Data ONTAP gets an IP address via DHCP.  This address must be provided to Initialize-NaController.  Here is a trivial script that invokes this cmdlet:

# Import DataONTAP Module

Import-Module DataONTAP

# Initialize controller (requires only DHCP-provided address, hostname, & gateway)

Initialize-NaController monza -PrimaryInterface "e0a" -PrimaryInterfaceAddress -PrimaryInterfaceNetmask

# Connect to controller via HTTP

Connect-NaController -Credential (Get-Credential)

# Set the time & timezone

Set-NaTimezone EST5EDT
Set-NaTime -LocalTime ([int] (Get-Date -UFormat %s))

# Set the contact & location

Set-NaSnmpLocation "Global data center"
Set-NaSnmpContact "IT Help Desk"



This NetApp Community is public and open website that is indexed by search engines such as Google. Participation in the NetApp Community is voluntary. All content posted on the NetApp Community is publicly viewable and available. This includes the rich text editor which is not encrypted for https.

In accordance to our Code of Conduct and Community Terms of Use DO NOT post or attach the following:

  • Software files (compressed or uncompressed)
  • Files that require an End User License Agreement (EULA)
  • Confidential information
  • Personal data you do not want publicly available
  • Another’s personally identifiable information
  • Copyrighted materials without the permission of the copyright owner

Files and content that do not abide by the Community Terms of Use or Code of Conduct will be removed. Continued non-compliance may result in NetApp Community account restrictions or termination.


What versions of OnTap does this support?



7.2, 7.3 and 8.0.  Not currently working in 8.1 due to changes in Data ONTAP.  It's on our list of things to address in a future release.

Hi Clinton,

is there a workaround for the initialize-nacontroller-cmdlet?

all new systems are delivered with a version von 8.1, it would be nice to configure these systems via powershell too.



Hi, Rob.  It's still high on the wish list.  The ONTAP folks didn't replace the old init mechanism in 8.1, so for the time being it's much more complicated.  One of the Toolkit team, Eric, has been investigating this and has some concrete ideas.  I'll let him offer more insight.

thanks for the fast reply.

good to know it's still on the roadmap, looking forward to it.