<?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: How-TO: Automate the NetApp Tasks via BASH SHELL Script in SaaS Backup Bulk Export Tool</title>
    <link>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/148083#M33</link>
    <description>&lt;P&gt;rdfile and wrfile are node shell commands. Below is provided from Ontap 9 Documentation Center as an example. &amp;nbsp;They were used more often in 7-mode as there are other ways of getting the information now. &amp;nbsp;For example, the below will allow you to see events in the /etc/log directory, but it can be easier to go through OnCommand System Manager and get to the logs there.&lt;/P&gt;
&lt;H1 class="title topictitle1"&gt;Accessing the event log files&lt;/H1&gt;
&lt;DIV class="body taskbody"&gt;
&lt;P class="shortdesc"&gt;&lt;SPAN class="ph"&gt;You can access the event log files for tape backup and restore operations in the &lt;SPAN class="ph filepath"&gt;/etc/log/&lt;/SPAN&gt; directory by using the &lt;SPAN class="keyword cmdname"&gt;&lt;SPAN&gt;rdfile&lt;/SPAN&gt;&lt;/SPAN&gt; command at the nodeshell.&lt;/SPAN&gt; You can view these event log files to monitor tape backup and restore operations.&lt;/P&gt;
&lt;DIV id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__CONTEXT_146EA2121AF34DD2988503CF1DC6296B" class="section context"&gt;
&lt;DIV class="tasklabel"&gt;
&lt;H2 class="sectiontitle tasklabel"&gt;About this task&lt;/H2&gt;
&lt;/DIV&gt;
With additional configurations, such as an access-control role with access to the &lt;SPAN class="ph synph"&gt;&lt;SPAN class="keyword kwd"&gt;spi&lt;/SPAN&gt;&lt;/SPAN&gt; web service or a user account set up with the &lt;SPAN class="ph synph"&gt;&lt;SPAN class="keyword kwd"&gt;http&lt;/SPAN&gt;&lt;/SPAN&gt; access method, you can also use a web browser to access these log files.&lt;/DIV&gt;
&lt;DIV class="tasklabel"&gt;
&lt;H2 class="sectiontitle tasklabel"&gt;Steps&lt;/H2&gt;
&lt;/DIV&gt;
&lt;OL id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__GUID-5C40A2D4-96DD-41D3-B9F9-53E3EFCF30BD" class="ol steps"&gt;
&lt;LI id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__STEP_ACE6265FFEEE40A0BCEE501AF47D8EEF" class="li step stepexpand"&gt;&lt;SPAN class="ph cmd"&gt;To access the nodeshell, enter the following command: &lt;SPAN class="div_linebreak"&gt;&lt;KBD class="ph userinput"&gt;node run -node &lt;VAR class="keyword varname"&gt;node_name&lt;/VAR&gt;&lt;/KBD&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="p stepInfo"&gt;&lt;VAR class="keyword varname"&gt;node_name&lt;/VAR&gt; is the name of the node.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__STEP_C8D4F7FE62784C4FB894C6C8AB7C4EA0" class="li step stepexpand"&gt;&lt;SPAN class="ph cmd"&gt;To access the event log files for tape backup and restore operations, enter the following command: &lt;SPAN class="div_linebreak"&gt;&lt;KBD class="ph userinput"&gt;&lt;SPAN&gt;rdfile /etc/log/backup&lt;/SPAN&gt;&lt;/KBD&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;&lt;SPAN&gt;Additionally, to answer the questions that you ask before, NetApp has several products and supports several other products to help you do what you want to do. &amp;nbsp;OnCommand Unified Manager (OCUM) will allow you to create alerts, generate custom reports and other administrative tasks. &amp;nbsp;OCUM also has the ability to run shell scripts in response to an alert. &amp;nbsp;So if you have a volume that hits 80% usage, you can either set up autogrow through Ontap or have OCUM run a script to grow your volume a specific amount.&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 class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;&lt;SPAN&gt; I have OCUM set up to generate reports on a daily, weekly and monthly basis depending on the report. &amp;nbsp;For example, I get a summary of active alerts sent daily and health and performance reports on a weekly basis. &amp;nbsp;If there are any issues, I get alerts that I can get sent repeatedly to me on a schedule until the issue is taken care of. &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 class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;&lt;SPAN&gt;There are also many products to help automate the process that NetApp provides as a product or service or provides support for third party products. &amp;nbsp;WFA or Work Flow Automation is a NetApp product that you can talk to your sales representative about as well as third pary products that NetApp supports such as Ansible, Puppet and others.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 Apr 2019 19:00:04 GMT</pubDate>
    <dc:creator>Skim</dc:creator>
    <dc:date>2019-04-23T19:00:04Z</dc:date>
    <item>
      <title>How-TO: Automate the NetApp Tasks via BASH SHELL Script</title>
      <link>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/145330#M18</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;
