Describe the usage of this docker-compose
[oam.git] / code / client-scripts-ves-v7 / _example.sh
1 #!/bin/bash
2 ################################################################################
3 #
4 # Copyright 2019 highstreet technologies GmbH and others
5 #
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
9 #
10 #     https://www.apache.org/licenses/LICENSE-2.0
11 #
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.
17
18 ################################################################################
19 # Script to demo interface tests
20
21 ################################################################################
22 # send SDN-R heartbeat
23 ./sendHeartbeat.sh
24
25 ################################################################################
26 # send pnf registration event
27 ./pnfRegister.sh 1234
28 ./pnfRegister.sh FYNG
29 ./pnfRegister.sh R2D2
30 ./pnfRegister.sh 7DEV
31 ./pnfRegister.sh nSky
32 ./pnfRegister.sh 1OSF
33 ./pnfRegister.sh SDNR
34
35 ################################################################################
36 # raise fault
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
44
45 ################################################################################
46 # raise stndDefined NotifyNewAlarm
47 ./sendStndDefinedNotifyNewAlarm.sh 1234 lossOfSignal CRITICAL
48 ./sendStndDefinedNotifyNewAlarm.sh FYNG TCA MAJOR
49 ./sendStndDefinedNotifyNewAlarm.sh R2D2 TCA MINOR
50 ./sendStndDefinedNotifyNewAlarm.sh 7DEV signalIsLost CRITICAL
51 ./sendStndDefinedNotifyNewAlarm.sh nSky LossOfSignalAlarm CRITICAL
52 ./sendStndDefinedNotifyNewAlarm.sh 1OSF HAAMRunningInLowerModulation MAJOR
53 ./sendStndDefinedNotifyNewAlarm.sh SDNR connectionLossNe MAJOR
54
55 ################################################################################
56 # clear fault
57 ./sendFault.sh 1234 lossOfSignal NORMAL
58 ./sendFault.sh FYNG TCA NORMAL
59 ./sendFault.sh R2D2 TCA NORMAL
60 ./sendFault.sh 7DEV signalIsLost NORMAL
61 ./sendFault.sh nSky LossOfSignalAlarm NORMAL
62 ./sendFault.sh 1OSF HAAMRunningInLowerModulation NORMAL
63 ./sendFault.sh SDNR connectionLossNe NORMAL
64
65 ################################################################################
66 # raise threshold crossed alerts
67 ./sendTca.sh 1234 TCA CONT
68 ./sendTca.sh FYNG TCA SET
69 ./sendTca.sh R2D2 TCA CONT
70 ./sendTca.sh 7DEV thresholdCrossed SET
71 ./sendTca.sh nSky RSLBelowThreshold CONT
72 ./sendTca.sh 1OSF TCA SET
73
74 ################################################################################
75 # clear threshold crossed alerts
76 ./sendTca.sh 1234 TCA CLEAR
77 ./sendTca.sh FYNG TCA CLEAR
78 ./sendTca.sh R2D2 TCA CLEAR
79 ./sendTca.sh 7DEV thresholdCrossed CLEAR
80 ./sendTca.sh nSky RSLBelowThreshold CLEAR
81 ./sendTca.sh 1OSF TCA CLEAR
82
83 ################################################################################
84 # send 15min performance measurement data
85 ./send15minPm.sh 1234
86 ./send15minPm.sh FYNG
87 ./send15minPm.sh R2D2
88 ./send15minPm.sh 7DEV
89 ./send15minPm.sh nSky
90 ./send15minPm.sh 1OSF