Skip to content

ports ​

Command: ports
Category: System Admin
Status: Production Ready

Description ​

Display port assignments for internal SAP HANA services. This command queries the M_SERVICES system view to show service names and their assigned PORT and SQL_PORT values, helping administrators identify service endpoints and troubleshoot connectivity issues.

Syntax ​

bash
hana-cli ports [options]

Command Diagram ​

Parameters ​

Connection Parameters ​

OptionAliasTypeDefaultDescription
--admin-abooleanfalseConnect via admin (default-env-admin.json)
--conn-string-Connection filename to override default-env.json

Troubleshooting ​

OptionAliasTypeDefaultDescription
--disableVerbose--quietbooleanfalseDisable verbose output - removes all extra output that is only helpful to human readable interface
--debug-dbooleanfalseDebug hana-cli itself by adding output of LOTS of intermediate details

Examples ​

View Port Assignments ​

bash
hana-cli ports

Display all SAP HANA service port assignments.

See the Commands Reference for other commands in this category.

See Also ​