: PAN-OS OpenConfig File Upload
Focus
Focus

PAN-OS OpenConfig File Upload

Table of Contents

PAN-OS OpenConfig File Upload

Usage and behavior information for the OpenConfig 2.1.1 version of the plugin.
OpenConfig versions 2.1.1 and later The /pan/file-upload endpoint enables you to send PAN-OS debug logs to a specified URL.
With this PAN-OS non-Native data model, you can send debug logs from a PAN-OS appliance to send to a specified endpoint. The model supports several uploading various file types. The model can ensure that you collect all log data consistently without manual intervention, providing a reliable basis for troubleshooting and performance monitoring as well as consistency across your networking platforms.

Behavior

You can send the files available for download directly to an endpoint URL using the data-push parameter.

Usage

To download the files, the format generally follows: pan/file-upload/log[file=/path/to/file][data_push_url=url]. The GNMIC call below shows the path to download a report from a firewall and send the file to a specified endpoint.
gnmic -u * -p * -a firewall:9339 subscribe --mode once --encoding PROTO --path "pan/file-upload/log[file=/var/log/pan/reportd.log] [data_push_url=http://localhost:8080/upload]"
A successful call returns the following response that includes confirmation for the following specified final endpoint:
{ "source": "firewall:9339", "subscription-name": "default-1718712893", "timestamp": 1718712896000000000, "time": "2024-06-18T05:14:56-07:00", "updates": [ { "Path": "/pan/file-upload/log", "values": { "/pan/file-upload/log": { "message": "uploaded successfully to http://localhost:8080/upload", "status_code": 200 } } } ] }