Skip navigation
All People > Patrick-Dussault > Patrick Dussault's Blog > 2016 > June
2016

If you need full debug of the Web Agent or Policy Server installer script until it install the product

you can run the installer that way :

 

# sh -x ./ca-wa-12.52-sp01-cr05-linux-x86-64.bin -i console 2>&1 | tee installer.txt

 

Installer.txt will show the output like this, which might help you to troubleshoot issues with disk space, etc.

 

+ PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/CA/SharedComponents/bin:/opt/CA/SharedComponents/ccs/cam/bin:/root/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin

+ BLOCKSIZE=32768

+ JRESTART=4

+ JREREALSIZE=32424781

+ ARCHSIZE=261

+ RESSIZE=2546

+ RESREALSIZE=83421891

+ ARCHREALSIZE=8522990

+ LAX_NL_CURRENT_VM=jre/bin/java

+ LAX_INSTALLER_UNIX_INTERNAL_PROPERTY_0=bin/java

+ DEFAULTPERMS=002

+ INSTALLER_OVERRIDE_VMLIST=1.6+

+ INSTALLER_STDERR_REDIRECT=

+ INSTALLER_STDOUT_REDIRECT=

+ INSTALLER_HEAP_SIZE_INITIAL=16777216

+ INSTALLER_HEAP_SIZE_MAX=50331648

+ INSTALLER_OPTIONAL_ARGS=

+ RESOURCE_DIR=Linux

+ DEFAULT_UI_MODE=GUI

+ GREP=grep

++ uname

+ '[' Linux = SunOS -a -x /usr/xpg4/bin/grep ']'

+ case `uname -s` in

++ uname -s

+ TR=/usr/bin/tr

+ uimodeuse='not set'

+ hasSeenIUse=false

+ tmpArgsUse=

+ origArgsUse='-i console'

+ for arg in '"$@"'

+ '[' -i '!=' '' ']'

+ tmpArgsUse=' "-i"'

+ '[' -i = -i -o -i = -I ']'

+ hasSeenIUse=true

+ for arg in '"$@"'

+ '[' console '!=' '' ']'

+ tmpArgsUse=' "-i" "console"'

+ '[' console = -i -o console = -I ']'

+ '[' true = true ']'

 

etc...

In root user, get the smpolicysrv process PID.

 

and run the following command :

 

# top -d 60 -p <Policy server PID> -b > top-ouput.txt

 

you'll get each minute all the OS stats about CPU and memory, and the full status of the Policy Server process.