When trying to run event_partition_utility.sh, it fails with an error complaining about line 263
search cancel

When trying to run event_partition_utility.sh, it fails with an error complaining about line 263

book

Article ID: 368729

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

The error that is seen on the screen is:

./event_partition_utility.sh: line 263: "###" + retention_days : syntax error: operand expected (error token is ""###" + retention_days ")

Environment

Upgrades to DX NetOps Performance Management 23.3.10

Cause

There is a defect in the event_partition_utility.sh script

Resolution

In the event_partition_utility.sh script, line 263 is currently:

data_days=$(( "$3" + retention_days ))

to get past this issue, we need to change it to:

data_days=$(( $3 + $retention_days ))

Effectively, remove the double quotes around $3 and add a $ to retention_days.

Additional Information

This problem is fixed in DX NetOps Performance Management 23.3.11 and above

Release Notes - Fixed Issues - 23.3.11 Fixes

Symptom: When running the event_partition_utility.sh script, a syntax error is encountered during the disk space check on each of the tables.
Resolution: With this fix, the script no longer encounters syntax errors during the disk space check on each of the tables
(23.3.11, DE603995, 35194011,35194011)