<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic telnet in DCL script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992916#M36026</link>
    <description>Hi&lt;BR /&gt;  I have few vms nmachines with a user which is common for them and password also same. &lt;BR /&gt;I preparing a script to login to these machines using telnet and to do some activities  and come out. &lt;BR /&gt;  How to achieve telnet in script? I know how to do it in shell scripting in unix ? how to do it in dcl? Plese give example &lt;BR /&gt;as I am new to dcl scripting and in learning stage&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Jayakrishnan G Naik</description>
    <pubDate>Thu, 03 May 2007 01:43:25 GMT</pubDate>
    <dc:creator>GNJ</dc:creator>
    <dc:date>2007-05-03T01:43:25Z</dc:date>
    <item>
      <title>telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992916#M36026</link>
      <description>Hi&lt;BR /&gt;  I have few vms nmachines with a user which is common for them and password also same. &lt;BR /&gt;I preparing a script to login to these machines using telnet and to do some activities  and come out. &lt;BR /&gt;  How to achieve telnet in script? I know how to do it in shell scripting in unix ? how to do it in dcl? Plese give example &lt;BR /&gt;as I am new to dcl scripting and in learning stage&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Jayakrishnan G Naik</description>
      <pubDate>Thu, 03 May 2007 01:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992916#M36026</guid>
      <dc:creator>GNJ</dc:creator>
      <dc:date>2007-05-03T01:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992917#M36027</link>
      <description>Hi Jayakrishnan &lt;BR /&gt;&lt;BR /&gt;Do the following within your DCL Commandprocedure &lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$INPUT SYS$COMMAND&lt;BR /&gt;$ Telnet 'host'&lt;BR /&gt;&lt;BR /&gt;This should help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Thu, 03 May 2007 03:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992917#M36027</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2007-05-03T03:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992918#M36028</link>
      <description>good morning Jayakrishnan&lt;BR /&gt;&lt;BR /&gt;I would suggest an alternative, as you know something about unix, the "R" commands exist on VMS and might simplify your task.&lt;BR /&gt;&lt;BR /&gt;ie.&lt;BR /&gt;$ rsh other_node @script&lt;BR /&gt;&lt;BR /&gt;Test to see if this command is available with&lt;BR /&gt;$rsh same_node show time&lt;BR /&gt;and&lt;BR /&gt;$rsh other_node show time.&lt;BR /&gt;&lt;BR /&gt;If these commands work, fine if not theres a few steps to be done to get it working.&lt;BR /&gt;Let me know.&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Thu, 03 May 2007 03:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992918#M36028</guid>
      <dc:creator>Steve-Thompson</dc:creator>
      <dc:date>2007-05-03T03:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992919#M36029</link>
      <description>Hi Jayakrishnan&lt;BR /&gt;&lt;BR /&gt;I would suggest two options for work using proxies facilities:&lt;BR /&gt;&lt;BR /&gt;First case:&lt;BR /&gt;Using DECnet proxies defined to common user between master and slaves machines, you can execute a script with activities to execute i.e.&lt;BR /&gt;MASTER&amp;gt;@SLAVEn::script.com&lt;BR /&gt;with script.com copied on sys$login directory of common user in SLAVE1,2,3... nodes&lt;BR /&gt;$!script.com&lt;BR /&gt;$sho time&lt;BR /&gt;$dir *.com&lt;BR /&gt;...&lt;BR /&gt;$exit&lt;BR /&gt;&lt;BR /&gt;Second case:&lt;BR /&gt;Using TCP/IP proxies defined to common user on slaves machines and using rsh facilities as Steven said.&lt;BR /&gt;&lt;BR /&gt;Saludos.&lt;BR /&gt;Daniel.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 04:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992919#M36029</guid>
      <dc:creator>Daniel Fernandez Illan</dc:creator>
      <dc:date>2007-05-03T04:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992920#M36030</link>
      <description>Have a look at&lt;BR /&gt;&lt;BR /&gt; Telnet Client Accepting Non Interactive Commands&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/appl_tools/009E60A3-96F8B0" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/appl_tools/009E60A3-96F8B0&lt;/A&gt;&lt;BR /&gt;E0-1C0186.html&lt;BR /&gt;&lt;BR /&gt;It works fine.</description>
      <pubDate>Thu, 03 May 2007 06:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992920#M36030</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2007-05-03T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992921#M36031</link>
      <description>HI Heinz&lt;BR /&gt;   I didnt understood ur reply.&lt;BR /&gt;Can you clarify this for me?&lt;BR /&gt;what this does?&lt;BR /&gt;where I have to keep the username and password in the script? &lt;BR /&gt;etc....&lt;BR /&gt;&lt;BR /&gt;"$ Define/user sys$input sys$command&lt;BR /&gt; $ telnet host"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jay</description>
      <pubDate>Thu, 03 May 2007 08:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992921#M36031</guid>
      <dc:creator>GNJ</dc:creator>
      <dc:date>2007-05-03T08:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992922#M36032</link>
      <description>Hi Jayakrishnan &lt;BR /&gt;&lt;BR /&gt;If a commandfile executes sys$input points to the commandfile itself.  &lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$INPUT SYS$COMMAND&lt;BR /&gt;$ TELNET 'host'&lt;BR /&gt;&lt;BR /&gt;The first line redefines SYS$INPUT for only the next time SYS$INPUT is used (/USER).&lt;BR /&gt;&lt;BR /&gt;If You do a telnet within your Commandfile without the line '$ define/user ...' you will never be able to enter a Username and a password. &lt;BR /&gt;&lt;BR /&gt;But I dind not understand your question correctly in the beginning and so my answer is of no use in this case.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think another possibility to solve a problem like this is to use task-task communication.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On Node B (there where you like to do something) you could have a commandprocedure like this:&lt;BR /&gt;&lt;BR /&gt;B.COM&lt;BR /&gt;$ OPEN/READ in SYS$NET&lt;BR /&gt;$ READ in record        &lt;BR /&gt;$ 'record'&lt;BR /&gt;$ CLOSE in&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;On node A (There where you start the whole thing) You can have a procedure similar to this:&lt;BR /&gt;&lt;BR /&gt;A.COM&lt;BR /&gt;$ READ/PROMPT="Enter Username on node B " SYS$COMMAND username&lt;BR /&gt;$ SET TERMINAL /NOECHO/PERMANENT&lt;BR /&gt;$ READ/PROMPT="Enter Password for ''username' on Node B" SYS$COMMAND password&lt;BR /&gt;$ SET TERMINAL/ECHO/PERM&lt;BR /&gt;$ WRITE SYS$OUTPUT ""&lt;BR /&gt;$ OPEN/WRITE remote nodeb"''username' ''password'::"0=B.COM"&lt;BR /&gt;$ WRITE remote "command to execute on node B"&lt;BR /&gt;$ CLOSE remote&lt;BR /&gt;&lt;BR /&gt;You must extent the procedures so that they fit your needs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Another Possibility would be to use SSH. With SSH you can execute a command or a commandfile on a remote node. If you would use private and public key authentication then you can organize it, that you dont have to supply a password.&lt;BR /&gt;&lt;BR /&gt;$ SSH username@nodeb DCL-Command-to-execute-on-node-B&lt;BR /&gt;&lt;BR /&gt;Or You can use RSH as suggested by 24x7&lt;BR /&gt;&lt;BR /&gt;I would assume that the solution of Daniel will not work, because:&lt;BR /&gt;&lt;BR /&gt;IF you do something like @nodeb::test.com&lt;BR /&gt;&lt;BR /&gt;then test.com resides on nodeb, but the commandfile will be executed on nodea. To test this write a commandfile with one line&lt;BR /&gt;&lt;BR /&gt;test.com&lt;BR /&gt;$ WRITE SYS$OUTPUT F$GETSYI("NODENAME")&lt;BR /&gt;&lt;BR /&gt;Copy this file to nodeb and the enter on nodea @nodeb::test&lt;BR /&gt;&lt;BR /&gt;It will write the nodename of nodea on your screen.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 09:41:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/telnet-in-dcl-script/m-p/3992922#M36032</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2007-05-03T09:41:48Z</dc:date>
    </item>
  </channel>
</rss>

