Open gittyjr opened 9 months ago
@gittyjr What does the CLI of the panorama log collector look like?
What happens if you type show admins
at the CLI?
It is definitely possible/probably that the paloalto_panos device_type does not work with Panorama log-collector (since netmiko is expecting the behavior of the panos firewall).
@ktbyers ,
It looks very similar to management panoramas and firewalls. the show admins is not a valid command on a log collector but is on the firewall and the management / hybrid panorama.
If you need any other output from a log collector, please let me know. I have access to quite a few currently.
@ktbyers ,
I have the same requirement to collect basic information from Palo Alto Firewall and Panorama log-collector using Netmiko. The command I'm using is show system info
.
As mentioned above, the show admins
command is invalid on the Panorama log-collector. However, using paloalto_panos
does not allow bypassing this step, and resulting in the same error.
Is there a way to resolve this issue? Or are there any recommended alternatives for gathering this information?
Thank you!
@ktbyers I have run into this same issue, and I found a solution here (https://github.com/ktbyers/netmiko/issues/2934) I tested it locally and is working for firewall and log collectors. Since log collectors don't support show admins, switching to a different command (show system info) works for both types of devices. Here is the PR link: https://github.com/ktbyers/netmiko/pull/3535
Connecting to dedicated panorama log collector fails after the command "show admins" is attempted to be ran
Setup
Netmiko version
(Paste verbatim output from
pip freeze | grep netmiko
between quotes below)Netmiko device_type (if relevant to the issue)
(Paste
device_type
between quotes below)Steps to Reproduce the Issue
build a connection handler for a palo alto panorama log collector appliance ( I am using virtual appliances ) try to run any command (show clock for example)
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Relevant Python code
(Please try to essentialize your Python code to the minimum code needed to reproduce the issue) (Paste the code between the quotes below)
I am happy to test any suggestions. I've used terminal_server which has some interesting other quirks, but I would prefer to leverage the paloalto_panos handler. I have access to many different models of palo firewalls, as well as panorama management appliances as well as panorama dedicated log collectors.