<?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: SnapCenter Data Export in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445081#M13917</link>
    <description>&lt;P&gt;try out this one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Foreach&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$hostname&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; ((&lt;/SPAN&gt;&lt;SPAN&gt;Get-SmHost&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Hostname)) { (&lt;/SPAN&gt;&lt;SPAN&gt;get-smresources&lt;/SPAN&gt; &lt;SPAN&gt;-HostName&lt;/SPAN&gt; &lt;SPAN&gt;$hostname&lt;/SPAN&gt; &lt;SPAN&gt;-PluginCode&lt;/SPAN&gt; &lt;SPAN&gt;SCSQL&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;Select-Object&lt;/SPAN&gt; &lt;SPAN&gt;-Property&lt;/SPAN&gt; &lt;SPAN&gt;dbname&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;dbversion&lt;/SPAN&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then you can redirect the out in a .csv file.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hope that helps in getting what you need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 15:01:06 GMT</pubDate>
    <dc:creator>matte</dc:creator>
    <dc:date>2023-06-08T15:01:06Z</dc:date>
    <item>
      <title>SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/444657#M13894</link>
      <description>&lt;P&gt;I need to export the SnapCenter Resources SQL Server Database view. I don't see anything in the GUI. I've been experimenting with some PowerShell commands but nothing yet. It should basically return three of the same fields as is seen in the GUI, in a columnar format that can be imported into Excel - specifically database name, instance, host. I've mainly been working with&amp;nbsp;&lt;STRONG&gt;Get-SmResources&lt;/STRONG&gt; but from what I can tell you have to enter a specific host you want data for. Does anyone know if what I'm looking for is possible/doable?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:48:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/444657#M13894</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2025-06-04T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445076#M13915</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;with get-smresources you have to specify the host name, yes!&lt;/P&gt;&lt;P&gt;so you can get the SQL resources for all the hosts you have&lt;/P&gt;&lt;P&gt;one example you can start with is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Foreach&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$hostname&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; ((&lt;/SPAN&gt;&lt;SPAN&gt;Get-SmHost&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Hostname)) { &lt;/SPAN&gt;&lt;SPAN&gt;get-smresources&lt;/SPAN&gt; &lt;SPAN&gt;-HostName&lt;/SPAN&gt; &lt;SPAN&gt;$hostname&lt;/SPAN&gt; &lt;SPAN&gt;-PluginCode&lt;/SPAN&gt; &lt;SPAN&gt;SCSQL&lt;/SPAN&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then you can modify/improve the script as you like &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:39:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445076#M13915</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2023-06-08T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445078#M13916</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30713"&gt;@matte&lt;/a&gt;&amp;nbsp;! I will try that (hopefully later today) and will see if that works.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 13:07:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445078#M13916</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2023-06-08T13:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445081#M13917</link>
      <description>&lt;P&gt;try out this one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Foreach&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$hostname&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; ((&lt;/SPAN&gt;&lt;SPAN&gt;Get-SmHost&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Hostname)) { (&lt;/SPAN&gt;&lt;SPAN&gt;get-smresources&lt;/SPAN&gt; &lt;SPAN&gt;-HostName&lt;/SPAN&gt; &lt;SPAN&gt;$hostname&lt;/SPAN&gt; &lt;SPAN&gt;-PluginCode&lt;/SPAN&gt; &lt;SPAN&gt;SCSQL&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;Select-Object&lt;/SPAN&gt; &lt;SPAN&gt;-Property&lt;/SPAN&gt; &lt;SPAN&gt;dbname&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;dbversion&lt;/SPAN&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then you can redirect the out in a .csv file.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hope that helps in getting what you need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:01:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445081#M13917</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2023-06-08T15:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445083#M13918</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30713"&gt;@matte&lt;/a&gt;&amp;nbsp;! I am not a mysql expert by any means. Any idea what I'm missing here? It's just giving me a prompt in return as seen below. I tried removing the redirect to a file at the end and I got the same thing. I then tried&amp;nbsp;&lt;STRONG&gt;use nsm;&lt;/STRONG&gt; and then ran it and still got the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMADOCTHOMAS_0-1686237769127.png" style="width: 400px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/26031i16F88F001931B99F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TMADOCTHOMAS_0-1686237769127.png" alt="TMADOCTHOMAS_0-1686237769127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:23:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445083#M13918</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2023-06-08T15:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445084#M13919</link>
      <description>&lt;P&gt;oh .. what i shared is to run in Powershell&lt;/P&gt;&lt;P&gt;if you want to query nsm let me know what you want to get exaclty.&lt;/P&gt;&lt;P&gt;but with PS i think it is much easier&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:37:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445084#M13919</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2023-06-08T16:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445087#M13920</link>
      <description>&lt;P&gt;Ah, for some reason&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30713"&gt;@matte&lt;/a&gt;&amp;nbsp;I thought your code was mySQL. Okay I just tried it in PowerShell, but it is trying to connect directly to each host rather than just pulling the data from the SnapCenter server itself for some reason. I'm thinking there's likely a way to tell it to gather all it's information from the database. I'll research a little myself but would love to hear any suggestions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-smresources : Unable to connect to the remote server : &amp;lt;server_name&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:26:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445087#M13920</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2023-06-08T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445088#M13921</link>
      <description>&lt;P&gt;Weirdly, the individual components of your command are working perfectly. For some reason when I put them together it tries to connect to each host.&amp;nbsp; For example, I can run the two lines below without a problem. I only have about 50 servers so at the very least I could run the bottom command once per host. I just need to verify fieldnames for the ones I need. Still experimenting...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Get-SmHost&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Hostname&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;get-smresources&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-HostName&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;$hostname&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-PluginCode&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SCSQL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Select-Object&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-Property&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dbname&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;dbversion&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:33:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445088#M13921</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2023-06-08T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445114#M13922</link>
      <description>&lt;P&gt;there is this parameter in get-smresoruces.. maybe is the one for you&lt;BR /&gt;&lt;BR /&gt;-UseKnownResources [&amp;lt;SwitchParameter&amp;gt;]&lt;BR /&gt;Indicates that you want to return the cached resources. You can use this parameter when you have already queried resources from the SnapCenter GUI. In this case, you receive information only about the already discovered resources.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 09:56:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445114#M13922</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2023-06-09T09:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445122#M13923</link>
      <description>&lt;P&gt;Good to know&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30713"&gt;@matte&lt;/a&gt;&amp;nbsp;! I will try that out. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 13:50:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445122#M13923</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2023-06-09T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: SnapCenter Data Export</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445128#M13924</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30713"&gt;@matte&lt;/a&gt;&amp;nbsp;! You are ingenius :). The following version of the command&amp;nbsp;&lt;STRONG&gt;works&lt;/STRONG&gt;! Thank you very very much for the help! That gave me just what I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Foreach ($hostname in ((Get-SmHost).Hostname)) { (get-smresources -HostName $hostname -PluginCode SCSQL -UseKnownResources) | Select-Object -Property dbname,dbid &amp;gt;&amp;gt; databases.txt}&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:36:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapCenter-Data-Export/m-p/445128#M13924</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2023-06-09T17:36:43Z</dc:date>
    </item>
  </channel>
</rss>

