PaloAltoNetworks / pan-os-python

The PAN-OS SDK for Python is a package to help interact with Palo Alto Networks devices (including physical and virtualized Next-generation Firewalls and Panorama). The pan-os-python SDK is object oriented and mimics the traditional interaction with the device via the GUI or CLI/API.
https://pan-os-python.readthedocs.io
ISC License
340 stars 168 forks source link

Expose mem_used in show_system_resources #478

Open Yamakaky opened 1 year ago

Yamakaky commented 1 year ago

Is your feature request related to a problem?

In Firewall.show_system_resources, only the memory total and memory free metrics are exposed. In unix, total = free + used + buffers, so using memory_free for ram usage computation is inaccurate as it is likely to stay in the high 90s% since unix will use as much buffers as possible

Describe the solution you'd like

It would be nice to expose mem_used (and maybe also mem_buffer?) in this method.

Describe alternatives you've considered

Alternative is doing show system resources manually and parse the output, which is not ideal.

Additional context

welcome-to-palo-alto-networks[bot] commented 1 year ago

:tada: Thanks for opening your first issue here! Welcome to the community!