listcontext

listcontext is the tool to list and search for contexts.

Parameters

-h,--helpPrints a help text
--environmentShow info about commandline environment
--nonlRemove all newlines (\n) from output
-s,--searchpattern <string>Search/List pattern, default “*
--csvCommand output as csv

Extra parameters when authentication is enabled

-A,--adminuser <adminuser>Master Admin user name
-P,--adminpass <string>Master Admin password

Return value

0 on success

>0 on failure

Mandatory parameters

{adminuser adminpass}

Command output

Standard output:

cid fid fname       enabled qmax qused name        lmappings
  .   . ...         ...     ...    ... ...         ...

csv output:

id,filestore_id,filestore_name,enabled,max_quota,used_quota,name,lmappings

Example

root@oxhe:/opt/open-xchange/sbin# ./listcontexts
cid fid fname       enabled qmax qused name        lmappings
  6   3 6_ctx_store true    1000     0 customerA   6,customerA,secondlogin