3 Replies Latest reply: May 20, 2013 4:03 PM by bsti@plex.com RSS

Using Powershell to set Multiple autosupport.partner.to addresses.

jjd003166 Novice
Currently Being Moderated

I'm having an issue trying to set the autosupport.partner.to with multiple addresses.


I got it to work properly on an older (FAS2050 with OnTap 7.3.7) by doing this:


$partner = get-content C:\scripts\Powershell\content\partners.txt

set-naoption autosupport.partner.to $partner


The partners.txt has 2 email addresses.


However when I try it on my new FAS6240 (OnTap 8.1.2 7mode) I keep getting this error:


Set-NaOption : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'OptionValue'. Specified method is not supported.

At line:1 char:37

+ set-naoption autosupport.partner.to autosupport@cstor.com, dl-desses@cstor.com

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidArgument: (:) [Set-NaOption], ParameterBindingException

+ FullyQualifiedErrorId : CannotConvertArgument,DataONTAP.PowerShell.SDK.Cmdlets.Options.SetNaOption

More Like This

  • Retrieving data ...


  • Correct Answers - 10 points
  • Helpful Answers - 5 points