X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=code%2Fclient-scripts-ves-v7%2FsendStndDefinedNotifyAlarm.sh;h=a1a0fbb814eb371703e86612150e19387fb4e31b;hb=98b34d11c85627b74ecc2d38a32b36ea380879cb;hp=647f35e1bbe520bc93096f53518f11bb21d8dfe6;hpb=20f0c4e5301753c54745e80286ea5f823dfd2413;p=oam.git diff --git a/code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh b/code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh index 647f35e..a1a0fbb 100755 --- a/code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh +++ b/code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh @@ -55,6 +55,7 @@ declare -A mapping=( echo "################################################################################"; echo "# send NotifyNewAlarm or NotifyClearedAlarm"; echo; +echo " alarmEventType: $raised" for key in "${!mapping[@]}" do #label=${${"$spaces$i"}:(-14)}; @@ -74,5 +75,3 @@ template="./json/templates/$domain-r16-notify-${raised,,}-alarm.json" sed -e "$sequence" $template > $body; curl -i -k -u $basicAuthVes -X POST -d @${body} --header "Content-Type: application/json" $urlVes - -#curl -i -k -u "sample1:sample1" -X POST -d @./json/examples/NSKY-lossOfSignal-CRITICAL-stndDefined.json --header "Content-Type: application/json" https://localhost:8443/eventListener/v7 \ No newline at end of file