Skip to Content

If you are using windows, then you probably know the Microsoft Management Console (MMC), which provides a common framework for system management. SAP has developed the SAP Systems Manager snap-in which allows you to monitor, start or stop SAP systems centrally from the MMC, this simplifying system administration. Under Unix, however, for a long time no such tool was available.

But with SAP NetWeaver 7.0, things finally got moving:

  • A new start service (sapstartsrv) is available on all platforms. It is offering web service interfaces to applications for centrally administering and monitoring SAP systems.
  • With a similar UI to the SAP Systems Manager snap-in of the MMC, the SAP Management Console(SAP MC) was developed, which uses the web services mentioned above. The SAP MC is a browser-based, platform-independent user interface providing basic monitoring and administration of SAP systems.
  • Within the development of SAP NetWeaver 7.1 the web service interfacs were further improved. These functions are already available to you in the SAP NetWeaver Composition Environment 7.1. To some degree, a downport of these functions to NW 7.0 is planned.

This weblog introduces the SAP MC. Technically, it’s a Java applet running in a Java Runtime Environment on the front end host.

Summarized, the SAP MC allows you to monitor and perform basic administration tasks on SAP systems centrally, thus simplifying system administration. Among other things, it provides the following functions:

  • Monitor and control (start, stop, or restart) SAP systems (ABAP and Java) and its instances with a single tool.
  • Display SAP log and trace files, start profiles, instance parameters, the system environment, SAP environment, and so on.
  • Display and control Java and ABAP processes.
  • Monitor system alerts.

If you want to use the SAP MC, you need a Java Runtime Environment with a release as of release 1.4 on your front end. Besides, the corresponding Java Plug-In has to be active on your browser. To start the SAP MC, simply enter the following URL into your web browser:

http://<host>:5<instNum>13

Now, simply choose Start.

Depending on the patch level of the SAP system, the values of the system entered in the URL are shown. If not, you can always add instances manually, using the pushbutoon “Add new instance”.

Now specify the host parameters of the SAP system you want to display:

As you can see, the UI is similar to the MMC:

I suggest that you click a little bit around to find out about the different functions. Don’t worry! You have to confirm every potentially dangerous command (for example stopping an instance) by entering user and password in order to prevent misuse. Or – if you one of the rare breed, who prefer reading the documentation first – follow this link:

http://help.sap.com/saphelp_nwce10/helpdata/en/44/c707c053550f2ce10000000a1553f7/frameset.htm

Note:
Remember that this the documentation of the SAP NetWeaver Composition Environment, so for your NW 7.0 system not all of the functions mentioned there are available.

Some remarks about the UI:

Right click an instance or a system to get more commands on that level:

Entries below instance levels often contains sub trees; the corresponding icons appear after you’ve chosen the corresponding entry. As an example, you can see the sub trees for system monitoring, which show the current status and open alerts reported to the CCMS monitoring segments of the corresponding instance.

One remark about monitoring of Java instances. In release SAP NetWeaver 7.0, there is the entry AS Java containing a process table with information about the Java processes:

In SAP NetWeaver 7.1 however, you can see much more. If you add a Composition Environment (CE) instance, you can see a whole bunch of extremely important monitoring values – representing one of the most complete and comprehensible collection of metrics about Java monitoring. In detail, it contains:

  • information about the AS Java threads, sessions, caches, aliases, Enterprise JavaBeans (EJB) sessions, remote objects
  • Java Virtual Machine garbage collection and heap memory information of the application server

To report this post you need to login first.

76 Comments

