Schedule a cron job on CallManager 7.1.5

We are running CallManger version 7.1.5.33050-1.  We have run into bug CSCtj50884, Tomcat - java.lang.OutOfMemoryError due to large number of RTMT requests.  We have not been able to identify the culpret yet so we have decided to restart the Tomcat service on a weekly basis.  Is there a way I can set up an automatic weekly reset of the Tomcat service?
thanks,
Beth

Not within CUCM itself, the OS is locked and you cannot configure a cron job. You would need to configure it externally (in other server) to SSH into CUCM and execute the restart command.
HTH
java
if this helps, please rate
www.cisco.com/go/pdihelpdesk

Similar Messages

  • Schedule rman using cron job

    I have scheduled a cron job to take rman backup of database everyday at 4PM. But I see that the empty backup.log file is getting generated while the script is not running. If I run the backup.sh script manually then the backup is running fine. The following are the scripts and the crontab details,
    backup.sh script is as follows,
    cd /u01/app/oracle/rmanbkp
    rman target / <<EOF
    run
    allocate channel ch1 type disk format '/u01/app/oracle/rmanbkp/%d_%T_%s.bak';
    backup database;
    delete noprompt obsolete;
    exit;
    EOF
    while the output of 'crontab -l' is
    00 16 * * * /home/imsoracle/backup.sh > backup.log
    Backup is not happening, what is wrong in my settings. Please advise.

    Dear $ami Malik,
    There is another option that you can use for RMAN scripting as shown below;
    0 2 * * 2 export ORACLE_HOME=/oracle/product/10.2.0/db_1/ ;
    /oracle/product/10.2.0/db_1/bin/rman cmdfile /db/optima/archive/OPTPROD/RMAN/backup_full.sh
    log /db/optima/archive/OPTPROD/RMAN/backup_full.log
    vals2:/home/oracle#cat /db/optima/archive/OPTPROD/RMAN/backup_full.sh
    connect target sys/password@optprod
    backup database format '/db/optima/archive/OPTPROD/backupset/DB_FULL_%d_%t_%s_%p';
    backup archivelog all delete all input format '/db/optima/archive/OPTPROD/backupset/ARC_%d_%t_%s';
    exit;So you can construct such backup strategy with the cmdfile and log options of the recovery manager.
    Hope That Helps.
    Ogan

  • CRON job on mac

    Hello,
    Not quite the right category for this but don't think the answer would be found in the non server forum.
    I would like to schedule a CRON job on 10.5 (not server), done it in older version, either I can't remember or it's changed... doesn OSX have crontab?
    Every 1 minute I want to call a php function on a webserver (which doesn't allow CRON)....
    m

    Hi
    On OSX Client its in /usr/lib. You should see an alias for cron and within that should be what you want. However you might be able to achieve what you want with launchd and its utility launchctl? Consult the manual pages for usage.
    There is a specific Terminal and Command Line Forum over on the 10.4 Server Forum:
    http://discussions.apple.com/forum.jspa?forumID=701
    You could check this forum out as it does focus on the command line and applescript amongst other things:
    http://discussions.apple.com/category.jspa?categoryID=162
    Tony

  • Cron job ,every other monday

    hello
    i would like to schedule a cron job every other monday
    -- OS info
    [oracle@dev3 ~]$ uname -a
    Linux dev3.pcst3.net 2.6.18-194.17.1.0.1.el5 #1 SMP Wed Sep 29 15:57:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linuxhere is what i have in for cron job , yes this shows every monday but i am looking for every other monday,it ran today(03/26),next runs should be 04/09 and 04/23 ....
    # Bi-weekly report
    30 11 * * 1 /u01/scripts/monday_query.sh > /u01/scripts/monday_query.log 2>&1here is what we have in monday_query.sh
    #!/bin/ksh
    # set -xv
    . dbbash_profile
    export ut=/u01/scripts/ut
    export pass=`grep -i ls011 $ut/pwdfile | awk -F":" '{ print $2 }'`
    sqlplus  ls011/${pass} < /u01/scripts/monday_query.shany help is much appreciated to make this run every other monday
    Please help

    From the cron man page: http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
    "Step values can be used in conjunction with ranges. Following a range
    with ``/<number>'' specifies skips of the number's value through the
    range. For example, ``0-23/2'' can be used in the hours field to spec-
    ify command execution every other hour (the alternative in the V7 stan-
    dard is ``0,2,4,6,8,10,12,14,16,18,20,22''). Steps are also permitted
    after an asterisk, so if you want to say ``every two hours'', just use
    ``*/2''."
    Or, create a flag file with 'touch ran_cron_job_last_monday' after a Monday that you ran the script.
    Then throw a condition into your script to check for the file. If the file exists, remove it. If the file doesn't exist, then run your script and when finished, create the file again.
    For example:
    #! /bin/ksh
    if [ -e ran_cron_job_last_monday ] ; then
    rm -f ran_cron_job_last_monday
    else
    touch ran_cron_job_last_monday
    exit 0
    fi
    ... do here what your script is supposed to do ....
    exit 0

  • CRON JOb RMAN SCHEDULING

    Dear All
    I have an rman script that I am currently running manually as follows:
    run {
    allocate channel L25 type 'SBT_TAPE' format '<Direb_%u_%s_%p';
    backup
    (database include current controlfile);
    backup (archivelog all delete input);
    I would like to schedule this job to run every Sunday at 00:00. I understand that I can do this through a CRON job (I am using Solaris 8) however I am not sure how to do it. I was hoping somebody might be able to show me how to do this.
    Thanks in advance
    John

    If you want help more directly you can post your case here:
    Forums Home � Oracle Technology Network (OTN) � Technologies � Linux
    Generic Linux
    Joel P�rez

  • Help Please : Cron Job to automate load process

    Hi
    I am trying to automate data load process. I am loading data into a number of tables from flat files.
    Currently I have a UNIX (SunOS) file with a bunch of SQLLDR commands and I changed permission on this file to executable. Every morning I execute this file to load data.
    Now I want to automate this process by writing a cron job and scheduling it. I am running into a number of problems. I exported ORACLE_SID, ORACLE_HOME and PATH still cron is unable to find SQLLDR.
    Whatelse am I missing. Here is my command file and cron file.
    Please help!?!?!?
    ORAENV VARiables
    export ORACLE_HOME=/export/opt/oracle/product/8.1.6
    export ORACLE_SID=fid1
    export PATH=$PATH:$ORACLE_HOME/bin
    .profile
    . $HOME/oraenv
    daily_full.sql file
    export ORACLE_SID ORACLE_HOME PATH
    sqlldr userid=user/pwd control=acct.ctl log=acct.log
    sqlldr .......
    Cron Job
    16 11 * * 1-5 /apps/fire/data/loadscripts/daily_full.sql >> /apps/fire/data/loadscripts/fulllog.log 2>&1
    Output fulllog.log file
    /apps/fire/data/loadscripts/daily_full.sql: sqlldr: not found
    /apps/fire/data/loadscripts/daily_full.sql: sqlldr: not found
    Thanks
    Shanthi

    Hi Ramayanapu,
    first; you have written a shell-script not an sql-script. Please rename your file from daily_full.sql to daily_full.sh
    I suggest that you use the cronjob from a user who has the enviroment with the variables ORACLE_SID and ORACLE_HOME.
    In this case cron will operate from the $HOME variable of this user.
    Perhaps your export will destroy the .kshrc setting. The statement has no effect in your script, please remove it.
    Rename your sqlldr-Statement as follows;
    $ORACLE_HOME/bin/sqlldr userid=user/pwd control=<path>acct.ctl log=acct.log
    <path> will placed with the path of your controlfile.
    Your user/pwd will correspond with a ORACLE user who has the right to insert in the destination table.
    Your logfile will be place in the %HOME directory.
    Hope that i could help to solve your problems
    with kind regards
    Hans-Peter

  • Cron job to start machine.

    Is there a way to get the machine to start, open iTunes and start playing a song at a specified time using a cron job?
    MacBook Pro 15.4" - Intel Core Duo 2.0   Mac OS X (10.4.6)   2GB RAM

    I have my computer do exactly what you want yours to do, except I don't use a cron job. In case you don't actually need to use cron, I'll tell how I get it to happen.
    As mentioned by Federico_82, I use the Energy Saver preferences in System Preferences. There is an "Schedule..." button in the lower right corner that will allow you set the startup and/or shutdown times for the computer. It's not very detailed, but it suits my purposes for waking up Monday through Friday.
    I also have the computer automatically log me in using the Login Options in Accounts preferences in System Preferences.
    Finally, I've set alarms in iCal and chose "Open file" in the alarm section of the Info drawer. You can select a song file (or anything really) to be opened and the song will be played with iTunes since songs should automatically open with iTunes.
    I've also set the final option in the alarm section to perform this 5 minutes before the time I set for the event, with the event time being the same time as the computer startup. This is okay because it will perform an alarm that was suppose to happen even if it couldn't do it earlier, for example because the computer was off. So you don't have to worry about timing it perfectly. Just set the alarm time to the same as the startup time for the computer or earlier if you want it to happen immediately upon startup, then the alarm will go off immediately after computer turns on and logs you in.
    Also keep in mind you can set the event to repeat at various intervals in iCal, such as Monday through Friday or various discontinuous days of the week every week, and so on. Very customizable.
    Personally, I use an Automator app to start playing a playlist in iTunes, and to set the iTunes volume to an appropriate level to wake up with just in case I've change the volume the last time I used iTunes. In this way, I can simply change the song in the playlist in iTunes without having change the alarm event in iCal. This helps because then I can copy/paste the alarm anywhere I want and don't have to worry about finding another song file if I want to change the song. Instead, I simply find the song I want in iTunes and put it in the playlist, along with any other songs I want have played.
    If you do it with an Automator workflow, simply save the workflow as an iCal Alarm with "Save As Plug-in...". It'll automatically save in your ~/Library/Workflows/Applications/iCal folder, without you having to figure that out. Oh, and it doesn't hurt to test the workflow to make sure it plays your playlist (or whatever you have it do) before saving it as an iCal Alarm. Though, you can re-edit later if you want.
    Once you've saved your workflow as an iCal Alarm, it'll show up in list of files to open in the alarm section for the event. So, after you've chosen "Open file" in that section, the default for the file will be "iCal", but you'll also be able to choose any iCal alarms you've saved in Automator or any other file (such as a document or a song).
    Just as a bit of trivia, a plug-in you save in Automator is actually the same thing as saving your workflow as an application. The only difference is that the app is saved to a specific location so the Finder, or iCal, or Image Capture, etc., can find it. So, you don't have to know where to save it, Automator does that for you, but I told you where it is anyways (though you could use Spotlight) so you can get to it to edit it again if you want. Just drag and drop the app onto Automator or open it from within Automator to edit it again.
    I hope that helps. Though it might sound kind of complicated at first, I think this way is much easier than dealing with a crontab and trying to synchronize it with startup and so on. You'll also find this way very customizable with the various options for iCal alarms and the many possibilities with Automator (if you choose to use a workflow instead of simply a song file).

  • EJB Persistence using cron job

    We have a EJB based bean managed persistence classes that run on the app server. I want to use same classes using cron job.
    How do I do that???
    Tried to execute these classes thru following steps...
    In side stand alone java class - main method create instance of the pmf and get persistence manager.
    Start a tread and call JDO object using persistence manager.
    getting whole bunch or errors like system-server-config.xml file not found. I am not able to create InitialContext outside app server.
    Please give your suggestions. TIA

    Why don't you use a J2EE based scheduler?
    http://java-source.net/open-source/job-schedulers/quartz
    http://java-source.net/open-source/job-schedulers/jcrontab

  • Solution Manager 7.1 - Monitor scripts which runs as cron job at OS level ?

    Hi All,
    We have Solution Manager 7.1 in our landscape and we have configured RCA, Monitoring.. Is it possible to Monitor the scripts running as Cron Job at the OS level?
    If in case, the script stops due to an issue, we need to get the alert in Solution Manager.
    Also can you please let us know whether it is possible to monitor jobs scheduled through external job scheduling tool.
    Thanks & Regards,
    Vaishali.K

    Hi,
    How to Schedule the background Job at the OS level:
    Invoke a sapevent using a OS script and then have a SAP background job set to run on a sapevent. I say this assuming Unix and a job in crontab. I would guess the same thing could be done on a Windows system.
    sapevt TRIGGER_NAME -t
    pf=d:usrsapDEVsysprofileDEV_DVEBMGS00_SVRNAME nr
    Kindly go through the links,hope this will help you out
    [Steps to configure RCA and Monitoring in SolMan;
    [http://help.sap.com/saphelp_45b/helpdata/en/c4/3a7ef8505211d189550000e829fbbd/content.htm]
    Thanks & Regards
    Ajitabh

  • DBMS vs unix Cron job

    We have a web application using Oracle 8.1.7. When the user enters a process button on the web we want to run the procedure in the background and we also have some jobs that needs to be run in a scheduled time. My dba is telling us to use cron in place of dbms job. He thinks it is easy to maintain. Are there any new utilities in 8i besides dbms job. Can some body give me pros and cons on these processes.
    thank you

    DBMS_JOB only runs PL/SQL. If you need to do OS stuff as well, then a shell script is your only man, hence cron.
    For pure database jobs, then I would suggest that DBMS_JOB is a better bet, primarily because you don't have the problem with using two different clocks. Generally I find it easier to manage everything from the database. Howver if your DBA has lots of existing cron jobs for OS things that he needs to co-ordinate with these database things then cron probably will make live easier for him.
    As for runninmg stuff from a user command, I would suggest that DBMS_JOB is the way to go, because it can handle a one-off submission. Again, unless there's lots of OS activity that needs to be managed as well.
    rgds, APC

  • Stored proc as cron job

    I have a stored procedure that does updates. Is is possible to call this procedure at a specific time everyday like cron jobs are done? If so how can we set this up.
    Thanks
    srividya

    Yes, use Oracle's internal job scheduler.
    look into the dbms_job package.

  • Environment setting for cron job

    What are necessary oracle varaibles to run a oracle job from crontab.
    does any one has some example. I can run er export job from the command line but when i scheduled that from crontab, it did not run. I need to set environment for that but my knowledge in unix is close to zero. ur help will be hughly appreciated. Thanks

    Basically following 3 variable needed to run cron job
    ORACLE_SID=<SID>
    ORACLE_HOME=<ORACLE_HOME>
    PATH=$ORACLE_HOME/bin;$PATH
    - Virag

  • Cron job checks

    how i can check which cron job are running, or scheduled in future, how to rerun this, where its output is going etc

    Run
    crontab -l
    05 1 * * * /home/mysql/admin/run_dailyTo check what cron jobs scheduled for the user.
    The cron job script should be self-contained and coded to put output to specific logfile in your preferred directory. On screen output is usually blocked because no-one will be around to check them real time.

  • Are all Cron Jobs run by Root?

    OS : Sun OS 5.10
    I have scheduled an RMAN backup script which had only one line like
    rman target .............I logged in as os user oracle and ran this script without any issue. But when i scheduled this job to run, it didn't work.
    I got the error
    /u05/bkp_scripts/rman-level0_WM.sh: rman: not foundThe shell couldn't find rman binary in PATH. Everything worked when i explicitly set ORACLE_HOME, ORACLE_SID, PATH in the shell script.
    Does this mean a cron jobs scheduled by OS User oracle will still won't work unless you set set ORACLE_HOME, ORACLE_SID, PATH in the shell script?
    Are cron jobs handled by root user regardless of who scheduled it?

    ExpansiveMind wrote:
    OS : Sun OS 5.10
    I have scheduled an RMAN backup script which had only one line like
    rman target .............I logged in as os user oracle and ran this script without any issue. But when i scheduled this job to run, it didn't work.
    I got the error
    /u05/bkp_scripts/rman-level0_WM.sh: rman: not foundThe shell couldn't find rman binary in PATH. Everything worked when i explicitly set ORACLE_HOME, ORACLE_SID, PATH in the shell script.
    Does this mean a cron jobs scheduled by OS User oracle will still won't work unless you set set ORACLE_HOME, ORACLE_SID, PATH in the shell script?
    cron does not execute the user's .profile. You must guarantee your environment by setting it inside the script.
    Are cron jobs handled by root user regardless of who scheduled it?NO! root should NEVER be used for Oracle tasks. root should never be used for anything that can be done by another account.

  • Cron job: grpck or grpconv?

    This is a very general administration question. In archlinux (as in many other linux distributions and unix systems I have used in the past) there is a daily cronjob which runs pwck -r and grpck -r. When I look at their outputs sent to me by the internal mail system I often find that /etc/group and /etc/gshadow are not synchronized (generally there are new groups and users added to a certain group in /etc/group but not in /etc/gshadow). I can fix this easily with grpconv. However I am wondering if it is safe to replace grpck -r with grpconv as a daily cronjob. Would it be dangerous for some reason I am unable to foresee? Is there any reason why I should coordinate the two files by hand, or why I could want them to be out of sync?

    Run
    crontab -l
    05 1 * * * /home/mysql/admin/run_dailyTo check what cron jobs scheduled for the user.
    The cron job script should be self-contained and coded to put output to specific logfile in your preferred directory. On screen output is usually blocked because no-one will be around to check them real time.

Maybe you are looking for

  • No longer receive emails from iCloud server

    Since I transferred to iCloud from MobileMe, it seems that I no longer receive any emails from the server in my Outlook mailbox. I tried to add an new email account to Outlook but it kept saying "An encrypted connection to your mail server is not ava

  • How to print a matrix in this order

    Hai All, I am Having a matrix like this 1 2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 and I need to print like this 1 2 3 4 8 12 17 16 15 14 9 5 6 7 11 10 Please help me ..

  • Views in MM03, how can I add fields and changes fields labels

    Hi !!   I need to change some labels that appear on Sales: Sales Org  2 (view on MM03, MM02..MM01)...    Im not sure what I can do this.. Im an ABAP Programmer(beginner) and I know how I can change labels of fields in programs(reports) that I did...b

  • Need documentation about AD msRADIUSFramedIPAddress field

    I have a support case open with Watchguard regarding the msRADIUSFramedIPAddress AD field. my Problem is that the above mentioned field saves ip address as 4 Byte signed integer. I found info about the field at http://msdn.microsoft.com/en-us/library

  • Get a specific cluster out of a datalog file

    HI! I'm saving a cluster with controls (boolean, dbl, u32...) into a datalog file. For several different settings of the controls I'm saving the clusters consecutively in to the file. Is there a way to directly access a certain position at the file,