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 10.61.165.229 monza 10.61.165.1 -PrimaryInterface "e0a" -PrimaryInterfaceAddress 10.61.165.229 -PrimaryInterfaceNetmask 255.255.255.0
# Connect to controller via HTTP
Connect-NaController 10.61.165.229 -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"
Clinton