<?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: Raid Manager problem with a script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301879#M34368</link>
    <description>&lt;!--!*#--&gt;I think I have found a workaround for this script to work properly under Linux&lt;BR /&gt;&lt;BR /&gt;function instance_running&lt;BR /&gt;#&lt;BR /&gt;# Verify if the specified instance is running&lt;BR /&gt;# Returns 0 if it is, 1 if it isn't&lt;BR /&gt;#&lt;BR /&gt;# The instance to test must be passed as the first&lt;BR /&gt;# parameter&lt;BR /&gt;#&lt;BR /&gt;{&lt;BR /&gt;        INSTANCE=$1&lt;BR /&gt;        for wInstance in $( running_instances )&lt;BR /&gt;        do&lt;BR /&gt;&lt;BR /&gt;                if [[ $INSTANCE -eq $wInstance ]]&lt;BR /&gt;                then&lt;BR /&gt;                        # Check if socket file is there&lt;BR /&gt;                                               if [ 'ps -ef | grep horcmd_${wInstance}' ]&lt;BR /&gt;                        then&lt;BR /&gt;                                return 0&lt;BR /&gt;                        else&lt;BR /&gt;                                return 2&lt;BR /&gt;                        fi&lt;BR /&gt;                fi&lt;BR /&gt;        done&lt;BR /&gt;        return 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I changed the line to check if the process is running. Simple... but effective.&lt;BR /&gt;&lt;BR /&gt; if [ 'ps -ef | grep horcmd_${wInstance}' ]&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Nov 2008 15:38:31 GMT</pubDate>
    <dc:creator>Jean-Marc Beaudoin_1</dc:creator>
    <dc:date>2008-11-07T15:38:31Z</dc:date>
    <item>
      <title>Raid Manager problem with a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301876#M34365</link>
      <description>&lt;!--!*#--&gt;Good day,&lt;BR /&gt;&lt;BR /&gt;I have a script (which works very fine under HP-UX 11.110 that I want to make it work under&lt;BR /&gt;Suse Linux Enterprise Server 10 SP2.&lt;BR /&gt;&lt;BR /&gt;In one of the script, there is a function&lt;BR /&gt;&lt;BR /&gt;function instance_running&lt;BR /&gt;#&lt;BR /&gt;# Verify if the specified instance is running&lt;BR /&gt;# Returns 0 if it is, 1 if it isn't&lt;BR /&gt;#&lt;BR /&gt;# The instance to test must be passed as the first&lt;BR /&gt;# parameter&lt;BR /&gt;#&lt;BR /&gt;{&lt;BR /&gt;        INSTANCE=$1&lt;BR /&gt;        for wInstance in $( running_instances )&lt;BR /&gt;        do&lt;BR /&gt;&lt;BR /&gt;                if [[ $INSTANCE -eq $wInstance ]]&lt;BR /&gt;                then&lt;BR /&gt;                        # Check if socket file is there&lt;BR /&gt;                        if [ -S /var/tmp/.lcmep0${wInstance} ]&lt;BR /&gt;                        then&lt;BR /&gt;                                return 0&lt;BR /&gt;                        else&lt;BR /&gt;                                return 2&lt;BR /&gt;                        fi&lt;BR /&gt;                fi&lt;BR /&gt;        done&lt;BR /&gt;        return 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The problem is that there is no such thing as /var/tmp/.lcmep0 under Linux.&lt;BR /&gt;&lt;BR /&gt;Does someone knows a workaround for this ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2008 18:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301876#M34365</guid>
      <dc:creator>Jean-Marc Beaudoin_1</dc:creator>
      <dc:date>2008-11-06T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Raid Manager problem with a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301877#M34366</link>
      <description>The /var/tmp/.lcmep0 file should be created by a service/daemon. Â¿What do you want to check? Â¿An instance of what?</description>
      <pubDate>Thu, 06 Nov 2008 21:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301877#M34366</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-11-06T21:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Raid Manager problem with a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301878#M34367</link>
      <description>&lt;!--!*#--&gt;We are porting some stuff from HP-UX to Linux (Suse).&lt;BR /&gt;&lt;BR /&gt;This script (called from another) is checking if the horcm instance is running or not and do proper action.&lt;BR /&gt;&lt;BR /&gt;This function checks for the existence of the /var/tmp/.lcmdp0*. If not, it is supposed to start the horcm instance.&lt;BR /&gt;&lt;BR /&gt;Under HP-UX this works fine. Under Linux, it seems that horcm uses something else since the /var/tmp/.lcmdp0 does not exists.&lt;BR /&gt;&lt;BR /&gt;I need a workaround or know what Linux uses.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2008 13:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301878#M34367</guid>
      <dc:creator>Jean-Marc Beaudoin_1</dc:creator>
      <dc:date>2008-11-07T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Raid Manager problem with a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301879#M34368</link>
      <description>&lt;!--!*#--&gt;I think I have found a workaround for this script to work properly under Linux&lt;BR /&gt;&lt;BR /&gt;function instance_running&lt;BR /&gt;#&lt;BR /&gt;# Verify if the specified instance is running&lt;BR /&gt;# Returns 0 if it is, 1 if it isn't&lt;BR /&gt;#&lt;BR /&gt;# The instance to test must be passed as the first&lt;BR /&gt;# parameter&lt;BR /&gt;#&lt;BR /&gt;{&lt;BR /&gt;        INSTANCE=$1&lt;BR /&gt;        for wInstance in $( running_instances )&lt;BR /&gt;        do&lt;BR /&gt;&lt;BR /&gt;                if [[ $INSTANCE -eq $wInstance ]]&lt;BR /&gt;                then&lt;BR /&gt;                        # Check if socket file is there&lt;BR /&gt;                                               if [ 'ps -ef | grep horcmd_${wInstance}' ]&lt;BR /&gt;                        then&lt;BR /&gt;                                return 0&lt;BR /&gt;                        else&lt;BR /&gt;                                return 2&lt;BR /&gt;                        fi&lt;BR /&gt;                fi&lt;BR /&gt;        done&lt;BR /&gt;        return 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I changed the line to check if the process is running. Simple... but effective.&lt;BR /&gt;&lt;BR /&gt; if [ 'ps -ef | grep horcmd_${wInstance}' ]&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2008 15:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raid-manager-problem-with-a-script/m-p/4301879#M34368</guid>
      <dc:creator>Jean-Marc Beaudoin_1</dc:creator>
      <dc:date>2008-11-07T15:38:31Z</dc:date>
    </item>
  </channel>
</rss>

