Skip to content

workloadManagement ​

Command: workloadManagement
Category: Performance Monitoring
Status: Production Ready

Description ​

Configure and view workload classes and mappings in the SAP HANA database. This command helps manage workload management configuration, including priority settings, active sessions, and available workload views.

Syntax ​

bash
hana-cli workloadManagement [schema] [group] [options]

Aliases ​

  • wlm
  • workloads
  • workloadClass
  • workloadmgmt

Command Diagram ​

Parameters ​

Positional Arguments ​

ParameterTypeDescription
schemastringSchema name (default: current schema)
groupstringWorkload group name pattern (default: *)

Options ​

OptionAliasTypeDefaultDescription
--group-gstring*Workload group name pattern
--workload-wstring-Workload class name
--schema-sstring**CURRENT_SCHEMA**Schema name
--priority-pstring-Workload priority filter
--activeOnly-abooleanfalseShow only workload groups with active sessions
--showViews--sv, --viewsbooleanfalseInclude available workload views and their columns
--limit-lnumber200Maximum number of results to display

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
--debug-dbooleanfalseDebug hana-cli itself by adding output of intermediate details

Examples ​

Show Available Workload Views ​

bash
hana-cli workloadManagement --showViews

Display all available workload management views and their column definitions.

View Workload Configuration ​

bash
hana-cli workloadManagement --schema MYSCHEMA --group DEFAULT

Display workload configuration for a specific schema and group.

Filter Active Workloads Only ​

bash
hana-cli workloadManagement --activeOnly --limit 100

Show only workload groups with active sessions, limited to 100 results.

View All Workload Classes ​

bash
hana-cli workloadManagement

Display all workload classes for the current schema with default settings.

See the Commands Reference for other commands in this category.

See Also ​