- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-03-2015 08:18 AM
Hello,
When I login to my PA device via ssh and run the command
show log config result equal succeeded
I get list of records.
I would like to get the exact same result but via Panorama XML API.
I tried:
https://panorama/api/?type=op&cmd=<show><log><config></config></log></show>&target=serialnumber&key=mykey
But I get:
<response status="error"> <msg> <line>invalid client cli</line> </msg> </response>
How can I use the XML API in Panorama to retrieve the logs from managed device?
07-11-2022 11:18 PM - edited 07-11-2022 11:33 PM
old but still relevant. Not all CLI commands translate directly to API call. If you use the REST API browser you can see there is a dedicated section for logs. https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-panorama-api/pan-os-xml-api-request-types/retri...
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!