ls

List subregions or region entries in the current path or in the specified path. If no option is specified, then it lists all region names except those that are hidden.

gfsh:/>ls -a 

Subregions:
   Customers
   Orders
   Products
   __command

gfsh:/>ls -r

/Customers
/Orders
/Products
/Products/Electronics
/Products/Households
/__command

gfsh:/>cd  Customers

gfsh:/Customers>ls -c

--------------------------------------
MemberId = pc62(22690)<v2>:22525/57114
MemberName = server2
Host = pc62.gemstone.com
Pid = 22690

   BindAddress = 
   HostnameForClients = 
   LoadPollInterval = 5000
   MaxConnections = 800
   MaxThreads = 0
   MaximumMessageCount = 230000
   MaximumTimeBetweenPings = 60000
   MessageTimeToLive = 180
   NotifyBySubscription = true
   Port = 50502
   ServerGroups = 
   SocketBufferSize = 32768

--------------------------------------

--------------------------------------
MemberId = pc62(22612)<v1>:53921/57322
MemberName = server1
Host = pc62.gemstone.com
Pid = 22612

   BindAddress = 
   HostnameForClients = 
   LoadPollInterval = 5000
   MaxConnections = 800
   MaxThreads = 0
   MaximumMessageCount = 230000
   MaximumTimeBetweenPings = 60000
   MessageTimeToLive = 180
   NotifyBySubscription = true
   Port = 50501
   ServerGroups = 
   SocketBufferSize = 32768

--------------------------------------

elapsed (msec): 5

gfsh:/Customers>ls -m 

Row  DataPolicy  Host  IsPR   IsPeerClient  MemberId                     MemberName  Pid    RegionPath  RegionSize  Scope
---  ----------  ----  ----   ------------  --------                     ----------  ---    ----------  ----------  -----
1    REPLICATE   pc62  false  false         pc62(22612)<v1>:53921/57322  server1     22612  /Customers  5           DISTRIBUTED_ACK
2    REPLICATE   pc62  false  false         pc62(22690)<v2>:22525/57114  server2     22690  /Customers  5           DISTRIBUTED_ACK
elapsed (msec): 5

gfsh:/Customers>ls -k

Row  Value
---  -----
1    "CUST13541"
2    "CUST34571"
3    "CUST10401"
4    "CUST17891"
5    "CUST96874"

 Fetch size: 5
   Returned: 5/5
      Class: java.lang.String
elapsed (msec): 1

gfsh:/Customers>ls -s

Row  Key         | Address  Name        Id
---  ---         | -------  ----        --
1    "CUST96874" | Karpen   Michael S   CUST96874
2    "CUST17891" | Delhi    V Ahmad     CUST17891
3    "CUST13541" | Oviedo   Fernando A  CUST13541
4    "CUST10401" | Pune     Vishal R    CUST10401
5    "CUST34571" | Tokyo    Yuki T      CUST34571

 Fetch size: 5
   Returned: 5/5
  Key Class: java.lang.String
Value Class: data.Customer
elapsed (msec): 2

gfsh:/Customers>ls -p /Orders

Row  Id  CustProdId        | Id  Time                          Quantity  CustomerId  ProductId  Discount
---  --  ----------        | --  ----                          --------  ----------  ---------  --------
1    6   CUST96874_HSHD102 | 6   Sun Jan 24 21:22:03 IST 2010  53        CUST96874   HSHD102    5.0
2    1   CUST96874_HSHD101 | 1   Fri Apr 10 00:00:00 IST 2009  10        CUST96874   HSHD101    0.5
3    2   CUST13541_HSHD101 | 2   Sun Jun 12 23:22:03 IST 2011  9         CUST13541   HSHD102    0.2
4    9   CUST10401_ELEX302 | 9   Fri Sep 04 10:22:03 IST 2009  7         CUST10401   ELEX302    0.1
5    4   CUST13541_HSHD201 | 4   Wed Jul 06 15:22:03 IST 2011  5         CUST13541   HSHD201    0.4
6    12  CUST34571_ELEX304 | 12  Thu Jan 13 21:22:03 IST 2011  53        CUST34571   ELEX304    5.0

 Fetch size: 6
   Returned: 6/6
  Key Class: data.OrderKey
Value Class: data.Order
Partitioned region local dataset retrieval. The actual size maybe larger.
elapsed (msec): 6

Details on available options:

-a

List all regions.

-c

List cache server information.

-e

List local entries up to the fetch size.

-k

List server keys up to the fetch size.

-m

List region info of all peer members.

-r

Recursively list all sub-region paths.

-s

List server entries up to the fetch size. For a Partitioned Region, then it displays the entries in only the connected server's local data set

-p

List the local data set of the Partitioned Region. If it's not a Partitioned Region, this option is same as -s