08-08-2024 09:29 AM
We use the Cisco ACI Application to bring data into our ServiceNow instance from Cisco ACI. We've had it running for several years. Recently we are seeing some errors in the Application Logs, and we appear to not be getting data coming into ServiceNow for leafs, spines and controllers.
The Cisco ACI Dashboard in the ServiceNow application shows 0 for those device types:
The errors we see multiple times in Diagnostics > Application Logs are:
Message | App Scope | Source Script |
Error while processing bundle | Cisco ACI Application | Business Rule: Process ACI Inventory Bundle |
Error while reading attachment. Exception:SyntaxError: Empty JSON string | Cisco ACI Application | Business Rule: Process ACI Inventory Bundle |
Does anyone know what might be causing those errors, and why we're not getting data coming through into ServiceNow for those 3 device types?
Thanks
Michael
10-28-2024 04:38 AM
Hello @michael-bourla
The errors you're encountering in the ServiceNow application logs suggest that there is an issue with the data being received from Cisco ACI. Specifically, the error "SyntaxError: Empty JSON string" indicates that the JSON payload being processed is empty or malformed. This can cause the data import process to fail, resulting in the absence of data for leafs, spines, and controllers in your ServiceNow instance.
Here are some steps to troubleshoot and resolve the issue:
1. Verify Data Export from Cisco ACI:
Ensure that Cisco ACI is correctly exporting the data. Check the following:
2. Check Network Connectivity:
Ensure that there are no network connectivity issues between Cisco ACI and ServiceNow. Any disruptions in the network can cause data transfer failures.
3. Review ServiceNow Integration Configuration:
Check the configuration settings in the Cisco ACI application within ServiceNow:
4. Inspect the Application Logs:
Review the detailed logs in ServiceNow to get more context about the errors:
5. Test API Calls Manually:
Manually test the API calls from Cisco ACI to ServiceNow to ensure that the data is being fetched correctly:
6. Update or Reinstall the Cisco ACI Application:
If the issue persists, consider updating or reinstalling the Cisco ACI application in ServiceNow:
7. Contact Cisco and ServiceNow Support:
If you are unable to resolve the issue through the above steps, consider reaching out to Cisco and ServiceNow support for further assistance. Provide them with the detailed error logs and any other relevant information to help diagnose the problem.
Example of Manual API Call Testing:
Using curl to test the API call:
curl -k -u <username>:<password> https://<APIC-IP>/api/node/class/fabricNode.json
Using Postman to test the API call:
AshSe
Please rate this post if it was helpful; your feedback is appreciated!
10-30-2024 07:10 AM
Hi @AshSe ,
Many thanks for all that information - it is definitely going to be really helpful. No doubt there's been some sort of configuration change somewhere that's causing the problem, and just need to track it down. As you say, with help if needed from Cisco and/or ServiceNow.
Many thanks again!
11-03-2024 11:36 PM
Dear Michael, I am glad that I could help you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide