statvlun question

Post Reply
8kSt0r
Posts: 2
Joined: Thu Oct 08, 2020 8:42 am

statvlun question

Post by 8kSt0r »

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.
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: statvlun question

Post by Richard Siemers »

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.
8kSt0r
Posts: 2
Joined: Thu Oct 08, 2020 8:42 am

Re: statvlun question

Post by 8kSt0r »

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!
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: statvlun question

Post by Richard Siemers »

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.
Post Reply