commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eherts <markehe...@gmail.com>
Subject Re: [Net] Disable echo when using TelnetClient
Date Wed, 29 Jun 2011 19:48:44 GMT
This question has been asked before, but never answered:
http://mail-archives.apache.org/mod_mbox/commons-user/200807.mbox/%3C487BD4F0.10604@visible-assets.com%3E

Regards,
Mark

On Wed, Jun 29, 2011 at 1:54 PM, Mark Eherts <markeherts@gmail.com> wrote:

> Adding the handler has no effect.
>
> How can I find out if the target doesn't support a no-echo policy? I'm
> using a NETGEAR PROSAFE FVS318G router...
>
> Regards,
> Mark
>
>
> On Tue, Jun 28, 2011 at 2:56 PM, sebb <sebbaz@gmail.com> wrote:
>
>> On 28 June 2011 13:32, Mark Eherts <markeherts@gmail.com> wrote:
>> > I've tried using such a handler, but to no avail!
>>
>> Do you mean that adding the handler has no effect?
>>
>> In which case, maybe the target host does not support no-echo, or does
>> not use the Telnet standard for doing so.
>>
>> Or does the handler cause an error?
>>
>>
>> > On Mon, Jun 27, 2011 at 5:49 PM, sebb <sebbaz@gmail.com> wrote:
>> >
>> >> On 27 June 2011 18:34, Mark Eherts <markeherts@gmail.com> wrote:
>> >> > Hello all,
>> >> >
>> >> > Using the reference link below, I've been trying to issue commands
to
>> my
>> >> > router via the TelnetClient class, but I've run into some trouble.
>> >> Namely,
>> >> > that whenever I issue a command, the response I read contains an echo
>> of
>> >> the
>> >> > command I issued. For instance, if I issue an 'ls' command, the
>> response
>> >> I
>> >> > read back is prefaced with the following character sequence: " [mls".
>> Is
>> >> > there a way to disable echoing? If there is, it's not made apparent.
>> >>
>> >> Try using
>> >>
>> >>
>> >>
>> http://commons.apache.org/net/api-3.0.1/org/apache/commons/net/telnet/TelnetClient.html#addOptionHandler%28org.apache.commons.net.telnet.TelnetOptionHandler%29
>> >>
>> >> to add the handler:
>> >>
>> >>
>> >>
>> http://commons.apache.org/net/api-3.0.1/org/apache/commons/net/telnet/EchoOptionHandler.html#EchoOptionHandler%28boolean,%20boolean,%20boolean,%20boolean%29
>> >>
>> >> > Can anyone help?
>> >> >
>> >> > Regards,
>> >> > Mark
>> >> >
>> >> > Reference:
>> >> >
>> >>
>> http://twit88.com/blog/2007/12/22/java-writing-an-automated-telnet-client/
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> >> For additional commands, e-mail: user-help@commons.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message