Add to_directory method to relevant object classes
[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 pnf2
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 pnf2 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 # clear fault
47 ./sendFault.sh pnf2 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
54
55 ################################################################################
56 # raise stndDefined Alarm
57 ./sendStndDefinedNotifyAlarm.sh pnf2 lossOfSignal CRITICAL new
58 ./sendStndDefinedNotifyAlarm.sh FYNG TCA MAJOR new
59 ./sendStndDefinedNotifyAlarm.sh R2D2 TCA MINOR new
60 ./sendStndDefinedNotifyAlarm.sh 7DEV signalIsLost CRITICAL new
61 ./sendStndDefinedNotifyAlarm.sh nSky LossOfSignalAlarm CRITICAL new
62 ./sendStndDefinedNotifyAlarm.sh 1OSF HAAMRunningInLowerModulation MAJOR new
63 ./sendStndDefinedNotifyAlarm.sh SDNR connectionLossNe MAJOR new
64
65 ################################################################################
66 # clear stndDefined Alarm
67 ./sendStndDefinedNotifyAlarm.sh pnf2 lossOfSignal CRITICAL cleared
68 ./sendStndDefinedNotifyAlarm.sh FYNG TCA MAJOR cleared
69 ./sendStndDefinedNotifyAlarm.sh R2D2 TCA MINOR cleared
70 ./sendStndDefinedNotifyAlarm.sh 7DEV signalIsLost CRITICAL cleared
71 ./sendStndDefinedNotifyAlarm.sh nSky LossOfSignalAlarm CRITICAL neclearedw
72 ./sendStndDefinedNotifyAlarm.sh 1OSF HAAMRunningInLowerModulation MAJOR cleared
73 ./sendStndDefinedNotifyAlarm.sh SDNR connectionLossNe MAJOR cleared
74
75 ################################################################################
76 # raise threshold crossed alerts
77 ./sendTca.sh pnf2 TCA CONT
78 ./sendTca.sh FYNG TCA SET
79 ./sendTca.sh R2D2 TCA CONT
80 ./sendTca.sh 7DEV thresholdCrossed SET
81 ./sendTca.sh nSky RSLBelowThreshold CONT
82 ./sendTca.sh 1OSF TCA SET
83
84 ################################################################################
85 # clear threshold crossed alerts
86 ./sendTca.sh pnf2 TCA CLEAR
87 ./sendTca.sh FYNG TCA CLEAR
88 ./sendTca.sh R2D2 TCA CLEAR
89 ./sendTca.sh 7DEV thresholdCrossed CLEAR
90 ./sendTca.sh nSky RSLBelowThreshold CLEAR
91 ./sendTca.sh 1OSF TCA CLEAR
92
93 ################################################################################
94 # send 15min performance measurement data
95 ./send15minPm.sh pnf2
96 ./send15minPm.sh FYNG
97 ./send15minPm.sh R2D2
98 ./send15minPm.sh 7DEV
99 ./send15minPm.sh nSky
100 ./send15minPm.sh 1OSF
101
102 ################################################################################
103 # send o1-notify-pnf-registration
104 ./sendStndDefinedO1NotifyPnfRegistration.sh pnf2
105 ./sendStndDefinedO1NotifyPnfRegistration.sh FYNG
106 ./sendStndDefinedO1NotifyPnfRegistration.sh R2D2
107 ./sendStndDefinedO1NotifyPnfRegistration.sh 7DEV
108 ./sendStndDefinedO1NotifyPnfRegistration.sh nSky
109 ./sendStndDefinedO1NotifyPnfRegistration.sh 1OSF
110
111 ################################################################################
112 # send o1-notify-pnf-registration
113 ./sendStndDefinedNotifyFileReady.sh pnf2
114 ./sendStndDefinedNotifyFileReady.sh FYNG
115 ./sendStndDefinedNotifyFileReady.sh R2D2
116 ./sendStndDefinedNotifyFileReady.sh 7DEV
117 ./sendStndDefinedNotifyFileReady.sh nSky
118 ./sendStndDefinedNotifyFileReady.sh 1OSF