From 3139b1cbbe058566fd766893dc9776186937416d Mon Sep 17 00:00:00 2001 From: kasemir Date: Thu, 18 Sep 2025 10:26:13 -0400 Subject: [PATCH] Alarm: Cmd line tool to 'talk' for testing kafka and annunciations ... or to send an annunciation like "I'm about to restart the alarm server" to operators --- app/alarm/examples/talk.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 app/alarm/examples/talk.sh diff --git a/app/alarm/examples/talk.sh b/app/alarm/examples/talk.sh new file mode 100755 index 0000000000..0709046773 --- /dev/null +++ b/app/alarm/examples/talk.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Send talk message + +if [ $# -ne 2 ] +then + echo "Usage: talk.sh Accelerator Message" + exit 1 +fi + +topic="$1" +text="$2" + +kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --property 'parse.key=true' --property key.separator=" : " --topic ${topic}Talk <