- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-19-2022 02:34 AM
Hi,
I run Netmiko for bulk packet captures in AWS. It works well but there is never output when using the Palo Alto device type. Output for Cisco works well. An example would be:
from netmiko import ConnectHandler
print("Connecting to Palo Alto to show clock")
virtual_palo = {
'device_type': 'paloalto_panos',
'host': '192.168.1.100',
'username': 'automationadmin',
'password': 'ciscothenpalo123',
}
net_connect = ConnectHandler(**virtual_palo)
output = net_connect.send_command('show clock')
print(output)
print("Connecting to Cisco Switch to show clock")
cisco_switch = {
'device_type': 'cisco_ios',
'host': '192.168.1.101',
'username': 'automationadmin',
'password': 'ciscothenpalo123',
}
net_connect = ConnectHandler(**cisco_switch)
output = net_connect.send_command('show clock')
print(output)
This is just an example by the way, I don't run the scripts to show the clock, nor are those my credentials etc :-).
The output would be:
python3 test_script.py
Connecting to Palo Alto to show clock
Connecting to Cisco Switch to show clock
10:18:46.830 BST Tue Jul 19 2022
You see the issue.
By the way this is my Netmiko version:
pip show netmiko
Name: netmiko
Version: 4.1.1
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
Home-page: https://github.com/ktbyers/netmiko
Author: Kirk Byers
Author-email: ktbyers@twb-tech.com
License: MIT
Location: /usr/local/lib/python3.9/site-packages
Requires: ntc-templates, paramiko, pyserial, pyyaml, scp, setuptools, tenacity, textfsm
Required-by:
PAN-OS:
vm-license: VM-100
vm-cap-tier: 6.5 GB
vm-cpu-count: 2
vm-memory: 7857036
vm-mode: Amazon AWS
cloud-mode: cloud
sw-version: 10.1.5-h1
Any help would be great thanks.
09-26-2022 06:16 AM
Looks like this is being progressed under https://github.com/ktbyers/netmiko/issues/2864
09-26-2022 06:16 AM
Looks like this is being progressed under https://github.com/ktbyers/netmiko/issues/2864
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!