&lt;P&gt;I would like to, ""Automate my daily NetApp Tasks (DB Backup execution, Space Usage monitoring &amp;amp; Bringing the NetApp Filer UP / Down at regular intervals)&amp;nbsp;via BASH SHELL Script (.sh)"".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any external Linux box is required &amp;amp; linked to the NetApp box&amp;nbsp;to perform this task, if so let me know how I can achieve setting up this?.&lt;/P&gt;
&lt;P&gt;Kindly, let me know:&lt;/P&gt;
&lt;P&gt;a) How-TO: Create &amp;amp; Execute any BASH SHELL Script (.sh)&amp;nbsp;in a NetApp box. And, change the permission for them?.&lt;/P&gt;
&lt;P&gt;b) Also, I would like to know "How-TO: Schedule any BASH SHELL Script (.sh)&amp;nbsp;inside the NetApp box to perform my daily sequence activity (EX: Genearating, a daily Health Check Report of my NetApp box (to identify the status of my&amp;nbsp;LUN, Storage Pools and their Health, Volumes)".&lt;/P&gt;
&lt;P&gt;c) Hope, "rdfile &amp;amp; wrfile"will be able to perform the read a&amp;nbsp;file and write a file on the NetApp box. But, the command is missing in my box. Kindly, let me know why &amp;amp; How-TO: fix / make it work?.&lt;/P&gt;
&lt;P&gt;d) Also, please let me know the best way to install any missing package / command&amp;nbsp;in a&amp;nbsp;NetApp box. I tried "n" ways nothing worked.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Any, help appreciated on these above&amp;nbsp;queries are highly appreciated !!!!.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;KM (Mail ID: mklee786@gmail.com / WhatsApp No.: 9442619352).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:02:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/145330#M18</guid>
      <dc:creator>mklee786</dc:creator>
      <dc:date>2025-06-04T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How-TO: Automate the NetApp Tasks via BASH SHELL Script</title>
      <link>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/145425#M19</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NetApp uses&amp;nbsp;proprietary and closed OS called ONTAP. the OS is locked-down to only run NetApp built-in commands.&lt;/P&gt;
&lt;P&gt;Rdfile and Wrfile are commands&amp;nbsp;available in Advanced / Diagnostic mode on the nodes, ad they mainly&amp;nbsp;available for&amp;nbsp;troubleshooting and edit of local config files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;scripts as such&amp;nbsp;should&amp;nbsp;be run from external box. NetApp provide&amp;nbsp;multiple SDK's and&amp;nbsp;developer / scripting tools to the&amp;nbsp;individual products. as well as a backup suite, monitoring tools and automation tools that you can explore and may help you with your tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gidi&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 15:37:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/145425#M19</guid>
      <dc:creator>GidonMarcus</dc:creator>
      <dc:date>2018-12-15T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: How-TO: Automate the NetApp Tasks via BASH SHELL Script</title>
      <link>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/145446#M20</link>
      <description>&lt;P&gt;Gidi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Below is&amp;nbsp;the errro I got when I try to use "wrfile / rdfile in netapp". Kindly, advise howto proceed here?.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;&lt;/P&gt;
