After the files are generated, put the files somewhere in the filers /etc directory and use the DataONTAP "source" command to call them when it's time.
Based on Romeo Theriault's .pl script: https://communities.netapp.com/docs/DOC-2369
Which was based on Karel Verhelst's .vbs script: https://communities.netapp.com/docs/DOC-1754
Run this script ahead of time against the filers you will be upgrading.
For each filer you run it against it will create three files:
filername_lunoffline
filername_lunserial
filername_lunonline
It will output these files in same directory as the script is executed.
It will check if these files exist before creating new ones and will delete them if they do exist.
Place these three files somewhere in the /etc directory of the root vol of the filer and after the head upgrade, use the filers source command to run the files.
Example:
source /etc/scripts/filername_lunoffline
source /etc/scripts/filername_lunserial
source /etc/scripts/filername_lunonline
Version 2 - Uses the .NET AppendAllText method of the System.IO.File class to produce output files with "LF" (Unix-type) Line Feed line breaks. (Instead of CR + LF (Windows-type) Carriage Return + Line Feed breaks.)