<?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: Spreadsheet or script for creating CLI commands for new volumes, luns, and IGs? in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/446911#M42686</link>
    <description>&lt;P&gt;If have laptop etc. then can install install say UNBUNTU, Python and ansible on the LINUX VM (most decent laptops can be configured for Hyper-V if have windows, easier if using LINUX machine.&amp;nbsp; If use NetApp simulator as test bed then cant break anything you cant rebuild in 30 mins.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 13:57:30 GMT</pubDate>
    <dc:creator>johneasty</dc:creator>
    <dc:date>2023-08-15T13:57:30Z</dc:date>
    <item>
      <title>Spreadsheet or script for creating CLI commands for new volumes, luns, and IGs?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/441473#M41743</link>
      <description>&lt;P&gt;Hi all. I'm just curious if anyone has built a spreadsheet (or other method) to create all the commands (vol create, lun create, lun map) (using concatenate or similar) that would create&amp;nbsp; volumes, luns and igs at the CLI? Then I would copy the commands out of the spreadsheet and paste them into the CLI.&amp;nbsp; I have to add 40 individual LUNs to 40 different servers. I would like to paste these server names into a column in Excel along with the IG group names and have it put together the CLI commands. If someone has a more efficient way to do this, please share if you don't mind. Its only 40 LUNs this time, but we have a project coming up which will require me to do this for many more production servers. Thanks for the help! Carl&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:53:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/441473#M41743</guid>
      <dc:creator>Carl-in-Austin</dc:creator>
      <dc:date>2025-06-04T09:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Spreadsheet or script for creating CLI commands for new volumes, luns, and IGs?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/441494#M41749</link>
      <description>&lt;P&gt;Hey Carl,&lt;BR /&gt;I don't have the CLI way to do it, but my suggestion is that you take a look at Ansible and maybe ask internally if you have a team that knows Ansible that could assist. It is not a programming language but is powerful and can get your job done. We have some blog posts about automating with Ansible here: &lt;A href="https://netapp.io/configuration-management-and-automation/" target="_blank" rel="noopener"&gt;https://netapp.io/configuration-management-and-automation/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here are some of the commands on the NetApp side that you would need:&lt;BR /&gt;&lt;BR /&gt;Create a volume: &lt;A href="https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_volume_module.html#ansible-collections-netapp-ontap-na-ontap-volume-module" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_volume_module.html#ansible-collections-netapp-ontap-na-ontap-volume-module&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Create an iGroup - &lt;A href="https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_igroup_module.html" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_igroup_module.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create your LUN - &lt;A href="https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_lun_module.html#ansible-collections-netapp-ontap-na-ontap-lun-module" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_lun_module.html#ansible-collections-netapp-ontap-na-ontap-lun-module&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Map your LUN - &lt;A href="https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_lun_map_module.html#ansible-collections-netapp-ontap-na-ontap-lun-map-module" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_lun_map_module.html#ansible-collections-netapp-ontap-na-ontap-lun-map-module&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are also commands for Linux, Windows and VMWare to automate adding those LUNs to the servers.&lt;BR /&gt;&lt;BR /&gt;There is a bit of a learning curve, I admit, and the initial creating of the necessary files takes a bit if you don't know what you are doing, however this is a great way to automate everything you need to do, from storage to server to network. The good thing is, you will find a community on the netapp.io page under the Discord menu item and there are a lot of resources for finding Ansible examples, including the GitHub page at &lt;A href="https://github.com/netapp-automation" target="_blank"&gt;https://github.com/netapp-automation&lt;/A&gt; under ansible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:08:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/441494#M41749</guid>
      <dc:creator>dhepler</dc:creator>
      <dc:date>2023-02-07T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spreadsheet or script for creating CLI commands for new volumes, luns, and IGs?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/446911#M42686</link>
      <description>&lt;P&gt;If have laptop etc. then can install install say UNBUNTU, Python and ansible on the LINUX VM (most decent laptops can be configured for Hyper-V if have windows, easier if using LINUX machine.&amp;nbsp; If use NetApp simulator as test bed then cant break anything you cant rebuild in 30 mins.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 13:57:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Spreadsheet-or-script-for-creating-CLI-commands-for-new-volumes-luns-and-IGs/m-p/446911#M42686</guid>
      <dc:creator>johneasty</dc:creator>
      <dc:date>2023-08-15T13:57:30Z</dc:date>
    </item>
  </channel>
</rss>