&lt;P&gt;METRO-CLUSTER-01::&amp;gt; set -privilege admin&lt;/P&gt;
&lt;P&gt;METRO-CLUSTER-01::&amp;gt; wrf&lt;/P&gt;
&lt;P&gt;Error: "wrf" is not a recognized command&lt;BR /&gt;METRO-CLUSTER-01::&amp;gt; rdf&lt;/P&gt;
&lt;P&gt;Error: "rdf" is not a recognized command&lt;BR /&gt;METRO-CLUSTER-01::&amp;gt; set -privilege advanced&lt;/P&gt;
&lt;P&gt;Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.&lt;BR /&gt;Do you want to continue? {y|n}: y&lt;/P&gt;
&lt;P&gt;METRO-CLUSTER-01::*&amp;gt; wrf&lt;/P&gt;
&lt;P&gt;Error: "wrf" is not a recognized command&lt;BR /&gt;METRO-CLUSTER-01::*&amp;gt; rdf&lt;/P&gt;
&lt;P&gt;Error: "rdf" is not a recognized command&lt;BR /&gt;METRO-CLUSTER-01::*&amp;gt; set -privilege diagnostic&lt;/P&gt;
&lt;P&gt;Warning: These diagnostic commands are for use by NetApp personnel only.&lt;BR /&gt;Do you want to continue? {y|n}: y&lt;/P&gt;
&lt;P&gt;METRO-CLUSTER-01::*&amp;gt; wrf&lt;/P&gt;
&lt;P&gt;Error: "wrf" is not a recognized command&lt;BR /&gt;METRO-CLUSTER-01::*&amp;gt; rdf&lt;/P&gt;
&lt;P&gt;Error: "rdf" is not a recognized command&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. My actual need is to generate and send a "Health Check Report" va mail at the end of my&amp;nbsp; work day on daily basis. How to achiveve this by a Linux box&amp;nbsp;and a NetApp, how to achieve this?.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Please, get me more on this, Per my knowledge: SANSurfer, fdm (Fabri Disk Management), HP OneView, NetApp Manageability (NM) cn be used to achieve this. Please. correct me and elaborate more on this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;scripts as such&amp;nbsp;should&amp;nbsp;be run from external box. NetApp provide&amp;nbsp;multiple SDK's and&amp;nbsp;developer / scripting tools to the&amp;nbsp;individual products. as well as a backup suite, monitoring tools and automation tools that you can explore and may help you with your tasks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;KM&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 17:53:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/145446#M20</guid>
      <dc:creator>mklee786</dc:creator>
      <dc:date>2018-12-17T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How-TO: Automate the NetApp Tasks via BASH SHELL Script</title>
      <link>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/148083#M33</link>
      <description>&lt;P&gt;rdfile and wrfile are node shell commands. Below is provided from Ontap 9 Documentation Center as an example. &amp;nbsp;They were used more often in 7-mode as there are other ways of getting the information now. &amp;nbsp;For example, the below will allow you to see events in the /etc/log directory, but it can be easier to go through OnCommand System Manager and get to the logs there.&lt;/P&gt;
