CLI Utils

changepwd

changepwd.exe changes a user password via command line. Only administrators can run this CLI util. While can be used to handle users from command line, has been specifically designed to be embedded into custom setup for software systems which make use of DMSContainer.

To do this, you need to run the changepwd.exe followed by 5 parameters, 4 mandatory and 1 optional.

Here is an example

changepwd.exe -username user_admin -password pwd1 -usertochange user_sender -newpassword pwd2 -endpoint https://localhost/authrpc

Detail of the parameters:

  • -username (required) UserName of the user with the admin role
  • -password (required) Password of the user with the admin role
  • -usertochange (required) UserName of the user whose status is to be changed
  • -newpassword (required) The new password we want to give to the user
  • -endpoint (optional) The url where the DMS server is located, if not set by default use https://localhost/authrpc

If one or more parameters are missing, an example of utility will be shown:

USAGE: changepwd.exe -username <username> -password <password> -usertochange <username to edit> -newpassword <newpassword> -endpoint <https://localhost/authrpc>

If the operation is successful the program ends with code 0 otherwise it exits with code 1 and shows the error, here is an example:

changeuserstatus

changeuserstatus.exe is used to enable or disable user via command line. Only administrators can run this CLI util. While can be used to handle users from command line, has been specifically designed to be embedded into custom setup for software systems which make use of DMSContainer.

To do this, you need to run the changeuserstatus.exe followed by 6 parameters, 5 mandatory and 1 optional.

Here’s an example:

changeuserstatus.exe -username user_admin -password pwd1 -usertochange user_sender -status enabled -endpoint https://localhost/authrpc

Detail of the parameters:

  • -username (required) UserName of the user with the admin role
  • -password (required) Password of the user with the admin role
  • -usertochange (required) UserName of the user whose status is to be changed
  • -status (required) The new status we want to give to the user, accepts only the value enabled or disabled
  • -endpoint (optional) The url where the DMS server is located, if not set by default use https://localhost/authrpc

If one or more parameters are missing, an example of utility will be shown:

USAGE: changeuserstatus.exe -username <username> -password <password> -usertochange <username to edit> -status <enable or disable> -endpoint <https://localhost/authrpc>

If the operation is successful the program ends with code 0 otherwise it exits with code 1 and shows the error, here is an example:

esproducer

esproducer.exe is a small utility which can help to understand and develop solution based on the eventstream module. It can produce messages and append them into a specified queue. The messages have a specified format with a single property named "value" containing what has been inserted using the command line.

esconsumer

esconsumer.exe is a small utility which can help to understand and develop solution based on the eventstream module. It can consume an arbitrary queue and show the messages dequeues directly on the console.