<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unified Manager 9.4 and json file creation in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144753#M26328</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to send a json file when an alert occur. Is there a way of doing the json file automatically ?&lt;/P&gt;
&lt;P&gt;if i need to do it with a script, is there a way to send it with a utility....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:06:25 GMT</pubDate>
    <dc:creator>Pat_Parent</dc:creator>
    <dc:date>2025-06-04T13:06:25Z</dc:date>
    <item>
      <title>Unified Manager 9.4 and json file creation</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144753#M26328</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to send a json file when an alert occur. Is there a way of doing the json file automatically ?&lt;/P&gt;
&lt;P&gt;if i need to do it with a script, is there a way to send it with a utility....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:06:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144753#M26328</guid>
      <dc:creator>Pat_Parent</dc:creator>
      <dc:date>2025-06-04T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unified Manager 9.4 and json file creation</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144771#M26329</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your OCUM is Windows based. you can use the PS i published in the &lt;A href="https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/HOW-TO-consume-parameters-from-OCUM-on-a-PowerShell-script-and-generate-a-custom/td-p/140614" target="_self"&gt;following link&lt;/A&gt; to consume the parameters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#create hashtable, Get rid of chars that break the script, append any word that start with " -" to a hashtable index with the input following it until the next " -" as a value.
$parms=@{};" "+($args -replace "\]|\[|@"," " -join " ") -split " -"|?{$_}|%{$t=$_ -split " ",2;$parms.($t[0])=$t[1]}

#run on $parms.eventArgs and append the first word before a "=" as a eventArgs_* index, and as the value any words after it  - until the next word that come before "=".
($parms.eventArgs -split " "|%{if($_ -match "="){".cut."}$_}) -join " " -split ".cut. "|?{$_}|%{$t=$_ -split "=";$parms.("eventArgs_"+$t[0])=$t[1]}  &lt;/PRE&gt;
&lt;P&gt;and use the following command to save it to a json:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$parms | ConvertTo-Json | Out-File "C:\temp\$($parms.EventID).json"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gidi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:15:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144771#M26329</guid>
      <dc:creator>GidonMarcus</dc:creator>
      <dc:date>2018-11-20T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unified Manager 9.4 and json file creation</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144859#M26344</link>
      <description>&lt;P&gt;Nope, the appliance so in perl....&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#!/usr/bin/perl&lt;BR /&gt;#Pour initialiser les variables et assurer un standard&lt;BR /&gt;use warnings; &lt;BR /&gt;use strict;&lt;BR /&gt;use POSIX;&lt;BR /&gt;use JSON.pm;&lt;/P&gt;
&lt;P&gt;my $Notification = "Yes";&lt;BR /&gt;my $Ticket = "Yes";&lt;BR /&gt;my $Status = $ARGV[13];&lt;BR /&gt;my $Category = $ARGV[5];&lt;BR /&gt;my $Time = localtime(time);&lt;BR /&gt;my $Timezone = strftime("%Z", localtime());&lt;BR /&gt;my $AlertName = $ARGV[3];&lt;BR /&gt;my $AlertDesc = $ARGV[15];&lt;BR /&gt;my $SysOrigin = $ARGV[9];&lt;/P&gt;
&lt;P&gt;my %file_json = ('Need_Notification' =&amp;gt; $Notification, 'Need_Ticket'=&amp;gt; $Ticket, 'Status' =&amp;gt; $Status, 'Alert_Category' =&amp;gt; $Category, 'AlertTime' =&amp;gt; $Time, 'AlertTime_TimeZone' =&amp;gt; $Timezone, 'Alert_Name' =&amp;gt; $AlertName, 'Alert_Description' =&amp;gt; $AlertDesc, 'System_Origin' =&amp;gt; $SysOrigin);&lt;/P&gt;
&lt;P&gt;my $json = encode_json \%file_json;&lt;/P&gt;
&lt;P&gt;print $json;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 14:35:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unified-Manager-9-4-and-json-file-creation/m-p/144859#M26344</guid>
      <dc:creator>Pat_Parent</dc:creator>
      <dc:date>2018-11-23T14:35:10Z</dc:date>
    </item>
  </channel>
</rss>

