 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Telnet config |
|
Hello, i will use Telnet with 24x7 Scheduler, but i have some problem : My OS is IBM AiX 5. I have this error message : An error occurred while executing automation script: Line 10: Logon failed or host not found. Additional information: Connection timeout occurred while waiting for Login prompt. With an AIX, we receive 1 message before login prompt : telnet ([SERVER'S NAME]) then login prompt appears: AIX Version 5 (C) Copyrights by IBM and by others 1982, 2000. login: then password prompt appears: [USER NAME]'s password: Thanks, My Script : Dim( result, string ) TelnetConfig( "PROTOCOL", "TELNET" ) TelnetConfig( "LOGIN PROMPT", "telnet (HEB_16) AIX Version 5 (C) Copyrights by IBM and by others 1982, 2000. login:") TelnetConfig( "PASSWORD PROMPT", "Password:" ) TelnetConfig( "TERMINAL", "SHOW" ) TelnetConfig( "TELNET PROTOCOL", "NON SECURE" ) //TelnetConfig( "PORT" , 23 ) //TelnetConfig( "AUTHENTICATE", "TRUE" ) TelnetConfig( "timeout", "180" ) TelnetOpen( "###.###.###.###", "####", "####" ) Wait( 180 ) TelnetSend( "cd //home//") Wait( 180 ) //TelnetSend( ".//expunjoin.sh 24052005" ) //Wait( 180 ) //TelnetReceive( result ) TelnetClose( )
|
|
Mon Jul 11, 2005 3:25 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
Your login prompt has several lines. In the script you are entering that as if it was 1 long line. This is wrong! Although you can use \n and \r to indicate line breaks I think using simple TelnetConfig( "LOGIN PROMPT", "login:" ) should be sufficient. For the password specify TelnetConfig( "PASSWORD PROMPT", "[your user name here]'s password:" ) where you replace [your user name here] with what actually appears on the screen as your name. : Hello, : i will use Telnet with 24x7 Scheduler, but i have some problem : My OS is IBM : AiX 5. : I have this error message : An error occurred while executing automation : script: Line 10: Logon failed or host not found. Additional information: : Connection timeout occurred while waiting for Login prompt. : With an AIX, we receive 1 message before login prompt : telnet ([SERVER'S : NAME]) : then login prompt appears: AIX Version 5 (C) : Copyrights by IBM and by others 1982, 2000. : login: then password prompt appears: [USER NAME]'s password: Thanks, : My Script : Dim( result, string ) : TelnetConfig( "PROTOCOL", "TELNET" ) : TelnetConfig( "LOGIN PROMPT", "telnet (HEB_16) AIX Version 5 : (C) Copyrights by IBM and by others 1982, 2000. login:") : TelnetConfig( "PASSWORD PROMPT", "Password:" ) : TelnetConfig( "TERMINAL", "SHOW" ) : TelnetConfig( "TELNET PROTOCOL", "NON SECURE" ) : //TelnetConfig( "PORT" , 23 ) : //TelnetConfig( "AUTHENTICATE", "TRUE" ) : TelnetConfig( "timeout", "180" ) : TelnetOpen( "###.###.###.###", "####", "####" ) : Wait( 180 ) : TelnetSend( "cd //home//") : Wait( 180 ) : //TelnetSend( ".//expunjoin.sh 24052005" ) : //Wait( 180 ) : //TelnetReceive( result ) : TelnetClose( )
|
|
Mon Jul 11, 2005 3:44 pm |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: Your login prompt has several lines. In the script you are entering that as : if it was 1 long line. This is wrong! Although you can use \n and \r to : indicate line breaks I think using simple TelnetConfig( "LOGIN : PROMPT", "login:" ) should be sufficient. For the password : specify TelnetConfig( "PASSWORD PROMPT", "[your user name : here]'s password:" ) where you replace [your user name here] with : what actually appears on the screen as your name. Ok, but with SHOW mode on i see this : RECEIVE> telnet [SERVER'S NAME] RECEIVE> Login prompt doesn't appear after this message.
|
|
Mon Jul 11, 2005 3:58 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
What do you do in a regulat Telnet terminal in order to get the "login:" prompt? : Ok, : but with SHOW mode on i see this : RECEIVE> : telnet [SERVER'S NAME] : RECEIVE> : Login prompt doesn't appear after this message.
|
|
Mon Jul 11, 2005 4:30 pm |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: What do you do in a regulat Telnet terminal in order to get the : "login:" prompt? I want to send you 3 screenshots of SHOW mode by e-mail. Can you give me your email address please ? Thanks,
|
|
Mon Jul 11, 2005 4:43 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
Please email them to support@softtreetech.com : I want to send you 3 screenshots of SHOW mode by e-mail. : Can you give me your email address please ? : Thanks,
|
|
Mon Jul 11, 2005 5:05 pm |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: Please email them to support@softtreetech.com Ok, i have send screenshot by e-mail. Login prompt don't appear. Telnet has blocked on message who has send by Aix before login prompt. Thanks,
|
|
Mon Jul 11, 2005 5:10 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
Your screenshots don't help. (By the way, if tracing option is enabled you can find the session log in telnet.log in 24x7 home dir. My questions is still the same, in a regular Telnet window when you connect to the server do you have to type anything or press Enter to get the "login:" prompt or you just connect and wait for the login prompt to show up? : I want to send you 3 screenshots of SHOW mode by e-mail. : Can you give me your email address please ? : Thanks,
|
|
Mon Jul 11, 2005 5:35 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
Your screenshots don't help. (By the way, if tracing option is enabled you can find the session log in telnet.log in 24x7 home dir. My questions is still the same, in a regular Telnet window when you connect to the server do you have to type anything or press Enter to get the "login:" prompt or you just connect and wait for the login prompt to show up? : Ok, : i have send screenshot by e-mail. : Login prompt don't appear. : Telnet has blocked on message who has send by Aix before : login prompt. : Thanks,
|
|
Mon Jul 11, 2005 6:24 pm |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: Your screenshots don't help. (By the way, if tracing option is enabled you : can find the session log in telnet.log in 24x7 home dir. : My questions is still the same, in a regular Telnet window when you connect : to the server do you have to type anything or press Enter to get the : "login:" prompt or you just connect and wait for the login : prompt to show up? Hello, With a regular Telnet windows, I'm just connect and wait for the prompt. Thanks,
|
|
Tue Jul 12, 2005 4:53 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
I suggest to enable the tracing option in 24x7 (see Tools/Options menu, Log page) restart the scheduler and rerun the job. After that open telnet.log file in any text editor and copy & paste login and password prompts from the file. You only need the text from single lines that look like the sample line below. Don't copy multiple lines Here is the line you are looking for: TELNET 8/16/2002 07:32:42>> RECEIVE> login: Here is the log snippet containing that line TELNET 8/16/2002 07:32:42>> LOG> recv WILL ECHO TELNET 8/16/2002 07:32:42>> LOG> send DO ECHO TELNET 8/16/2002 07:32:42>> RECEIVE> ****************************************** * Welcome to The New York Public Library * * For Access to LEO login as leo * * For Access to CATNYP login as nypl * ****************************************** TELNET 8/16/2002 07:32:42>> RECEIVE> login: TELNET 8/16/2002 07:32:42>> LOG> sending string (length: 4 bytes): leo In 24x7 all you need to specify as a login prompt for The New York Public Library is "login:" : Hello, : With a regular Telnet windows, I'm just connect and wait for the prompt. : Thanks,
|
|
Tue Jul 12, 2005 8:37 am |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: I suggest to enable the tracing option in 24x7 (see Tools/Options menu, Log : page) restart the scheduler and rerun the job. After that open telnet.log : file in any text editor and copy & paste login and password prompts : from the file. You only need the text from single lines that look like the : sample line below. Don't copy multiple lines : Here is the line you are looking for: TELNET 8/16/2002 07:32:42>> : RECEIVE> login: Here is the log snippet containing that line : TELNET 8/16/2002 07:32:42>> LOG> recv WILL ECHO : TELNET 8/16/2002 07:32:42>> LOG> send DO ECHO : TELNET 8/16/2002 07:32:42>> RECEIVE> : ****************************************** : * Welcome to The New York Public Library * : * For Access to LEO login as leo * : * For Access to CATNYP login as nypl * : ****************************************** : TELNET 8/16/2002 07:32:42>> RECEIVE> login: TELNET 8/16/2002 : 07:32:42>> LOG> sending string (length: 4 bytes): leo : In 24x7 all you need to specify as a login prompt for The New York Public : Library is "login:" Aix don't send the login prompt :/ : The log file on Aix Unix: TELNET 12/07/2005 14:38:25>> LOG> telnet protocol enabled TELNET 12/07/2005 14:38:25>> LOG> Resolving host name 192.168.255.220 TELNET 12/07/2005 14:38:25>> LOG> Resolving service name telnet TELNET 12/07/2005 14:38:25>> LOG> Connecting to 192.168.255.220/23 TELNET 12/07/2005 14:38:25>> LOG> Connecting to 192.168.255.220/23 TELNET 12/07/2005 14:38:25>> LOG> Online to 192.168.255.220/23 TELNET 12/07/2005 14:38:25>> LOG> Client initiated options TELNET 12/07/2005 14:38:25>> LOG> send WILL NAWS TELNET 12/07/2005 14:38:25>> LOG> send WILL LFLOW TELNET 12/07/2005 14:38:25>> LOG> send DO SGA TELNET 12/07/2005 14:38:25>> LOG> Server initiated options TELNET 12/07/2005 14:38:25>> LOG> recv DONT AUTH TELNET 12/07/2005 14:38:25>> LOG> send WONT AUTH TELNET 12/07/2005 14:38:25>> LOG> recv DO TTYPE TELNET 12/07/2005 14:38:25>> LOG> send WILL TTYPE TELNET 12/07/2005 14:38:25>> LOG> recv DO NAWS TELNET 12/07/2005 14:38:25>> LOG> recv DONT LFLOW TELNET 12/07/2005 14:38:25>> LOG> send WONT LFLOW TELNET 12/07/2005 14:38:25>> LOG> recv WILL SGA TELNET 12/07/2005 14:38:25>> LOG> send DO SGA TELNET 12/07/2005 14:38:25>> LOG> recv DO TTYPE TELNET 12/07/2005 14:38:25>> LOG> send WILL TTYPE TELNET 12/07/2005 14:38:25>> LOG> recv SB TERMINAL-TYPE SEND IAC SE TELNET 12/07/2005 14:38:25>> LOG> send SB TTYPE IS VT100 IAC SE TELNET 12/07/2005 14:38:25>> LOG> recv WILL ECHO TELNET 12/07/2005 14:38:25>> LOG> send DO ECHO TELNET 12/07/2005 14:38:25>> LOG> recv WONT 0xc8 TELNET 12/07/2005 14:38:25>> LOG> send DONT 0xc8 TELNET 12/07/2005 14:38:25>> LOG> recv DO ECHO TELNET 12/07/2005 14:38:25>> LOG> send WILL ECHO TELNET 12/07/2005 14:38:25>> RECEIVE> telnet (HEB_16) TELNET 12/07/2005 14:38:25>> RECEIVE> TELNET 12/07/2005 14:38:26>> LOG> recv WILL ECHO TELNET 12/07/2005 14:38:26>> LOG> send DO ECHO TELNET 12/07/2005 14:38:26>> LOG> recv DONT ECHO TELNET 12/07/2005 14:38:26>> LOG> send WONT ECHO The log file on Linux Debian : TELNET 12/07/2005 14:23:51>> LOG> Offline **** 12/07/2005 14:24:24 **** TELNET 12/07/2005 14:24:24>> LOG> telnet protocol enabled TELNET 12/07/2005 14:24:24>> LOG> Resolving host name 192.168.255.94 TELNET 12/07/2005 14:24:24>> LOG> Resolving service name telnet TELNET 12/07/2005 14:24:24>> LOG> Connecting to 192.168.255.94/23 TELNET 12/07/2005 14:24:24>> LOG> Connecting to 192.168.255.94/23 TELNET 12/07/2005 14:24:24>> LOG> Online to 192.168.255.94/23 TELNET 12/07/2005 14:24:24>> LOG> Client initiated options TELNET 12/07/2005 14:24:24>> LOG> send WILL NAWS TELNET 12/07/2005 14:24:24>> LOG> send WILL LFLOW TELNET 12/07/2005 14:24:24>> LOG> send DO SGA TELNET 12/07/2005 14:24:44>> LOG> Server initiated options TELNET 12/07/2005 14:24:44>> LOG> recv DO TTYPE TELNET 12/07/2005 14:24:44>> LOG> send WILL TTYPE TELNET 12/07/2005 14:24:44>> LOG> recv DO TSPEED TELNET 12/07/2005 14:24:44>> LOG> send WONT TSPEED TELNET 12/07/2005 14:24:44>> LOG> recv DO XDISPLOC TELNET 12/07/2005 14:24:44>> LOG> send WONT XDISPLOC TELNET 12/07/2005 14:24:44>> LOG> recv DO NEWENV TELNET 12/07/2005 14:24:44>> LOG> send WONT NEWENV TELNET 12/07/2005 14:24:44>> LOG> recv DO NAWS TELNET 12/07/2005 14:24:44>> LOG> recv DO LFLOW TELNET 12/07/2005 14:24:44>> LOG> recv WILL SGA TELNET 12/07/2005 14:24:44>> LOG> send DO SGA TELNET 12/07/2005 14:24:44>> LOG> recv SB TERMINAL-TYPE SEND IAC SE TELNET 12/07/2005 14:24:44>> LOG> send SB TTYPE IS VT100 IAC SE TELNET 12/07/2005 14:24:44>> LOG> recv DO ECHO TELNET 12/07/2005 14:24:44>> LOG> send WILL ECHO TELNET 12/07/2005 14:24:44>> LOG> recv WILL STATUS TELNET 12/07/2005 14:24:44>> LOG> send DONT STATUS TELNET 12/07/2005 14:24:44>> LOG> recv DONT ECHO TELNET 12/07/2005 14:24:44>> LOG> send WONT ECHO TELNET 12/07/2005 14:24:44>> LOG> recv WILL ECHO TELNET 12/07/2005 14:24:44>> LOG> send DO ECHO TELNET 12/07/2005 14:24:44>> RECEIVE> Debian GNU/Linux 3.1 localhost.localdomain srvbackup login: TELNET 12/07/2005 14:24:44>> LOG> sending string (length: 6 bytes): admin TELNET 12/07/2005 14:24:44>> RECEIVE> admin TELNET 12/07/2005 14:24:44>> RECEIVE> Password: TELNET 12/07/2005 14:24:44>> LOG> sending string (length: 5 bytes): toto TELNET 12/07/2005 14:24:44>> RECEIVE> TELNET 12/07/2005 14:24:44>> RECEIVE> Last login: Tue Jul 12 14:26:05 2005 from 192.168.254.154 on pts/2 Linux srvbackup 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have mail. admin@srvbackup:~$
|
|
Tue Jul 12, 2005 8:44 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7975
|
|
Re: Telnet config |
|
Try "telnet (HEB_16)" for the prompt and see if it works. By the way, there exist an alternative to telnet, which is use of 24x7 RA Servers for Unix and Linux or use of 24x7 Scheduler Java Edition. Both provide much more reliable automation methods not affected by telnet timeouts and unexpected messages sent to//from the client. : Aix don't send the login prompt :/ : The log file on Aix Unix: TELNET : 12/07/2005 14:38:25>> LOG> telnet protocol enabled : TELNET 12/07/2005 14:38:25>> LOG> Resolving host name : 192.168.255.220 : TELNET 12/07/2005 14:38:25>> LOG> Resolving service name telnet : TELNET 12/07/2005 14:38:25>> LOG> Connecting to 192.168.255.220/23 : TELNET 12/07/2005 14:38:25>> LOG> Connecting to 192.168.255.220/23 : TELNET 12/07/2005 14:38:25>> LOG> Online to 192.168.255.220/23 : TELNET 12/07/2005 14:38:25>> LOG> Client initiated options : TELNET 12/07/2005 14:38:25>> LOG> send WILL NAWS : TELNET 12/07/2005 14:38:25>> LOG> send WILL LFLOW : TELNET 12/07/2005 14:38:25>> LOG> send DO SGA : TELNET 12/07/2005 14:38:25>> LOG> Server initiated options : TELNET 12/07/2005 14:38:25>> LOG> recv DONT AUTH : TELNET 12/07/2005 14:38:25>> LOG> send WONT AUTH : TELNET 12/07/2005 14:38:25>> LOG> recv DO TTYPE : TELNET 12/07/2005 14:38:25>> LOG> send WILL TTYPE : TELNET 12/07/2005 14:38:25>> LOG> recv DO NAWS : TELNET 12/07/2005 14:38:25>> LOG> recv DONT LFLOW : TELNET 12/07/2005 14:38:25>> LOG> send WONT LFLOW : TELNET 12/07/2005 14:38:25>> LOG> recv WILL SGA : TELNET 12/07/2005 14:38:25>> LOG> send DO SGA : TELNET 12/07/2005 14:38:25>> LOG> recv DO TTYPE : TELNET 12/07/2005 14:38:25>> LOG> send WILL TTYPE : TELNET 12/07/2005 14:38:25>> LOG> recv SB TERMINAL-TYPE SEND IAC SE : TELNET 12/07/2005 14:38:25>> LOG> send SB TTYPE IS VT100 IAC SE : TELNET 12/07/2005 14:38:25>> LOG> recv WILL ECHO : TELNET 12/07/2005 14:38:25>> LOG> send DO ECHO : TELNET 12/07/2005 14:38:25>> LOG> recv WONT 0xc8 : TELNET 12/07/2005 14:38:25>> LOG> send DONT 0xc8 : TELNET 12/07/2005 14:38:25>> LOG> recv DO ECHO : TELNET 12/07/2005 14:38:25>> LOG> send WILL ECHO : TELNET 12/07/2005 14:38:25>> RECEIVE> : telnet (HEB_16) : TELNET 12/07/2005 14:38:25>> RECEIVE> : TELNET 12/07/2005 14:38:26>> LOG> recv WILL ECHO : TELNET 12/07/2005 14:38:26>> LOG> send DO ECHO : TELNET 12/07/2005 14:38:26>> LOG> recv DONT ECHO : TELNET 12/07/2005 14:38:26>> LOG> send WONT ECHO : The log file on Linux Debian : TELNET 12/07/2005 14:23:51>> LOG> : Offline : **** 12/07/2005 14:24:24 **** : TELNET 12/07/2005 14:24:24>> LOG> telnet protocol enabled : TELNET 12/07/2005 14:24:24>> LOG> Resolving host name 192.168.255.94 : TELNET 12/07/2005 14:24:24>> LOG> Resolving service name telnet : TELNET 12/07/2005 14:24:24>> LOG> Connecting to 192.168.255.94/23 : TELNET 12/07/2005 14:24:24>> LOG> Connecting to 192.168.255.94/23 : TELNET 12/07/2005 14:24:24>> LOG> Online to 192.168.255.94/23 : TELNET 12/07/2005 14:24:24>> LOG> Client initiated options : TELNET 12/07/2005 14:24:24>> LOG> send WILL NAWS : TELNET 12/07/2005 14:24:24>> LOG> send WILL LFLOW : TELNET 12/07/2005 14:24:24>> LOG> send DO SGA : TELNET 12/07/2005 14:24:44>> LOG> Server initiated options : TELNET 12/07/2005 14:24:44>> LOG> recv DO TTYPE : TELNET 12/07/2005 14:24:44>> LOG> send WILL TTYPE : TELNET 12/07/2005 14:24:44>> LOG> recv DO TSPEED : TELNET 12/07/2005 14:24:44>> LOG> send WONT TSPEED : TELNET 12/07/2005 14:24:44>> LOG> recv DO XDISPLOC : TELNET 12/07/2005 14:24:44>> LOG> send WONT XDISPLOC : TELNET 12/07/2005 14:24:44>> LOG> recv DO NEWENV : TELNET 12/07/2005 14:24:44>> LOG> send WONT NEWENV : TELNET 12/07/2005 14:24:44>> LOG> recv DO NAWS : TELNET 12/07/2005 14:24:44>> LOG> recv DO LFLOW : TELNET 12/07/2005 14:24:44>> LOG> recv WILL SGA : TELNET 12/07/2005 14:24:44>> LOG> send DO SGA : TELNET 12/07/2005 14:24:44>> LOG> recv SB TERMINAL-TYPE SEND IAC SE : TELNET 12/07/2005 14:24:44>> LOG> send SB TTYPE IS VT100 IAC SE : TELNET 12/07/2005 14:24:44>> LOG> recv DO ECHO : TELNET 12/07/2005 14:24:44>> LOG> send WILL ECHO : TELNET 12/07/2005 14:24:44>> LOG> recv WILL STATUS : TELNET 12/07/2005 14:24:44>> LOG> send DONT STATUS : TELNET 12/07/2005 14:24:44>> LOG> recv DONT ECHO : TELNET 12/07/2005 14:24:44>> LOG> send WONT ECHO : TELNET 12/07/2005 14:24:44>> LOG> recv WILL ECHO : TELNET 12/07/2005 14:24:44>> LOG> send DO ECHO : TELNET 12/07/2005 14:24:44>> RECEIVE> Debian GNU/Linux 3.1 : localhost.localdomain : srvbackup login: TELNET 12/07/2005 14:24:44>> LOG> sending string : (length: 6 bytes): admin : TELNET 12/07/2005 14:24:44>> RECEIVE> admin : TELNET 12/07/2005 14:24:44>> RECEIVE> Password: TELNET 12/07/2005 : 14:24:44>> LOG> sending string (length: 5 bytes): toto : TELNET 12/07/2005 14:24:44>> RECEIVE> : TELNET 12/07/2005 14:24:44>> RECEIVE> Last login: Tue Jul 12 : 14:26:05 2005 from 192.168.254.154 on pts/2 : Linux srvbackup 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux : The programs included with the Debian GNU/Linux system are free software; : the exact distribution terms for each program are described in the : individual files in /usr/share/doc/*/copyright. : Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent : permitted by applicable law. : You have mail. : admin@srvbackup:~$
|
|
Tue Jul 12, 2005 8:57 am |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: I suggest to enable the tracing option in 24x7 (see Tools/Options menu, Log : page) restart the scheduler and rerun the job. After that open telnet.log : file in any text editor and copy & paste login and password prompts : from the file. You only need the text from single lines that look like the : sample line below. Don't copy multiple lines : Here is the line you are looking for: TELNET 8/16/2002 07:32:42>> : RECEIVE> login: Here is the log snippet containing that line : TELNET 8/16/2002 07:32:42>> LOG> recv WILL ECHO : TELNET 8/16/2002 07:32:42>> LOG> send DO ECHO : TELNET 8/16/2002 07:32:42>> RECEIVE> : ****************************************** : * Welcome to The New York Public Library * : * For Access to LEO login as leo * : * For Access to CATNYP login as nypl * : ****************************************** : TELNET 8/16/2002 07:32:42>> RECEIVE> login: TELNET 8/16/2002 : 07:32:42>> LOG> sending string (length: 4 bytes): leo : In 24x7 all you need to specify as a login prompt for The New York Public : Library is "login:" Aix don't send the login prompt :/ : The log file on Aix Unix: TELNET 12/07/2005 14:38:25>> LOG> telnet protocol enabled TELNET 12/07/2005 14:38:25>> LOG> Resolving host name 192.168.255.220 TELNET 12/07/2005 14:38:25>> LOG> Resolving service name telnet TELNET 12/07/2005 14:38:25>> LOG> Connecting to 192.168.255.220/23 TELNET 12/07/2005 14:38:25>> LOG> Connecting to 192.168.255.220/23 TELNET 12/07/2005 14:38:25>> LOG> Online to 192.168.255.220/23 TELNET 12/07/2005 14:38:25>> LOG> Client initiated options TELNET 12/07/2005 14:38:25>> LOG> send WILL NAWS TELNET 12/07/2005 14:38:25>> LOG> send WILL LFLOW TELNET 12/07/2005 14:38:25>> LOG> send DO SGA TELNET 12/07/2005 14:38:25>> LOG> Server initiated options TELNET 12/07/2005 14:38:25>> LOG> recv DONT AUTH TELNET 12/07/2005 14:38:25>> LOG> send WONT AUTH TELNET 12/07/2005 14:38:25>> LOG> recv DO TTYPE TELNET 12/07/2005 14:38:25>> LOG> send WILL TTYPE TELNET 12/07/2005 14:38:25>> LOG> recv DO NAWS TELNET 12/07/2005 14:38:25>> LOG> recv DONT LFLOW TELNET 12/07/2005 14:38:25>> LOG> send WONT LFLOW TELNET 12/07/2005 14:38:25>> LOG> recv WILL SGA TELNET 12/07/2005 14:38:25>> LOG> send DO SGA TELNET 12/07/2005 14:38:25>> LOG> recv DO TTYPE TELNET 12/07/2005 14:38:25>> LOG> send WILL TTYPE TELNET 12/07/2005 14:38:25>> LOG> recv SB TERMINAL-TYPE SEND IAC SE TELNET 12/07/2005 14:38:25>> LOG> send SB TTYPE IS VT100 IAC SE TELNET 12/07/2005 14:38:25>> LOG> recv WILL ECHO TELNET 12/07/2005 14:38:25>> LOG> send DO ECHO TELNET 12/07/2005 14:38:25>> LOG> recv WONT 0xc8 TELNET 12/07/2005 14:38:25>> LOG> send DONT 0xc8 TELNET 12/07/2005 14:38:25>> LOG> recv DO ECHO TELNET 12/07/2005 14:38:25>> LOG> send WILL ECHO TELNET 12/07/2005 14:38:25>> RECEIVE> telnet (HEB_16) TELNET 12/07/2005 14:38:25>> RECEIVE> TELNET 12/07/2005 14:38:26>> LOG> recv WILL ECHO TELNET 12/07/2005 14:38:26>> LOG> send DO ECHO TELNET 12/07/2005 14:38:26>> LOG> recv DONT ECHO TELNET 12/07/2005 14:38:26>> LOG> send WONT ECHO The log file on Linux Debian : TELNET 12/07/2005 14:23:51>> LOG> Offline **** 12/07/2005 14:24:24 **** TELNET 12/07/2005 14:24:24>> LOG> telnet protocol enabled TELNET 12/07/2005 14:24:24>> LOG> Resolving host name 192.168.255.94 TELNET 12/07/2005 14:24:24>> LOG> Resolving service name telnet TELNET 12/07/2005 14:24:24>> LOG> Connecting to 192.168.255.94/23 TELNET 12/07/2005 14:24:24>> LOG> Connecting to 192.168.255.94/23 TELNET 12/07/2005 14:24:24>> LOG> Online to 192.168.255.94/23 TELNET 12/07/2005 14:24:24>> LOG> Client initiated options TELNET 12/07/2005 14:24:24>> LOG> send WILL NAWS TELNET 12/07/2005 14:24:24>> LOG> send WILL LFLOW TELNET 12/07/2005 14:24:24>> LOG> send DO SGA TELNET 12/07/2005 14:24:44>> LOG> Server initiated options TELNET 12/07/2005 14:24:44>> LOG> recv DO TTYPE TELNET 12/07/2005 14:24:44>> LOG> send WILL TTYPE TELNET 12/07/2005 14:24:44>> LOG> recv DO TSPEED TELNET 12/07/2005 14:24:44>> LOG> send WONT TSPEED TELNET 12/07/2005 14:24:44>> LOG> recv DO XDISPLOC TELNET 12/07/2005 14:24:44>> LOG> send WONT XDISPLOC TELNET 12/07/2005 14:24:44>> LOG> recv DO NEWENV TELNET 12/07/2005 14:24:44>> LOG> send WONT NEWENV TELNET 12/07/2005 14:24:44>> LOG> recv DO NAWS TELNET 12/07/2005 14:24:44>> LOG> recv DO LFLOW TELNET 12/07/2005 14:24:44>> LOG> recv WILL SGA TELNET 12/07/2005 14:24:44>> LOG> send DO SGA TELNET 12/07/2005 14:24:44>> LOG> recv SB TERMINAL-TYPE SEND IAC SE TELNET 12/07/2005 14:24:44>> LOG> send SB TTYPE IS VT100 IAC SE TELNET 12/07/2005 14:24:44>> LOG> recv DO ECHO TELNET 12/07/2005 14:24:44>> LOG> send WILL ECHO TELNET 12/07/2005 14:24:44>> LOG> recv WILL STATUS TELNET 12/07/2005 14:24:44>> LOG> send DONT STATUS TELNET 12/07/2005 14:24:44>> LOG> recv DONT ECHO TELNET 12/07/2005 14:24:44>> LOG> send WONT ECHO TELNET 12/07/2005 14:24:44>> LOG> recv WILL ECHO TELNET 12/07/2005 14:24:44>> LOG> send DO ECHO TELNET 12/07/2005 14:24:44>> RECEIVE> Debian GNU/Linux 3.1 localhost.localdomain srvbackup login: TELNET 12/07/2005 14:24:44>> LOG> sending string (length: 6 bytes): admin TELNET 12/07/2005 14:24:44>> RECEIVE> admin TELNET 12/07/2005 14:24:44>> RECEIVE> Password: TELNET 12/07/2005 14:24:44>> LOG> sending string (length: 5 bytes): toto TELNET 12/07/2005 14:24:44>> RECEIVE> TELNET 12/07/2005 14:24:44>> RECEIVE> Last login: Tue Jul 12 14:26:05 2005 from 192.168.254.154 on pts/2 Linux srvbackup 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have mail. admin@srvbackup:~$
|
|
Tue Jul 12, 2005 8:57 am |
|
 |
Cédric
Joined: 20 Jun 2005 Posts: 14
|
|
Re: Telnet config |
|
: Try "telnet (HEB_16)" for the prompt and see if it works. : By the way, there exist an alternative to telnet, which is use of 24x7 RA : Servers for Unix and Linux or use of 24x7 Scheduler Java Edition. : Both provide much more reliable automation methods not affected by telnet : timeouts and unexpected messages sent to//from the client. TelnetConfig( "LOGIN PROMPT", "telnet (HEB_16)") TelnetConfig( "PASSWORD PROMPT", " Password:" ) It's good ! :) Thank you,
|
|
Tue Jul 12, 2005 9:15 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|