There is a problem when I try to telnet into the target's telnetd. When I
try, I see the following three things happen:
1. Target: I get the correct output on the target shell
"telnetd: This system *IN USE* via telnet.
Shell restarted"
(ok, this is Good)
2. Host: My windows 2000 console (DOS prompt) screen goes blank, it appears
that the telnet client application shows nothing. (this is bad)
3. Both host and target: I have found the only way to get out of this
situation seems to be to reboot the vxworks target and kill the Windows 2000
telnet client process manually. (hmmmm, this is really bad)
I am wondering if anybody has seen this sort of thing before.
System Details:
Host: Windows 2000. Tornado 2.1.1. Telnetd is included in the project
through the project facility, workspace, Vxworks, network components,
networking protocols, network applications, Telnet Server...
General:
INCLUDE_TELNET
Params:
TELNETD_MAX_CLIENTS: 1
TELNETD_PARSER_HOOK: shellParserControl
TELNETD_PORT: 23
TELNETD_TASKFLAG: 3
(INCLUDE_TELNET and INCLUDE_SHELL are both defined)
Target: System: vxworks 5.4. Xscale processor.
The "i" command shows
NAME , ENTRY, TID, PRI, STATUS, PC, SP, ERRNO, DELAY
tTelentd, _telnetd, a4cfe044, 55, PEND, a0231a84, a4cfdef8, 0, 0
Ethernet sniff of a telnet transaction attempt:
(Target) (Host)
# Destination Source Protocol Summary
Size
1 10.10.3.221 10.10.3.30 Telnet TCP
(SYN) 62
2 Broadcast 10.10.3.221 ARP Request
60
3 10.10.3.221 10.10.3.30 ARP Reply
60
4 10.10.3.30 10.10.3.221 Telnet TCP
(ACK, SYN) 60 (I verified it is attempting to connect to port 23,
correct).
5 10.10.3.221 10.10.3.30 Telnet TCP
(ACK) 60
6 10.10.3.30 10.10.3.221 Telnet TCP
(ACK, PSH) 60
7 10.10.3.221 10.10.3.30 Telnet TCP
(ACK, PSH) 60
8 10.10.3.221 10.10.3.30 Telnet TCP
(ACK, PSH) 60
9 10.10.3.221 10.10.3.30 Telnet TCP
(ACK, PSH) 89
10 10.10.3.221 10.10.3.30 Telnet TCP
(ACK, PSH) 123 (I typed a bunch of chars, they did get sent)
11 10.10.3.221 10.10.3.30 Telnet TCP
(ACK, FIN) 60 (I killed the telnet client here)
Telnet session capture:
C:\WINNT> telnet
Microsoft (R) Windows 2000 (TM) Version 5.00 (Build 2195)
Welcome to Microsoft Telnet Client
Telnet Client Build 5.00.99206.1
Escape Character is 'CTRL+]'
Microsoft Telnet> display
Escape Character is 'CTRL+]'
WILL AUTH (NTLM Authentication)
LOCAL_ECHO off
Sending both CR & LF
WILL TERM TYPE
Preferred Term Type is ANSI
Microsoft Telnet> unset ntlm
Microsoft Telnet> display
Escape Character is 'CTRL+]'
WONT AUTH (NTLM Authentication)
LOCAL_ECHO off
Sending both CR & LF
WILL TERM TYPE
Preferred Term Type is ANSI
Microsoft Telnet> open 10.10.3.221
(at this point the screen goes blank, hitting keys *does* send the
characters to target over TCP but there is never any response from the
target's telenetd server, it seems)
It's probably something simple...
I would suggest getting a better telnet client and seeing if that
works - the MS telnet client is perhaps the worst I have ever seen. I
would strongly recommend this one (which is free):
http://www.chiark.greenend.org.uk/~sgtatham/putty/
It also has other stuff like rlogin, SSH, SCP in case you ever need
those for anything.
HTH,
John...
"CF" <ca...@notsoform.com> wrote in message news:<t4f9a.5150$aq6.4...@news3.news.adelphia.net>...
=====
Rate Corporate America at http://exec-ratings.bluedonkey.org
"John" <john_...@yahoo.com> wrote in message
news:488e459a.03030...@posting.google.com...
"CF" <ca...@notsoform.com> wrote in message
news:t4f9a.5150$aq6.4...@news3.news.adelphia.net...
msafar
You may try to write to the socket on server side, while the
connection is established - telnetfd????
"CF" <ca...@notsoform.com> wrote in message news:<t4f9a.5150$aq6.4...@news3.news.adelphia.net>...
Hi:
Ping works find both ways. No routing table problems as far as I can see.
Lynda
"CF" <ca...@notsoform.com> wrote in message news:<t4f9a.5150$aq6.4...@news3.news.adelphia.net>...
"Lynda" <lynda...@att.net> wrote in message
news:3644fb5b.03031...@posting.google.com...
> > > LOCAL_ECHO off
Try turning this on - I seem to remember when playing with a demo
server we used as an example in VxWorks AE that MS telnet wouldn't
play ball unless the local echo was enabled.
Note to earlier poster who said that telnet clients are all alike:
they are not, and the MS one has a number of differences. My simple
telnet server demo application worked perfectly with all unix clients
we tried, but I had to change several settings in the MS one to make
it work on Windoze.
I didn't try PuTTY at that point partly because I hadn't discovered
it, and partly because the requirement was to work with MS telnet, so
I don't know if it would work out of the box with VxWorks - I do know
that it works much better when connecting to Unix servers than the MS
one, and it supports rsh/rlogin and ssh into the bargain.
Back to the problem... you could also try typing the following to see
what happens:
reboot^J
(where ^J is control key + J)
If the target reboots, then this could be part of the problem too:
> > > Sending both CR & LF
You probably want to send just LF rather than both. VxWorks is
unix-like in this respect, and I'm not sure whether the shell
interpreter will cope with the CR characters at the end of every line;
if I had to guess, I'd say it wouldn't.
> > > WILL TERM TYPE
This might also be a good thing to disable as I don't expect the
VxWorks end will respond to it - might be wrong on that, and I don't
have a target any more I can try it with. If you can disable the
automatic term type determination, and just force it to a vt100 like
setting, that'll probably be the safest option.
> > > It's probably something simple...
Have you checked the status of the network connection? You can use
netstat on Windoze from a command prompt to see the active connections
on that end, and if you add the network show routines to VxWorks,
inetstatShow will give a similar thing there (you'll need to use a
WindSh session of course ;-)
HTH,
John...
I know (or think I know...) the router works ok, as routing to my
development host with Telnet server enabled works fine.
I don't have access to a remote machine with tcpdump...
Randy Ryan
NovaSol, http://www.nova-sol.com
> I know (or think I know...) the router works ok, as routing to my
> development host with Telnet server enabled works fine.
>
> I don't have access to a remote machine with tcpdump...
Do you have a default route set on the target system? If not, try
setting one with routeAdd "0", "Gateway IP address" (you can add this
to the end of the init sequence on the target so that it will always
be there when you boot the target).
> I know (or think I know...) the router works ok, as routing to my
> development host with Telnet server enabled works fine.
Randy,
your vxworks machine probably does not have a route set up to respond back
to
you through the router.
Off hand I forget how to add one, its addroute() or some such thing..
Bep
routeDelete("192.168.0.0","192.168.0.150")
mRouteAdd("192.168.0.1","192.168.0.150",0xffffff00,0,0)
routeAdd ("0","192.168.0.1")
Thanks for steering me to the right path.
Randy Ryan
NovaSol, http://www.nova-sol.com
> your vxworks machine probably does not have a route set up to respond back