Page 1 of 1

statvlun question

Posted: Mon May 16, 2022 11:24 am
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.

Re: statvlun question

Posted: Mon May 16, 2022 4:38 pm
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!

Re: statvlun question

Posted: Mon May 16, 2022 6:58 pm
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!

Re: statvlun question

Posted: Tue May 17, 2022 10:19 pm
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.