<?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 Re: Prot Mgr - post  backup script in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4191#M945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's in the "Start" button &amp;gt; Programs &amp;gt; NetApp &amp;gt; DataFabric Manager &amp;gt; Man Pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 19:56:21 GMT</pubDate>
    <dc:creator>jmc</dc:creator>
    <dc:date>2009-01-15T19:56:21Z</dc:date>
    <item>
      <title>Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4166#M936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;How can I setup Protection Manager to run a script after a backup has been completed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the protection policy window it shows 'backup script' but I thought that ran before the backup was executed (since it shows that on the primary node).   I'd like to run a script after the backup is complete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Specifically after I do a 'remote backup' of a dataset, I'd like to call a script to tell my tape backup software to run a tape backup of the remote data.  So I'll need to have the snapshot name passed along as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:31:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4166#M936</guid>
      <dc:creator>kutner</dc:creator>
      <dc:date>2025-06-05T07:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4171#M937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script will be invoked several times, each time with an ENV that tells you whether it's before or after backup. Test that ENV to decide what to do (nothing or something) based on which point in the process the script got called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 19:24:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4171#M937</guid>
      <dc:creator>jmc</dc:creator>
      <dc:date>2009-01-15T19:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4175#M938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See section "PRE- AND POST-PROCESSING SCRIPTS FOR DATA TRANSFERS" in the "man dfm" pages for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENV you want is called DP_BACKUP_STATUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 19:26:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4175#M938</guid>
      <dc:creator>jmc</dc:creator>
      <dc:date>2009-01-15T19:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4181#M940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correction: "man dfpm"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 19:27:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4181#M940</guid>
      <dc:creator>jmc</dc:creator>
      <dc:date>2009-01-15T19:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4186#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where's the docs on a Windows box?  'man' doesn't work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 19:49:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4186#M942</guid>
      <dc:creator>kutner</dc:creator>
      <dc:date>2009-01-15T19:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4191#M945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's in the "Start" button &amp;gt; Programs &amp;gt; NetApp &amp;gt; DataFabric Manager &amp;gt; Man Pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 19:56:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4191#M945</guid>
      <dc:creator>jmc</dc:creator>
      <dc:date>2009-01-15T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prot Mgr - post  backup script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4196#M948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, got all of the information I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To round out this topic, I'm posting a simple script that can show all of the variables each time the script runs.  This template can be used for both provisioning and protection policies.   It's in the man pages, but here is the whole script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# This is in Perl&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# timestamp&lt;/P&gt;&lt;P&gt;$file="C:\\scripts\\log.txt";&lt;/P&gt;&lt;P&gt;$time = localtime; &lt;BR /&gt;open(DAT, "&amp;gt;&amp;gt; $file") || die("Cannot Open File"); &lt;BR /&gt;print DAT "$time\n"; close(DAT); &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;open(DAT,"&amp;gt;&amp;gt; $file") || die("Cannot Open File"); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# loop through the Provisioning environment variables&lt;BR /&gt;foreach $key (sort(keys %ENV))&lt;BR /&gt;  {&lt;BR /&gt;          if ($key =~ /^PM_/) {&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;                  print DAT "$key: $ENV{$key}\n";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;          }&lt;BR /&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# loop through the Protection environment variables&lt;/P&gt;&lt;P&gt;foreach $key (sort(keys %ENV))&lt;BR /&gt;  {&lt;BR /&gt;          if ($key =~ /^DP_/) {&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;                  print DAT "$key: $ENV{$key}\n";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;          }&lt;BR /&gt;  }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;close (DAT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# timestamp&lt;/P&gt;&lt;P&gt;$time = localtime; &lt;BR /&gt;open(DAT,"&amp;gt;&amp;gt;$file") || die("Cannot Open File"); &lt;BR /&gt;print DAT "$time\n"; close(DAT);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 19:06:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Prot-Mgr-post-backup-script/m-p/4196#M948</guid>
      <dc:creator>kutner</dc:creator>
      <dc:date>2009-01-16T19:06:50Z</dc:date>
    </item>
  </channel>
</rss>

