<?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: Correct syntax for &amp;quot;Execute this command:&amp;quot; in WFA in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/145654#M26439</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/22891"&gt;@Girton&lt;/a&gt;, it looks like that syntax was correct after all.&amp;nbsp; After not looking at it for all this time, I went back and checked on it with fresh eyes.&amp;nbsp; It looks like I set the correct syntax on an early step of the workflow, but didn't set it correctly on later steps.&amp;nbsp; So, the error message was coming from steps later in the workflow.&amp;nbsp; Doh!&amp;nbsp; &amp;nbsp;Sorry for the wild goose chase, but I think I have it working now.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 22:02:16 GMT</pubDate>
    <dc:creator>Jim_Robertson</dc:creator>
    <dc:date>2019-01-02T22:02:16Z</dc:date>
    <item>
      <title>Correct syntax for "Execute this command:" in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144257#M26266</link>
      <description>&lt;P&gt;I am attempting to create a workflow where certain steps will not run if a volume is offline or doesn't exist.&amp;nbsp; To achieve this, I was trying to the use "Execute this command" on the advanced tab of the workflow step, but I can't seem to get the syntax correct.&amp;nbsp; Or, maybe it's because I'm trying to use a previously defined object?&amp;nbsp; The dropdown allows me to select the object, so it seems like it should work.&amp;nbsp; I've tried putting the "online" word in single quotes, double quotes, and no quotes.&amp;nbsp; All give me the same error.&lt;BR /&gt;&lt;BR /&gt;snapmirror1.volume.state == 'online'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WFA1.JPG" style="width: 419px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/8590i44285F95E2600FED/image-size/large?v=v2&amp;amp;px=999" role="button" title="WFA1.JPG" alt="WFA1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When I do a preview, I get the error message:&amp;nbsp;&lt;BR /&gt;Failed to evaluate the conditional execution expression 'snapmirror1.volume.state = "online"'. Illegal expression: snapmirror1.volume.state = "online"&lt;BR /&gt;&lt;BR /&gt;What am I missing?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:10:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144257#M26266</guid>
      <dc:creator>Jim_Robertson</dc:creator>
      <dc:date>2025-06-04T13:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for "Execute this command:" in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144916#M26353</link>
      <description>&lt;P&gt;I don't know if this reply is too late, but here goes:&lt;/P&gt;
&lt;P&gt;One thing that comes to my mind is to search for the SnapMirror source volume before this step, using a "Search or define" block.&amp;nbsp; Then reference this object's state in the advanced tab of the workflow step.&amp;nbsp; I suspect the cause of your issue that you're referring to an object defined in that step, something I've seen before.&amp;nbsp; It's a frustrating problem, for sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please update this thread if you get a chance to try my suggestion.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 17:30:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144916#M26353</guid>
      <dc:creator>Girton</dc:creator>
      <dc:date>2018-11-27T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for "Execute this command:" in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144927#M26355</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/22891"&gt;@Girton&lt;/a&gt;.&amp;nbsp; Thankfully, this got put on the back burner for right now, but I'm sure I'm going to start getting pressured for it again soon, so any help is definitely appreciated.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I think I'm already doing what you are suggesting.&amp;nbsp; The first step of the workflow is to find and define a Snapmirror relationship based on a given volume name that the user enters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 472px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/8657iCB36AFB7F3A88411/image-dimensions/472x184?v=v2" width="472" height="184" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Then, it will wait until any running Snapmirrors are finished before continuing on.&amp;nbsp; This part works as long as I don't have a condition in the Advanced tab.&amp;nbsp; So, I know it's defining it correctly.&amp;nbsp; It will even let me use the dropdowns to create the condition (see screenshot), I'm just not sure what the syntax is after defining the parameter I want to look at to judge the condition.&amp;nbsp; Is&amp;nbsp;&lt;STRONG&gt;snapmirror1.volume.state == 'online'&lt;/STRONG&gt; the correct syntax?&amp;nbsp; I only want it to wait for the Snapmirror update to complete if the source volume is online.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-27_16-08-08.jpg" style="width: 505px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/8658i09568EB6BB1C54DD/image-dimensions/505x131?v=v2" width="505" height="131" role="button" title="2018-11-27_16-08-08.jpg" alt="2018-11-27_16-08-08.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:09:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144927#M26355</guid>
      <dc:creator>Jim_Robertson</dc:creator>
      <dc:date>2018-11-27T21:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for "Execute this command:" in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144987#M26358</link>
      <description>&lt;P&gt;As best I can tell &lt;STRONG&gt;snapmirror1.volume.state == 'online'&lt;/STRONG&gt; is the correct syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a test, I cloned the "Remove SnapMirror relationship" certified workflow, and added a condition in the parameter section of 2nd command block ("Remove SnapMirror - Perl"), using a similar conditional expression (snapmirror.volume.state == 'online'), and it worked as expected.&lt;BR /&gt;&lt;BR /&gt;The only additional thing I can think of to look at is the filter you used to find the SnapMirror.&amp;nbsp; Are you using a custom filter?&amp;nbsp; It appears that you might be, as all of the certified filters I can see in WFA require more than the source volume to find a SnapMirror relationship.&amp;nbsp; If you're using a custom filter, is it possible that the filter isn't returning the state of the source volume?&amp;nbsp; If so, then such would cause the error you're seeing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 20:12:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/144987#M26358</guid>
      <dc:creator>Girton</dc:creator>
      <dc:date>2018-11-28T20:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for "Execute this command:" in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/145654#M26439</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/22891"&gt;@Girton&lt;/a&gt;, it looks like that syntax was correct after all.&amp;nbsp; After not looking at it for all this time, I went back and checked on it with fresh eyes.&amp;nbsp; It looks like I set the correct syntax on an early step of the workflow, but didn't set it correctly on later steps.&amp;nbsp; So, the error message was coming from steps later in the workflow.&amp;nbsp; Doh!&amp;nbsp; &amp;nbsp;Sorry for the wild goose chase, but I think I have it working now.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 22:02:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Correct-syntax-for-quot-Execute-this-command-quot-in-WFA/m-p/145654#M26439</guid>
      <dc:creator>Jim_Robertson</dc:creator>
      <dc:date>2019-01-02T22:02:16Z</dc:date>
    </item>
  </channel>
</rss>

