Microsoft Virtualization Discussions

PowerShell script for installing Ontap 8.x 7-mode on multiple arrays

kortas
2,864 Views

Hello

 

Has anyone created a powershell set of commands to install the .tgz file containing an Ontap upgrade on multiple NetApp HA pairs?

 

I have 12 (6 HA pairs) systems that I would like to deploy to and it is rather time consuming to ssh into each to perform the upgrade.

 

Thanks!

1 REPLY 1

billyd
2,782 Views

You could do something like this:

 

foreach ($c in get-content filerlist.txt){connect-nacontroller $c -cred $cred;invoke-nassh "software get http://<http server>/<ontapversion>.tgz"}

 

 

If you're in a Windows environment and don't have an HTTP Server available, Install IIS  > World Wide Web Services on a server or workstation.  Place the .tgz file in C:\inetpub\wwwroot\

 

 

Public