Skip to content

dx_get_users

Marcin Przepiorowski edited this page Oct 6, 2017 · 6 revisions

SYNOPSIS

dx_get_users    [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
                [ -format output_format ] 
                [ -save file_name] 
                [ -username <username> ] 
                [ -profile filename] 
                [ -export filename ] 
                [ -help|? ] 
                [ -debug ]

DESCRIPTION

Get users information from Delphix Engine.

ARGUMENTS

Delphix Engine selection - if not specified a default host(s) from dxtools.conf will be used.

  • -engine|d Specify Delphix Engine name from dxtools.conf file
  • -all Display databases on all Delphix appliance
  • -configfile file Location of the configuration file. A config file search order is as follow:
  • configfile parameter
  • DXTOOLKIT_CONF variable
  • dxtools.conf from dxtoolkit location

Options

  • **-format csv|json ** Define output format - csv or json Pretty print if not specified
  • -save file_name Save data into file instead of screen
  • -username username Specify a username to display user profile for
  • -export filename Export users into file compatible with dx_ctl_users script
  • -profile filename Export users profile into file compatible with dx_ctl_users script. If filename is not specified profile will be displayed on the screen

OPTIONS

  • -help
    Print this screen
  • -debug Turn on debugging
  • -nohead Turn off csv and pretty print headers

EXAMPLES

Display all users

dx_get_users -d Landshark5

Username             First Name           Last Name            Email                          work phone   home phone   mobile phone Authtype principal                      password admin_pr js_user
-------------------- -------------------- -------------------- ------------------------------ ------------ ------------ ------------ -------- ------------------------------ -------- -------- --------
sysadmin                                                       test@delphix.com                                                      NATIVE                                  password N        N
delphix_admin                                                  test@delphix.com                                                      NATIVE                                  password Y        N
dev_admin            Dev                  Eloper               dev_admin@delphix.com                       555-555-1212              NATIVE                                  password N        N
qa_admin             QA                   Dude                 qa_admin@delphix.com                        555-555-1212              NATIVE                                  password N        N
dev                  Dev                  Eloper               dev@delphix.com                             555-555-1212              NATIVE                                  password N        Y
qa                   QA                   Dude                 qa@delphix.com                              555-555-1212              NATIVE                                  password N        Y

Export all users into files which can be used by dx_ctl_users

dx_get_users -d SourceEngine -export /tmp/source/users.csv -profile /tmp/source/profile.csv

Delphix

Clone this wiki locally