<?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 Re: SET HOST/TELNET 0 in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193258#M1197</link>
    <description>Rob,&lt;BR /&gt;&lt;BR /&gt;  The SET HOST command is an anomoly in input processing, it checks the SYS$INPUT stream for a username and/or password, which (if found) is passed to the remote host. It then switches the input stream over to SYS$COMMAND. This requires some fairly ugly input processing hackery and also a protocol that has a mechanism for passing username/password. Also note that you cannot "script" a set host session because you can't control where the input comes from.&lt;BR /&gt;&lt;BR /&gt;  Telnet and SET HOST/TELNET behave more like "normal" DCL commands in terms of input handling. The Telnet protocol itself has no mechanism for passing a username/password, but rlogin does, as Keith has explained&lt;BR /&gt;&lt;BR /&gt;(though one thing I would change in Keith's code is the use of "ASSIGN". ASSIGN was made obselete back in VMS V4.0, replaced with DEFINE. ASSIGN has several limitations and syntactic peculiarities and so should be avoided. Please use DEFINE instead:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$INPUT SYS$COMMAND&lt;BR /&gt;$ SET HOST/RLOGIN/USERNAME=CAYEMBERG localhost&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Feb 2004 16:59:16 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2004-02-18T16:59:16Z</dc:date>
    <item>
      <title>SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193252#M1191</link>
      <description>$ SET HOST/TELNET 0 &lt;BR /&gt;USERNAME&lt;BR /&gt;PASSWORD&lt;BR /&gt;$EXIT&lt;BR /&gt;&lt;BR /&gt;If you put the above lines in a .com file and run you get&lt;BR /&gt;&lt;BR /&gt;%SYSTEM-W-NODEVAVL, no device available&lt;BR /&gt;%SMG-F-INVPAS_ID, invalid pasteboard-id&lt;BR /&gt;%DCL-W-SKPDAT, image data (records not beginning with "$") ignored&lt;BR /&gt;&lt;BR /&gt;Is this correct?&lt;BR /&gt;&lt;BR /&gt;However if you use the following lines above in a .com you log straight in!!&lt;BR /&gt;&lt;BR /&gt;$ SET HOST 0 &lt;BR /&gt;USERNAME&lt;BR /&gt;PASWORD&lt;BR /&gt;$EXIT&lt;BR /&gt;&lt;BR /&gt;Can you use the /TELNET qualifier on the end of a SET HOST command in this way?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Rob</description>
      <pubDate>Mon, 16 Feb 2004 12:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193252#M1191</guid>
      <dc:creator>Rob Kersey</dc:creator>
      <dc:date>2004-02-16T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193253#M1192</link>
      <description>Reproduced this here. Set host/telnet is not the same as set host for DECnet. It actually invokes the standard telnet image behind your back. Also fiddeling with the /term qualifier did not make it work.</description>
      <pubDate>Mon, 16 Feb 2004 12:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193253#M1192</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-02-16T12:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193254#M1193</link>
      <description>I believe that you will need to use the following command:&lt;BR /&gt;&lt;BR /&gt;$ Set Host/Telnet 127.0.0.0&lt;BR /&gt;&lt;BR /&gt;instead of the:&lt;BR /&gt;&lt;BR /&gt;$ Set Host/Telnet 0</description>
      <pubDate>Mon, 16 Feb 2004 13:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193254#M1193</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2004-02-16T13:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193255#M1194</link>
      <description>Sorry I mis-typed, it should be&lt;BR /&gt;&lt;BR /&gt;$ Set Host/Telnet 127.0.0.1</description>
      <pubDate>Mon, 16 Feb 2004 13:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193255#M1194</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2004-02-16T13:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193256#M1195</link>
      <description>Hello Rob,&lt;BR /&gt;I need explain as DCL manages a .com; before executing DCL declare SYS$INPUT as file while SYS$COMMAND is unchanged on terminale device; then every line starting with $ sign is a command line and executed; executing application, if read from SYS$INPUT, get  next line of .com that they haven't $ sign.&lt;BR /&gt; &lt;BR /&gt;This command &lt;BR /&gt;$ SET HOST 0 &lt;BR /&gt;USERNAME&lt;BR /&gt;PASSWORD&lt;BR /&gt;$EXIT&lt;BR /&gt;works because SET HOST /DECNET read from SYS$INPUT.&lt;BR /&gt;Telnet doesn't get from SYS$INPUT for security reason; also windows has same limitation.&lt;BR /&gt;Now, because telnet hasn't read from sys$input, file pointer of DCL (when tlnet exit) is located to USERNAME and DCL write &lt;BR /&gt;%DCL-W-SKPDAT, image data (records not beginning with "$") ignored&lt;BR /&gt;For this reason, if you will use edit in .com file you have write as follow&lt;BR /&gt;$ DEFINE SYS$INPUT SYS$COMMAND&lt;BR /&gt;$ EDIT/EDT myfile&lt;BR /&gt;Correlated command is DECK.&lt;BR /&gt;&lt;BR /&gt;Sorry for long sentence but I can't write shortly.&lt;BR /&gt; &lt;BR /&gt;H.T.H.&lt;BR /&gt;Antoniov</description>
      <pubDate>Mon, 16 Feb 2004 13:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193256#M1195</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-02-16T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193257#M1196</link>
      <description>&lt;BR /&gt;Assuming RLOGIN has been enabled on your node,&lt;BR /&gt;you can have a R-Tools Proxy defined on&lt;BR /&gt;your node as the follows...&lt;BR /&gt;&lt;BR /&gt;$ tcpip add proxy CAYEMBERG -&lt;BR /&gt;/REMOTE_USER=CAYEMBERG /HOST=localhost&lt;BR /&gt;&lt;BR /&gt;then the following procedure can start&lt;BR /&gt;a telnet session without needing a password...&lt;BR /&gt;&lt;BR /&gt;$ type TEST_TELNET.COM&lt;BR /&gt;$ assign/user sys$command sys$input&lt;BR /&gt;$ SET HOST/RLOGIN/USERNAME=CAYEMBERG localhost&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;$ @TEST_TELNET.COM&lt;BR /&gt;[TNDRIVER: Proxy login for user "cayemberg" in progress ...]&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;This will also work with proxies defined &lt;BR /&gt;on other systems. However the proxy does&lt;BR /&gt;not work with TELNET.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;Keith Cayemberg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Feb 2004 14:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193257#M1196</guid>
      <dc:creator>Keith Cayemberg</dc:creator>
      <dc:date>2004-02-16T14:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST/TELNET 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193258#M1197</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;  The SET HOST command is an anomoly in input processing, it checks the SYS$INPUT stream for a username and/or password, which (if found) is passed to the remote host. It then switches the input stream over to SYS$COMMAND. This requires some fairly ugly input processing hackery and also a protocol that has a mechanism for passing username/password. Also note that you cannot "script" a set host session because you can't control where the input comes from.&lt;BR /&gt;&lt;BR /&gt;  Telnet and SET HOST/TELNET behave more like "normal" DCL commands in terms of input handling. The Telnet protocol itself has no mechanism for passing a username/password, but rlogin does, as Keith has explained&lt;BR /&gt;&lt;BR /&gt;(though one thing I would change in Keith's code is the use of "ASSIGN". ASSIGN was made obselete back in VMS V4.0, replaced with DEFINE. ASSIGN has several limitations and syntactic peculiarities and so should be avoided. Please use DEFINE instead:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$INPUT SYS$COMMAND&lt;BR /&gt;$ SET HOST/RLOGIN/USERNAME=CAYEMBERG localhost&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2004 16:59:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-telnet-0/m-p/3193258#M1197</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-02-18T16:59:16Z</dc:date>
    </item>
  </channel>
</rss>

