<?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: error with 'OntapClusterAPI.pm in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125327#M22468</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/12467"&gt;@dblackwe﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post what is the ONTAP version you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 18:32:29 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2016-11-11T18:32:29Z</dc:date>
    <item>
      <title>error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125289#M22453</link>
      <description>&lt;P&gt;I am working on a custom workflow for a customer and I am using much of the 0-day cluster setup from the automation store page. &amp;nbsp;However, most of those commands are generating this error, when I try to run them;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;13:38:17.172 ERROR &amp;nbsp;[Rename Root Aggregate] Failed executing command. Exception: No definition for typedef inofile-version found at /opt/netapp/wfa/perl/nmsdk/OntapClusterAPI.pm line 79836, &amp;lt;STDIN&amp;gt; line 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out what this is. &amp;nbsp;I have simply created new commands for some of the simpler ones, but I was hoping to use some of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me what this is and whats causing it?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:18:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125289#M22453</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2025-06-04T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125299#M22458</link>
      <description>&lt;P&gt;You might be having older version of NMSDK. What is the version of WFA?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 03:36:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125299#M22458</guid>
      <dc:creator>karale</dc:creator>
      <dc:date>2016-11-11T03:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125314#M22463</link>
      <description>&lt;P&gt;I am using the most current RC of 4.x on linux.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 13:45:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125314#M22463</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2016-11-11T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125318#M22465</link>
      <description>&lt;P&gt;Here is the code that is causing the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;use strict;
use Getopt::Long;
use NaServer;
use WFAUtil;

my $cluster;

GetOptions(
    "Cluster=s"   =&amp;gt; \$cluster
) or die 'Illegal command parameters\n';

my $wfaUtil = WFAUtil-&amp;gt;new();
$wfaUtil-&amp;gt;sendLog('INFO',"Connecting to cluster");
my $server = $wfaUtil-&amp;gt;connect($cluster);

$wfaUtil-&amp;gt;sendLog('INFO',"Rename root aggregate  ");
my @aggrList = aggrGetInfo();

foreach my $aggrDetails (@aggrList) {
    my ($aggregate, $aggregateOwner, $aggrDiskCount, $aggrIsRoot) = split (/,/,$aggrDetails);
    my $newAggrName = $aggregateOwner . "_root";
    if ($aggrIsRoot =~ m/true/) {
	if ($aggregate =~ m/$newAggrName/) {
	    $wfaUtil-&amp;gt;sendLog('INFO',"Root aggregate for $aggregateOwner is named correctly.\n");
	}
	else {
	    #Rename aggregate
	    $newAggrName=~s/-/_/g;	
	    $wfaUtil-&amp;gt;sendLog('INFO', "Rename of aggregate $aggregate to $newAggrName ");
	    $server-&amp;gt;aggr_rename('aggregate', $aggregate,'new-aggregate-name',$newAggrName);
	    $wfaUtil-&amp;gt;sendLog('INFO', 'Rename of a aggregate operation completed successfully.'); 
	} 
	#Fix root aggregate diskcount 
	if ($aggrDiskCount &amp;lt; 5 ) {
	    my $addDisks = 5 - $aggrDiskCount,;
	    $server-&amp;gt;aggr_add('aggregate', $newAggrName,'disk-count',$addDisks);
	    $wfaUtil-&amp;gt;sendLog('INFO', 'Rename of a aggregate operation completed successfully.');
	}
    } 
}


