HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: statvlun question
PostPosted: Mon May 16, 2022 11:24 am 

Joined: Thu Oct 08, 2020 8:42 am
Posts: 2
Could someone please let me how to modify the below statvlun command to only show write operations?

statvlun -d 2 -filt curs,w,iops,1 -sortcol 11,inc -v <VV name> -host <hostname>


I would like to sort the output so that the VLUNs with the highest write service times are shown at the bottom of the output.

Thanks in advance.


Top
 Profile  
Reply with quote  
 Post subject: Re: statvlun question
PostPosted: Mon May 16, 2022 4:38 pm 
Site Admin
User avatar

Joined: Tue Aug 18, 2009 10:35 pm
Posts: 1328
Location: Dallas, Texas
8kSt0r wrote:
statvlun -d 2 -filt curs,w,iops,1 -sortcol 11,inc -v <VV name> -host <hostname>


Best I can do is:
statvlun -d 2 -rw -filt curs,w,iops,1 -sortcol 4,inc:5,inc

The default is to just show totals, the filter will only show you the totals that match your filter.
The -rw option shows R vs W and Total, and then the filter will limit the R/W/T results to match your filter.

sortcol 4 is the R/W/T field, we're lucky that "w" is the last option alphabetically. col 5 is the current metric.

Image

Hope this helps!

_________________
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.


Top
 Profile  
Reply with quote  
 Post subject: Re: statvlun question
PostPosted: Mon May 16, 2022 6:58 pm 

Joined: Thu Oct 08, 2020 8:42 am
Posts: 2
That makes sense, thank you.
What would the command be to show only writes?
I’ve tried a few combinations, but not managed to show stats of write operations only.


Richard Siemers wrote:
8kSt0r wrote:
statvlun -d 2 -filt curs,w,iops,1 -sortcol 11,inc -v <VV name> -host <hostname>


Best I can do is:
statvlun -d 2 -rw -filt curs,w,iops,1 -sortcol 4,inc:5,inc

The default is to just show totals, the filter will only show you the totals that match your filter.
The -rw option shows R vs W and Total, and then the filter will limit the R/W/T results to match your filter.

sortcol 4 is the R/W/T field, we're lucky that "w" is the last option alphabetically. col 5 is the current metric.

Image

Hope this helps!


Top
 Profile  
Reply with quote  
 Post subject: Re: statvlun question
PostPosted: Tue May 17, 2022 10:19 pm 
Site Admin
User avatar

Joined: Tue Aug 18, 2009 10:35 pm
Posts: 1328
Location: Dallas, Texas
If I needed to just show the writes, I would run the command from my operating system's CLI and pipe the output to grep.

For windows I would use plink.exe (part of the putty tools), then pipe | to grep.

Something like:

plink.exe admin@3parProd "statvlun -d 2 -rw -filt curs,w,iops,1 -sortcol 4,inc:5,inc" | grep ' w '


May need to tweek it. There is a way to tell grep to include the top x lines so you can include the headers if you need those. The above example is not exact, I don't have access to a lab that gives me both plink/grep and access to a 3PAR at the same time, so the above will need some fine tuning.

_________________
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt