How to run the Start_Script outside the cluster

Hi
We have a 3 node cluster and we have 4 RG created. All is working fine.
In the situation , where the appliaction stops for some reason , I have created the probe script to only page the team and not do anything else. The probe script is always returning 0.
Also , I have suppresed the PMF monitoring as described by http://blogs.sun.com/TF/entry/disabling_pmf_action_script_with
This is the start of my start script
=====================================
#!/bin/ksh
while getopts 'R:G:' opt
do
case "${opt}" in
R) RESOURCE=${OPTARG};;
G) RESOURCEGROUP=${OPTARG};;
esac
done
sleep 60 &
/usr/cluster/bin/pmfadm -s ${RESOURCEGROUP},${RESOURCE},0.svc
[...rest of your code to start the application...]
===============================================
The reason , we did this way is because
1>When the application daemon goes down , only the master process goes down , all the child process are still up and running . The child process do not need the main daemon as long as they are UP. They only need main daemon if they need to restart.
2>If we go by complete restart of the Resource , it will kill all the child process before starting them. This can be cause of concern for us since restarting of the child process required vendor interaction attimes as most of them are TCPIP connections with various applications(We are interface engine shop)
3>However, We can just start the main daemon only and all the previous child process can connect back to it.
Question is how? I tried starting the Start script outside the cluster by passing the parameters of Resource and RG , but it threw this error
"pmfadm: ",,0.svc" No such <nametag> registered" , and I think this is because Iam running it outside the cluster as they do not have access to pmadm process. However, it starts the daemon , but I do not know if that will start PMF monitoring
4>So , how can I start the process outside the cluster
5>Also ,if I start the process outside the cluster , will it start the PMF monitoring
thanks
Dajiba
Edited by: Cluster_newbie on Jul 29, 2008 11:06 AM
Edited by: Cluster_newbie on Jul 29, 2008 11:08 AM

thanks for the answer , Thats good then. Ok , now why I need to run it outside the SC
1>Ours is a Egate envirnoment and the process that gets started by my START_SCRIPT is a boot strap kind of a daemon process. This process in turn launches multiple TCPIP , ODBC , FTP process and they run independently once they are launched.
2>The daemon process is what we are doing a probe on. This daemon process sometimes can go down and more or less it is normal , however the child process still continues to run. In non cluster envirnoment , we just start the daemon again and all works fine
3>However, if I take a restart option from Cluster when the daemon dies , It will first STOP the data service(stop all the child process) , then start it . My requirement is that I should NOT stop the Dataservice because stoping the DS will result in killing of child processes too My requirement is just to launch the START_SCRIPT so that only daemon is started. If the child process are still running , the daemon will not launch any duplicate child processes
I can make Stop script more intellegent , but it is very difficult to know in what situation the Stop was called from. If I know it was from RESTART option , I can then ignore killing the child process. But I guess it is very difficult to know
4>So , I thought , if the Daemon goes down , I will start the daemon outside the SC and my probe script will still do its job . I have anyway disabled the PMF monitoring , so I do not care about the PMF
does it make sense?
Do you know any other way of starting the start_script withing SC , without doing shutdown and start
thanks
Dajiba

