question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ASA fails to disable paging

See original GitHub issue

get IOError: Search pattern never detected in send_command_expect:

#!/usr/bin/env python
from netmiko import ConnectHandler
from getpass import getpass

ip_addr = raw_input("Enter IP Address: ")

device = {
'device_type': 'cisco_asa',
'ip': ip_addr,
'username': 'admin', # replace with your username
'password': getpass()
'global_delay_factor': 2,
}

net_connect = ConnectHandler(**device)
print(net_connect.send_command_expect("show version"))

I ran find_prompt to find my prompt and then i figured out it was stuck at -------more-------- So when i set my terminal pager to 0 it started working.

Is there any other solution to this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amangoel6commented, Aug 9, 2017

Nope, It’s all fine now. Script is running just fine No errors and no issues. Really appreciate your help. I am new with Netmiko and Python so I am playing in my Lab with different scenarios. As of now it looks pretty good.

Once again, Really appreciate your work.

Regards, Aman Goyal.

On Wed, Aug 9, 2017 at 2:20 PM, Kirk Byers notifications@github.com wrote:

@amangoel6 https://github.com/amangoel6 So are you still having an issue then?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ktbyers/netmiko/issues/546#issuecomment-321339564, or mute the thread https://github.com/notifications/unsubscribe-auth/Ada3MW-_ZPokiA2egfAQvnZhe9yRKDDEks5sWfh9gaJpZM4OyWis .

0reactions
ktbyerscommented, Aug 9, 2017

@amangoel6 So are you still having an issue then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable paging on a Cisco ASA - Forum - Kiwi CatTools
Disable paging on a Cisco ASA. bkyle over 8 years ago. To disable paging, you can use Variations, and the following command: Terminal...
Read more >
Re: Disable Default WebVPN Page - Cisco Community
I am setting up a few different WebVPN profiles I am wondering if there is any way to disable the default page. I...
Read more >
Troubleshooting ASA Firewalls - Session Presentation
If Layer 2 resolution fails — no syslog. • show arp will not display an entry for the L3 next hop. • debug...
Read more >
Configuring ASA Basic Settings and Firewall Using CLI
Note: If you receive a prompt for Anonymous Error reporting, proceed by answering No. Review this output and pay attention to the VLAN...
Read more >
Cisco Adaptive Security Appliance (ASA) 9.12 on Firepower ...
To disable this feature and allow an unlimited number of consecutive failed local login attempts, use the no form of this command. aaa...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found