sub aggrGetInfo {
    # Initialize variables
    my @aggrs;
    my $aggrOwner;
    my $in = $server-&amp;gt;aggr_get_iter();
    # Proccess the attributes  
    foreach my $aggrInfo (@{$in-&amp;gt;{'attributes-list'}-&amp;gt;{'aggr-attributes'}}) {
        my $aggrName = $aggrInfo-&amp;gt;{'aggregate-name'};
        if (my $aggrOwnerAttrs = $aggrInfo-&amp;gt;{'aggr-ownership-attributes'}) {
            $aggrOwner = $aggrOwnerAttrs-&amp;gt;{'owner-name'};
        }
        if (my $aggrRaidAttrs = $aggrInfo-&amp;gt;{'aggr-raid-attributes'}) {
            my $aggrIsRoot = $aggrRaidAttrs-&amp;gt;{'has-local-root'};
            my $aggrDiskCount = $aggrRaidAttrs-&amp;gt;{'disk-count'};
            my $aggrNameAndOwner = "$aggrName,$aggrOwner,$aggrDiskCount,$aggrIsRoot";
            push (@aggrs, $aggrNameAndOwner);
        }
    }
    return (@aggrs); 
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Nov 2016 14:56:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125318#M22465</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2016-11-11T14:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125327#M22468</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/12467"&gt;@dblackwe﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post what is the ONTAP version you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 18:32:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125327#M22468</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-11-11T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125329#M22470</link>
      <description>&lt;P&gt;&lt;SPAN&gt;NetApp Release 9.0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 18:40:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125329#M22470</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2016-11-11T18:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125356#M22476</link>
      <description>&lt;P&gt;I can't fix my problem yet, but I know what is causing the error. &amp;nbsp;It's any command that does a data pull to get information from the cluster. &amp;nbsp;Take the following example;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;use Getopt::Long;
use NaServer;
use WFAUtil;
use strict;

my $cluster;
my $node;

GetOptions(
    "Cluster=s"   =&amp;gt; \$cluster,
    "Node=s"	=&amp;gt; \$node,
) or die 'Illegal command parameters\n';

my $wfaUtil = WFAUtil-&amp;gt;new();

$wfaUtil-&amp;gt;sendLog('INFO',	"Connecting to the cluster: $cluster" );
my $server = $wfaUtil-&amp;gt;connect($cluster);

my $oldAggr = aggrGetInfo();

my $newAggrName = $node . "_root";

$wfaUtil-&amp;gt;sendLog('INFO',"Rename aggregate $oldAggr ");
eval {
    $server-&amp;gt;aggr_rename('aggregate', $oldAggr, 'new-aggregate-name', $newAggrName);
    $wfaUtil-&amp;gt;sendLog('INFO', 'Rename of aggregate operation completed successfully.');
};
if($@) {
    die "Failed to rename the Aggregate" . $@;
}

sub aggrGetInfo {
    # Initialize variables
    my @aggrs;
    my $aggrOwner;
    my $aggrName;
    my $in = $server-&amp;gt;aggr_get_iter();
    # Proccess the attributes  
    foreach my $aggrInfo (@{$in-&amp;gt;{'attributes-list'}-&amp;gt;{'aggr-attributes'}}) {
	my $aggrOwnerAttrs = $aggrInfo-&amp;gt;{'aggr-ownership-attributes'};
	$aggrOwner = $aggrOwnerAttrs-&amp;gt;{'owner-name'};
	if (my $aggrOwner eq $node) {
		$aggrName = $aggrInfo-&amp;gt;{'aggregate-name'};
	}
    }
    return ($aggrName); 
}&lt;/PRE&gt;&lt;P&gt;Before I added the aggrGetInfo section and just used hard coded entries, it worked fine. &amp;nbsp;After adding the section to pull information, I get the error.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 13:55:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125356#M22476</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2016-11-14T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125357#M22477</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As a workaround can you disable bindings validation using: &lt;STRONG&gt;$server-&amp;gt;set_bindings_validation(0) &lt;/STRONG&gt;and check if your has command has executed successfully.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 15:34:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125357#M22477</guid>
      <dc:creator>rkiran</dc:creator>
      <dc:date>2016-11-14T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125358#M22478</link>
      <description>&lt;P&gt;Probably you need right content version. Check if downloading and importing pack from&amp;nbsp;&lt;A href="http://automationstore.netapp.com/pack-detail.shtml?packUuid=WFA_pack_for_managing_Clustered_Data_ONTAP&amp;amp;packVersion=1.1.0" target="_blank"&gt;http://automationstore.netapp.com/pack-detail.shtml?packUuid=WFA_pack_for_managing_Clustered_Data_ONTAP&amp;amp;packVersion=1.1.0&lt;/A&gt; will help&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 15:35:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125358#M22478</guid>
      <dc:creator>karale</dc:creator>
      <dc:date>2016-11-14T15:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: error with 'OntapClusterAPI.pm</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125360#M22479</link>
      <description>&lt;P&gt;That fixed it, but can you explain why?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 15:56:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/error-with-OntapClusterAPI-pm/m-p/125360#M22479</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2016-11-14T15:56:25Z</dc:date>
    </item>
  </channel>
</rss>

