<?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: SSH Issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386848#M349664</link>
    <description>Looks like you dint get me what I am saying, of course I dont need to provde password for most of them, better to say almost all of them but I am just thinking about the rare situation and very few servers,&lt;BR /&gt;I dont want my program to stuck asking for password, instead skil the servers which ask for password and put that servers name in a file so that I can trace later on.&lt;BR /&gt;&lt;BR /&gt;Problem can be if the name of the server is not valid, then wont ask for password and stuck but says &lt;BR /&gt;&lt;BR /&gt;ssh: Could not resolve hostname bhtokan: host nor service provided, or not known&lt;BR /&gt;&lt;BR /&gt;I think its clear now.&lt;BR /&gt;I am talking about two situations &lt;BR /&gt;-----one ssh is not setup for certain servers and&lt;BR /&gt;------another invalid servername</description>
    <pubDate>Tue, 24 Mar 2009 15:11:24 GMT</pubDate>
    <dc:creator>pareshan</dc:creator>
    <dc:date>2009-03-24T15:11:24Z</dc:date>
    <item>
      <title>SSH Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386844#M349660</link>
      <description>I am wondering if there is any exception Handling in korn shell. I have one situation here, this is realted to my previous thread little bit if anybody who have gone through that.&lt;BR /&gt;I have big list of servers and I have to loop through all the servers and extract some data needed, everything else is working fine but &lt;BR /&gt;&lt;BR /&gt;When i do&lt;BR /&gt;___________&lt;BR /&gt;ssh $i "some commands"  #$i=server_name&lt;BR /&gt;it ask for password for some of the servers out of many&lt;BR /&gt;______________&lt;BR /&gt;I do understand, some of the servers from the list may not be valid or some of the servers many not have ssh set up for my account or any account&lt;BR /&gt;________&lt;BR /&gt;but how can i skip those situations because my program just stuck asking for password. I want if that happens then go for the next server in the list and put the name of those not working ones in some other text file or log file.&lt;BR /&gt;Here the code I have&lt;BR /&gt;_______________&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;req_info()&lt;BR /&gt;{&lt;BR /&gt;for i in  ` cat server_list_old`&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;if [ $i = "bhpflp1a" ]&lt;BR /&gt;then&lt;BR /&gt;  continue&lt;BR /&gt;fi&lt;BR /&gt;ssh $i  grep $i /usr/local/syncsort_3.4/license.dat  &amp;gt; tmp1&lt;BR /&gt;if [ $? = 0 ]&lt;BR /&gt;then&lt;BR /&gt;ssh $i "cd /usr/local/syncsort_3.4/bin/;./sysenv|grep CPUs"&amp;gt;tmp2&lt;BR /&gt;echo $i ` awk '{print $4, $5}' tmp1`  permanent `awk '{print $1,$2,$3,$4,$5}' tmp2`| tee -a result&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;ssh $i "cd /usr/local/syncsort_3.4/bin/;./sysenv|grep CPUs"&amp;gt;&amp;gt;tmp2&lt;BR /&gt;ssh $i grep SyncSort /usr/local/syncsort_3.4/license.dat  &amp;gt; tmp1&lt;BR /&gt;echo $i `awk '{print $4, $5}' tmp1`  temporary `awk '{print $1,$2,$3,$4,$5}' tmp2`| tee -a result&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;rm -f tmp2 tmp1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;req_info&lt;BR /&gt;__________________&lt;BR /&gt;Here, you can see I can skip the servers if I know in advance but I wont know in the beginning for most of the case, situation can be like the working server may have some problems sometime and ask for password also. Just trying to handle the situation.&lt;BR /&gt;&lt;BR /&gt;Any Idea Plz&lt;BR /&gt;Thank You,&lt;BR /&gt;Any Help will be appreciated&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 14:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386844#M349660</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-03-24T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386845#M349661</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You should enable passwordless login for your account in all the servers to use script to execute some commands on remote servers.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386845#M349661</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-24T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386846#M349662</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are many threads available here on ssh password less login. you can search with ssh passwordless keywords.&lt;BR /&gt;&lt;BR /&gt;One among is&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1221495337406+28353475&amp;amp;threadId=1223480" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1221495337406+28353475&amp;amp;threadId=1223480&lt;/A&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386846#M349662</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-24T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386847#M349663</link>
      <description>check out this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html" target="_blank"&gt;http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for passwordless login</description>
      <pubDate>Tue, 24 Mar 2009 15:05:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386847#M349663</guid>
      <dc:creator>Roman Schmidt</dc:creator>
      <dc:date>2009-03-24T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386848#M349664</link>
      <description>Looks like you dint get me what I am saying, of course I dont need to provde password for most of them, better to say almost all of them but I am just thinking about the rare situation and very few servers,&lt;BR /&gt;I dont want my program to stuck asking for password, instead skil the servers which ask for password and put that servers name in a file so that I can trace later on.&lt;BR /&gt;&lt;BR /&gt;Problem can be if the name of the server is not valid, then wont ask for password and stuck but says &lt;BR /&gt;&lt;BR /&gt;ssh: Could not resolve hostname bhtokan: host nor service provided, or not known&lt;BR /&gt;&lt;BR /&gt;I think its clear now.&lt;BR /&gt;I am talking about two situations &lt;BR /&gt;-----one ssh is not setup for certain servers and&lt;BR /&gt;------another invalid servername</description>
      <pubDate>Tue, 24 Mar 2009 15:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386848#M349664</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-03-24T15:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386849#M349665</link>
      <description>Use the BatchMode option to suppress password prompts, "ssh -o 'BatchMode yes'". Any server that needs a password will simply fail.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 19:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-issue/m-p/4386849#M349665</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-03-24T19:15:48Z</dc:date>
    </item>
  </channel>
</rss>

