Cannot determine port due to unknown HANA version

Well - finally I have got gathered OS admin and SAP admin at the same time and we have garnered information that should be sufficient for solving the problem.
The database is v2 and is a multitenant DB, where the script assuming that the port from the version can not be used as such.
The question is - if there are fields to be filled manually, such as IP, hostname, agent/instance, usr/pwd/userstorekey - for multitenant DB with separate ports for each tenant, - where could be filled instance number and port to connect to the DB?