Skip to content

alerts ​

Command: alerts
Category: Performance Monitoring
Status: Production Ready

Description ​

List and manage database alerts from the SAP HANA system. This command monitors active alerts, their severity levels, and provides capabilities to acknowledge or delete alerts by their ID.

Syntax ​

bash
hana-cli alerts [options]

Aliases ​

  • a
  • alert

Command Diagram ​

Parameters ​

Options ​

OptionAliasTypeDefaultDescription
--limit-lnumber100Maximum number of alerts to display
--severity-sstringallAlert severity level. Choices: all, CRITICAL, WARNING, INFO
--acknowledge--ackstring-Acknowledge alert by ID
--delete--delstring-Delete alert by ID

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 ​

Filter Critical Alerts ​

bash
hana-cli alerts --severity CRITICAL

List only critical alerts from the system.

List All Alerts with Custom Limit ​

bash
hana-cli alerts --severity all --limit 50

Display up to 50 alerts of all severity levels.

Acknowledge an Alert ​

bash
hana-cli alerts --acknowledge 12345

Acknowledge a specific alert by its ID.

Delete an Alert ​

bash
hana-cli alerts --delete 12345

Delete a specific alert by its ID.

See the Commands Reference for other commands in this category.

See Also ​