<?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: Perl child_get_string in net_ipspace-get-iter returning undef for vserver-name and others in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137360#M2541</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1712"&gt;@arminwiesel_fts&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a &lt;A href="http://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Cant-get-up-ports-to-print/td-p/135940" target="_self"&gt;similar post&lt;/A&gt; to this recently, I believe the behavior you're seeing is expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 14:24:28 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2018-01-17T14:24:28Z</dc:date>
    <item>
      <title>Perl child_get_string in net_ipspace-get-iter returning undef for vserver-name and others</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137359#M2540</link>
      <description>&lt;P&gt;Using netapp-manageability-sdk-5.7 with Perl to access a simulated cdot cluster with 9.1, I get undefined values with child_get_string in net_ipspace-get-iter.&lt;/P&gt;&lt;P&gt;It occurs not everywhere, only in &amp;lt;ports&amp;gt;, &amp;lt;vservers&amp;gt; or &amp;lt;broadcast-domains&amp;gt; and I'm using the same construct to get the values I use in igroup-get-iter to get &amp;lt;initiator-name&amp;gt;, which is similar and works fine there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code snippet:&lt;/P&gt;&lt;PRE&gt;				my $List=$xo-&amp;gt;child_get("attributes-list");
				my @Attributes=$List-&amp;gt;children_get();
				my $Count=0;
				foreach my $Attr (@Attributes) {
					print "\n".$Attr-&amp;gt;sprintf();
					my $UUID=$Attr-&amp;gt;child_get_string("uuid"); # works as expected
					my $Vservers=$Attr-&amp;gt;child_get("vservers");
					my @VserverList=$Vservers-&amp;gt;children_get();
					foreach my $Vserver (@VserverList) {
						print "\n".$Vserver-&amp;gt;sprintf(); # shows the value I want
						my $VserverName=$Vserver-&amp;gt;child_get_string("vserver-name"); # returns undef
                                                print "$VserverName\n";
					}&lt;/PRE&gt;&lt;P&gt;output:&lt;/P&gt;&lt;PRE&gt;&amp;lt;net-ipspaces-info&amp;gt;
        &amp;lt;broadcast-domains&amp;gt;
                &amp;lt;broadcast-domain-name&amp;gt;prod_smc&amp;lt;/broadcast-domain-name&amp;gt;
        &amp;lt;/broadcast-domains&amp;gt;
        &amp;lt;id&amp;gt;23&amp;lt;/id&amp;gt;
        &amp;lt;ipspace&amp;gt;ips_smc&amp;lt;/ipspace&amp;gt;
        &amp;lt;ports&amp;gt;
                &amp;lt;net-qualified-port-name&amp;gt;smc-na010-01:a0a&amp;lt;/net-qualified-port-name&amp;gt;
        &amp;lt;/ports&amp;gt;
        &amp;lt;uuid&amp;gt;3c213daa-4b97-11e7-bef5-005056be73f9&amp;lt;/uuid&amp;gt;
        &amp;lt;vservers&amp;gt;
                &amp;lt;vserver-name&amp;gt;ips_smc&amp;lt;/vserver-name&amp;gt;
        &amp;lt;/vservers&amp;gt;
&amp;lt;/net-ipspaces-info&amp;gt;

&amp;lt;vserver-name&amp;gt;ips_smc&amp;lt;/vserver-name&amp;gt;
Use of uninitialized value $VserverName in concatenation (.) or string at ./na_cdot.pl line 1311.&lt;/PRE&gt;&lt;P&gt;It's not a show stopper, since I'm able to get the data I want with a workaround. But I'm really curious if this is an error in the API or if I have overlooked something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:08:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137359#M2540</guid>
      <dc:creator>arminwiesel_fts</dc:creator>
      <dc:date>2025-06-04T14:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl child_get_string in net_ipspace-get-iter returning undef for vserver-name and others</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137360#M2541</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1712"&gt;@arminwiesel_fts&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a &lt;A href="http://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Cant-get-up-ports-to-print/td-p/135940" target="_self"&gt;similar post&lt;/A&gt; to this recently, I believe the behavior you're seeing is expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:24:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137360#M2541</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-01-17T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perl child_get_string in net_ipspace-get-iter returning undef for vserver-name and others</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137436#M2546</link>
      <description>&lt;P&gt;Hi asulliva,&lt;/P&gt;&lt;P&gt;thanks for the hint. I'm not familliar with Python and the functions in the Perl API are different too, but I found a solution using get_content instead of child_get_string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;					my $Ports=$Attr-&amp;gt;child_get("ports");
					my @PortList=$Ports-&amp;gt;children_get();
					foreach my $Port (@PortList) {
						my $Name=$Port-&amp;gt;get_content("net-qualified-port-name");

						print "$Name\n";
					}&lt;/PRE&gt;&lt;P&gt;This gets the values I want.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 12:41:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-child-get-string-in-net-ipspace-get-iter-returning-undef-for-vserver-name/m-p/137436#M2546</guid>
      <dc:creator>arminwiesel_fts</dc:creator>
      <dc:date>2018-01-19T12:41:44Z</dc:date>
    </item>
  </channel>
</rss>

