CMS Command Line Enhancements

Recently we ran into a situation where our system database failed over (it's on a clustered environment) and our CMS went down.  In the command line it is set to RESTART but it appears that it was unable to do so.  We checked the event log and it appears that it tried to restart it self within the same minute as it failed and it only tried 1 or 2 times (can't really tell).  Is there anything we can add to the command line that will 1) attempt to restart the CMS more than once or 2) delay the attempts at restarting?

Hi,
If you go to services.msc and look for the CMS service.
Go to the recovery tab. Here you can specify restart as an option for the  the service for three consecutive failures.
You can also specify the time it will attempt to restart the service.
You can test this by killing the CMS servicce form the task manager ( don not use CCM to stop). It works fine.
You have also mentioned it tired to restart itself, so there might be some recovery timing set in the services. But it didn't start as there was no DB running. You can increase the time when it will attempt to restart the service.
Regards
Edited by: Gautam Sarup on Oct 26, 2009 9:14 AM

Similar Messages

  • Command line to reinitialize cms database in windows

    Post Author: sptong
    CA Forum: Administration
    Pls adv if there is any command line that I can use to reinitialize the BOE cms database in windows ?
    I wish to automate the housekeep process to clear away all the previously created folders/report-objects in InfoView. Is there anyone with any ready to use scripts or steps to show how it can be done ?
    I am running BOE XIR2 in Windows 2003 server. CMS used Oracle 9.2 as database.
    Thanks/Rgds

    Post Author: sptong
    CA Forum: Administration
    TAZ:
    Hi Sptong,
    Reinitializing the CMS DB will effectively delete everything, folders, users, groups, and you will be left with a new install basically.
    Is that what you want to do? I can't see how this could possibly be a maintainence task?
    There is no command line way to do this. If that is what you want to do... Then from the CCM you can stop the CMS, right click properties, go to the tab with the connection info on it and modify the connection. There you will see 3 options 1 which will reinitialize the CMS DB. Remember to most customers this would constitute a production down and 100% loss of data. I'd back up your DB first.
    Regards,
    Tim
    Yes. That is basically what I wanted.
    For our application, we do not published the report into InfoView. We used the InfoView scheduling facility to 'generate a final PDF file' to a report repository. We store the reports else where. Hence, the InfoView folders will get messy after some period. Hence, we need to housekeep the folders by deleting everything, leaving a new install basically.
    We know the manual steps. Just wonder if there are some command line / scripts that we could use to automate the process.

  • Design Question - Command Line Argument Processor

    Folks,
    I'm a java and OO newbie... I've been going through Sun's java tutorials
    I've "enhanced" Sun's RegexTestHarness.java (using Aaron Renn's gnu.getopt package) to expose the various Pattern.FLAGS on the command line.
    Whilst it does work the arguement processing code is awkward so I want to rewrite it... but I'm pretty new to OO, so before I spend days hacking away at a badly designed ArgsProcessor package I thought I'd run my deign ideas past the guru's... and atleast see if my ideas are impossible, or just plain bad.
    Any comments would be greatly appreciated.
    The starting point is RegexTestHarness.java/**
    *@source  : C:\Java\src\Tutorials\Sun\RegexTestHarness.java
    *@compile : C:\Java\src\Tutorials\Sun>javac -classpath ".;C:\Java\lib\java-getopt-1.0.13.jar" RegexTestHarness.java
    *@run     : C:\Java\src\Tutorials\Sun>java -classpath ".;C:\Java\lib\java-getopt-1.0.13.jar" RegexTestHarness -i
    *@usage   : RegexTestHarness [-vcixmslud]
    //http://java.sun.com/j2se/1.5.0/docs/api/java/io/package-summary.html
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    //http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/package-summary.html
    import java.util.regex.Pattern;
    import java.util.regex.Matcher;
    import java.util.regex.PatternSyntaxException;
    //http://www.urbanophile.com/arenn/hacking/getopt/gnu.getopt.Getopt.html
    import gnu.getopt.Getopt;
    import gnu.getopt.LongOpt;
    * private command line options interpreter class
    class Options {
         public boolean verbose = false;
         public int flags = 0;
         public Options(String progname, String[] argv) throws IllegalArgumentException {
              LongOpt[] longopts = new LongOpt[9];
              longopts[0] = new LongOpt("verbose",               LongOpt.NO_ARGUMENT, null, 'v');
              longopts[1] = new LongOpt("CANON_EQ",               LongOpt.NO_ARGUMENT, null, 'c');
              longopts[2] = new LongOpt("CASE_INSENSITIVE",     LongOpt.NO_ARGUMENT, null, 'i');
              longopts[3] = new LongOpt("COMMENTS",               LongOpt.NO_ARGUMENT, null, 'x');
              longopts[4] = new LongOpt("MULTILINE",               LongOpt.NO_ARGUMENT, null, 'm');
              longopts[5] = new LongOpt("DOTALL",                    LongOpt.NO_ARGUMENT, null, 's');
              longopts[6] = new LongOpt("LITERAL",               LongOpt.NO_ARGUMENT, null, 'l');
              longopts[7] = new LongOpt("UNICODE_CASE",          LongOpt.NO_ARGUMENT, null, 'u');
              longopts[8] = new LongOpt("UNIX_LINES",               LongOpt.NO_ARGUMENT, null, 'd');
              Getopt opts = new Getopt(progname, argv, "vcixmslud", longopts);
              opts.setOpterr(false);
              int c;
              //String arg;
              while ( (c=opts.getopt()) != -1 ) {
                   //arg = opts.getOptarg();
                   //(char)(new Integer(sb.toString())).intValue()
                   switch(c) {
                        case 'v': verbose = true; break;
                        //http://java.sun.com/docs/books/tutorial/essential/regex/pattern.html
                        case 'c': this.flags |= Pattern.CANON_EQ; break;
                        case 'i': this.flags |= Pattern.CASE_INSENSITIVE; break;
                        case 'x': this.flags |= Pattern.COMMENTS; break;
                        case 'm': this.flags |= Pattern.MULTILINE; break;
                        case 's': this.flags |= Pattern.DOTALL; break;
                        case 'l': this.flags |= Pattern.LITERAL; break;
                        case 'u': this.flags |= Pattern.UNICODE_CASE; break;
                        case 'd': this.flags |= Pattern.UNIX_LINES; break;
                        case '?': throw new IllegalArgumentException("bad switch '"+(char)opts.getOptopt()+"'"); //nb: getopt() spits
         public String toString() {
              StringBuffer s = new StringBuffer(128);
              if (verbose) s.append("verbose, ");
              if ((this.flags & Pattern.CANON_EQ) != 0)               s.append("CANON_EQ, ");
              if ((this.flags & Pattern.CASE_INSENSITIVE) != 0)     s.append("CASE_INSENSITIVE, ");
              if ((this.flags & Pattern.COMMENTS) != 0)               s.append("COMMENTS, ");
              if ((this.flags & Pattern.MULTILINE) != 0)               s.append("MULTILINE, ");
              if ((this.flags & Pattern.DOTALL)  != 0)               s.append("DOTALL, ");
              if ((this.flags & Pattern.LITERAL) != 0)               s.append("LITERAL, ");
              if ((this.flags & Pattern.UNICODE_CASE) != 0)          s.append("UNICODE_CASE, ");
              if ((this.flags & Pattern.UNIX_LINES) != 0)               s.append("UNIX_LINES, ");
              if (!s.equals("")) {
                   s.insert(0,"{");
                   s.replace(s.length()-2,s.length(),"");
                   s.append("}");
              return(s.toString());
    * public regular expression test harness
    public class RegexTestHarness {
         public static void main(String[] argv){
              BufferedReader in = null;
              try {
                   Options options = new Options("RegexTestHarness", argv);
                   //System.out.println(options);
                   in = new BufferedReader(new InputStreamReader(System.in));
                   System.out.println("RegexTestHarness");
                   System.out.println("----------------");
                   System.out.println();
                   System.out.println("usage: Enter your regex (none to exit), then the string to search.");
                   System.out.println("from:  http://java.sun.com/docs/books/tutorial/essential/regex/index.html");
                   String regex = null;
                   while(true) {
                        try {
                             System.out.println();
                             System.out.print("regex: ");
                             regex = in.readLine();
                             if (regex.equals("")) break;
                             Pattern pattern = Pattern.compile(regex, options.flags);
                             System.out.print("string: ");
                             Matcher matcher = pattern.matcher(in.readLine());
                             if (options.verbose) System.out.printf("groupCount=%d%n", matcher.groupCount());
                             while (matcher.find()) {
                                  System.out.printf("%d-%d:'%s'%n", matcher.start()+1, matcher.end(), matcher.group());
                                  //start is a zero based offset, but one based is more meaningful to the user, Me.
                        } catch (PatternSyntaxException e) {
                             System.out.println("Pattern.compile("+regex+") " + e);
                        } catch (IllegalStateException e) {
                             System.out.println("matcher.group() " + e);
                   } //wend
              } catch (IllegalArgumentException e) {
                   System.out.println(e);
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   try {in.close();} catch(Exception e){}
    }... I haven't got a clue if it's possible, but I want my ArgProcessor.getArgs method to return a hash (keyed on name) of Objects of the requested "mixed" types... for example a boolean, a String, and a String[].
    I want the client code of my new fangled ArgProcessor to look something like this:class testArgProcessor {
         public static void main(String[] args) {
              //usage testArgProcessor [-v] [-o outfile] file ...
              try {
                   HashMap<Arguement> args = ArgProcessor.getArgs( args,
                        { //hasArg value, letter, name, type, value, default
                          {hasArg.NONE,     'v', 'verbose', 'boolean', true, false}
                        , {hasArg.REQUIRED, 'o', 'outfile', 'String', null, null}
                        , {hasArg.ARRAY,     '', 'filelist', 'String[]', null, null}
                   if (args.outfile != null) {
                        out = new BufferedWriter(......);
                   } else {
                        out = System.out;
                   for (String file : filelist) {
                        if (args.verbose) System.out.println("processingFile: " + file)
                        ... process the file ...
              } catch (IllegalArgumentException e) { //from ArgProcessor.getArgs()
                   System.out.println(e);
    }

    Paul,
    What are you trying to do, and why?Sorry I should have made myself a lot clearer...
    What I'm really trying to do is learn Java, and good OO design... so I'm going through the Sun tutorials, and I see that the standard Pattern class has a few handy switches, so I wanted to expose them to the command line... which I did using the handy gnu.getopts library...
    Are you trying to write a general purpose
    command-line processing library?Yes, I'm trying to write a general purpose command-line processing library? one that's "cleaner" to use than the gnu.getopts.
    I've been hacking away for a few hours and haven't gotten very far... what I have discovered is that gnu.getopts class is in fact very clever (surprise surprise)... and my idea to "simplify" it's usage leads to loss of flexibility. So, I'm starting to think I'm completely barking up the wrong tree... and that I was somewhat vanglorious thinking that I (a newbie) could improve upon it.
    Are you trying to write a command-line app to do
    pattern matching?Yep, That too... That's where I started... with an example from Sun's tutorials... where it's used to parse a long series of patterns and strings, exploring java's regex capabilities.
    I think I'll just give up on "improving" on gnu.getopts... my options processing code is ugly, and so be it.
    Thanx for your interest anyway.
    Keith.

  • Error while exporting webi reports using BIAR command line tool.

    HI,
             We are trying to export webi objects to a biar file using the biar command line tool, biarengine.jar in XI 3.0. We are using the query select * from ci_infoobjects where si_kind='webi'.
    We are getting an error "unable to create plugin object".
    Export of all other objects is going through fine.
    Any ideas?
    Thanks,
    Ashok

    Try this
    importBiarLocation=C:/test.biar
    action=importXML
    userName=UserName
    password=Password
    CMS=cmsname:6400
    authentication=secEnterprise
    exportQuery=select * from ci_appobjects where si_kind='universe'

  • Scheduling Report  through  Command Line

    Post Author: gunjesh
    CA Forum: Administration
    Hi All,
              I would like to know how to schedule a  Webi (infoview) report of Bussiness Objects XI Release2    through Command line , Not through CMS.
    Command line options
    1. To schedule a report from CMS but using a command line. What all parameters are needed in order to do this ?
    2. To stop/reschedule a report being refreshed/running at this moment. What all parameters are needed in order to do this ?

    Post Author: sgolby
    CA Forum: Administration
    Did you have any luck finding out how to do this ?   We would like to trigger reports from the command line on demand. (or via an API is fine too)
    Thanks,
    Scott

  • Tool for Creating Tracks per command line available?

    Hi all,
    for my master thesis I need to make up a development concept with the JDI.
    What I'm wondering is, is there any ability (maybe hidden option ) to create tracks per command line interface and connect them per command line?
    Another question which came to mind, I would like to control the DTR via the DTR command line tool, is there any option to do this, just without installing the Developer Studio IDE, as I only want to remote control the DTR via command line and don't need developer equipment on the server?
    Thanks for your help!

    Hi Matthias,
    tracks are stored in the Java database by CMS in its own format and when a buildspace is created on CBS that information is also stored in the Java databse in CBS' own format. Accessing the database directly is not a good idea as you would need additional information that is neither officially published nor supported and that may change.
    Regarding DTR client & IDE: Well, DTR doesn't know about tracks at all, it just stores the sources for track content. The "track" knowledge is part of CMS.
    The command line tool is only distributed with the IDE, but if you just copy the required libraries to the server (you had to edit the batchfile anyway, didn't you?) you do not need the full IDE installation.
    Regards,
    Marc

  • Compiling FLA and AS files to SWF file using command line

    I need to encorporate the .as sources and .fla file, into my
    build environment, to compile the SWF file.
    Right I have to Open Flash 8 to perform this and copy the SWF
    created through the compilation process.
    Compiling FLA and AS files to SWF file using command line is
    my main purpose. If there such a utility there, does it exist for
    Linux and Windows.

    Try
    Flash
    Command or
    Flash
    Shell Extension
    We use an enhanced version of Flash Command internally, of
    which we fixed the bug of Mike Chamber's Flash Command which cannot
    be run in .NEt 2.0 and added some other functionality. Once we are
    comfortable with it, we will release it to the public.

  • Command line stop for a single service

    Hi,
    How to stop a single service from command line mode. can any one please answer?
    I have tried following one but no luck...
    ./ccm.sh -stop SIA.InputFileRepository -cms  cmsname:6400 -username xxxx -password xxxx -authentication secEnterprise
    Thanks,
    Anil

    Hi,
    As suggested by  Julian you could look into the KB Article for the reference.
    Just run ccm.exe /help in a Command Window (cmd) to see full list of supported commands.
    Here are sample commands on windows if else you could not access to KB article:
    "C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -managedstop machine1.WebIntelligenceProcessingServer -cms machine1:6500 -username SysAdmin -password 35%bC5@5 -authentication secLDAP"
    "C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -managedstart machine1.WebIntelligenceProcessingServer -cms machine1:6500 -username SysAdmin -password 35%bC5@5 -authentication secLDAP"
    "C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -managedrestart machine1.WebIntelligenceProcessingServer -cms machine1:6500 -username SysAdmin -password 35%bC5@5 -authentication secLDAP"
    To enable/disable the same service use the following without the "managed" parameter :-
    "C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -enable machine1.WebIntelligenceProcessingServer -cms machine1:6500 -username SysAdmin -password 35%bC5@5 -authentication secLDAP"
    "C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -disable machine1.WebIntelligenceProcessingServer -cms machine1:6500 -username SysAdmin -password 35%bC5@5 -authentication secLDAP"
    Hope this helps
    Regards,
    Rameez

  • Command line version of finder's get info command

    I am trying to find which version of MS Office 2008 is installed on a bunch of machines. On one machine, I can just do a get info on the MicrosoftComponentPlugin.framework, but I don't want to have to touch every machine.
    Does anyone know of a way to get this info using the command line?
    Ideally, I would like to use ARD's send unix command to grab this info from a lot of machines, then run install the .mpkg on the machines that aren't the latest version...
    Thanks in advance

    Maybe not. According to the defaults man page:
    WARNING: The defaults command will be changed in an upcoming
    major release to only operate on preferences domains. General
    plist manipulation utilities will be folded into a different
    command-line program.
    They say there will be an upgrade path, but I can't imagine it being named "PlistBuddy". That sounds way too much like some programmer named it. They need something more professional. plutil is already taken, but maybe it could be enhanced. plmanip maybe.

  • Automated Purge functionality using runjob command line prompt?

    We are currently running scheduled jobs through a command line interface using various batch scripts.  We are calling the runjob command.
    My question, is there a Purge command prompt that we could include in these scheduled jobs to automate desired purges?  We don't want to use the runopsjob command because this is taking away from our ability to view data in our created results books.
    Thanks,
    Jordan

    Hey Mike,
    So let me layout the situation we are currently in.  For our end-users, we generate results books showing data quality consistency issues between 2 systems.  Those results books may have upwards to 100 tabs that the users will go into and analyze for what exactly is causing the discrepancy.  Along with those results books, we populate Dashboards that will give a high-level understanding of what pages in the results books need attention as well as track our improvement overtime to present to upper management.
    Our issue is that our storage space isn't sufficient for the large quantity of processes and records being ran and populated in EDQ.  Therefore, we want to set up an automated purge schedule that we can use and incorporate with our command line batch scripts where we run the RUNJOB command.  This almost seems as if it should be consider an enhancement request to either allow RUNJOB to have an automated purge schedule functionality or allow RUNOPSJOB to populate results books and dashboards.
    What are your thoughts around this and what advice would you have moving forward?
    Thanks,
    Jordan

  • New cirrus command-line development in linux

    Hey everybody.   I've been researching and planning a development using the cirrus service for a while now and have finally gotten around to some serious development.  I decided to use the Flex SDK command line tools on a linux system for a majority of the early work.  I don't know how many members of the community are relying on the comand-line tools for their development, but I have run into a few issues.
    Here's what I'm running:
    Ubuntu 10.10
    Flex SDK 4.1.0 build 16076
    Flash Projector 10.1.102.64
    ..  I've been prototyping my app as a flex 4 mxml and have run into compiler issues when cirrus specific components are integrated into the code.
    So I have a few basic questions that some of the cirrus veterans might be able to easily answer.
    1.  Does the current stable Flex SDK release have support for the cirrus specific classes and logic?
    2.  If no, does the Flex SDK have to be configured or referenced via the OS in order to support cirrus, or is there a development build with support?
    3.  If yes, do actionscript or mxml files need to reference specifc libraries to identify the cirrus?
    4.  Do the command-line compilers need specific config variables to enable or disable cirrus features?

    HypUser wrote:
    The patch mentioned in the posts is related to Version 9.3.1. The version I am working on is 11.1.2.1.And one of the other replies says it does not exist in 11.1.2 and there is an enhancement request logged, not sure if any patches have addressed the issue since the post, may be worth raising an sr or having a look on oracle support.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Biar Export using Biar Command line tool

    Hi All,
    I am trying to export biar file using the biar command line tool for that i have written a .properties file and running that using the batch file , Here are the contents -
    Biarexport.properties -
    exportBiarLocation=C:/work/biartest/level.biar
    action=exportXML
    userName=E372019
    password=welcome9
    CMS=tss0s108:6800
    authentication=secEnterprise
    includeSecurity=true
    exportDependencies=true
    exportQuery= Select * from ci_infoobjects where si_kind in ('CrystalReport','Folder') and si_name='Air Travel Activity' and SI_INSTANCE = 0
    and running the above .properties file using below command u2013
    cd C:\Program Files\Business Objects\Common\4.0\java\lib
    java -jar biarengine.jar C:\work\biartest\biarexport.properties
    I get the biar file created on the given folder but if I compare itu2019s size(261KB) with the biar which I create manually from the Import Wizard(35 KB) , then comparatively it is bigger. It seems biar has every instance.
    This increases the file size unnecessary since we do not need the instances in the BIAR, just the report and the dependent repository objects.
    Need your assistance on this issue!
    Thanks for your help!
    Kanchan

    I would suggest creating a case with support to go over this, you should have a support agreement since you have the Enterprise product.

  • Biar command line tool

    Hi,
    I created a biar file using import wizard. and now i need to migrate the content from biar file to destination CMS using BIAR COMMAND LINE TOOL.
    and
    I dont need need to migrate everything to destination CMS. so i need to write queries.
    the following is the script i used. but im unable to migrate anything with no error.can u please help me to clear my doubts:
    what exactly exportDependencies mean? i only need universe not with its dependency connection..so if i set to false im seeing nothing to migrate.
    security..even in import wizard,,it sucks most of the time...no worries as of now.
    correct my script if its wrong.
    importBiarLocation=C:\test.biar
    action=importXml
    CMS=sever name
    password=password
    Authentication=secEnterprise
    exportDependencies=False
    includeSecurity=false
    exportQuery=select * from ci_appobjects where si_kind='universe'

    Try this
    importBiarLocation=C:/test.biar
    action=importXML
    userName=UserName
    password=Password
    CMS=cmsname:6400
    authentication=secEnterprise
    exportQuery=select * from ci_appobjects where si_kind='universe'

  • Generate DB Doc command line

    Is there a way to get the output of "Generate DB Doc" in SQL Developer from a command line rather than having to launch the GUI?

    Yes, agree with 'K' that Sqldev generally doesnt support command line based features. This is nice to have feature enhancement.
    But if you observe closely, the generated HTML pages closely resembles how SQLDev would show the DB objects. There is currently a strong dependence on GUI (ie SQLDEV libraries). To make the feature commandline based would require atleast a part of libraries + executable to be available on client m/c.
    Hence the implementation complexities needs to be justified against features importance, no of users(votes) etc.
    - Rakesh

  • Compile Webhelp from Command Line

    I downloaded the trial version of RoboHelp 7 and had some
    issues running in trial mode on my Vista machine. After much
    frustration, I gave up and got it to work on my XP machine. The
    main reason why the developers want me to upgrade to RoboHelp 7 is
    for the compile via command line feature enhancement. I have been
    tasked to test it out.
    Well, I could not find any instructions in the online help
    nor on the Adobe website on what to key in the command line when
    compiling Webhelp. So I need some assistance. Can anyone provide
    this information?
    Also, I have conditional tags applied to the project. Do you
    have to add any additional code to the command line?

    Welcome to the forum.
    Go to Tools | Options and select the Use Offline Help option.
    Then search again on command line.

Maybe you are looking for

  • Thumbnails wont display pages in a chapter that I know are there and have pasted in

    Hello everyone. I am an author and have previously published two books in the iBookstore using iBooks Author. The third one that I'm attempting to lay out is giving me major problems for some reason. I have a MacBook Air 13 inch Mid 2013 Processor  1

  • How to reformat my Satellite A665D

    hi I'm ayen, I just want to ask if you know how to reformat my Toshiba netbook? It has a lot of virus and I want to clean it, coz my antivirus had run out of date.. pls help me! Im already getting worried that my netbook would just shut down any mome

  • How to open multiple mail messages in their own windows

    All: Anyone know of a keyboard command to open several Mail messages in their own windows? For example, I can't highlight all messages in the Inbox and then double click one of them to open them all in separate windows. Surprisingly, Mail lacks an Op

  • Have your say on Oracle ADF

    I've published a survey to gather information on how we can best help you become successful with Oracle ADF. Please take a few minutes to complete the survey. Details can be found on my blog http://blogs.oracle.com/grantronald/entry/your_chance_to_ch

  • Need clarification on Bigfile Tablespaces

    In the following Oracle Documentation Lirbary PDF,     Oracle® Database     Concepts     10g Release 2 (10.2)     B14220-02     October 2005 section     Overview of Tablespaces     Bigfile Tablespaces (page: 3-5) it says,     Benefits of Bigfile Tabl