It's close to working as written. I read back through the whole conversation to get clues, here's where I'm hung up:
WriteError:
Line |
68 | $alarmLength = 80
| ~~~~~~~~~~~~~~~~~
| Cannot overwrite variable alarmLength because it is read-only or constant.
I get that error, not sure what to do about it.
But the main issue is one that SteJeh references in his post, "- the copied alarms in root will be named in "alarm name (moved to dc1, dc2, dc3, dc4, dc5 ... )"; how to change your great script to rename the original name one time?"
So I'll run the script to move the alarm Test1 from DC1 to DC2, and the alarm will stay in DC1 but the name will be changed to "Test1 (moved to DC2). They said they fixed it by deleting the alarm from the target DC (if I'm reading it correctly), but it doesn't even exist in the target DC so I'm not sure where to go from here.
Thanks in advance!