<?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: Correlate ONTAP volume name with volume address in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169471#M38910</link>
    <description>&lt;P&gt;What exactly are you trying to accomplish here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any volume can be accessed in the SVM by the IP addresses. So mapping them to volumes doesn’t make a lot of sense. If you’re looking for data locality, there are NAS features that do this automatically. But the cluster is designed to allow access regardless of node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if you ever start using FlexGroup, they span multiple nodes, so locality is out the window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you’re simply looking for client/volume/LIF connections and their details, use “cifs session show” and “nfs connected-clients show” (or their corresponding REST API&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 14:04:08 GMT</pubDate>
    <dc:creator>parisi</dc:creator>
    <dc:date>2021-08-25T14:04:08Z</dc:date>
    <item>
      <title>Correlate ONTAP volume name with volume address</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169467#M38908</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We would like to correlate the data for volume name, volume ip&amp;nbsp; address and the owning vserver. For this we have been querying the 2 endpoints ( volume-get-iter, net-interface-get-iter )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the “volume-get-iter” we are able to get the volume name, the owning-vserver-name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the “net-interface-get-iter” we are able to get the volume ip address and the owning-vserver-name. We would like to correlate this data and would like to get the information such as which ip address belongs to which volume, but unfortunately we are not finding the common data point in both endpoints output that can help us.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the sample POC in Python I have created in order to explain the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from NetApp import NaServer
from NetApp import NaElement
 
s = NaServer.NaServer("********", 1, 31)
s.set_server_type("FILER")
s.set_transport_type("HTTPS")
s.set_port(443)
s.set_style("LOGIN")
s.set_admin_user("******", "*******")
 
# first loop
tag = 'first'
 
while tag:
   print("----------------- Calling the volume-get-iter -------------------- ")
   api = NaElement.NaElement("volume-get-iter")
   api.child_add_string("max-records", "100")
   if tag != 'first':
       api.child_add_string("tag", tag)
 
   output = s.invoke_elem(api)
 
   volumesattributes = output.child_get('attributes-list').children_get()
   for volume in volumesattributes:
       volumename = volume.child_get('volume-id-attributes').child_get_string('name')
       vserver = volume.child_get('volume-id-attributes').child_get_string('owning-vserver-name')
       print(volumename,vserver)
   tag = output.child_get_string("next-tag")
 
   print("----------------- Calling the net-interface-get-iter -------------------- ")
  
   api2 = NaElement.NaElement("net-interface-get-iter")
   api2.child_add_string("max-records", "100")
   if tag != 'first':
       api2.child_add_string("tag", tag)
 
   output2 = s.invoke_elem(api2)
   networkattributes = output2.child_get('attributes-list').children_get()
   print(networkattributes)
   for net in networkattributes:
       address = net.child_get_string('address')
       vserver = net.child_get_string('vserver')
       print(address,vserver)
   tag = output.child_get_string("next-tag")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here, for example the first print statement finds below correlation between volume name, the owning-vserver-name.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;volume name&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;owning-vserver-name&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;SVM01XOXO_root&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;SVM0001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;lun_060822909021_030419_16_vol&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;SVM0001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;nfs95ab&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;SVM0001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;vol1230&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;cluster96n-01&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And for example the second print statement finds below correlation between volume address, the owning-vserver-name.&lt;/SPAN&g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&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We would like to map these volume ip addresses with the volume name but we certainly need one more common attribute in both these endpoint result’s output. Would you please suggest how this can be achieved.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Many thanks !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:15:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169467#M38908</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2025-06-04T10:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate ONTAP volume name with volume address</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169470#M38909</link>
      <description>&lt;P&gt;A client can mount on an IP in the SVM, so you need to look at CIFS or NFS connected clients to see what IP a client is accessing in ONTAP.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 13:53:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169470#M38909</guid>
      <dc:creator>paul_stejskal</dc:creator>
      <dc:date>2021-08-25T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate ONTAP volume name with volume address</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169471#M38910</link>
      <description>&lt;P&gt;What exactly are you trying to accomplish here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any volume can be accessed in the SVM by the IP addresses. So mapping them to volumes doesn’t make a lot of sense. If you’re looking for data locality, there are NAS features that do this automatically. But the cluster is designed to allow access regardless of node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if you ever start using FlexGroup, they span multiple nodes, so locality is out the window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you’re simply looking for client/volume/LIF connections and their details, use “cifs session show” and “nfs connected-clients show” (or their corresponding REST API&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 14:04:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Correlate-ONTAP-volume-name-with-volume-address/m-p/169471#M38910</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2021-08-25T14:04:08Z</dc:date>
    </item>
  </channel>
</rss>

