2 ################################################################################
4 # Copyright 2019 highstreet technologies GmbH and others
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # https://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 ################################################################################
19 # Script to demo interface tests
21 ################################################################################
22 # send SDN-R heartbeat
25 ################################################################################
26 # send pnf registration event
35 ################################################################################
37 ./sendFault.sh 1234 lossOfSignal CRITICAL
38 ./sendFault.sh FYNG TCA MAJOR
39 ./sendFault.sh R2D2 TCA MINOR
40 ./sendFault.sh 7DEV signalIsLost CRITICAL
41 ./sendFault.sh nSky LossOfSignalAlarm CRITICAL
42 ./sendFault.sh 1OSF HAAMRunningInLowerModulation MAJOR
43 ./sendFault.sh SDNR connectionLossNe MAJOR
45 ################################################################################
47 ./sendFault.sh 1234 lossOfSignal NORMAL
48 ./sendFault.sh FYNG TCA NORMAL
49 ./sendFault.sh R2D2 TCA NORMAL
50 ./sendFault.sh 7DEV signalIsLost NORMAL
51 ./sendFault.sh nSky LossOfSignalAlarm NORMAL
52 ./sendFault.sh 1OSF HAAMRunningInLowerModulation NORMAL
53 ./sendFault.sh SDNR connectionLossNe NORMAL
55 ################################################################################
56 # raise threshold crossed alerts
57 ./sendTca.sh 1234 TCA CONT
58 ./sendTca.sh FYNG TCA SET
59 ./sendTca.sh R2D2 TCA CONT
60 ./sendTca.sh 7DEV thresholdCrossed SET
61 ./sendTca.sh nSky RSLBelowThreshold CONT
62 ./sendTca.sh 1OSF TCA SET
64 ################################################################################
65 # clear threshold crossed alerts
66 ./sendTca.sh 1234 TCA CLEAR
67 ./sendTca.sh FYNG TCA CLEAR
68 ./sendTca.sh R2D2 TCA CLEAR
69 ./sendTca.sh 7DEV thresholdCrossed CLEAR
70 ./sendTca.sh nSky RSLBelowThreshold CLEAR
71 ./sendTca.sh 1OSF TCA CLEAR
73 ################################################################################
74 # send 15min performance measurement data