X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=solution%2Fdev%2Fclient-scripts-ves-v7%2F_example.sh;fp=solution%2Fdev%2Fclient-scripts-ves-v7%2F_example.sh;h=4a2747ba8fc2e6e17b77a5e42ae15fbbe0a65526;hb=86b92e82e31a1c948dbc7c78517978aaee31a0b8;hp=0000000000000000000000000000000000000000;hpb=aca16f72ab8e1dfa3ef53c213e453d654c15c0ad;p=oam.git diff --git a/solution/dev/client-scripts-ves-v7/_example.sh b/solution/dev/client-scripts-ves-v7/_example.sh new file mode 100755 index 0000000..4a2747b --- /dev/null +++ b/solution/dev/client-scripts-ves-v7/_example.sh @@ -0,0 +1,80 @@ +#!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +################################################################################ +# Script to demo interface tests + +################################################################################ +# send SDN-R heartbeat +./sendHeartbeat.sh + +################################################################################ +# send pnf registration event +./pnfRegister.sh 1234 +./pnfRegister.sh FYNG +./pnfRegister.sh R2D2 +./pnfRegister.sh 7DEV +./pnfRegister.sh nSky +./pnfRegister.sh 1OSF +./pnfRegister.sh SDNR + +################################################################################ +# raise fault +./sendFault.sh 1234 lossOfSignal CRITICAL +./sendFault.sh FYNG TCA MAJOR +./sendFault.sh R2D2 TCA MINOR +./sendFault.sh 7DEV signalIsLost CRITICAL +./sendFault.sh nSky LossOfSignalAlarm CRITICAL +./sendFault.sh 1OSF HAAMRunningInLowerModulation MAJOR +./sendFault.sh SDNR connectionLossNe MAJOR + +################################################################################ +# clear fault +./sendFault.sh 1234 lossOfSignal NORMAL +./sendFault.sh FYNG TCA NORMAL +./sendFault.sh R2D2 TCA NORMAL +./sendFault.sh 7DEV signalIsLost NORMAL +./sendFault.sh nSky LossOfSignalAlarm NORMAL +./sendFault.sh 1OSF HAAMRunningInLowerModulation NORMAL +./sendFault.sh SDNR connectionLossNe NORMAL + +################################################################################ +# raise threshold crossed alerts +./sendTca.sh 1234 TCA CONT +./sendTca.sh FYNG TCA SET +./sendTca.sh R2D2 TCA CONT +./sendTca.sh 7DEV thresholdCrossed SET +./sendTca.sh nSky RSLBelowThreshold CONT +./sendTca.sh 1OSF TCA SET + +################################################################################ +# clear threshold crossed alerts +./sendTca.sh 1234 TCA CLEAR +./sendTca.sh FYNG TCA CLEAR +./sendTca.sh R2D2 TCA CLEAR +./sendTca.sh 7DEV thresholdCrossed CLEAR +./sendTca.sh nSky RSLBelowThreshold CLEAR +./sendTca.sh 1OSF TCA CLEAR + +################################################################################ +# send 15min performance measurement data +./send15minPm.sh 1234 +./send15minPm.sh FYNG +./send15minPm.sh R2D2 +./send15minPm.sh 7DEV +./send15minPm.sh nSky +./send15minPm.sh 1OSF