Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1497

February 11th, 2016 17:00

Pulling isi statistics via API not showing accurate results

Calling all script-ers!

I'm trying to write a PowerShell script to grab API data of all client (HTTP,SMB,NFS,PAPI,FTP,HDFS) connections to the cluster and it doesn't appear that my API calls are grabbing ALL of the information.

Below is a quick grab of connections by running isi statistics client list --nodes=all and you can clearly see there are both HTTP, PAPI, and SMB1 connections (all from me) to the cluster.

jnn-a-2# isi statistics client list --nodes=all

Ops    In Out  TimeAvg  Node Proto          Class  UserName LocalName RemoteName

--------------------------------------------------------------------------------------------------------

7.2 836.4   0.0 52552.7     1   http write         * 10.25.68.175 .corp.emc.com

3.0 98.5k 153.0    269.0 2   smb1          write      root 10.25.68.176 .corp.emc.com

0.6 124.8  85.6 340.7     2   smb1 namespace_read      root 10.25.68.176 .corp.emc.com

0.2 134.4  61.0 1165.0     1   papi           read         * 10.25.68.175 .corp.emc.com

0.2   9.0 7.8    133.0     2 smb1     file_state      root 10.25.68.176 .corp.emc.com

--------------------------------------------------------------------------------------------------------

Total: 5

jnn-a-2#

When I simultaneously run my PowerShell script (see attached) which should be grabbing ANY and ALL protocol statistics for connected clients, it's only grabbing HTTP and PAPI.  I have seen both NFS and SMB output work, but it doesn't seem consistent. See below:

PS C:\windows\system32> ps_get_client_connections_via_papi.ps1 -isilonip 10.25.68.175 -username root -password

  1. 10.105.63.43 (HTTP)
  2. 10.105.63.43 (PAPI)

PS C:\windows\system32> 


Is there a better $resource I can be using in my script for the protocol data? Below is an example of what I thought would grab active smb1 connections to the cluster.

$resource="/platform/1/statistics/current?key=node.clientstats.active.smb1"

Any help is appreciated!  You can get a list of all available statistic queries by running isi statistics list keys list

1 Attachment

1.2K Posts

February 12th, 2016 04:00

With the CLI cmd it is: --nodes all

and for the PAPI this will translate to: &nodes=all

$resource="/platform/1/statistics/current?key=node.clientstats.active.smb1&nodes=all"

-- Peter

300 Posts

February 12th, 2016 01:00

Hi,

you are grabbing the Connections from that specific node (node.clientstats.active.smb1). your smb Connection is on node *.176 and not *.175

since i could not find any key which shows connections along the complete Cluster i guess you have to fetch the connections from each node.

No Events found!

Top