Execute leaves prompt in buffer - WeOnlyDo Discussion board

Execute leaves prompt in buffer (wodSSH / wodSSH.NET)

by Rodney Snell, Thursday, March 23, 2006, 18:23 (6618 days ago)

I have a firewall that I SSH into. I execute 'get config' and it will return it's configuration (ASCII) data. But it does it in chunks in a 'More' fashion so that you have to hit a space to get the next page of data.

This is fine and I have programmed it using Execute and a regex prompt. But when I look at the full buffer received, the More prompts (in this case '--- More ---' are present in the data with a number of backspace/space characters (eg. --- More --- 08 20 08 08 20 08 08...). When displayed (I'm using VBScript, wscript.echo) everything looks fine because of the trailing backspaces are actually executed and they write over '--- More ---'. But when I write to a file I get the '--- More ---' and all the backspace characters.

Do I have to remove this prompt after SSH.Execute myself or is there a mode that wodSSH will do this for me?

Re: Execute leaves prompt in buffer

by wodSupport, Thursday, March 23, 2006, 22:29 (6617 days ago) @ Rodney Snell

Rodney,

I don't think there's automated solution for that. You can try several things:

1. Does your firewall support 'term len 0' like on Cisco, so you can disable those ----More---- lines?
2. Try to set property Rows to 0
3. Try to set TerminalType to 'dumb' or 'tty'
3. Try to set StripANSI to True

if neither of that help, then you must manually code something to workaround it.

Hope I helped.
Kreso

Re: Execute leaves prompt in buffer

by Rodney Snell, Thursday, March 23, 2006, 23:58 (6617 days ago) @ wodSupport

Thanks for the suggestions. I did finally find a setting in the firewall to disable the More functionality. FYI, I have a Juniper Netscreen and the command is: 'set console page 0'
The other setting suggestions did not work.

Thanks again!