Hi Javier,
Good news!
So the general process of environment discovery follows this sequence of events:
- Get the $SYBASE environment variable by looking for the environment variable in the user’s list of environment variables (the user as specified in the OS Username of the Add Environment dialogue).
- Get the path to the isql binary looking under $SYBASE
- List the running instances using ps (see get_ase_instances.sh in the toolkit directory for details).
- For each instance:
- Get the list of ports by running isql and querying the syslisteners table (see get_ase_instance_ports.sh for details).
- Connect via JDBC using the port retrieved from syslisteners and the host/IP entered in the environment definition screen. After successfully connecting, retrieve @@servername. Use the first port that works where @@servername is the same as the value from ps.
- Discover the list of user databases for each instance by querying sysdatabases (excluding the system databases 'master', 'model', 'sybsystemdb', ‘sybsystemprocs' and ‘tempdb').
So if the database user that was specified in the "Add Environment" dialogue box does not have permission to query "syslisteners" or "sysdatabases" for a given ASE instance, that database will not be added to the environment.
I can't tell from the screen shot but if you are on the "Environments" screen in the top right corner, there is a circular databases icon. If you click on it, does it show any ASE instances discovered but maybe it isn't listing the user databases?
You can try running these two scripts manually (the scripts will appear to hang at which point you will need to enter the database user's :
$ cd /the_delphix_toolkit_directory/
$ find . -name get_ase_instances.sh
$ sh ./get_ase_instances.sh
<ASE password>
/export/home/sybase/toolkit/Delphix_COMMON_564d3b4d_136a_7af6_cc70_c377235272ed_sybase_host/scripts/bin/dlpx_pfexec: sudo: not found
SRC_157_4K, sybase
$ sh ./get_ase_instance_ports.sh SRC_157_4K sa $SYBASE/$SYBASE_OCS/bin/isql $SYBASE
<ASE password>
Password: nstacksolase2.dcenter.delphix.com 5000
Thanks,
Neal