<?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 cannot execute dos cmds via TEXTCONS of iLO3 using expect+ssh session in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/cannot-execute-dos-cmds-via-textcons-of-ilo3-using-expect-ssh/m-p/4792584#M5851</link>
    <description>&lt;!--!*#--&gt;I am not able to send any dos commands via TEXTCONS on iLO3 via expect session.&lt;BR /&gt;&lt;BR /&gt;I am able to grab the TEXTCONS, but after this I am not able to execute any dos commands.&lt;BR /&gt;I tried all combinations or "\r\n".&lt;BR /&gt;&lt;BR /&gt;I am trying to do below from my expect script:&lt;BR /&gt;1) ssh to iLO3 using credentials&lt;BR /&gt;2) grab TEXTCONS&lt;BR /&gt;NOTE: The system is already booted using DOS USB key&lt;BR /&gt;3) I could see c:\&amp;gt; but I am not able to execute any dos commands there after.&lt;BR /&gt;&lt;BR /&gt;Any solutions ? &lt;BR /&gt;</description>
    <pubDate>Thu, 26 May 2011 18:59:49 GMT</pubDate>
    <dc:creator>ParagM</dc:creator>
    <dc:date>2011-05-26T18:59:49Z</dc:date>
    <item>
      <title>cannot execute dos cmds via TEXTCONS of iLO3 using expect+ssh session</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/cannot-execute-dos-cmds-via-textcons-of-ilo3-using-expect-ssh/m-p/4792584#M5851</link>
      <description>&lt;!--!*#--&gt;I am not able to send any dos commands via TEXTCONS on iLO3 via expect session.&lt;BR /&gt;&lt;BR /&gt;I am able to grab the TEXTCONS, but after this I am not able to execute any dos commands.&lt;BR /&gt;I tried all combinations or "\r\n".&lt;BR /&gt;&lt;BR /&gt;I am trying to do below from my expect script:&lt;BR /&gt;1) ssh to iLO3 using credentials&lt;BR /&gt;2) grab TEXTCONS&lt;BR /&gt;NOTE: The system is already booted using DOS USB key&lt;BR /&gt;3) I could see c:\&amp;gt; but I am not able to execute any dos commands there after.&lt;BR /&gt;&lt;BR /&gt;Any solutions ? &lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2011 18:59:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/cannot-execute-dos-cmds-via-textcons-of-ilo3-using-expect-ssh/m-p/4792584#M5851</guid>
      <dc:creator>ParagM</dc:creator>
      <dc:date>2011-05-26T18:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: cannot execute dos cmds via TEXTCONS of iLO3 using expect+ssh session</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/cannot-execute-dos-cmds-via-textcons-of-ilo3-using-expect-ssh/m-p/6976006#M7911</link>
      <description>&lt;P&gt;Reply originally by &lt;SPAN class="UserName lia-user-name lia-user-rank-New-Member- lia-component-message-view-widget-author-username"&gt;&lt;A href="https://community.saas.hpe.com/t5/user/viewprofilepage/user-id/167309" target="_self"&gt;&lt;SPAN class=""&gt;Chris White&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #000000; font-family: 'Metric Medium', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;Albeit 6 years later - here's how i managed to resolve this issue (against a REDHAT 6 machine). The key being you need to emulate a human typing (i.e slower keystrokes than the default):&lt;/P&gt;&lt;PRE&gt;set timeout 20

spawn ssh user@remoteconsole.server.com

sleep 1
expect "user"
send "password\r"

sleep 1
expect "hpiLO"
send "TEXTCONS\r"

sleep 5
# Emulate human typing
set send_human {.1 .3 1 .05 2}
send -h "command here\r\n"

exit 0&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 00:47:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/cannot-execute-dos-cmds-via-textcons-of-ilo3-using-expect-ssh/m-p/6976006#M7911</guid>
      <dc:creator>Unlisted</dc:creator>
      <dc:date>2017-09-08T00:47:15Z</dc:date>
    </item>
  </channel>
</rss>

