Console hang with ~90% CPU on console process

I was in the process of batch-running some commands via the SSH console on one of our routers when it spat out the error “console buffer overflow” and disconnected. It’s running v5.14.

Since then, the console service has had CPU usage around 90%. The router is still passing traffic fine, and Winbox and WWW connections still work.

When I try to open a terminal or make an SSH connection both just hang. I’m not able to produce a supout.rif as that just hangs as well.

This router is in production so I would like to avoid a reboot. Is there any way to reset or restart the console service?

I have tried disabling the SSH service but this hasn’t helped.

Thanks in advance.

No, there is no way to restart the console service without rebooting. If you need to import a lot of commands in the future, put them in a file called something.rsc and then in the console run: import something.rsc

That’s helpful, thanks.

Is there a limit on doing this? We have some very large BGP filters (~5000 lines) which we can’t otherwise execute.

I’ve not heard any limit on the size of script files… only a limit on the amount you can paste into the terminal.