<?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 Is it possible to use loops or define variables in ngsh? in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Is-it-possible-to-use-loops-or-define-variables-in-ngsh/m-p/462076#M45063</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I've recently been researching whether I can use automation methods in ONTAP. I found that ONTAP can use NGSH. But I failed to define variables or create loops. Can it use these functions like FreeBSD? Or can I use shell scripts to do what I want?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 23:20:58 GMT</pubDate>
    <dc:creator>AllenChang</dc:creator>
    <dc:date>2025-07-16T23:20:58Z</dc:date>
    <item>
      <title>Is it possible to use loops or define variables in ngsh?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Is-it-possible-to-use-loops-or-define-variables-in-ngsh/m-p/462076#M45063</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I've recently been researching whether I can use automation methods in ONTAP. I found that ONTAP can use NGSH. But I failed to define variables or create loops. Can it use these functions like FreeBSD? Or can I use shell scripts to do what I want?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 23:20:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Is-it-possible-to-use-loops-or-define-variables-in-ngsh/m-p/462076#M45063</guid>
      <dc:creator>AllenChang</dc:creator>
      <dc:date>2025-07-16T23:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use loops or define variables in ngsh?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Is-it-possible-to-use-loops-or-define-variables-in-ngsh/m-p/462214#M45078</link>
      <description>&lt;P&gt;I never worked on NGSH, just bash from jump/management host (using password less /ssh keys) to login to clusters and run commands, something similar to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;BR /&gt;cat asm_luns | awk ' \&lt;BR /&gt;{&lt;BR /&gt;cluster="clus1"&lt;BR /&gt;vserver="svm1"&lt;BR /&gt;cmd_ln1=" lun create -vserver svm1 -path "$1" -ostype windows_2008 -size "$2&lt;BR /&gt;system("/usr/bin/ssh admin@"cluster cmd_ln1)&lt;BR /&gt;next&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's my automation.&lt;BR /&gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 00:26:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Is-it-possible-to-use-loops-or-define-variables-in-ngsh/m-p/462214#M45078</guid>
      <dc:creator>Sanaman</dc:creator>
      <dc:date>2025-07-23T00:26:09Z</dc:date>
    </item>
  </channel>
</rss>

