ONTAP Discussions

Collecting a single or rolling Perfstat on cDOT Nodes from linux

Adly
5,433 Views

This is a script that combines a single run of perfstat and a rolling perfstat for an intermittent issue.

The script will take care of creating the necessary key for perfstat to run

All you need is copy this script into the same directory as the latest perfstat binary is.

Change the top parameters in the script:

case="2000000000"
clstr="clustermgmt"
iterations=5
sample=5
useradmin="admin"
dstpath="."

the perfstat outputs will be collected in dstpath directory. In this case, the same diretory where perfstat binary is.

start screen, run the script and <ctrl>a+d to detach from the session.

 

For the rolling perfstat with a graceful stop of the loop. All you need to do is touch a file called stop in the same directory as the script. So the current perfstat will finish gracefully and the loop stops.

Similarly for running a single perfstat with the above parameters, touch a file named stop and it will perform 5 iterations with 5 minute sample as stated above.

 

Reference:

KB#1015417 - How to collect a Perfstat from a clustered Data ONTAP system in Linux

 

KB#1012616 - How to collect Performance Statistics for Intermittent Issues

 

3 REPLIES 3

Renifa
5,386 Views

Thanks Adly for this useful information.

 

Renifa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

scheckel
4,814 Views

Hi,

 

the KBs are good.

 

I heard some PS guys wrote a script than you can run perfstat multible times a day. With perfastat 7 it was easy.

 

Is something also available for perfstat8?

 

 

Or can somebody share that script?

 

Best wishes,

Markus.

Adly
4,785 Views

Hi Markus,

 

Yes, the script uses perfstat8.

I have attached the script above.

 

I hope it helps.

Cheers,

Adly

Public