&lt;H1 class="title topictitle1"&gt;Accessing the event log files&lt;/H1&gt;
&lt;DIV class="body taskbody"&gt;
&lt;P class="shortdesc"&gt;&lt;SPAN class="ph"&gt;You can access the event log files for tape backup and restore operations in the &lt;SPAN class="ph filepath"&gt;/etc/log/&lt;/SPAN&gt; directory by using the &lt;SPAN class="keyword cmdname"&gt;&lt;SPAN&gt;rdfile&lt;/SPAN&gt;&lt;/SPAN&gt; command at the nodeshell.&lt;/SPAN&gt; You can view these event log files to monitor tape backup and restore operations.&lt;/P&gt;
&lt;DIV id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__CONTEXT_146EA2121AF34DD2988503CF1DC6296B" class="section context"&gt;
&lt;DIV class="tasklabel"&gt;
&lt;H2 class="sectiontitle tasklabel"&gt;About this task&lt;/H2&gt;
&lt;/DIV&gt;
With additional configurations, such as an access-control role with access to the &lt;SPAN class="ph synph"&gt;&lt;SPAN class="keyword kwd"&gt;spi&lt;/SPAN&gt;&lt;/SPAN&gt; web service or a user account set up with the &lt;SPAN class="ph synph"&gt;&lt;SPAN class="keyword kwd"&gt;http&lt;/SPAN&gt;&lt;/SPAN&gt; access method, you can also use a web browser to access these log files.&lt;/DIV&gt;
&lt;DIV class="tasklabel"&gt;
&lt;H2 class="sectiontitle tasklabel"&gt;Steps&lt;/H2&gt;
&lt;/DIV&gt;
&lt;OL id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__GUID-5C40A2D4-96DD-41D3-B9F9-53E3EFCF30BD" class="ol steps"&gt;
&lt;LI id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__STEP_ACE6265FFEEE40A0BCEE501AF47D8EEF" class="li step stepexpand"&gt;&lt;SPAN class="ph cmd"&gt;To access the nodeshell, enter the following command: &lt;SPAN class="div_linebreak"&gt;&lt;KBD class="ph userinput"&gt;node run -node &lt;VAR class="keyword varname"&gt;node_name&lt;/VAR&gt;&lt;/KBD&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="p stepInfo"&gt;&lt;VAR class="keyword varname"&gt;node_name&lt;/VAR&gt; is the name of the node.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI id="GUID-56631EAE-EEFB-44D5-AB72-1DED99806358__STEP_C8D4F7FE62784C4FB894C6C8AB7C4EA0" class="li step stepexpand"&gt;&lt;SPAN class="ph cmd"&gt;To access the event log files for tape backup and restore operations, enter the following command: &lt;SPAN class="div_linebreak"&gt;&lt;KBD class="ph userinput"&gt;&lt;SPAN&gt;rdfile /etc/log/backup&lt;/SPAN&gt;&lt;/KBD&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;&lt;SPAN&gt;Additionally, to answer the questions that you ask before, NetApp has several products and supports several other products to help you do what you want to do. &amp;nbsp;OnCommand Unified Manager (OCUM) will allow you to create alerts, generate custom reports and other administrative tasks. &amp;nbsp;OCUM also has the ability to run shell scripts in response to an alert. &amp;nbsp;So if you have a volume that hits 80% usage, you can either set up autogrow through Ontap or have OCUM run a script to grow your volume a specific amount.&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 class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;&lt;SPAN&gt; I have OCUM set up to generate reports on a daily, weekly and monthly basis depending on the report. &amp;nbsp;For example, I get a summary of active alerts sent daily and health and performance reports on a weekly basis. &amp;nbsp;If there are any issues, I get alerts that I can get sent repeatedly to me on a schedule until the issue is taken care of. &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 class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;&lt;SPAN&gt;There are also many products to help automate the process that NetApp provides as a product or service or provides support for third party products. &amp;nbsp;WFA or Work Flow Automation is a NetApp product that you can talk to your sales representative about as well as third pary products that NetApp supports such as Ansible, Puppet and others.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2019 19:00:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SaaS-Backup-Bulk-Export-Tool/How-TO-Automate-the-NetApp-Tasks-via-BASH-SHELL-Script/m-p/148083#M33</guid>
      <dc:creator>Skim</dc:creator>
      <dc:date>2019-04-23T19:00:04Z</dc:date>
    </item>
  </channel>
</rss>

