<?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 SM SQL Command line power shell - how to integrate with Perl? in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26510#M8075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a perl script to scrape the get-backup output to report on basic backup information.&amp;nbsp; (No I don't want to use the GUI for lots of reasons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you interface with the Power Shell from a DOS prompt?&amp;nbsp; If I can run the commands from a DOS prompt I can run the commands with Perl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm ultimately trying to do is gather information about the backups, send an SNMP trap to our monitoring system if it fails and upload the information to a centralized reporting database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:49:30 GMT</pubDate>
    <dc:creator>GEEKEGIRL</dc:creator>
    <dc:date>2025-06-05T06:49:30Z</dc:date>
    <item>
      <title>SM SQL Command line power shell - how to integrate with Perl?</title>
      <link>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26510#M8075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a perl script to scrape the get-backup output to report on basic backup information.&amp;nbsp; (No I don't want to use the GUI for lots of reasons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you interface with the Power Shell from a DOS prompt?&amp;nbsp; If I can run the commands from a DOS prompt I can run the commands with Perl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm ultimately trying to do is gather information about the backups, send an SNMP trap to our monitoring system if it fails and upload the information to a centralized reporting database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:49:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26510#M8075</guid>
      <dc:creator>GEEKEGIRL</dc:creator>
      <dc:date>2025-06-05T06:49:30Z</dc:date>
    </item>
    <item>
      <title>SM SQL Command line power shell - how to integrate with Perl?</title>
      <link>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26513#M8076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answering my own question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\Program Files\NetApp\SnapManager for SQL Server&amp;gt;C:\Windows\System32\WindowsPo&lt;/P&gt;&lt;P&gt;werShell\v1.0\powershell.exe -psconsolefile "c:\program files\netapp\snapmanager&lt;/P&gt;&lt;P&gt; for sql server\SmsqlShell.psc1" -command get-backup -server &amp;lt;SERVER&amp;gt; -INST &amp;lt;INSTANCE&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 20:32:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26513#M8076</guid>
      <dc:creator>GEEKEGIRL</dc:creator>
      <dc:date>2011-07-26T20:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: SM SQL Command line power shell - how to integrate with Perl?</title>
      <link>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26518#M8077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SnapManager 5.1 supports the new SnapManager command-line functionality called cmdlet, through SnapManager PowerShell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This SnapManager commandline interface enables you to execute the following operations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ new-backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ verify-backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ restore-backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ get-backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ delete-backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ clone-database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ clone-backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ delete-clone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ import-config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;◆ export-config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure to Enter the command get-executionpolicy in PowerShell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If the policy displayed is “Allsigned” or “Restricted”, enter any of the following commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set-executionpolicy unrestricted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set-executionpolicy remotesigned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add-PSSnapin NetApp.SnapManager.SQL.PS.Admin -ErrorAction silentlycontinue  can be specified in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 20:36:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26518#M8077</guid>
      <dc:creator>abhisek</dc:creator>
      <dc:date>2011-07-26T20:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: SM SQL Command line power shell - how to integrate with Perl?</title>
      <link>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26523#M8078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 20:36:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SM-SQL-Command-line-power-shell-how-to-integrate-with-Perl/m-p/26523#M8078</guid>
      <dc:creator>abhisek</dc:creator>
      <dc:date>2011-07-26T20:36:53Z</dc:date>
    </item>
  </channel>
</rss>

