HPE 3PAR StoreServ Storage
1751917 Members
5535 Online
108783 Solutions
New Discussion

Using Glob patterns in CLI seems inconsistant across commands

 
DHCSBAS
Established Member

Using Glob patterns in CLI seems inconsistant across commands

Hi

 

 

I'm trying to get a handle on why Glob pattern matching seems inconsistant across commands.

 

 

I'm trying to perform the statcmp command to view cache information from a select set of VV's which yeilds no information, yet if I use the same Glob pattern in a showvv I do get the correct VV's that I'm after returned. Am I doing something wrong?

 

 

Cheers


MarkA

 

 

This command doesn't work:

DHDRH3PAP001 cli% statcmp -v -n BASP025*
 11:17:26 06/06/2014 ---- Current ----- ----- Total ------
 VVid VVname Type Accesses Hits Hit% Accesses Hits Hit%
 Press the enter key to stop...

 DHDRH3PAP001 cli%

 


This does work (note I've left off some of the VV in the list below):

DHDRH3PAP001 cli% statcmp -v
 11:12:43 06/06/2014 ---- Current ----- ----- Total ------
 VVid VVname Type Accesses Hits Hit% Accesses Hits Hit%
 0 admin Read 0 0 0 0 0 0
 0 admin Write 0 0 0 0 0 0
 1 .srdata Read 0 0 0 0 0 0
 1 .srdata Write 0 0 0 0 0 0

.. ETC ..
 753 DSP109 Write 1 0 0 1 0 0
 943 BASP025_D_May Read 0 0 0 0 0 0
 943 BASP025_D_May Write 0 0 0 0 0 0
 945 BASP025_E_May Read 0 0 0 0 0 0
 945 BASP025_E_May Write 0 0 0 0 0 0
 949 BASP025_H_May Read 0 0 0 0 0 0
 949 BASP025_H_May Write 0 0 0 0 0 0

.. ETC ..


Press the enter key to stop...

 


If I  showvv with the pattern I get the VV's I'm after:

DHDRH3PAP001 cli% showvv BASP025*
 -Rsvd(MB)-- -(MB)-
 Id Name Prov Type CopyOf BsId Rd -Detailed_State- Adm Snp Usr VSize
 943 BASP025_D_May snp vcopy DHDRHBASP025_D 387 RW normal -- -- -- 61440
 1065 BASP025_D_Thu snp vcopy DHDRHBASP025_D 387 RW normal -- -- -- 61440
 1045 BASP025_D_Wed snp vcopy DHDRHBASP025_D 387 RW normal -- -- -- 61440
 945 BASP025_E_May snp vcopy DHDRHBASP025_E 388 RW normal -- -- -- 10240
 1067 BASP025_E_Thu snp vcopy DHDRHBASP025_E 388 RW normal -- -- -- 10240
 1047 BASP025_E_Wed snp vcopy DHDRHBASP025_E 388 RW normal -- -- -- 10240
 1069 BASP025_G_Thu snp vcopy DHDRHBASP025_G 391 RW normal -- -- -- 2048
 1049 BASP025_G_Wed snp vcopy DHDRHBASP025_G 391 RW normal -- -- -- 2048
 949 BASP025_H_May snp vcopy DHDRHBASP025_H 390 RW normal -- -- -- 4096
 1071 BASP025_H_Thu snp vcopy DHDRHBASP025_H 390 RW normal -- -- -- 4096
 1051 BASP025_H_Wed snp vcopy DHDRHBASP025_H 390 RW normal -- -- -- 4096
 ----------------------------------------------------------------------------------------
 11 total 0 0 0 231424
 DHDRH3PAP001 cli%

 

 

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Using Glob patterns in CLI seems inconsistant across commands

>Am I doing something wrong?

 

Have you read the documentation?  statcmp is one of the few commands that use REs and not file matching patterns:

Patterns are specified as regular expressions.

 

So you need: statcmp -v -n BASP025.*