1 ## Local development shortcuts:
3 To start listening on port 10000 for test purposes:
9 Test the command above:
12 echo "Hello World" | nc localhost 10000
15 Trigger the pnf simulator locally:
18 ~/dev/git/integration/test/mocks/mass-pnf-sim/pnf-sim-lightweight$ curl -s -X POST -H "Content-Type: application/json" -H "X-ONAP-RequestID: 123" -H "X-InvocationID: 456" -d @config/config.json
19 http://localhost:5000/simulator/start
24 the default action is to send a VES Message every 15 minutes and the total duration of the VES FileReady Message sending is 1 day (these values can be changed in config/config.json)
26 Message from the stdout of nc:
30 Content-Type: application/json
32 X-InvocationID: 3a256e95-2594-4b11-b25c-68c4baeb5c20
35 Connection: Keep-Alive
36 User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_162)
37 Accept-Encoding: gzip,deflate
42 {"event":{"commonEventHeader":{"startEpochMicrosec":"1551865758690","sourceId":"val13","eventId":"registration_51865758",
43 "nfcNamingCode":"oam","internalHeaderFields":{},"priority":"Normal","version":"4.0.1","reportingEntityName":"NOK6061ZW3",
44 "sequence":"0","domain":"notification","lastEpochMicrosec":"1551865758690","eventName":"pnfRegistration_Nokia_5gDu",
45 "vesEventListenerVersion":"7.0.1","sourceName":"NOK6061ZW3","nfNamingCode":"gNB"},
46 "notificationFields":{"notificationFieldsVersion":"2.0","changeType":"FileReady","changeIdentifier":"PM_MEAS_FILES",
47 "arrayOfNamedHashMap":[{"name":"10MB.tar.gz","hashMap":{
48 "location":"ftpes://10.11.0.68/10MB.tar.gz","fileFormatType":"org.3GPP.32.435#measCollec",
49 "fileFormatVersion":"V10","compression":"gzip"}}]}}}