AnsweredAssumed Answered

Introscope Agent configuration in Weblogic startup script

Question asked by Arwintrambulo on Apr 7, 2014
Latest reply on Nov 18, 2014 by musma03

Hi , Im currently working on Introscope. I installed the agent in a   windows server that runs a WEBLOGIC Application.As i add the path in the startup script (startPIA.CMD) The server is not viewable in the Introscope Workstation Console.


Please see startPIA.cmd details.

rem ***************************************************************
rem  This software and related documentation are provided under a
rem  license agreement containing restrictions on use and
rem  disclosure and are protected by intellectual property
rem  laws. Except as expressly permitted in your license agreement
rem  or allowed by law, you may not use, copy, reproduce,
rem  translate, broadcast, modify, license, transmit, distribute,
rem  exhibit, perform, publish or display any part, in any form or
rem  by any means. Reverse engineering, disassembly, or
rem  decompilation of this software, unless required by law for
rem  interoperability, is prohibited.
rem  The information contained herein is subject to change without
rem  notice and is not warranted to be error-free. If you find any
rem  errors, please report them to us in writing.
rem  Copyright (C) 1988, 2010, Oracle and/or its affiliates.
rem  All Rights Reserved.
rem ***************************************************************

@REM ******************************************************************

@REM *************************************************************************
@REM This script is used to start WebLogic Server for this domain.
@REM To create your own start script for your domain, you can initialize the
@REM environment by calling @USERDOMAINHOME\setDomainEnv.
@REM setDomainEnv initializes or calls commEnv to initialize the following variables:
@REM BEA_HOME       - The BEA home directory of your WebLogic installation.
@REM JAVA_HOME      - Location of the version of Java used to start WebLogic
@REM                  Server.
@REM JAVA_VENDOR    - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
@REM PATH           - JDK and WebLogic directories are added to system path.
@REM                - Classpath needed to start WebLogic Server.
@REM PATCH_CLASSPATH - Classpath used for patches
@REM PATCH_LIBPATH  - Library path used for patches
@REM PATCH_PATH     - Path used for patches
@REM WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
@REM JAVA_VM        - The java arg specifying the VM to run.  (i.e.
@REM                - server, -hotspot, etc.)
@REM USER_MEM_ARGS  - The variable to override the standard memory arguments
@REM                  passed to java.
@REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
@REM POINTBASE_HOME - Point Base home directory.
@REM                - Classpath needed to start PointBase.
@REM Other variables used in this script include:
@REM SERVER_NAME    - Name of the weblogic server.
@REM JAVA_OPTIONS   - Java command-line options for running the server. (These
@REM                  will be tagged on to the end of the JAVA_VM and
@REM                  MEM_ARGS)
@REM For additional information, refer to the WebLogic Server Administration
@REM Console Online Help(
@REM *************************************************************************


set DOMAIN_HOME="E:/psoft/WGLH9DEV\webserv\pswglh9dev"

@if exist %DOMAIN_HOME%\config\config.xml goto checkForHelp
@echo Script must be run from the WebLogic domain's bin directory. 1>&2
goto end

@if /i [%1] EQU [-h] (goto usage)
@if /i [%1] EQU [/h] (goto usage)
@if /i [%1] EQU [-?] (goto usage)
@if /i [%1] EQU [/?] (goto usage)
@if /i [%1] EQU [-help] (goto usage)
@if /i [%1] EQU [/help] (goto usage)

@call %DOMAIN_HOME%\bin\setEnv.cmd %*
goto startWebLogic

@call %DOMAIN_HOME%\bin\setEnv.cmd %*
@echo Use %THISCOMMAND% is used to start the %ADMINSERVER_SERVERNAME%
@echo instance of WebLogic server.
@echo  Usage: %THISCOMMAND% [options]
@echo  Options:
@echo   -capture                   Redirectes stdout and stderr to log files.
@echo   -debug                     Enable JDPA debug support on port 7777.
@echo   -debugport "port number"   Enable JDPA debug support on specified port.
@echo   -verbose:ssl               Increase WebLogic SSL Log level to DEBUG.
@echo   -verbose:wl                Increase WebLogic logging level to INFO.
@echo   -verbose:gc                Enable JRE verbose garbage collection.
@echo Current Java memory heap settings for this server are shown below.
@echo To change these values edit %CD%\setEnv.cmd
goto end

set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS% -javaagent:"C:\Program Files (x86)\CA APM\Introscope9.5.0.0\wily\Agent.jar" -Dcom.wily.introscope.agentProfile="C:\Program Files (x86)\CA APM\Introscope9.5.0.0\wily\core\config\IntroscopeAgent.profile"

set SAVE_CLASSPATH=%CLASSPATH%;C:\Program Files (x86)\CA APM\Introscope9.5.0.0\wily\common

if "%PRODUCTION_MODE%"=="true" (
 set WLS_DISPLAY_MODE=Production
) else (
 set WLS_DISPLAY_MODE=Development

echo .

echo WLS Start Mode=%WLS_DISPLAY_MODE%

echo .


echo .

echo PATH=%PATH%

echo .

echo ***************************************************

echo *  To start WebLogic Server, use a username and   *

echo *  password assigned to an admin-level user.  For *

echo *  server administration, use the WebLogic Server *

echo *  console at http:\\hostname:port\console        *

echo ***************************************************


@if /i [%ENABLE_VERBOSE_WL%] == [false] (goto runJava)
@echo PATH=%PATH%
@if [%ENABLE_JDPA_DEBUG%] == [true] (echo JDPA debug port=%DEBUG_PORT%)
echo Attempting to start WebLogic Server '%SERVER_NAME%'

echo starting weblogic with Java version:

%JAVA_HOME%\bin\java -version

SET JAVACMD=%JAVA_OPTIONS% %PSLOGGING% -Dweblogic.Name=%SERVER_NAME%  -Dps_vault=%DOMAIN_HOME%\piaconfig\properties\psvault"%SSL_KEY_STORE_PATH%" -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE%\server\lib\weblogic.policy -Dssl.debug=%ENABLE_VERBOSE_SSL% -Dps_home="%PS_HOME%" %VERBOSE_WL% %HTTP_PROXY% %SERVER_CLASS%


if not exist %DOMAIN_HOME%\piaconfig\jcmdprop (
      mkdir %DOMAIN_HOME%\piaconfig\jcmdprop

if /i [%CAPTURE_STDOUT_STDERR%] == [true] (
        if not exist %DOMAIN_HOME%\servers\%SERVER_NAME%\logs (
    mkdir %DOMAIN_HOME%\servers\%SERVER_NAME%\logs
 echo Standard output and standard error are being redirected to %DOMAIN_HOME%\servers\%SERVER_NAME%\logs\%SERVER_NAME%_*
        echo No additional info will be displayed in this window.
        echo Java home=%JAVA_HOME% 1>%DOMAIN_HOME%\servers\%SERVER_NAME%\logs\%SERVER_NAME%_stdout.log
        echo Java command line=java %JAVACMD% 1>>%DOMAIN_HOME%\servers\%SERVER_NAME%\logs\%SERVER_NAME%_stdout.log
        echo Java command line=java %JAVACMD% 1>%DOMAIN_HOME%\piaconfig\jcmdprop\%SERVER_NAME%_javacmdline_prop
        echo Java options=%JAVA_OPTIONS% 1>>%DOMAIN_HOME%\servers\%SERVER_NAME%\logs\%SERVER_NAME%_stdout.log
        "%JAVA_HOME%\bin\java" %JAVACMD% 1>>%DOMAIN_HOME%\servers\%SERVER_NAME%\logs\%SERVER_NAME%_stdout.log 2>%DOMAIN_HOME%\servers\%SERVER_NAME%\logs\%SERVER_NAME%_stderr.log
) else (
 echo java %JAVACMD%
        echo Java command line=java %JAVACMD% 1>%DOMAIN_HOME%\piaconfig\jcmdprop\%SERVER_NAME%_javacmdline_prop
        "%JAVA_HOME%\bin\java" %JAVACMD%
        echo WebLogic is no longer running.



I appreciate your big help.