Similar Messages

  • How to run two query  in the same preparedStatement

    Hi all,
    Please tell me how to run two queries in the same preparedStatement object ?
    In my module I have to run two queries and I don't want to make two methods for running two different queries.
    I just want to call this method for both of my queries.
    methodName(long param)
    Connection conn=null;
    PreparedStatement pstmt=null;
    //////////////// some coding
    Please Help !
    Thanks in advance
    amitindia

        public void foo()
            Connection connection = null;
            PreparedStatement stmt = null;
            try {
                connection = ...get from pool...;
                stmt = connection.prepareStatement("...");
                ...fetch results...;
                stmt.close();
                stmt = null; // So the finally statement works if there is an exception
                stmt = connection.prepareStatement("...");
                ...fetch results...;
            } finally {
                if (stmt != null) ..close it...;
                if (connection != null) ..return it to pool...;
        }

  • How to run hardware diagnostic with the help of terminal?

    how to run hardware diagnostic with the help of terminal? any cmds

    Macs newer than 10.7's release just need to boot with the 'D' key.  
    Otherwise you need to find the original installer disk of the Mac, or call AppleCare for it to be able to run the hardware diagnostic.

  • Fiscal year in the columns outside the key figure structure

    Dear Experts
    I have a report requirement to show the keyfigures in the columns from year 1 to year 10 and in each year there are 4 keyfigures each restricted to 1 quarter for 4 quarters.
    So, there are too many keyfigures to create.
    I am using fiscal year in the columns outside the Key figure structure containing the keyfigures restricted at each of 4 quarters.
    So, when the report displays, all the 10 years will automatically be displayed.
    The problem is one of the 4 quarter level keyfigures needs to be restricted by calendar year.
    How can I read what is the fiscal year for each column at runtime so that I can reference this value to determine the calendar year ?
    As you know, each FY spans 2 Calendar Years. So, i need to restrict this on the 4th keyfigure by calendar year but while having the FY outside the keyfigure structure i can get all the FY, I am not sure how to access this value at runtime so that eg.
    if FY for column 1 is 2010, i can set calendar year to be 2010 to 2011.
    Hope you can give me some clues.
    Thanks you Gurus!
    Best regards
    John

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

  • While trying to send a message to the receipient outside the domain...

    While trying to send a message to the receipient outside the domain,the server
    sends back the delivery error email message to the sender. this is OK. But for
    some reason the the mail server keeps searching for the wrong recepient and
    sending back the deleivery error email to the sender periodically. In this way,
    it has sent around 450 such messages to my mailbox.
    the mail delivery error looks like this :
    451.. Name Server timeout while searching a.com in DN
    Reporting -MTA;: dns; s-ghq-csc-ocsapp1.tawasul.mil.ae
    Received -From-MTA:DNS;w-anh-sic-004.ANH.mil.ae
    Final Recepient:RFC822; [email protected]
    ACtion: Failed
    Remote-MTA:DNS; a.com
    Diagnostic-Code:SMTP;451... Name server timeout while searching a.com in DNS
    Last-Attempt-Date:Tue, 18Feb 2003 08:34:38 =0000
    solution ???

    Hi,
    This is apparently the week for integration questions!
    There's no such product as "WebLogic MQ". I assume that what your trying to do is communicate with MQSeries or some other non-WebLogic vendor.
    You cannot use a WebLogic client to communicate with MQ or vice-versa. You must create an MQ client using a MQ JMS connection factory in order to communicate with an MQ destination. Similarly, you must create a WL client using a WL connection factory in order to communicate with a WL destination. This advice applies to any JMS vendor, and is quite similar to the way JDBC drivers work.
    Note that if you're communicating with MQ from a client rather than an application that's running on a WebLogic server, then there's often little purpose in using the "Foreign JMS" mapping facilities (in addition, these facilities may not work on the client for all foreign vendors -- I assume it depends on whether the foreign vendor connection factories and destinations are fully serializable/transferable between JVMs). Instead, you might want to consider using the standard JNDI and JMS APIs to communicate with MQ directly (eg, there's no need to involve WebLogic code in this case).
    For information on integration, see the WebLogic doc for [ Integrating Remote JMS Providers | http://download.oracle.com/docs/cd/E12839_01/web.1111/e13727/interop.htm#JMSPG553 ] and, if the "MQ" your refering to in this case happens to be MQSeries, also see the blog post [Integrating WebSphere MQ 6 with BEA Weblogic Server 10|http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html].
    Note that the majority of MQSeries integration customer apps that I've run across require "exactly-once" behavior, which means they must run on a WebLogic server (not a client) in order to participate in a WebLogic JTA transaction.
    Hope this helps,
    Tom

  • I am using Photoshop Elements 11.  Do all .jpg formatted file have to be retangular in shape?  I want to create an oval .jpg picture to insert into a book.  Haven't been able to do so.  It would work if I could make the area outside the oval completely tr

    I am using Photoshop Elements 11.  Do all .jpg formatted file have to be retangular in shape?  I want to create an oval .jpg picture to insert into a book.  Haven't been able to do so.  It would work if I could make the area outside the oval completely transparent.  Can anyone help me here?

    JPG does not support transparency, so even if you create an oval with transparent background, the saved JPG will have white background. Instead, save it as a PNG, TIFF, or GIF which preserve the transparency.
    Here is one of many ways to create your oval:
    Create a new file the approximate size of the oval. Add the oval with the Custom Shape Ellipse tool, and simplify the shape layer.
    In the Layers Palette, Ctrl-click the oval to select it and copy the selection to the clipboard (Edit > Copy).
    Then do File > New from Clipboard. This creates the oval with transparent background cropped to the oval size.
    Then save it as one of the file types that support transparency (and also supported by the application where you are sending the picture to).
    Note:  Is is not even necessary to do step 2. That is only if some reason you want the oval to be tightly cropped. It is sufficient to delete the Background layer in step 1 (or turn off its visibility) and save the file. The oval will appear correctly in the book with either version.

  • My daq 6008 wil not drop the 5V after the VI is stopped, i have a digital signal going from the error out on the daq in the while loop to the error in on the daq outside the while loop and a boolean going to the data of the daq outside

    my daq 6008 wil not drop the 5V on a digital output after the VI is stopped, i have a digital signal going from the error out on the daq in the while loop to the error in on the daq outside the while loop and a boolean going to the data of the daq outside, but i can t seemto get it to work

    i attached the block diagram so you can have a look
    Attachments:
    PID Temp control.docx ‏120 KB

  • I'm creating an array using a for loop, how do I get the values outside the loop while it is running? thanks

    I'm creating a set of values using a for loop and a shift register inside the loop. I want access to these values outside the loop as they are being created inside. When I connect a wire from the shift register to a display outside, it doesn't work. How do I do this? Thank you.
    Attachments:
    tamko_new.vi ‏29 KB

    I tried to create the local variable that was wired to numeric indicator inside the loop. If I try to connect this to the analog output outside the loop, the loop just starts blinking and nothing happens, am I doing something wrong? Thanks again.
    Attachments:
    tamko_new2.vi ‏29 KB

  • How to run python files on the browser?

    Good day,
    I am trying to run any python file on the Leopard web server, accesing it via safari.
    also I have set the permissions of the file to 777...
    then I have copied the file to library/webserver/documents.When I open this file in Safari, the file is listed, but it is not executed.
    also I have copied the file to library/webserver/cgi-executables, but the file is not executed, an error appears:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log
    the python file contains only 2 lines:
    #!/usr/bin/env python
    print 2
    I have tested the file in the command line in the terminal python test.py and it runs fine... but I dont know what should I have to do to run it on the browser...
    I am using python 2.5.2 and leopard 10.5.2
    do I have to enable any mime types for python on leopard client? how to do it?
    have a nice day

    Goto the Install directory on your Oracle installed directory and have a look at the 'readme' file. You will find all the info you wanted.
    Regards.

  • How to run an Applet using the JDK1.3.1 platform?

    I'm a beginner of Java Applet.
    I've type in the sample program provided in the text book, and compiled it using the jdk1.3.1 platform.
    Usually we run a java program using java [filename], right?
    How about running an applet file?
    What is appletviewer function?
    Thanks!

    I try to put it in a HTML page but it required me to download a Java Virtual Machine.
    I've been searching sources for that but stil cannot get.
    This is always what I get:
    [We're sorry, you cannot view this page because it requires the Microsoft Java Virtual Machine (MSJVM). Your machine does not have the MSJVM installed. For more information please visit www.microsoft.com/java.]
    I visit java.sun.com. On the right side of the page listed with the HOT DOWNLOADS.
    I click on the Java VM but still cannot get anything...
    Can u help me on that?
    I've been trying for 2 days already.
    Thanks!

  • How to run another application in the project?

    Well, the title says it all really. I created a new
    application within my existing project but I can't get it to run as
    it always runs my main application (which has a little blue sphere
    on its icon).
    How can I get the other application to test and/or
    run?

    Managing launch configurations
    Launch configurations are used both to run and to debug
    applications. Flex Builder provides a default launch configuration
    for Flex and ActionScript applications. When you first run or debug
    a project, a project-specific launch
    configuration is created. You edit the launch configuration
    to change the default main application file. You can also
    modify the default launch path to run or debug in the
    stand-alone Flash Player rather than in a web browser.
    Creating or editing a launch configuration
    When you create and build a project, it is ready to be run or
    debugged. Both running and debugging of the applica-
    tions in your project are controlled by a launch
    configuration. By default, Flex Builder creates a launch
    configuration for each of the application files in your project the
    first time you run or debug them. The configurations are based on
    the default Flex application configuration, and you can edit them
    as necessary.
    Launch configurations are managed in the Create, Manage, and
    Run Configurations dialog box.
    using_fb_flex3.pdf
    Chapter 11: Running and Debugging Applications

  • How to run Struts program with the help of tomcat

    Hello Everybody
    This is Adesh.I am a newcomer of java and facing a problem with struts, so if any one know how to set the path of struts and how to run struts program, so plz inform me.
    THX in Advance.............................................

    struts-config.xml
    <struts-config>
    <action-mappings>
         <action path  = "/welcome"
                    type  = "Welcome"
                    scope="session">
                <forward name="success" path=".welcome"/>
                <forward name="failure" path=".base.error"/>
         </action>
    </action-mappings>
        <plug-in className="org.apache.struts.tiles.TilesPlugin">
            <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
            <set-property property="definitions-debug" value="1"/>
            <set-property property="definitions-parser-details" value="0"/>
            <set-property property="definitions-parser-validate" value="true"/>
        </plug-in>
    </struts-config>tiles-defs.xml
    <tiles-definitions>
         <definition name = ".base" path = "/include/template.jsp">
              <put name = "title" value = "${title}"/>
              <put name = "header" value = "/include/top.jsp"/>
              <put name = "body" value = "${body}"/>
              <put name = "footer" value = "/include/footer.jsp"/>
         </definition>
    </tiles-definitions>web.xml
    <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
    <init-param>
                <param-name>definitions-config</param-name>
                <param-value>/WEB-INF/tiles-defs.xml</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
    <servlet>
            <servlet-name>init</servlet-name>
            <servlet-class>Init</servlet-class>
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
      <jsp-config>
        <taglib>
            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/wall.tld</taglib-uri>
            <taglib-location>/WEB-INF/wall.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/c.tld</taglib-uri>
            <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fn.tld</taglib-uri>
            <taglib-location>/WEB-INF/fn.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
            <taglib-location>/WEB-INF/fmt.tld</taglib-location>
        </taglib>
    </jsp-config>
        <resource-ref>
            <description>DB Connection</description>
            <res-ref-name>jdbc/SQLServerDB</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    </web-app>This should help....

  • How to run group solve with the batch manager

    I'd like to know if it is possible (and how) to run group solve defined in OFA with the batch manager.
    Thank you
    Luigi Polverini
    Synesis s.r.l.

    OFA uses its Task Processor rather than Batch Manager to run tasks in batch. Group solves can be scheduled this way by submitting the group solve task to the TP, and then rescheduling it in the Task Queue window.
    null

  • Information on how to run SQL queries on the CUCM itself please

    Good Day All,
    I need to run an sql query on the CUCM to list all of my directory numbers, their partition, and their external mask values.
    I came across this excerpt below earlier so I have a bit of an idea how to do it but iw would be great to see some other examples of sql queries.
    Any assistance is most appreciated.
    Also, is there a document somewhere to tell me how to run these queries?
    Thanks in advance
    Regards
    Amanda
    Currently Being Moderated
    05/04/2011 5:18 AM (in response to Joshua Royle)
    Re: Is there a way of pulling a report off CM showing all phones that have diverts on?
    Try if running this SQL query from the CLI helps you, it should list all DN's that have CFA enabled to VM or a DN:
    run sql select dnorpattern,cfadestination,cfavoicemailenabled from CallForwardDynamic c, numplan n where c.fknumplan = n.pkid and (cfadestination != '' or cfavoicemailenabled ='t')

    Hi Amanda
    Basically it's standard SQL, so it wouldn't hurt to google 'informix select statements' and do a little reading to get the basics. There are millions of permutations of queries so it's a matter of understanding the syntax, and then applying that to the database in question. The only difference when running commands from the CLI are that:
    - You prefix the standard informix SQL statement with 'run sql'
    - You don't get any help from CUCM with the syntax, so you might be well advised to use something that understands SQL a little and colorises it as you type, and then paste the resulting commands into the CUCM SSH window. I use a text editor named JEdit, if you create a text file and save it as a file ending in .sql it will highlight your syntax.
    - Other programs are available that do reasonable syntax highlighting (e.q. SquirrelSQL) that are designed for querying the DB directly, but you can't actually query directly against the DB for security reasons. You'd still have to copy/paste the commands.
    Now... to understand the DB you'll need a reference describing all the tables etc. This is here:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html
    Pick your version of CUCM and download the 'Data Definition' document.
    A few notes on the command:
    run sql : is just the CLI command that tells the shell to run the following text as SQL.
    select : the SQL command to retrieve data
    dnorpattern,cfadestination,cfavoicemailenabled : the column names to retrieve
    callforwarddynamic c, numplan n : the names of two tables, and the abbreviations you want to refer to them as
    where c.fknumplan = n.pkid : this tells SQL to return values from the two tables where these fields match up. In the data definition you'll see notes that c.fknumplan (i.e. the fknumplan column in the callforwarddynamic table, as noted by the c. prefix) refers to the PKID column in the numplan field. This is a very standard type of join in the CCM DB.
    and (cfadestination != '' or cfavoicemailenabled ='t') : another clause, basically in this query we want to see only rows where cfadestination isn't blank or cfavoicefmailenabled is set to 't' for true).
    Most tables are linked in one of two ways in this database:
    - a column prefixed 'fk' refers to the pkid field (there is always only one pkid field per table) in the table following the 'fk' prefix. E.g. above fknumplan refers to the numplan table, pkid field. fkdevice would refer to the device table, pkid field.
    - a column prefiex 'tk' refers usually to an enum table which is prefixed with 'type'. This is a table that maps the number value in the 'tk' field to a string. An example would be tkmodel - this represents the phone physical model type (e.g. 7962), and maps to a table called typemodel, and the 'enum' column in that table.
    Regards
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • How to run batch files in the backround ??????

    please anyone tell me how to run the batch files in the background i dont want anyone to interfere the batch file..The batch file has to run for a long time even days so it will be safe if the batch file is running in the bachgroung somewhere ..
    please help me in this regards
    Thanking u
    Regards
    Santhosh

    The easiest way is to write a native application which starts the batch file in hidden mode (the target batch file could be an argument).
    Under Windows it would be done with the API call
    ShellExecute(NULL, "open", "C:\mybatch.bat", NULL, NULL, SW_HIDE);
    Then compile the native tool as windows application with no user interface. Now you are able to execute applications in invisible mode.

Maybe you are looking for