Netmiko output blank

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Netmiko output blank

L1 Bithead

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.

1 accepted solution

Accepted Solutions

L5 Sessionator

Looks like this is being progressed under https://github.com/ktbyers/netmiko/issues/2864

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂

View solution in original post

1 REPLY 1

L5 Sessionator

Looks like this is being progressed under https://github.com/ktbyers/netmiko/issues/2864

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
  • 1 accepted solution
  • 2524 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!