Skip to content

Truncated output for netmiko #3606

Closed
Closed
@Gopiprashanthraju

Description

@Gopiprashanthraju
from netmiko import ConnectHandler
from getpass import getpass

cisco1 = { 
    "device_type": "auto_detect",
    "host": "ip",
    "username": "pyclass",
    "password": getpass(),
}

# Show command that we execute.
command = "Show config effective-running"
net_connect = ConnectHandler(**cisco1)
net_connet.send_command_timing(comman+"\n",last-read=1,expect_string=">") # as I have tested for palo alto 
# Automatically cleans-up the output so that only the show output is returned
print()
print(output)
print()

Show config effective-running I have executing this command on my production firewall manually and I got 84k lines as output and when I tried using netmiko Its just fetching 100-200 lines of it, I tried debugging through multiple ways some of the ways are
increasing delay_fator,read_timeout, sleep between commands
netmiko.send_command_timing
netmiko.send_commad
netmiko.send_command_expect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions