NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

NMSDK for NFS API <nfs-stats-get-client-stats>

carltech47
3,603 Views

Hello,

 

I am working on buidling an application for pulling NFS client statistics. However, this API never seems to work.

I am working on a simulator running 7Mode 8.2.3. Several other NFS API's are working.

 

<?xml version='1.0' encoding='UTF-8' ?>
<netapp version='1.1' xmlns='http://www.netapp.com/filer/admin'>

<!-- Output of nfs-stats-get-client-stats [Execution Time: 125 ms] -->
<results reason='No statistics available for this client. ' errno='13163' status='failed'/>
</netapp>

 

Has anyone else run into this issue? 

3 REPLIES 3

richard_payne
3,570 Views

Have you tried enabling per client stats?

 

options nfs.per_client_stats.enable on

 

--rdp

carltech47
3,560 Views

Yes, I did. 

 

That was the first thing I looked at.

 

The option is on, but when you try to run the API it fails everytime.

 

i think its a bug.

 

 

Any ideas?

anton_oks
3,522 Views

I have a 7-Mode scripts, based on:

 

  • my $api = new NaElement('nfs-stats-top-clients-list-iter-start');
  • my $api1 = new NaElement('nfs-stats-top-clients-list-iter-next');

and with this "child_get("nfs-top")" list I iterate over:

 

  •  my $api3 = new NaElement('nfs-stats-get-client-stats');

 

 

The problem I had... as the 'nfs-stats-get-client-stats' needs IP addresses and as some of our NFS clients do not have DNS reverse entries, I had to implement a "catch" function which adds an local entry into the NetApps /etc/hosts file, sleeps a bit and starts all over again 😮

 

 

Public