SetScript no longer processes alarm notification after upgrading to 24.x. when using tr
search cancel

SetScript no longer processes alarm notification after upgrading to 24.x. when using tr

book

Article ID: 418649

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

SetScript no longer processes alarm notification after upgrading to 24.x.   cygwin tr.exe no longer works in shell scripts

In 24.x and above the tr (aka tr.exe) command no longer works in Spectrum scripts.  tr can be used to convert lowercase letters to upper and vice versa.  If using tr in a script it fails.  Most likely this would be used in AlarmNotifier but could be used in any shell script.

Cause

tr.exe no longer works

Resolution

Find another command to replace tr functions.  For example. instead of using this:


SERVERNM=echo $SERVER | awk 'BEGIN {FS="."} {print $1}' | tr -s '[:lower:]'  '[:upper:]'

Use this:

SERVERNAME=$(echo "$SERVER" | awk '{print toupper($0)}')

Additional Information

Cygwin is tentatively scheduled to be updated in 2026.