Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • name – database name;
  • user – user name or login for database connection;
  • credtype – Credential database type. It can be mssql, oracle, service or unknown. By default, it is unknown. This is optional parameter;
  • file – path to credential file. If this parameter not specified, then default file location will be from «db_connection.ini» primary section. This is optional parameter;
  • section – server custom settings section, by default primary. This is optional parameter.

Examples: Image Removed


Code Block
cmdmgr.exe credentials --type=aes --action=delete --name=DB --user=root


Image Added
Figure 18. Delete example 1.

Code Block

...

cmdmgr.exe credentials --type=aes --action=delete --name=DB --user=root -–credtype=Oracle


Image Added
Figure 19. Delete example 2.


Code Block

...

cmdmgr.exe credentials --type=aes --action=delete --name=DB --user=root -–credtype=Oracle -–file=../cfg/test



Image Added
Figure 20. Delete example 3.

Code Block

...

cmdmgr.exe credentials --type=aes --action=delete --name=DB --user=root -–credtype=Oracle -–section=secondary


Image Added
Figure 21. Delete example 4.

4. action=edit

This is action, which allows editing existing credential password in specified file, or file from section. Here is command syntax with this action:

Code Block
cmdmgr.exe credentials --type=<eagle|aes> --action=edit --name=<DB_Name> --user=<UserName> --pass=<NewPassword> [--credtype=<oracle|mssql|service>] [--file=<path_to_file>|--section=<some_section>]


Parameter list:

  • name – database name;
  • user – user name or login for database connection;
  • pass – new user password. It will be encrypted using encryption type from parameter «type»;
  • credtype – Credential database type. It can be mssql, oracle, service or unknown. By default, it is unknown. This is optional parameter;
  • file – path to credential file. If this parameter not specified, then default file location will be from «db_connection.ini» primary section. This is optional parameter;
  • section – server custom settings section, by default primary. This is optional parameter.


Examples:

Code Block
cmdmgr.exe credentials --type=aes --action=edit --name=DB --user=root --pass=newroot

...


cmdmgr.exe credentials --type=aes --action=edit --name=DB --user=root --pass= newroot --credtype=Oracle

...


cmdmgr.exe credentials --type=aes --action=edit --name=DB --user=root --pass= newroot --credtype=Oracle --file=../cfg/test

...


cmdmgr.exe credentials --type=aes --action=edit --name=DB --user=root --pass= newroot --credtype=Oracle --section=secondary

5. action=convert

This is action, which allows converting credential files from eagle encoding to new format aes encoding. This means that credentials from eagle encoding will have 4th parameter (database type) set to unknown, because, old format does not support this parameter. Here is command syntax with this action:

Code Block
cmdmgr.exe credentials --type=eagle --action=convert --from=<path_to_eagle> --to=<path_to_aes>


Action has such parameters:

  • from – path to credential file in eagle format;
  • to – path with file name for converted file.


Example:


Code Block
cmdmgr.exe credentials --type=eagle --action=convert --from=../cfg/eagle_pass --to=../cfg/aes_pass


6. action=change_credtype

This is action, which allow to change credential database type in specified file, or file from section. Here is command syntax with this action:

Code Block
cmdmgr.exe credentials --type=aes --action=change_credtype --name=<database name> --user=<user name> --from=<oldType> --to=<newType>


Action has such parameters:

  • from – database type that currently credential has.
  • to – new database type.


Example: Image Removed

Code Block
cmdmgr.exe credentials --type=aes --action=change_credtype --name=DB --user=root --from=Oracle --to=MSSql


Image Added
Figure 27. Change credtype example.