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
Similar Messages
-
WLST script not running in CRON...
i have written a WLST scrit to connect to WLS and find the DS driver Information ....the script runs pretty good when i manulay run it ...however when i added the script to CRON it just invokes WLST and fails...I have the shell script (.sh) first set the env by invokin <WLS-HOME>/server/bin/setWLSEnv and then execute the WLST script....like i said everything is fine when run manually but the cron job fails......
when i chek the log file for the output i just see this
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
but when run manually its connecting....
There is no ownership issue as such coz other cron jobs with the same owner run succesfully....!!!
Please advise......
Thanks in advance....
Edited by: user10620079 on Feb 6, 2009 11:42 AMThnaks for all your replies....
I actually just made this change ...
instead of setWLSEnv...i invoked setDomainEnv.sh and then cd to the dir where i have the .py script and the rest as it is and now it works...!!!!!!
This tells me that may be setWLSEnv doesnt set all the required env variables for the .py script to run in cron....correct me if am still doing something wrong!!!!
Thanks all for your help really appreciate it!!!!
Edited by: user10620079 on Mar 16, 2009 1:20 PM -
Manually running a cron job in SunOS 5.8
I was looking in the Solaris documentation and UNIX Man pages, however how do I manually run a cron job that is already set-up? I am troubleshooting an issue and the cron job runs just fine during the night, I would like to execute it manually for testing purposes. Thank you in advance.
Run this command :
crontab -l
And, look for the command you want to run and then just execute it on command line. The first five columns (separated by spaces) are date/time/day (skip those), after that you will see full path of the script/program. Just copy and paste that full path on command line. -
Hi,
I would like to run a cron job every minute.
I can find cron.hourly, cron.daily, cron.weekly, cron.monthly in my /etc, but no cron.minutly.
Can I get it? What should I do?
Thanks!
Nathanrun
crontab -e
. this opens an editor. therein you type :
#min hour day month weekday command
*/1 * * * * <your command>
dw was faster
Last edited by DonVla (2008-11-17 16:56:42) -
Solution manager and CCMS monitoring of remote database
I have Solution Manager 7 SP Basis 6 installed. I have oracle remote databases connected successfully. Under DBCockpit I see the instances I want to monitor. I can see the backup, tablespaces, etc. These remote instances are SAP Portal JAVA only version 7 but under the dbcockpit alerts only shows alert monitor. The database check and check conditions are in white. Is there a way to see these and be able to report on them? The CCMS tree under the local solution manager also shows these connected remote instances but they are also white in color as if inactive. All CCMS agents and saposcol are running perfectly on the remote systems. The stats tables have been built, the synonyms for the solution manager are in place. What am I missing?
Hi,
Please download that attachment "scripts_1139623.sar" provided in SAP Note 1139623 - Using transaction RZ20 to monitor remote Oracle databases.
Upon extraction of scripts_1139623.sar the following files you will get.
rz20_nonabap.sql
dbcheckora10_oltp.sql
dbcheckora.sql
Then Perform the below mentioned Steps to resolve your issue.
Step 1: Create tables DBCHECKORA and DBMSGORA:
sqlplus SAPSR3DB/<pwd>
SQL> @rz20_nonabap.sql
Step 2: Fill the table DBCHECKORA:
sqlplus SAPSR3DB/<pwd>
SQL> @dbcheckora10_oltp
Step 3: Create the synonyms (as user ora<sid>):
brconnect -u / -c -f crsyn -o SAPSR3DB
sqlplus "/as sysdba"
CREATE PUBLIC SYNONYM SAP_DBSTATC FOR SAPSR3DB.DBSTATC;
CREATE PUBLIC SYNONYM SAP_DBCHECKORA FOR SAPSR3DB.DBCHECKORA;
CREATE PUBLIC SYNONYM SAP_DBMSGORA FOR SAPSR3DB.DBMSGORA;
Step 4: Grant Privileges for OPS$<SID>ADM User for the above created Tables
sqlplus "/as sysdba"
grant all on SAPSR3DB.DBSTATC to OPS$<SID>ADM;
grant all on SAPSR3DB.DBCHECKORA to OPS$<SID>ADM;
grant all on SAPSR3DB.DBMSGORA to OPS$<SID>ADM;
grant all on SAPSR3DB.DBSTAIHORA to OPS$<SID>ADM;
grant all on SAPSR3DB.DBSTATHORA to OPS$<SID>ADM;
grant all on SAPSR3DB.DBSTATIORA to OPS$<SID>ADM;
grant all on SAPSR3DB.DBSTATTORA to OPS$<SID>ADM;
commit;
Step 5:
Now after successful execution of above mentioned Steps , in DBACOCKPIT (system configuration), try to save the Remote DB entry with "Collect Alert Data". It will be saved without any error.
If you find any errors, post the error contents as a reply of this thread message.
Regards,
Bhavik G. Shroff -
Solution manager for performance monitoring
Hi,
We have implemented solution manager in our project.Can anyone tell me how is this useful for performance monitoring and how can we check expensive sql statements using this.
It would be helpful if anyone can provide me some documentation on this.
ThanksHi
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ce89c290-0201-0010-5985-dd64605111fd
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/3f99cc89-0701-0010-9c86-eae847ae6cd2
refer above threads,
Thanks
Syf -
Solution Manager Setup System Monitoring DB Administrating Alerts
Greetings experts
Can someone please explain how I can get "DB Administrating Alerts" to display in Solution Manager.
Satellite system (FSD) database MTE's are all active (RZ20).
Tcode: DSWP / tab:Solution Monitoring / tab:System Monitoring /
Service: Setup System Monitoring
Tree:
Setup System Monitoring
+--> SAP System FSD 1320011126
+--> Database FSD-DATABASE
|
+--> Administrating DB FSD-DATABASE (DB2 6000)
Issue: DB Administrating Alerts do not display.
*Solution Manager 7.01 SP3 / DB2 09.05.0002 / AIX5.3
Regards
Peter BabbingtonHI
1.Do i need to configure the CCMS_OnAlert_Email, for every alert that you have, in the satellite system?
Best thing I would say is to copy method ( RZ21 --> Method --> Method definition )CCMS_OnAlert_Email to Z_CCMS_OnAlert_Email in Solman and assign this auto reaction to MTE class of satellite systems.
2. How do i configure this out of solution manager, and bypassing the satellite system?
You have to install/configure sapccm4x( for monitoring abap ) on satellite systems by giving details about Solution manager. Then the alert will be sent to Solution manager from satellite system and the configured auto reaction will send mails .
Also go through the links
http://service.sap.com/moniotring
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
http://service.sap.com/rkt --> Solution manager --> Solman Manager < rel > --> Technology Consultants and System Administrator
Thanks
Prince Jose -
Solution Manager Create remote monitoring entry
Hello,
I need some help or clarification please. We just upgraded our Solution Manager to EHP1 spk25 and I'm trying to setup Solman to support central system monitoring. I'm on the last step to enter the moitored ABAP system in CEN through RZ21 Techincal >Configure Central System>Create remote monitoring entry.
I can enter my own System ID but can't enter the RFC destination ? These default to *_RZ20_Collect and *_RZ20_Analyze. I want to use the RFC's already in place through Charm since these are already setup and working correctly. Can someone tell me how to change this or why we have to use the defaults.
Thanks in advance
StephaniePlease disregard.
Thanks -
We've got a development database on which we're working every day. We intend to set up a cron job to run about once a week to help in the maintainance & performance of the database.... analyzing tables, stuff like that. Does anybody have any suggestions as to what scripts it's useful to run to help keep things running smoothly?
We're using 9.0.1
Cheers
RTWe've got a development database on which we're working every day. We intend to set up a cron job to run about once a week to help in the maintainance & performance of the database.... analyzing tables, stuff like that. Does anybody have any suggestions as to what scripts it's useful to run to help keep things running smoothly?
We're using 9.0.1
Cheers
RT i'd suggest you try out oracle enterprise manager and look at the list of events you can test for. You can use this list to implement in cron or let OEM do it for you. You'll find test like, is the listener up, is the db up, is the server up, what tablespaces will not be able to extend, if a disk is getting fulletc and stuff like that . Those items should help you frame your scripts for cron if you like. -
Shell Script gives error when run through cron job.
Hi,
The following shell script runs without any problem when executed manulally.
USED=$(df -h /arch | tail -1 | awk '{print $5}' | cut -d '%' -f 1)
if [ ${USED} -gt 90 ]
then
find /arch/AUBUAT/ -type f -mtime +0 | xargs rm
find /arch/AUBMIG/ -type f -mtime +0 | xargs rm
fi
But the same gives below error when called from a cron job:
/backup/arch_test.sh: syntax error at line 1: `USED=$' unexpected
We are running following version:
bash-3.00$ uname -a
SunOS uaeaubdbdr01.aub.af 5.10 Generic_141444-09 sun4u sparc SUNW,SPARC-Enterprise
Kindly assist.
Thanks
Edited by: user13362786 on Apr 20, 2011 4:36 AMHi,
When I used #!/usr/bin/sh now even the manul execution of the script fails with the same err:
bash-3.00$ ./arch_test.sh
./arch_test.sh: syntax error at line 2: `USED=$' unexpected
And when I used #!/usr/bin/ksh the manual execution runs fine but again when the script is run from cronjob it now give dirrect err:
/backup/arch_test.sh[2]: df: not found
/backup/arch_test.sh[2]: tail: not found
/backup/arch_test.sh[2]: cut: not found
/backup/arch_test.sh[2]: awk: not found
/backup/arch_test.sh[3]: test: argument expected -
RMAN Backup Script not running in cron tab
Hi,
I am having rman backup script which is being executed successfully through shell.
but when scheduled in cron the script is being called but RMAN commands are not getting executed.
i have scheduled cron using oracle user.
Attached below the rman script for taking LEVEL 1 backup
#! /bin/ksh
DATE=`date +%Y-%m-%d`
export ORACLE_SID=ACIDC
export ORACLE_BASE='/home/app/oracle/product/10.2.0'
PATH=$PATH:${ORACLE_HOME}/bin
export PATH
export ULIMIT=unlimited
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib
export LIBPATH=$LD_LIBRARY_PATH:/usr/lib
export TNS_ADMIN=$ORACLE_HOME/network/admin
cd $ORACLE_HOME/bin
rman TARGET= / << EOF > /oraclebkp/rmanlogs/ACIDC/$DATE.log
backup incremental level 1 database;
report obsolete;
delete noprompt obsolete;
exit;
EOF
exit 0
Attached cron script
SHELL=/bin/sh
PATH=:/usr/ucb:/bin:/usr/bin
10 17 * * 2 /oraclebkp/rmanscripts/rmandclvl1.sh 2>&1 >/oraclebkp/cronlogs/delobs.log
Files delobs.log
and oraclebkp/rmanlogs/ACIDC/$DATE.log are being created but with 0 bytes .
Thanks in Advance
HariPriya,rman TARGET= / << EOF > /oraclebkp/rmanlogs/ACIDC/$DATE.log Change this line to and try..
$ORACLE_HOME/bin/rman TARGET= / << EOF > /oraclebkp/rmanlogs/ACIDC/$DATE.log -
Getting return value from sqlplus script while running a unix job
I am trying to run a unix script that calls sqlplus. The following code outlines the unix/sql code that I trying to execute:
return_count=`sqlplus $ORACLE_ID/$ORACLE_PWD@$ORACLE_SID <<EOF | grep '^RETURN_VAL' | sed 's/^RETURN_VAL//'
SET SERVEROUTPUT ON
VARIABLE ReturnValue NUMBER
EXEC :ReturnValue := 1
BEGIN
UPDATE seq_control_nbr
SET table_seq_nbr = table_seq_nbr + 1,
last_updt_dttmstp = systimestamp,
last_updt_user_id = 'ECVMSONS'
WHERE table_key = 'ONSTAR';
IF SQL%ROWCOUNT = 1 THEN
COMMIT;
:ReturnValue := 0;
ELSE
ROLLBACK;
:ReturnValue := 99;
END IF;
DBMS_OUTPUT.PUT_LINE ('RETURN_VAL '||:ReturnValue);
END;
EXIT
EOF`
The above outlined sqlplus script does run because the values on the table are updated. However, I cannot get the value of ReturnValue to be displayed, so it can be returned to the unix script.
Any ideas?ok do the following:-
return_count=`sqlplus $ORACLE_ID/$ORACLE_PWD@$ORACLE_SID <<EOF
SET SERVEROUTPUT ON
whenever OSERROR exit 1
whenever SQLERROR exit 2
UPDATE seq_control_nbr
SET table_seq_nbr = table_seq_nbr + 1,
last_updt_dttmstp = systimestamp,
last_updt_user_id = 'ECVMSONS'
WHERE table_key = 'ONSTAR';
EXIT
EOF`
rowsupdated=`echo $return_count|cut -f1 -d' '`
echo "Rows updated =" $rowsupdated
retcode=`echo $?`
case "$retcode" in
0) echo "Update executed successfully on " ;;
1) echo "Update failed OSERROR ";;
2) echo "Update failed SQLError " ;;
*) echo "Update failed - Unknown Error ";;
esac -
Program that run a cron job in EP?
Hi All,
My requirement is :
if a user upload a file to the specified folder in EP repository. (file will be .txt format), b'z they are the big customers to our client, so that they can just upload the order file.txt in a specified folder.
after uploading a file to that folder or directory, i need to develop one program that will pick the file from a folder or directory for every 10 or 15 mins, need to place the orders in SAP R/3.
Can anybody pl help me in this.
Pl send me any source code or logic.
Help appreciated with Reward Points.
Thx
PradeepHi Pradeep,
for both things wizards exist in NWDS, just right-click on yur project, choose "Service, Filter and Scheduler Task Generation" and go on...
See http://help.sap.com/saphelp_nw04/helpdata/en/3d/b5842eb8a911d5993900508b6b8b11/frameset.htm for the scheduler service and for some predefined scheduler tasks and click around the configuration within EP to understand the settings behind them.
For implementation, see Did you know you can schedule jobs in portal using KM's Scheduler Task? and new Scheduler Task for example
For RepServices, see http://help.sap.com/saphelp_ep60sp2/helpdata/en/69/d96b86a84611d5993600508b6b8b11/frameset.htm for the RepService description and for some predefined repository services and click around the configuration within EP to understand the settings behind them.
For implementation see /thread/15093 [original link is broken] and the link given there.
If questions stay, first look around the forum, many threads have been opened for these issues.
Hope it helps
Detlev -
Configuring the Alert monitoring of Solution Manager 4.0
Dear all,
How can I notify from the central monitoring system when alerts happened?
I have already create and assign auto-reaction method to specific monitor attribute with alerts, but nothing happend. I even looked at the table CSMCENTOOL where the alert data suppose to stored, and the table is still empty.
I will be greatfull if anyone can provide me appropriate document in this matter, or guide me with a list of things that need to be done.
Kind regards,
YagelHi Kai,
Thanks for your quick response.
I have already create and assign the central auto-reaction method exactly as in the example,
and when I try to start the auto-reaction method I receive the alert information "Cannot determine data for method DUMMY_TOLL_FOR_DOUBLEHOP".
I have overcome this alert information by changing the excute method of the <i>defined central auto-reaction</i> from <i>Only in central system, trigged by CCMS agents</i> to <i>Periodically in process(Short running program)</i>, and still, nothing notify when alert happened.
Should I configure the "Related Solution Manager configuration guides on SDN" which describe in the bottom blug as well?
I also didn't understand you when you say to send from SAP-System to another account?
Thanks in advance,
yagel. -
System Monitoring Setup in Solution Manager
Hello Experts,
We are going to implement and configure Solution Manager - System monitoring setup for pre testing purpose
Currenly we have installed below SAP Systems
1.Solution Manager Server
2.ECC server (Without Ides) - Abap
3.CRM Server (Without Ides) -Abap + Java
We need to setup below tasks in Solution Manager
1.Early watch alert
2.System Monitoring
3.Central System Administration
4.Business Process Monitoring
5.Service Level reporting
1.Is it possible to setup the solution manager -above mentioned tasks without Ides system ?
Could you please someone give input reg this.
Thanks
Thirumal
Edited by: Thiru Thirumal on Aug 6, 2008 4:56 AM
Edited by: Thiru Thirumal on Aug 6, 2008 4:57 AMHi,
Q. Is it possible to setup the solution manager -above mentioned tasks without Ides system ?
A. Yes.
Check with links for
1.Early watch alert
This process helps you to identify potential problems early, avoid bottlenecks, and monitor the performance of your ABAP and JAVA systems and your most important business processes, regularly, automatically and effectively. The data collection infrastructure comprises the ABAP Service Data Control Center and the JAVA function module Data Provider. The SAP EarlyWatch Alert in the SAP Solution Manager is a service provided by SAP.
To be able to use it, you have:
maintained the non-ABAP systems correctly in the system landscape maintenance (transaction SMSY)
RFC u2013 Connections between: and an RFC u2013 Connections established.
your satellite systems and the SAP Solution Manager system
SAP Solution Manager and the SAP Service Marketplace
Solution Manager system and Solution Manager Diagnostics
Cf: Solution Manager IMG (transaction SPRO).
checked the availability of the tools required for the SAP Service sessions (add-on ST-A/PI), with the report RTCCTOOL.
activated Alert Monitoring and set-up the Automatic Session Manager (ASM) in the Service Data Control Center (SDCCN) of your satellite systems, for all SAP satellite systems and the central SAP Solution Manager of your solution
set-up your systems in a solution landscape in the SAP Solution Manager
configured Solution Manager Diagnostics
2.System Monitoring
The system monitoring in the SAP Solution Manager is, as described above, like a system-wide central CCMS. It can also contain the central CCMS (CEN) of satellite systems. These CENs can then monitor other components.
The graphical display in the SAP Solution Manager gives you access to the alerts of all systems in a solution. You can go to the local or central CCMS of the satellite systems.
The system proposes the most important alerts in the CCMS monitor collection, according to SAP experience, and their alert thresholds, for each system in the solution, in the system monitoring Session. You can activate or deactivate these alerts. The connection between the local CCMS and the SAP Solution Manager allows you to maintain the alert thresholds directly in the SAP Solution Manager, overwriting the values in the local CCMS.
3.Central System Administration
You activate the customizing for business processes in your solution, in the Business Process MONITORING session in the SAP Solution Manager. A monitoring tree element (MTE), or a monitor collection, u201EBPMu201C of several monitoring objects, is created in the local or central (CEN) CCMS of the satellite system.
The data is collected for the monitoring types of the business process monitoring in contrast to system monitoring, as follows:
● The system collects performance (dialog transactions), posting cancellations (V1 and V2) and u201EOther CCMSu201C and interface data, in the local CCMS of the satellite systems.
● The system collects background processing, application list, application monitors, delivery lists, and document size data, in the central SAP Solution Manager CCMS.
The SAP Solution Manager system copies the data from the local CCMS.
The graphical display in the SAP Solution Manager simplifies access to the alerts for the business processes, business process steps or the interfaces between the systems in a solution. You can go to the local CCMS of the satellite systems.
The connection between the local CCMS and the SAP Solution Manager allows you to maintain the alert thresholds directly in the SAP Solution Manager. These overwrite the values in the local CCMS.
4.Business Process Monitoring
The system and business process monitoring (including interface monitoring) in the SAP Solution Manager, both use the Computing Center Management System (CCMS) (transaction RZ20) architecture. This means that system alerts which occur in the local CCMS, are passed to the SAP Solution Manager via RFC connections between the SAP Solution Manager and the satellites. The system shows these alerts in a graphic or in Sessions. You can also handle the alerts centrally, without having to go to the local CCMS of the satellite systems.
You can see the alerts from several systems in a solution landscape in the SAP Solution Manager, in a graphical overview, in contrast to the local CCMS of the SAP Solution Manager satellite systems. This is the view of a central CCMS (CEN). You can also monitor non-SAP systems in a central CCMS (CEN) of a satellite system
5.Service Level reporting
http://service.sap.com/solutionmanager for all solman tasks as given below.
http://www.asap.net.cn/homepage_en/Solution%20Manager%20EN.pdf
http://help.sap.com/saphelp_sm32/helpdata/en/1b/f02c41ab78f66fe10000000a1550b0/content.htm
http://help.sap.com/saphelp_sm32/helpdata/en/9f/1f46570f8a4a268b3154e0e0f07280/content.htm
Regards,
Srini Nookala
Maybe you are looking for
-
Can we have multiple accounts on 1 computer
My kids received iPod touches and I'm wondering if I can get them their own iTunes account on my same computer and how I go about doing that
-
Bootcamp and windows 8.1
so i successfully installed windows 8.1 with bootcamp. when i'm in windows there is a flag at the bottom right and i clicked it and it said i needed to download some drivers from apple but i couldn't find them when i clicked the link. i tried instal
-
My iPod automatically synced alot of apps and then i canceled but all the app icons are on my iPod and they are all waiting. They aren't taking andy byte!
-
Still can't listen to Style from Taylor Swift's CD1989
I still continue to hear the 8 seconds of static that was released a week before the album was released, and now going on a few days after it has been released it still made that noise on my playlist. I had hopes that if I deleted the cd that i would
-
Help to replicate a form.
I need help to replicate this form style which I had the file but lost it. I will post a pic and please if you can replicate it for me I would be eternaly grateful. the blurred out text is confidential but I need the text boxes there