<?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 from NClass to router and execute script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632433#M41568</link>
    <description>I need to telnet from my NClass to a router, login, execute a few commands, and exit.  I can connect to the router via IP but it seems that I lose control of the session at that point.  No line in my script beyond the telnet IP command executes.  When the password times out and control returns to the NClass, the rest of the script executes.  This is the sequence of my script.  &lt;BR /&gt;&lt;BR /&gt;telnet IP address&lt;BR /&gt;password&lt;BR /&gt;router name&amp;gt; en&lt;BR /&gt;password&lt;BR /&gt;command1&lt;BR /&gt;command2&lt;BR /&gt;command3&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;How do I get the rest of my script to actually execute on the router?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help.&lt;BR /&gt;&lt;BR /&gt;Robb</description>
    <pubDate>Tue, 18 Dec 2001 15:32:59 GMT</pubDate>
    <dc:creator>Robb Bailey</dc:creator>
    <dc:date>2001-12-18T15:32:59Z</dc:date>
    <item>
      <title>Telnet from NClass to router and execute script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632433#M41568</link>
      <description>I need to telnet from my NClass to a router, login, execute a few commands, and exit.  I can connect to the router via IP but it seems that I lose control of the session at that point.  No line in my script beyond the telnet IP command executes.  When the password times out and control returns to the NClass, the rest of the script executes.  This is the sequence of my script.  &lt;BR /&gt;&lt;BR /&gt;telnet IP address&lt;BR /&gt;password&lt;BR /&gt;router name&amp;gt; en&lt;BR /&gt;password&lt;BR /&gt;command1&lt;BR /&gt;command2&lt;BR /&gt;command3&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;How do I get the rest of my script to actually execute on the router?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help.&lt;BR /&gt;&lt;BR /&gt;Robb</description>
      <pubDate>Tue, 18 Dec 2001 15:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632433#M41568</guid>
      <dc:creator>Robb Bailey</dc:creator>
      <dc:date>2001-12-18T15:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet from NClass to router and execute script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632434#M41569</link>
      <description>Get "expect" and "tcl/tkl".&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.asknet.de/hppd/hpux/Tcl/expect-5.33/" target="_blank"&gt;http://hpux.asknet.de/hppd/hpux/Tcl/expect-5.33/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.asknet.de/hppd/hpux/Tcl/tcl-8.2.1/" target="_blank"&gt;http://hpux.asknet.de/hppd/hpux/Tcl/tcl-8.2.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.asknet.de/hppd/hpux/Tcl/tk-8.2.1/" target="_blank"&gt;http://hpux.asknet.de/hppd/hpux/Tcl/tk-8.2.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 18 Dec 2001 15:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632434#M41569</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-12-18T15:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet from NClass to router and execute script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632435#M41570</link>
      <description>Hi Robb,&lt;BR /&gt;&lt;BR /&gt;We had a discussion on this sometime back. I would suggest to use expect/TCL-TK as non-interactive telnet is not very reliable due to timing issues.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x54e2c6af36b7d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x54e2c6af36b7d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It's not very difficult to write an expect script. There are plenty of examples the come with it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.31/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.31/&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt;Check out the dependencies. You need to download TCL/TK also.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Dec 2001 15:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632435#M41570</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-12-18T15:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet from NClass to router and execute script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632436#M41571</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try using 'expect'&lt;BR /&gt;You can download it from here..&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.31/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.31/&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 18 Dec 2001 15:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-from-nclass-to-router-and-execute-script/m-p/2632436#M41571</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-12-18T15:40:31Z</dc:date>
    </item>
  </channel>
</rss>