You must be Logged on to comment or reply to a post.

  1. Jochen Spieth
    Hi,

    nice Blog, and a really nice tool, too.
    Unfortunately, both of the notes you mention are not found in service.sap.com. It would be interesting to find out how to use the SAP MC with NW04 Systems.

    Cheers,

    Jochen

    (0) 
    1. Dirk Jenrich Post author
      Hi Jochen,

      thanks for the feedback.

      Now both notes are released and available in German. Hopefully the translation won’t take too long.

      Cheers,
      Dirk

      (0) 
  2. Pankaj Kumar
    Dirk

    Thanks for letting us know about this tool. This is very useful. If one is a pure unix guy then one gets used to working on command line. But sometime you don’t have the luxary and you have to work on windows as well as unix. This would be very handy for managing on unix.

    Cheers
    Pankaj

    (0) 
  3. Avishay Cohen
    hi !

    very nice ,but is it possible to make it work with a single config  file (not a config per user profile – “.sapmc” ) – my thought is to make it a central monitor of our sap instances
    thanks
    avishay

    (0) 
  4. Christian Wosgien
    Hi Fabrizio,
    First as you mentioned: the entrances in the startprofile. Second the file /etc/pam.d/other must be modified. Else you cannot login from the Management Console, when you try to start/stop/restart the instances. (The hint comes from the syslog).

    Greetings
    Christian Wosgien

    (0) 
    1. zwinch zwinch
      Hi Christian,

      We are in AIX/NW04s SP13 and I want to use Java SAP MMC in order to centralize the administration of all my instances.
      My problem is I’m not able to start or stop my instances using this tool, even if my I entered the sidadm and its password successfully.
      I read almost of OSS notes regarding SAP MMC and I could change the file /etc/pam.conf by adding the following line :
      sapstartsrv     auth    required        /usr/lib/security/pam_aix

      Also, in start profile files (ABAP + JAVA), I added the following lines :
      sapstartsrv/protectedwebmethods = Start Stop RestartInstance Shutdown StartSystem StopSystem RestartSystem StopService J2EEControlProcess SendSignal OSExecute J2EEEnableDbgSession J2EEDisableDbgSession SetProcessParameter EnqRemoveLocks GetInstanceProperties

      Then I restarted my instances (ABAP + JAVA), but the same issue. I don’t know what to do.

      Could you help me please?

      Thanks in advance for your reply.

      Regards,
      Mohamed Boussaïd

      (0) 
      1. Fabrizio Muscarella
        Hello Mohamed,

        In your case on AIX there is a couple of different problems. The library in /usr/lib/security/pam_aix is 32 bit,and i suppose your SAP installation 64 ;-)) If you just use the line:
        sapstartsrv auth   required        pam_aix

        then pam automatically select the right lib for you;-)).
        Anyway in you case i will hav a look at OSS Note 1140980 for AIX, and generally at Note 927637. We introduce now a s-bit program (described in Note 927637, sapuxsusrchk) wich should make the authentication easier ;-))

        Regards,
        Fabrizio

        (0) 
    2. Derrick Day
      Hello,

      I have succesfully found the pam.conf file but not the pam.d file described in Christian’s reply. Any ideas as to where to find this are greatly appreciated.

      Blessed Regards,
      Derrick

      (0) 
    3. Fabrizio Muscarella
      Hello Christian,

      In your case, with SuSE 10, you have the so called blowfish problem ;-)) Ask Thorsten Kukuk from SuSE for better information on it.,;-))Anyway, you should have a look at OSS Note 958253 Which describe how to fix this authentication issue.

      Let me know if it works.

      Regards,
      Fabrizio

      (0) 
      1. Fabrizio Muscarella
        Hi Again,

        In your case i will create a special roule for sapstartsrv in /etc/pam.d/sapstartsrv, and not modify other which also influence the behaviour of the other programs (like sudo etc…)

        Regards,
        fabrizio

        (0) 
  5. Kim Bundgaard
    Hi

    I like the tool (SAP MC) – and have downloaded sapmc_2-10004279.sar from the Service Portal. I use the standalone version.

    But where did the tool save the info about SAP Systems?

    I would like to look at +100 SAP Systems (620, 640 and 700), and it took a very long time to start the tool if I add more than 10 systems.

    I’ve tried to define different landscape and use load/save landscape, but I don’t switch between the landscpaes, but actually append.

    Any idea for switching between groups of landscapes?

    Regards
    Kim Bundgard

    (0) 
    1. Fabrizio Muscarella
      Hi,

      Just yesterday i submit a new patch to Service Portal (patch #4). In this patch you will be able to load different landscape file within one, MC, and also the startup performance should be better. It would be nice if you let me know if you get better results.

      Regards,
      fabrizio

      (0) 
      1. Fabrizio Muscarella
        Hi Again,

        Additionally in the Settings Dialog you should increase the number of thread to ~20, and additional memory (using the VM argument .XmxNNNm would also help ;-))

        R.,
        Fabrizio

        (0) 
  6. Paulo Poínha
    Hello, I have been able to add all application instances, but somehow cannot add central instance…. It displays connection failed… Any ideas ?? I have tried all my environments (Dev, Qua, Prod) and all act the same way, app instances are fine, central does not connect…
    (0) 
  7. Mario Oertel
    Hi there,

    when I click start on this page my webbrowser just closes and nothing else happens.
    Does anyone know what can be wrong?

    Thanks
    Mario

    (0) 
    1. Fabrizio Muscarella
      Hello MArio,

      This is an issue related with some version of the JVM and IE. If you update the SAP-MC with the latest version (See CSN Note 1014480) this shoudn’t happens anymore.

      Regards,
      Fabrizio

      (0) 
  8. Thomas Dierkes

    If you want to actually restart instances running on Unix from the MMC you have to be at least on kernel patch 159. See note 927637 for more details./DVEBMGS00/work/sapstartsrv.log for detailed error messages (you might have to increasing debug level via profile parameter service/trace = 3 and restart sapstartsrv).

    (0) 
  9. Daniel Rothmund
    Hi ,

    can I install the saphostagent on Netweaver 7.0 ?

    I have download the SAPHOSTAGENT_25-10004183.SAR file to a nw 7.0 system. When I call
    ./saphostexec -install then it comes some strange errors.

    Sat Oct 25 17:19:30 2008
    Install service
    *** ERROR => Get id of user sapadm failed. (0: Error 0) [HostServiceI 616]
    Memory fault(coredump)

    Regards

    Daniel

    (0) 
    1. Fabrizio Muscarella
      Hi Daniel,

      Of course it is possible. But generally you have to take care that your OS is supported (the list of the OS supported is the 7.10 list and not 7.00) and you have to make sure that all prerequisite are fullfilled. See CSN Note 1031096 or the documentation in http://help.sap.com.

      In your case for example the user “sapadm” has to be created, since saphostexec -install doesn’t do that (for several reasons).

      Regards,
      Fabrizio

      (0) 
      1. Daniel Rothmund
        Hi ,

        thanks now it works with NW 7.0.
        About the SAP MC I have installed the SAP HostAgent on the NW 7.0 Portal System. But I can see the advance options for the j2ee stack ?
        Is this normal ?

        Regards

        Daniel

        (0) 
        1. Fabrizio Muscarella
          Hi Daniel,

          Unfortunately yes. For 700 systems only the Java Process list will be shown, and other features like J2EE LogFiles.
          The whole java details (Thread, Caches, etc…) are first implemented in >=710 kernel.

          Regards,
          Fabrizio

          (0) 
          1. Daniel Rothmund
            Hello ,

            one last question 🙂

            On some system I receive the warning : “Running but Dialog Queue info unavailable”.  I have checked the profile parameter rdisp/elem_per_queue but the message is still there.
            Another question we have on System with two application server but in the SAP MC the Application Servers does not appear.

            Regards

            Daniel

            (0) 
            1. Fabrizio Muscarella
              Hi,

              Generally there is a problem if you use profile parameter which changes the SHM (Shared Memory) layout only in the instance profile, since sapstartsrv is accessing also the SHM data. In order to fix this issue you have to add the same profile value in the Start Profile (or once in DEFAULT.PFL) and restart sapstartsrv (You can just use the menu “Restart Service” in  the SAP-MC to do that).

              For the second problem, there is some version of sapstartsrv (older) not supporting the instance list methods. Of course you can try to add it manually to see if generally the connection works (use the New… Menu item).

              Regards,
              Fabrizio

              (0) 
    1. Dirk Jenrich Post author
      Hi,

      that doesn’t work. Using a NW70 CEN you definitively need an CCMS agent which acts as an RFC server.

      The SAPHOSTAGENT communicating via a web service needs an central monitoring system with a release as of NW 7.01.

      Kind regards
      Dirk

      (0) 
    1. Fabrizio Muscarella
      Hi,

      The authentication is done over sapstartsrv. Since on UNIX only root based program are able to autenticate, we create an helper program called sapuxuserchk which, with help of the s-bit is able to authenticate anyone. To install it, follow please the instruction of SAP Note 927637.

      Please make sure that the user you are using have also write permission on the sapstartsrv executable.

      Generally the authentication is executed over PAM (configure in your pam.conf a sapstartsrv module). So you can additionally use pam modules to log the user and additionally informations for it.

      I hope this help,
      Regards,
      Fabrizio

      (0) 
  10. Luciano Dei Rossi
    Hi all,
    just one question (I didn’t see the anyone asking about this).

    A customer has recently been subjected to a security audit.
    The audit advised that via SAPMC, a potential intruder could gather a lot of info about the system via SAPMC without providing user/psw..

    There is a way to limit the data that a non-logged user can see on the console?
    Or there is a way to not start the SAPMC at the system startup?
    I did some test, I tried (in a brutal way) to simply remove the folder. It worked partially (I got a http 404 error) but there is a process who’s listen on the port 5xx13.. So seems that something try to call the process whatsoever..

    Any suggestion?
    Thanks

    (0) 
    1. Fabrizio Muscarella
      Hello,

      This behavior is configurable. Generally the problem is not the SAP-MC itself, but the Web Service interface used. The SAP-MC only ask for username/password if the Web Service API want it. By default this Web Service only ask for authentication if you call Management Function (Like Start / Stop, etc…), and not for Monitoring function. But you can change this configuration editing the Profile parameter service/protectedwebmethods as described in this blog in the answer “permissions using sapstartsrv
      2008-02-08 04:14:15″.

      If you protect all web methods the SAP-MC will ask for a user/pwd at connection time with the system. This configuration is from usability point of view, a little bit a problem, because at connection time (with more that one system) you have to insert one password per system in the MC (so if you have 20 system you have to logon 20 times, because you will always have different SIDadm user).

      Best Regards,
      Fabrizio

      (0) 
  11. Daniel Rothmund
    Hello,

    today I saw that mit Patch 32 the CCMS Agent work with a nw 7.0. Gives a docu for this ? The note is not public

    Regards

    Daniel

    2009/02/06     Enables SAPCCMSA against a 7.00 system, -> Note 1299618

    (0) 
    1. Dirk Jenrich Post author
      Hi Daniel,

      I’m a little bit puzzled. There is no SAPCCMSA agent; but if you mean the classic CCMS agent SAPCCMSR, this agent has always worked with NW 7.0.

      The note you mentioned (you’re right, it’s in status ‘In Process’) is about installing the SAPHOSTAGENT on an IBM i machine. This note is basically referring to note 1031096.

      Dirk

      (0) 
      1. Daniel Rothmund
        Hi Dirk,

        thanks for the quick response. For the ccms Agent in the HOSTAGENT have you a quick HOWTO ? When I try to connect the ccms AGENT to the NW 7.0 CCMS it’s seems to be fine. But the agent not appear in the rz21.

        Regards

        sapstartsrv_ccms.log
        INFO: CCMS Agent will connect to the following central CCMS systems:
        INFO: **********************************************************
        INFO: *********************      C25      **********************
        INFO: **********************************************************

        INFO: CCMS Agent initialization finished successfully.
        INFO: [C25:110:CSMREG] connected to C25, host gdepfh55.geberit.net, System Nr. 35, traceflag [ ]
        INFO: C25 release is 701 , (kernel release 701 ), CCMS version 20060508

        (0) 
        1. Fabrizio Muscarella
          Hello,

          Connection timeout, means that the TCP/IP connect was executed, and no SYNC was sent back from the server. The TCP/IP implementation in the OS will wait for a while (a fix configured time) and the interrupt the connect with a “timeout error”. This is nothing ralated wit he SAP-MC but with your Network Configuration! There is several reason while thi could happens: Firewall wich block the communication , wrong routing to the host etc….

          So you have to check your network configuration!

          Regards,
          Fabrizio

          (0) 
  12. John Heintzberger
    I notice on 7.0 systems when I install the SapHostAgent I get more information about the Oracle database.  I get a status for the Archiver, Database, Instance, and Listener.

    I have a SAP NetWeaver 7.0 distributed system with the central instance (SCS) and the Java instance installed on one Server running Windows 2003. The Database Instance is running on AIX. When I add this system to SAP MC, I do not even get the Database listed with the system. When I installed the database instance on AIX with sapinst it did not install sapstartserv or any of the SAP kernel. I tried installing SapHostAgent on AIX, but I still can not see any information about the database.

    Is there anyway I can get the same information to show for a distributed database as I get for a database that is on the same server as the SAP instance?

    (0) 
      1. John Heintzberger
        Thank you for your quick response.

        I ran the command you suggested and did not find the line about the J2EE DB. I have included the entire output from the command below.

        C:\>sapcontrol.exe -nr 52 -function GetInstanceProperties

        11.06.2009 07:53:06
        GetInstanceProperties
        OK
        property, propertytype, value
        Process List, NodeWebmethod, GetProcessList
        Current Status, NodeWebmethod, GetAlertTree
        Open Alerts, NodeWebmethod, GetAlertTree
        J2EE Process Table, NodeWebmethod, J2EEGetProcessList
        Protected Webmethods, Attribute, Start,Stop,RestartInstance,Shutdown,StartSystem
        ,StopSystem,RestartSystem,StopService,J2EEControlProcess,SendSignal,OSExecute
        StartPriority, Attribute, 3
        IGS, NodeURL, http://whq-sappos:45280
        Webmethods, Attribute, Start,Stop,Shutdown,ParameterValue,GetProcessList,GetStar
        tProfile,GetTraceFile,GetAlertTree,GetAlerts,RestartService,StopService,GetEnvir
        onment,ListDeveloperTraces,ReadDeveloperTrace,RestartInstance,SendSignal,GetVers
        ionInfo,GetQueueStatistic,GetInstanceProperties,OSExecute,ReadLogFile,AnalyseLog
        Files,ListLogFiles,GetSystemInstanceList,StartSystem,StopSystem,RestartSystem,Ac
        cessCheck,ShmDetach,ABAPReadSyslog,ABAPReadRawSyslog,ABAPGetWPTable,ABAPAcknowle
        dgeAlerts,J2EEGetProcessList,J2EEControlProcess,J2EEGetThreadList,J2EEGetSession
        List,J2EEGetCacheStatistic,J2EEGetApplicationAliasList,J2EEGetVMGCHistory,J2EEGe
        tVMHeapInfo

        John Heintzberger

        (0) 
        1. Fabrizio Muscarella

          Hello John, <br/><br/>Ok generally this information is retrieved using  values setup during the installation  in the profile used by sapstartsrv. <br/><br/>Now we can have 2 kind of problems. sapstartsrv use the wrong profile, or the entry are (for some reasons) not there. <br/><br/>Please check if the profile of sapstartsrv (instance 52 of course 😉 )) contains the following values:, to start from the SAP-MC the Oracle Web Administration tool.

          (0) 
          1. John Heintzberger
            Hello Fabrizio,

            Adding the three parameters solved my problem. I did have to add them to the DEFAULT profile, adding them to the START profile did not work.

            Thanks for your help,

            John

            (0) 
  13. Mehul Aghera

    Does anybody know where I am finding problem .. Want to Configure SAP MMC in my Solman Box……<br/><br/>Java Plug-in 1.6.0_15<br/>Using JRE version 1.6.0_15-b03 Java HotSpot(TM) Client VM<br/>User home directory = C:\Documents and Settings\MAGHERA<br/>–


    <br/>c:   clear console window<br/>f:   finalize objects on finalization queue<br/>g:   garbage collect<br/>h:   display this help message<br/>l:   dump classloader list<br/>m:   print memory usage<br/>o:   trigger logging<br/>q:   hide console<br/>r:   reload policy configuration<br/>s:   dump system and deployment properties<br/>t:   dump thread list<br/>v:   dump thread stack<br/>x:   clear classloader cache<br/>0-5: set trace level to <n><br/>—


    <br/><br/><br/>load: class com.sap.managementconsole.applet.ManagementConsoleInstallerApplet.class not found.<br/>java.lang.ClassNotFoundException: com.sap.managementconsole.applet.ManagementConsoleInstallerApplet.class<br/>     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br/>     at java.lang.ClassLoader.loadClass(Unknown Source)<br/>     at java.lang.ClassLoader.loadClass(Unknown Source)<br/>     at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br/>     at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br/>     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br/>     at java.lang.Thread.run(Unknown Source)<br/>Caused by: java.io.IOException: open HTTP connection failed:http://slqsm1.qas.lmp.army.mil:50013/sapmc/com/sap/managementconsole/applet/ManagementConsoleInstallerApplet/class.class<br/>     at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br/>     at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br/>     at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br/>     at java.security.AccessController.doPrivileged(Native Method)<br/>     … 7 more<br/>Exception: java.lang.ClassNotFoundException: com.sap.managementconsole.applet.ManagementConsoleInstallerApplet.class<br/>

    (0) 
    1. Fabrizio Muscarella
      Hello,

      The java VM isn’t able to load the java classes, because the HTTP connection to the backend failed “open HTTP connection failed”.

      Are you sure that the address of the service is correct? Did you tried to start the SAP-MC  using your browser (just type http://slqsm1.qas.lmp.army.mil:50013)

      If no SAP-MC starts, you should check which instance number your instance has.

      Regards,
      Fabrizio

      (0) 
    1. Fabrizio Muscarella
      Hi,

      SSO is currently in developement (the service used by the SAP-MC support first with 720 SSO). Currently there is no possibility to use one single user for all Systems.
      This will be supported by a newer version of the SAP-MC. If you are interested on ,i can notify you when this version will be out.

      Regards,
      Fabrizio

      (0) 
  14. Anke Schrader
    I’ve got about 80 instances to manage and started setting up the SAP console.  So far it’s crap.  Way to slow – darn Java.

    My instances run on AIX with Db2.  Any updates on that?

    (0) 
    1. Fabrizio Muscarella
      Hi,

      The reason why the console become so slow is because java get continuously a “OutOfMemory” exception, and try to find free memory (which is not possible since the default value for the max heap of 64Mb, is alread reached ;-))
      Generally you have to change the default size of the java heap. The default of 64Mb, for applet, is in your case (by 80 instances you will need generlly more ;-))) too small. To change this default for the applet, follow the instruction reported on this page (http://www.duckware.com/pmvr/howtoincreaseappletmemory.html). A value of the settings -Xmx512m should be enought.

      You can additionally give the console a couple of thread more, so that more instances could be connected in parallel. To increase the number of thread used by the MC:
      – open the SAP-MC settings page.
      – Increse the value “Number of threads”, in the area “Thread Pool” (by defult is 5). I would suppose that a value of 20 will give good results.

      By the way, you can also think to use the console as standalone tool instead of as applet. If you want more info to do it, just let me know.

      Regards,
      Fabrizio

      (0) 
      1. Raghu Gajjala
        Fabrizo,
        I have the same problem. I applied changes suggested by you ( Changed -Xms value to 512M and increased “Thread pool” to 20). I did not notice any significant change in performance. I still feel SAP MC is slow. I would like to try to use the console as a standalone. Please forward the details.

        Thanks
        Raghu

        (0) 
        1. Fabrizio Muscarella

          Hello, <br/><br/>As i wrote would be interesting to know which VM you are using, and the source of the problem. Normally you can Increase the debug level in the SAP-MC in the Settings dialog, open the Java Console in your browser ynd you should see a lot of enty and also exceptions. <br/><br/>Anyway to start the sapmc as standalone application you can proceed as follow.<br/>1. Copy the content of the directory servicehttp/sapmc on your host in a directory (For example /opt/sapmc, or c:\sapmc).<br/><br/>Now you have 2 startup possibility:<br/>2.a Use Java Web Start<br/>  To use Java Web Start you have to modify the samc.jnlp file contained in the directoy as follow:<br/><jnlp spec=”1.0” codebase=”http://hostname” href=”sapmc.jnlp”><br/>in<br/><jnlp spec=”1.0” codebase=”file:/C:/sapmc” href=”sapmc.jnlp”><br/>Then you can add also<br/><j2se version=”1.4“/><br/>in<br/><j2se version=”1.4” max-heap-size=”512M”/><br/><br/>Save the jnlp file and open it using java web start. On windows explorer normally you can right clich on the file sapmc.jnlp, and select “Launch”<br/><br/>2.b<br/>Use a shell script (batch file)<br/>- Unix you can create a file sapmc.sh with the following content:<br/><br/>#!/bin/bash<br/>SAPMC_LIB=/opt/sapmc<br/>CP=$/frog.jar<br/>CP=$:$/sapmcsoap.jar<br/>CP=$:$/sapmc.jar<br/>CP=$:$/sapmcswing.jar<br/>CP=$:$/soapclient.jar<br/><br/>ARGS=’-Xmx512m -Xms80m'<br/>JAVA_HOME=/opt/java<br/><br/>$/bin/java $ -classpath $ com.sap.managementconsole.swing.main.ManagementConsole $*<br/><br/>- Save the file sapmc.sh. Change the permission to be executable (chmod ugo+x sapmc.sh)<br/>- execute sapmc.sh<br/>On Windows:<br/>- Create sapmc.bat with the following content:<br/>set JAVA_BIN=”C:\Program Files\Java\jre1.6.0_13\bin”<br/>set MC_HOME=C:\work\bin\sapmc<br/>set ARGUMENTS=-Xmx512m<br/><br/>start “SAP-MC” %JAVA_BIN%\javaw.exe %ARGUMENTS% -cp %MC_HOME%\sapmc.jar;%MC_HOME%\sapmcswing.jar;%MC_HOME%\sapmcsoap.jar;%MC_HOME%\sapmcaxis.jar;%MC_HOME%\sapmcjaxws.jar;%MC_HOME%\soapclient.jar;%MC_HOME%\frog.jar com.sap.managementconsole.swing.main.ManagementConsole<br/><br/>- Save the file.<br/>- Start it.<br/><br/>Regards, <br/>Fabrizio

          (0) 
                1. Raghu Gajjala
                  Fabrizo,
                  Standalone performance is much better.

                  I tested using URL on three different machine. I got better results on the machine with JRE version 1.5.0_11-b03. Not sure, JRE version that makes the difference.

                  Thanks
                  Raghu

                  (0) 
                  1. Fabrizio Muscarella
                    Hi,

                    Did you tried a JRE 1.6 also? Which Browser?
                    You can try opening within the browser the Java Console. You will see a lot of output. If you activate trace in the SAP-MC (Settings->Debug and select Log Level=ALL), you will see even more output. This could help to identify the problem area.

                    Regards,
                    Fabrizio

                    (0) 
  15. Daniel Geers
    Hi Fabrizio,

    I have the following problem:
    On our Portal Development Server (EPE, Nw7.0) I installed the SAPHostAgent SID SAP, Nr. 99. It seems to be running, but htere some messages in sapstartsrv.log that worry me a little AND I can’t see any operating system info in the SAP Mc for Instance EPE. It states to install the agent or just start ist.
    Here is the log, can you tell me what’s wrong?

    —————————————————
    trc file: “sapstartsrv.log”, trc level: 1, release: “711”
    —————————————————
    pid        33060

    [Thr 33004] Mon Nov 23 17:55:15 2009
    [Thr 33004] MtxInit: -2 0 0
    [Thr 33004] *** ERROR => DlLoadLib()==DLENOACCESS – LoadLibrary(“sapNThalib.dll”)
      Error 126 = “The specified module could not be found.” [dlnt.c       255]
    DlLoadLib(‘sapNThalib.dll’) failed: -2 => HA support disabled
    CCMS agent initialization: return code 0.
    CCMS agent start: return code 0.
    Initializing SAPHostControl Webservice
    [Thr 33004] =================================================
    [Thr 33004] = SSL Initialization  on  PC with Windows NT
    [Thr 33004] =   (711_REL,Nov  9 2009,mt,ascii,SAP_UC/size_t/void* = 8/64/64)
    [Thr 33004] =   found SAPCRYPTOLIB  5.5.5C pl26  (Mar  6 2009) MT-safe
    [Thr 33004] =   current UserID: SDU11596\sapadm
    [Thr 33004] =   found SECUDIR environment variable
    [Thr 33004] =   using SECUDIR=C:\Program Files\SAP\hostctrl\exe\sec
    [Thr 33004] =  secudessl_Create_SSL_CTX():  PSE “C:\Program Files\SAP\hostctrl\exe\sec\SAPSSLC.pse” not found,
    [Thr 33004] =      using PSE “C:\Program Files\SAP\hostctrl\exe\sec\SAPSSLS.pse” as fallback
    [Thr 33004] =  secudessl_Create_SSL_CTX():  PSE “C:\Program Files\SAP\hostctrl\exe\sec\SAPSSLA.pse” not found,
    [Thr 33004] =      using PSE “C:\Program Files\SAP\hostctrl\exe\sec\SAPSSLS.pse” as fallback
    [Thr 33004] ******** Warning ********
    [Thr 33004] *** No SSL-client PSE “SAPSSLC.pse” available
    [Thr 33004] *** — this will probably limit SSL-client side connectivity
    [Thr 33004] ********
    [Thr 33004] = Success — SapCryptoLib SSL ready!
    [Thr 33004] =================================================
    [Thr 33004]
    Starting WebService SSL thread
    Starting WebService Named Pipe thread
    Starting WebService thread
    Webservice named pipe thread started, listening on port \\.\pipe\sapcontrol_99
    [Thr 29540] ***LOG Q0I=> NiPGetServByName: ‘saphostctrl’ not found: getaddrinfo (10109: WSATYPE_NOT_FOUND: The specified class was not found.) [ninti.c 939]
    Webservice thread started, listening on port 1128
    [Thr 33688] ***LOG Q0I=> NiPGetServByName: ‘saphostctrls’ not found: getaddrinfo (10109: WSATYPE_NOT_FOUND: The specified class was not found.) [ninti.c 939]
    Webservice SSL thread started, listening on port 1129
    [Thr 27540] ***LOG Q0I=> NiPGetServByName: ‘saphostctrl’ not found: getaddrinfo (10109: WSATYPE_NOT_FOUND: The specified class was not found.) [ninti.c 939]
    [Thr 15308] CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    [Thr 15308] CCMS: Initalized shared memory of size 40000000 for monitoring segment.
    [Thr 15308] CCMS: Checking Downtime Configuration of Monitoring Segment.
    [Thr 15308] CCMS: AlMsUpload called by wp 1998.
    [Thr 15308] CCMS: AlMsUpload successful for C:\Program Files\SAP\hostctrl\work\ALMTTREE.DAT (149 MTEs).

    Thanks in advance.
    Best Regards,

    Daniel

    (0) 
    1. Fabrizio Muscarella
      Hi Daniel,

      The first block of messages in the logfile say’s that no PSE was found for the SSL configuration.
      If you don’t want to use SSL, you can just ignore it. If you want to use it, you have to create a PSE for the service, and configure ssl. We are working on an Note which describe the configuration steps.
      If you then are using HTTPS in the SAP-MC, this will also explain why you don’t see the OS Data. As workaround you can just use HTTP only, or let me know and i can describe the HTTPS configuration.

      The other warnings (NiPGetServByName: ‘saphostctrls’ not found) means simply that the definition in /etc/services for saphostctrl wasnt found. In this case you can also ignore it, because by default then the right port is choosen.

      Regards,
      Fabrizio

      (0) 
      1. Daniel Geers
        Hi Fabrizio,

        I unmarked “Use HTTPS” and removed System EPE from SAP MC. I reconnected to it, but still I can’t see any operating system Info. Message to install SAPHostAgent or just start it.
        The Host of EPE is Windows x64 Server 2003. But this shouldn’T make any differnce, should it?

        Best Regards,
        Daniel

        (0) 
        1. Fabrizio Muscarella
          Hi Daniel…

          Hmmm this is really strange.
          Let see. First check if you can reach SAPHostAgent from outside. To do that, you can use the saphostctrl.exe executable. This command line tool is a WebService client of the HostAgent, and is installed in the same directory as the agent itself. You can copy the executable on another machin, he has no dependencies. Execute the following command.
          x:>saphostctrl.exe -host hostname -function GetComputerSystem

          If this call works, then is a problem in the Console. Would be usefull to have the Java Log (in your browser choose show Java Console) Eventually you have to activate it before over the Control Panel. Then You can start the Console, possibly without systems registered, and after this step, go to the “Settings Dialog”->tab “Debug”, and select the Log Level: “ALL” . In this case could be that the MC become a little bit slower ;-)).
          Now you can register the instance of the system EPE, and wayt until all connection are done. Click on the OS Tab, Eventually go also within the instance node and click on “Computer System”, refresing the node.

          Finally your Java Console Window should contain a lot of entry;-)). Would be nice if you can send me that.

          Regards,
          Fabrizio

          (0) 
          1. Daniel Geers
            Hi Fabrizio,

            after having restarted the EPE system (only SAP, not Server) due to ESS/MSS Support Packages, suddenly I see Opertaing System details in SAP MC!

            Did nothing else. 🙂

            Best regards and thanks for your time,

            Daniel

            (0) 
            1. Fabrizio Muscarella
              Hi,

              More strange. Did you check if due your support package a new version of the console was deployed.
              This is the only point which can explain the behaviour for me ;-))

              Regards,
              Fabrizio

              (0) 
  16. David Hill

    I know this hasn’t been active for a while but could you guys update the links to the images?

    Also, is the SAP MC supposed to be able to see and administer the SAP Host Agent? I can see my SAP system PRD and the Diagnostics Agent DAA but can’t see the Host Agent (Instance 99). I tried adding it but just get a connection refused message.

    Thank you,

    David

    (0) 

Leave a Reply