1.10. existscontext

The existscontext tool allows to check whether a context exists. It uses either the id or the name of the context.

1.10.1. Parameters

-h,--helpPrints a help text
--environmentShow info about commandline environment
--nonlRemove all newlines (\n) from output
-c,--contextid <integer>The id of the context
-N,--contextname <string>Name of the context

1.10.2. Return value

0 on success

1 on failure

1.10.3. Mandatory parameters

{adminuser adminpass} and either contextid or contextname

1.10.4. Command output

On success:

context <contextid or contextname> exists

On failure:

context <contextid or contextname> does not exist>

1.10.5. Example

root@oxhe~# existscontext -c 123

user an_existing_username exists