Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Collecting a single or rolling Perfstat on cDOT Nodes from linux
2016-02-20
03:48 PM
5,725 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Adly for this useful information.
Renifa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Markus,
Yes, the script uses perfstat8.
I have attached the script above.
I hope it helps.
Cheers,
Adly
