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.