BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Push notification not triggered #87

Closed M0ulinamary closed 1 year ago

M0ulinamary commented 1 year ago

I have added the required parameters to initiate "NOTIFY" request to Controller from Agent.

Both Boot and Periodic events are properly triggered. I want to try with Push Notify event with Bulkdata parameters.

Added Parameters for "PUSH" event triggering from Agent: Device.BulkData.Profile.1.Alias "cpe-1" Device.BulkData.Profile.1.Enable "false" Device.BulkData.Profile.1.X_ARRIS-COM_Status "Disabled" Device.BulkData.Profile.1.Name "MOULINA" Device.BulkData.Profile.1.NumberOfRetainedFailedReports "0" Device.BulkData.Profile.1.Protocol "USPEventNotif" Device.BulkData.Profile.1.EncodingType "JSON" Device.BulkData.Profile.1.ReportingInterval "10" Device.BulkData.Profile.1.TimeReference "0001-01-01T00:00:00Z" Device.BulkData.Profile.1.ParameterNumberOfEntries "0" Device.BulkData.Profile.1.JSONEncoding.ReportFormat "NameValuePair" Device.BulkData.Profile.1.JSONEncoding.ReportTimestamp "Unix-Epoch" Device.BulkData.Profile.1.Parameter.Name "Enabled"

AM i missing something here ? Is so, please highlight what else needs to be configured to get the PUSH notification

holme-r commented 1 year ago

Device.BulkData.Enable=true and make sure you setup the parameters correctly because Device.BulkData.Profile.1.Parameter.Name "Enabled" is not correct at all.

M0ulinamary commented 1 year ago

I have tried to update the params like below. Still Push notification not getting triggered.

Device.BulkData.Enable "true"

Device.BulkData.Status "on"

Device.BulkData.MinReportingInterval "30"

Device.BulkData.MaxNumberOfProfiles "2"

Device.BulkData.EncodingTypes "JSON"

Device.BulkData.Profile.1.Alias "cpe-1"

Device.BulkData.Profile.1.Enable "true"

Device.BulkData.Profile.1.X_ARRIS-COM_Status "Disabled"

Device.BulkData.Profile.1.Name "MOULINA"

Device.BulkData.Profile.1.NumberOfRetainedFailedReports "0"

Device.BulkData.Profile.1.Protocol "USPEventNotif"

Device.BulkData.Profile.1.EncodingType "JSON"

Device.BulkData.Profile.1.ReportingInterval "10"

Device.BulkData.Profile.1.TimeReference "0001-01-01T00:00:00Z"

Device.BulkData.Profile.1.ParameterNumberOfEntries "0"

Device.BulkData.Profile.1.JSONEncoding.ReportFormat "NameValuePair"

Device.BulkData.Profile.1.JSONEncoding.ReportTimestamp "Unix-Epoch"

Device.BulkData.Profile.1.Parameter.Name "UpTime"

Device.BulkData.Profile.1.Parameter.Reference "Device.DeviceInfo.UpTime"

Device.BulkData.Profile.1.JSONEncoding.ReportFormat "JSON"

Device.BulkData.Profile.1.JSONEncoding.ReportTimestamp "0001-01-01T00:00:00Z"

Is there any issue with the above parameters ? If so kindly help to get a sample parameter set with values for sample testing ?

Do we need to add any other additional parameters to make it (push!) work ?

holme-r commented 1 year ago

In your last post, the parameters are commented out using the '#' character, so all of those parameters would be ignored. Try uncommenting them.

Also I think you intended to set... Device.BulkData.Profile.1.Parameter.1.Name "UpTime" Device.BulkData.Profile.1.Parameter.1.Reference "Device.DeviceInfo.UpTime"

holme-r commented 1 year ago

Closing as there has been no comments for a while. Please re-open if there are any further comments.