Need help with XP_Cmdshell and Telnet

  • Hi all,

     I've got to run a telnet command as follows,

    exec xp_cmdshell

    to

    telnet aukepper.dc-dublin.de 1521

    telnet aukeppfr.dc-dublin.de 1521

     

    I've managed to put together,

    exec xp_cmdshell 'telnet aukebper.dc-dublin.de', 1521

    But the error message says,

    Msg 50001, Level 1, State 50001

    Error executing extended stored procedure: Invalid Parameter Type

    Anyone know what I'm doing wrong?  Thanks,

     

  • try:

    exec xp_cmdshell 'telnet aukebper.dc-dublin.de 1521'

  • Lynn Pettis (8/16/2007)


    try:<P class=MsoNormal><FONT face="Courier New" color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier New'">exec xp_cmdshell 'telnet aukebper.dc-dublin.de 1521'</SPAN></FONT><P class=MsoNormal><FONT face="Courier New" color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier New'"><img src='images/emotions/cool.gif' height='20' width='20' border='0' title='Cool' align='absmiddle'></SPAN></FONT>

    i am also having the same issue. I tried like

    exec xp_cmdshell 'telnet xxxxxxx.yyyyy.com 25'

    but output coming as null.It is giving the result as smtp server ready while running through command prompt. what could be the reason for not working on sql command ?

    Thanks in Advance.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply