The target server is a network firewall from Aruba - similar to a Cisco IOS 
cli. I am trying to figure out what shell it presents to the ssh session.

I am hoping once I have this information i can match the settings in the 
{pty . . .} object as part of the *conn.shell()* or *conn.exec()* cal

On Friday, October 10, 2014 3:39:12 PM UTC-7, Jeremy wrote:
>
> You may have to specify your shell on your embedded device.  What device 
> and shell are you using?
>
> On Fri, Oct 10, 2014 at 3:29 PM, cesdaile <[email protected] <javascript:>
> > wrote:
>
>> Yep on the current version of ssh2 - just installed this week.
>>
>> Ok - I think I am closer to figuring this out now with your help.
>>
>> The code on your gist works just as expected on a regular centos host but 
>> when I try it against my target server the *exec* option does trigger. 
>> The difference I suspect is that my target server is an embedded device and 
>> maybe it has some funky terminal settings I am not accounting for.
>>
>> The ssh login presents a banner and prompt as follows:
>>
>> Last login: Fri Oct 10 12:19:01 2014 from 10.240.106.106
>>
>>
>>
>> (console) #
>>
>> I seem to only have success when using *shell* and performing a 
>> *stream.write* with \n to execute the desired commands.
>>
>> On Friday, October 10, 2014 5:04:04 AM UTC-7, mscdex wrote:
>>>
>>> On Friday, October 10, 2014 1:46:41 AM UTC-4, cesdaile wrote:
>>>>
>>>> What I meant by 'choking' is that I am seeing a premature close on the 
>>>> stream when the output exceeds approx. 400 lines. Smaller output sizes 
>>>> seem 
>>>> to complete reliably and I can parse the entire command output without any 
>>>> troubles.
>>>>
>>>
>>> I haven't experienced that at all. Are you using the latest version of 
>>> ssh2?
>>>
>>> Also, I don't think you need to use `shell()` for your purposes. I think 
>>> `exec()` should work fine, you just have to prefix your actual command with 
>>> "no paging;" (assuming that is a valid remote command) since it seems like 
>>> that's what you're currently trying to do. Your script should be something 
>>> as simple as this (substituting the 'cat /var/log/messages' with your `cmd` 
>>> variable): https://gist.github.com/anonymous/1a786c62927c632a23ed
>>>
>>  -- 
>> Job board: http://jobs.nodejs.org/
>> New group rules: 
>> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
>> Old group rules: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/nodejs/ad22bb9e-804c-4aab-8b06-6bc81989a682%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/nodejs/ad22bb9e-804c-4aab-8b06-6bc81989a682%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/18b5fff4-0c88-4b69-b260-0d546067515a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to