Test scripts for interfacing with DCAE.
For ONAP Frankfurt the interface definition with DCAE is: CommonEventFormat_30.1_ONAP.json. The ONAP VES version are described in ONAP documentation.
For ONAP Frankfurt the interface definition with A&AI is: add link when known.
This git project must be cloned on a ubuntu machine in order to execute the bash scripts. DCAE provide REST interfaces. In order to perform HTTP request cURL is used.
In case cURL needs to be please use the following command in a terminal.
sudo apt install curl
It is necessary to configure the DCAE servers for valid execution of the bash scripts. Please update the variables in config accordingly to the test environment.
urlVes=http://localhost:8443/eventListener/v7 basicAuthVes=ves:ves
Several tests scripts are available in the root of this project. The bash scripts will perform a cURL command to send a REST request to the A&AI or DCAE server.
This chapter describes the several test scripts its usage and functions.
This scripts calls all the other scripts in order to give valid examples and to expain by examples the usage ot the other scripts.
./_example.sh
Please see valid examples using the following command (or continue reading):
cat _example.sh
The script creates a PNF object in A&AI. The script requires one input parameter. This parameter defines the equipment type. Valid equipment types for 1806 and 1810 are [1234, FYNG, R2D2, 7DEV, nSky, 1OSF] according to document "295672 SDN-R System Requirements".
./pnfRegister.sh 7DEV
The script sends a "heartbeat" from SDN-R to DCAE VES-Collector.
The following example show the usage of this script:
./sendHeartbeat.sh
This script send a VES message of domain "fault" to DCAE. It requires three command line parameters:
equipmentType: Valid equipment types for 1806 and 1810 are [1234, FYNG, R2D2, 7DEV, nSky, 1OSF] according to document "295672 SDN-R System Requirements".
alarmType: or alarm name. Any string which references a supported alarm name of the equipment type.
severity: The severity of tha alarm as defined by VES schema.
The following example show the usage of this script. The alarm "lossOfSignal" for equipment type "nSky" with severity "CRITICAL" will be send.
./sendFault.sh nSky lossOfSignal CRITICAL
This script send a VES message of domain "thresholdCrossingAlert" to DCAE. It requires three command line parameters:
equipmentType: Valid equipment types for 1806 and 1810 are [1234, FYNG, R2D2, 7DEV, nSky, 1OSF] according to document "295672 SDN-R System Requirements".
alarmType: or alarm name. Any string which references a supported alarm name (TCA) of the equipment type.
alertAction: The action of TCA as defined by VES schema.
The following example show the usage of this script. The TCA with name "TCA" for equipment type "1234" with alarmAction "SET" will be send.
./sendTca.sh 1234 TCA SET
This script send a VES message of domain "measurementsForVfScaling" to DCAE. The script requires one input parameter. This parameter defines the equipment type. Valid equipment types for 1806 and 1810 are [1234, FYNG, R2D2, 7DEV, nSky, 1OSF] according to document "295672 SDN-R System Requirements".
./send15minPm.sh FYNG
This script send a VES message of domain "fault" AND "heartbeat" as event list to DCAE. It requires three command line parameters:
equipmentType: Valid equipment types for 1806 and 1810 are [1234, FYNG, R2D2, 7DEV, nSky, 1OSF] according to document "295672 SDN-R System Requirements".
alarmType: or alarm name. Any string which references a supported alarm name of the equipment type.
severity: The severity of tha alarm as defined by VES schema.
The following example show the usage of this script. The alarm "lossOfSignal" for equipment type "nSky" with severity "CRITICAL" will be send.
./sendEventList.sh 1234 lossOfSignal CRITICAL