This article describes a workaround and a permanent fix for users who encounter an error while scheduling and performing License Polling jobs.
When trying to 'Schedule Poll' under Administration > License Management > Notification Settings, the user gets the following error:
License Polling update failed
This issue is fixed in Security Director 24.1R4 Hotpatch-V1 and in 24.1R5
Workaround:
To schedule the license polling job as a workaround, we will use a REST API call and verify it via the Junos Space GUI:
Open Google Chrome and enable Developer Tools (F12). In the toolbar, select the Network tab.
From the Junos Space GUI, schedule the license polling by selecting the "Schedule Poll" and selecting the desired date and start time, then submit the request.
In the Developer Tools window, observe the request/response error. Click on it to view the payload.
Construct a curl command using the captured payload. Example:
curl
curl -k -u <User>:<Password> \--location --request PUT 'https://<vip-jsd>/api/juniper/sd/license-management/schedule' \--header 'Accept: application/json' \--header 'Access-Control-Request-Headers: manageLicenseManagement' \--header 'Content-Type: application/json' \--data '{ "LicenseScheduleTO": { "recurrence": true, "scheduleUnit": "Weekly", "selectDay": "WED", "startTime": "xxxxxxxxxxxxxxx" }}'
curl -k -u <User>:<Password> \
--location --request PUT 'https://<vip-jsd>/api/juniper/sd/license-management/schedule' \
--header 'Accept: application/json' \
--header 'Access-Control-Request-Headers: manageLicenseManagement' \
--header 'Content-Type: application/json' \
--data '{
"LicenseScheduleTO": {
"recurrence": true,
"scheduleUnit": "Weekly",
"selectDay": "WED",
"startTime": "xxxxxxxxxxxxxxx"
}
}'
NOTE: Replace xxxxxxxxxxxxxxx with the appropriate timestamp which you get in step 3 and <User>:<Password> with valid credentials.