79602314

Date: 2025-05-01 18:04:55
Score: 0.5
Natty:
Report link

It would be very helpful if you shared what type of script you are writing. As pointed out by nico_cisco, the | filters take regex arguments. To prevent buffering the enable command 'terminal length 0' will stop line breaks. Setting the terminal length to 10 doesn't stop the command from running but causes the output to pause. If this is just an SSH session via putty, that's not going to help. If this is something like a python/netmiko script, you can set the expected string to '--More--' and then send ^ to break the command.

The IOS platform you are running also matters. ASA's don't have | section. NXOS requires quotes around a regex with a space in it. NXOS also has '| head lines X' that cuts off after X lines but other platforms do not. Your platform on Cisco makes a huge difference on what your options are from CLI.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Out_Of_Names