cancel
Showing results for 
Search instead for 
Did you mean: 

Availability server

Former Member
0 Kudos

Hi all,

I'm planning to create script that reads whether current SAP is running or not (oracle database is up and application is up also).

My OS is AIX 5.3, Oracle Database is 11.2.0.2, and SAP ECC is version ECC 6 EHP 4.

I cannot use the availability.log in /usr/sap/SID/DVEBMGSxx/work because it always stated unavailable.

I presume it's because igswd_mt was not installed.

I want to try to use sapcontrol command to get Process List of Message Server and Dispatcher.

But, it turns out that sapcontrol result states our Message Server is stopped, meanwhile the SAP is running.

Here I paste the result of sapcontrol command:

04.04.2013 09:56:39

GetProcessList

OK

name, description, dispstatus, textstatus, starttime, elapsedtime, pid

msg_server, MessageServer, GRAY, Stopped, , , 929950

enserver, EnqueueServer, GRAY, Stopped, , , 475356

Does anybody know why the MessageServer is read as Stopped?

Or is there any parameter beside sapcontrol that I can use to determine SAP status (stop/start)?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member206552
Active Contributor
0 Kudos

hi

is it not easier to do an

to check if oracle is up, check for process pmon

ps -ef | grep pmon

and for sap to check and see if processes are running

ps -ef | grep dw | awk '{a++} END {print a}'

best regards

marius

Answers (2)

Answers (2)

Former Member
0 Kudos

Does anybody know why the MessageServer is read as Stopped?

Well the Message Server probably is not running.

sidadm 11> sapcontrol -nr 01 -function GetProcessList

05.04.2013 08:45:44

GetProcessList

OK

name, description, dispstatus, textstatus, starttime, elapsedtime, pid

msg_server, MessageServer, GREEN, Running, 2013 04 03 05:26:52, 51:18:52, 7771

enserver, EnqueueServer, GREEN, Running, 2013 04 03 05:26:52, 51:18:52, 7772

...

Cheers Michael

Former Member
0 Kudos

@ Michael

The SAP and Oracle are running. Doesn't it mean the message server suppose to be running to?

@ Roman

Which log files do we need to examine?

Could you please advise for more specific log?

Thanks.

Former Member
0 Kudos

Message server and enqueue server logs from work directory.

Former Member
0 Kudos

This is dev_ms log :

---------------------------------------------------

trc file: "dev_ms", trc level: 1, release: "701"

---------------------------------------------------

[Thr 01] Sat Apr  6 21:44:52 2013

[Thr 01] WLM Tag 'JP1/MSG' successfully set for this process

[Thr 01] MsSSetTrcLog: trc logging active, max size = 20971520 bytes

systemid   324 (IBM RS/6000 with AIX)

relno      7010

patchlevel 0

patchno    114

intno      20020600

make:      multithreaded, ASCII, 64 bit, optimized

pid        1245366

[Thr 01] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 1245366) [msxxserv_mt. 1853]

[Thr 01] SigISetDefaultAction : default handling for signal 20

[Thr 01] load acl file = /usr/sap/JP1/SYS/global/ms_acl_info

[Thr 01] MsGetOwnIpAddr: my host addresses are :

[Thr 01]   1 : [10.68.8.49] maxprd (HOSTNAME)

[Thr 01]   2 : [127.0.0.1] loopback (LOCALHOST)

[Thr 01] MsHttpInit: full qualified hostname = maxprd.ind.root

[Thr 01] HTTP logging is switch off

[Thr 01] MsHttpOwnDomain: own domain[1] = ind.root

[Thr 01] ms/icf_info_server : deleted

[Thr 01] *** I listen to port sapmsJP1 (3600) ***

[Thr 01] *** I listen to internal port 13900 (13900) ***

[Thr 01] CUSTOMER KEY: >E1444404407<

[Thr 01] build version=701.2009.12.02

ENQLOG :

**** Enqueue Initialization at 21:17:57 2011/12/31 ****

**** Enqueue Initialization at 01:28:31 2012/02/05 ****

**** Enqueue Initialization at 21:40:29 2012/03/03 ****

**** Enqueue Initialization at 21:18:21 2012/04/07 ****

**** Enqueue Initialization at 21:51:07 2012/05/05 ****

**** Enqueue Initialization at 18:14:08 2012/06/10 ****

**** Enqueue Initialization at 13:34:12 2012/07/06 ****

**** Enqueue Initialization at 14:06:53 2012/07/06 ****

**** Enqueue Initialization at 14:16:11 2012/08/04 ****

**** Enqueue Initialization at 14:35:52 2012/08/04 ****

**** Enqueue Initialization at 22:11:15 2012/08/04 ****

**** Enqueue Initialization at 21:57:05 2012/09/01 ****

**** Enqueue Initialization at 21:57:57 2012/10/06 ****

**** Enqueue Initialization at 09:32:41 2012/10/21 ****

**** Enqueue Initialization at 12:06:32 2012/11/09 ****

**** Enqueue Initialization at 22:49:06 2012/11/10 ****

**** Enqueue Initialization at 10:20:34 2012/12/07 ****

**** Enqueue Initialization at 21:31:05 2012/12/08 ****

**** Enqueue Initialization at 06:59:03 2012/12/31 ****

**** Enqueue Initialization at 21:37:54 2013/01/05 ****

**** Enqueue Initialization at 21:31:00 2013/02/02 ****

**** Enqueue Initialization at 07:23:48 2013/03/03 ****

**** Enqueue Initialization at 21:22:46 2013/03/16 ****

**** Enqueue Initialization at 21:45:13 2013/04/06 ****

Former Member
0 Kudos

Check log files for processes or post it here.