Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug not available to xmlapi client #509

Open
kirillmuravyev opened this issue May 17, 2023 · 1 comment
Open

debug not available to xmlapi client #509

kirillmuravyev opened this issue May 17, 2023 · 1 comment
Labels

Comments

@kirillmuravyev
Copy link

kirillmuravyev commented May 17, 2023

Describe the bug

I am doing a simple operational state command query from the documentation:

from panos import firewall

fw = firewall.Firewall('', '', '')
response = fw.op('debug log-receiver statistics')

Expected behavior

Should receive the result of the command

Current behavior

Traceback (most recent call last):
  File "C:\Users\muravkir\Git projects\PANPython\venv\lib\site-packages\panos\base.py", line 3878, in method
    super_method(self, *args, **kwargs)
  File "C:\Users\muravkir\Git projects\PANPython\venv\lib\site-packages\pan\xapi.py", line 951, in op
    self.__type_op(cmd, vsys, extra_qs)
  File "C:\Users\muravkir\Git projects\PANPython\venv\lib\site-packages\pan\xapi.py", line 974, in __type_op
    raise PanXapiError(self.status_detail)
pan.xapi.PanXapiError:  debug not available to xmlapi client

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\muravkir\Git projects\PANPython\operational_commands.py", line 4, in <module>
    response = fw.op('debug log-receiver statistics', xml=False)
  File "C:\Users\muravkir\Git projects\PANPython\venv\lib\site-packages\panos\firewall.py", line 242, in op
    return super(Firewall, self).op(
  File "C:\Users\muravkir\Git projects\PANPython\venv\lib\site-packages\panos\base.py", line 4047, in op
    element = self.xapi.op(cmd, vsys, False, extra_qs, retry_on_peer=retry_on_peer)
  File "C:\Users\muravkir\Git projects\PANPython\venv\lib\site-packages\panos\base.py", line 3899, in method
    raise the_exception

Possible solution

Steps to reproduce

  1. firewall 9 or 10 version
  2. perform "debug log-receiver statistics" op command from script

Screenshots

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
  • Operating System and version (desktop or mobile):
  • Link to your project:
@welcome-to-palo-alto-networks

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant