<?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: Remsh not working for specific commands. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596772#M532133</link>
    <description>&amp;gt;host2DC2# remsh host1DC1 grep -i Rebooting /tmp/DR.log&lt;BR /&gt;&amp;gt;host3DC1# remsh host4DC2 grep -i Rebooting /tmp/DR.log&lt;BR /&gt;&lt;BR /&gt;Is the prompt an indication of a different "from" machine?&lt;BR /&gt;I was thinking it depended on source and target but your date(1) example seems to match a hang above.&lt;BR /&gt;Can you rlogin to the hung machine and see what that remsh process is doing?  Is it doing a grep or hasn't logged in yet?</description>
    <pubDate>Mon, 08 Mar 2010 20:41:50 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-03-08T20:41:50Z</dc:date>
    <item>
      <title>Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596768#M532129</link>
      <description>I have a strange issue with remsh commands in  my HPUX servers with OS version 11.11 .&lt;BR /&gt;&lt;BR /&gt;I have set up of sevrers with  running remote shell commands between HPUX  servers at three diffrent Datacenters. I am suddenly started facing some issues with remsh commands between two datacenters.&lt;BR /&gt;Below command get stucked and never comes out.&lt;BR /&gt;&lt;BR /&gt;host2DC2# remsh host1DC1  grep -i  Rebooting /tmp/DR.log&lt;BR /&gt;&lt;BR /&gt;Also &lt;BR /&gt;host3DC1#remsh host4DC2  grep -i  Rebooting /tmp/DR.log&lt;BR /&gt;&lt;BR /&gt;Above comandsThese never comes out .&lt;BR /&gt;Not all remsh commands gets hanged , for example host3DC1#remsh host4DC2  date &lt;BR /&gt;works fine.&lt;BR /&gt;All servers in three servers are in same domain.&lt;BR /&gt;Another thing to point is the servers which shows this issue not showing any issue with third datacenter servers. There I get proper results.&lt;BR /&gt;The issue due to this is multiple important  scripts get hunged and that  creates production issues.&lt;BR /&gt;&lt;BR /&gt;I would request any one please help me on this ??</description>
      <pubDate>Mon, 08 Mar 2010 14:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596768#M532129</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-08T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596769#M532130</link>
      <description>Try &lt;BR /&gt;&lt;BR /&gt;remsh host1DC1 -n "grep -i Rebooting /tmp/DR.log"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 08 Mar 2010 14:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596769#M532130</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-03-08T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596770#M532131</link>
      <description>same result , never get a output.</description>
      <pubDate>Mon, 08 Mar 2010 17:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596770#M532131</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-08T17:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596771#M532132</link>
      <description>Bonsoir,&lt;BR /&gt;&lt;BR /&gt;You said "Below command get stucked and never comes out". Really never comes out, or just times out ?&lt;BR /&gt;&lt;BR /&gt;I mean do you have, after a significant timeout, an error message like "rcmd_af: connect: 10.1.25.12: Connection timed out" ?&lt;BR /&gt;&lt;BR /&gt;If so, maybe you have some routing issues between hosts, or maybe the target hosts is simply down at the moment you do the remsh ? Afterall your are looking for word Rebooting ...&lt;BR /&gt;&lt;BR /&gt;HTH &lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Mon, 08 Mar 2010 17:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596771#M532132</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2010-03-08T17:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596772#M532133</link>
      <description>&amp;gt;host2DC2# remsh host1DC1 grep -i Rebooting /tmp/DR.log&lt;BR /&gt;&amp;gt;host3DC1# remsh host4DC2 grep -i Rebooting /tmp/DR.log&lt;BR /&gt;&lt;BR /&gt;Is the prompt an indication of a different "from" machine?&lt;BR /&gt;I was thinking it depended on source and target but your date(1) example seems to match a hang above.&lt;BR /&gt;Can you rlogin to the hung machine and see what that remsh process is doing?  Is it doing a grep or hasn't logged in yet?</description>
      <pubDate>Mon, 08 Mar 2010 20:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596772#M532133</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-08T20:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596773#M532134</link>
      <description>The system name before # is just a example to show the datacenter.&lt;BR /&gt;&lt;BR /&gt;The date commend never gets hanged . What I am seeing is if the data out put is large it gets hanged. For example if I do a grep command to file with smaller in size , I get repply. Also if there is no out put still no issues , it just comes out with no out put. &lt;BR /&gt;It is something depends on commnad out put  data size.&lt;BR /&gt;Below commands will never stuck .&lt;BR /&gt;#remsh host1DC1 date &lt;BR /&gt;#remsh host1DC1 grep ABDFCD /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;But the below commnads will hang.&lt;BR /&gt;#remsh host1DC1 grep -i vmunix /var/adm/syslog/syslog.log &lt;BR /&gt;&lt;BR /&gt;Above command a lot to report , so it will never come out. I waited for more than 2 hours in one session . &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Mar 2010 09:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596773#M532134</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-09T09:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596774#M532135</link>
      <description>Can anyone please help me on this ?</description>
      <pubDate>Wed, 10 Mar 2010 16:49:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596774#M532135</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-10T16:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596775#M532136</link>
      <description>&amp;gt;Can anyone please help me on this?&lt;BR /&gt;&lt;BR /&gt;Other than making sure your patches are up to date with swa or contacting the Response Center, you could try sending the output to a remote file then use rcp/ftp/scp to copy it back?&lt;BR /&gt;&lt;BR /&gt;Does ssh work?</description>
      <pubDate>Wed, 10 Mar 2010 17:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596775#M532136</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-10T17:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596776#M532137</link>
      <description>ssh and ftp works ok for smaller and larger files.</description>
      <pubDate>Wed, 10 Mar 2010 17:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596776#M532137</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-10T17:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596777#M532138</link>
      <description>I have struggled for long periods with 'remsh' as you are now.  And can provide two important words of advice:&lt;BR /&gt;&lt;BR /&gt;a) 'remsh' is executed in the default login.  So if you have 'sh' on server one, and 'ksh' on server two, and your script calls #!/usr/bin/ksh, then you're going to see the env change on server 1, the server using the /usr/bin/sh env.&lt;BR /&gt;&lt;BR /&gt;b) PATH's are not always up to date.  Give the full path for every command.  So grep becomes /usr/bin/grep.&lt;BR /&gt;&lt;BR /&gt;c)  unquoted commands are executed on the local host.&lt;BR /&gt;&lt;BR /&gt;d) quoted commands are executed on the remote host &lt;BR /&gt;&lt;BR /&gt;For example&lt;BR /&gt;&lt;BR /&gt;remsh host1 -n "grep -i patten file", will give you a different output from&lt;BR /&gt;&lt;BR /&gt;remsh host1 -n "cat file" | grep -i pattern&lt;BR /&gt;&lt;BR /&gt;This is because ...grep -i pattern... is executed on the local box, while "cat file" is executed on the remote box.</description>
      <pubDate>Wed, 10 Mar 2010 18:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596777#M532138</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-10T18:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596778#M532139</link>
      <description>I have same result for both options of grep.&lt;BR /&gt;&lt;BR /&gt;The rcp is working fine if file size is too small in KBs. If it above 1 - 2 MB it hangs.&lt;BR /&gt;&lt;BR /&gt;remsh working fine if the data  to report back is less. Also no issues if no data found to report . The moment when the out put increses the remsh gets hanged.&lt;BR /&gt;&lt;BR /&gt;Like &lt;BR /&gt;remsh host1 grep -i "123445656" /var/adm/syslog/syslog.log will come out with out any issue as it has nothing to report.&lt;BR /&gt;but&lt;BR /&gt;remsh host1 grep -i "vmunix" /var/adm/syslog/syslog.log will hang.</description>
      <pubDate>Wed, 10 Mar 2010 19:10:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596778#M532139</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-10T19:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596779#M532140</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;And you have neither read my response nor the man pages, again, quotes are for remote server execute, while the absence of quotes are for local execution.&lt;BR /&gt;&lt;BR /&gt;remsh host1 grep -i "vmunix" /var/adm/syslog/syslog.log will hang.&lt;BR /&gt;&lt;BR /&gt;This means nothing.  It is nonesense.  Try either&lt;BR /&gt;&lt;BR /&gt;remsh host1 "cat /var/adm/syslog.log" | grep -i vmunix&lt;BR /&gt;&lt;BR /&gt;-or-&lt;BR /&gt;&lt;BR /&gt;remsh host1 "/usr/bin/grep -i \"vmunix\" \/var\/adm\/syslog\/syslog.log"&lt;BR /&gt;&lt;BR /&gt;You're going to have to review the discussion on metacharacter expansion paying particular attention to the back slash meta char. "\".</description>
      <pubDate>Wed, 10 Mar 2010 19:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596779#M532140</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-10T19:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596780#M532141</link>
      <description>I tried grep command the way you mentioned but that also getting hanged.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2010 05:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596780#M532141</guid>
      <dc:creator>Sudheesh Varma VK</dc:creator>
      <dc:date>2010-03-11T05:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remsh not working for specific commands.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596781#M532142</link>
      <description>&amp;gt;Michael: while the absence of quotes are for local execution.&lt;BR /&gt;&lt;BR /&gt;Not always.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;remsh host1 grep -i "vmunix" /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;This syntax works fine for me, the grep is executed on host1.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;remsh host1 "cat /var/adm/syslog.log" | grep -i vmunix&lt;BR /&gt;&lt;BR /&gt;This also works, but you are making the network sweat by piping ALL of syslog.log back and then doing the grep.  (Not to mention the evil cat. ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;remsh host1 "/usr/bin/grep -i \"vmunix\" \/var\/adm\/syslog\/syslog.log"&lt;BR /&gt;&lt;BR /&gt;This also works, but you don't need to quote a "/".&lt;BR /&gt;&lt;BR /&gt;But your point is well taken, you need to be careful of about quoting the remsh command, especially if it includes ";", "&amp;gt;", "&amp;lt;", or "|".</description>
      <pubDate>Thu, 11 Mar 2010 06:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-working-for-specific-commands/m-p/4596781#M532142</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-11T06:05:30Z</dc:date>
    </item>
  </channel>
</rss>

