HPE Storage Users Group
https://3parug.net/

statvlun question
https://3parug.net/viewtopic.php?f=18&t=3787
Page 1 of 1

Author:  8kSt0r [ Mon May 16, 2022 11:24 am ]
Post subject:  statvlun question

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.

Author:  Richard Siemers [ Mon May 16, 2022 4:38 pm ]
Post subject:  Re: statvlun question

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!

Author:  8kSt0r [ Mon May 16, 2022 6:58 pm ]
Post subject:  Re: statvlun question

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!

Author:  Richard Siemers [ Tue May 17, 2022 10:19 pm ]
Post subject:  Re: statvlun question

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/