Access Gateway (SPS) nohup.out log rotation
search cancel

Access Gateway (SPS) nohup.out log rotation

book

Article ID: 218031

calendar_today

Updated On:

Products

CA Single Sign On Agents (SiteMinder)

Issue/Introduction

Is there a way to control Access Gateway (SPS) nohup.out log rotation?

Environment

Release : 12.8x
Component : Access Gateway (SPS)

Resolution

As of now, Access Gateway logs are redirected stdout and stderr to Nohup. there is no supported mechanism exist for AG Nohup log rotation.

(NOTE : There are some recommendations below that you can try for test purposes that may or may not work and are not supported.)

  1. Can the nohup log in Access Gateway be disabled completely (MS and Linux platforms)? 

    No.

  2. Can the nohup in Access Gateway be controlled using any of the parameters listed within "logger.properties" as “appender.SvrConsoleAppender.target=SYSTEM_OUT" or any other ?

    No.

  3. Is there any way to control the nohup file or manage it on Access Gateway Both MS and Linux platforms ? If not what Alternatives do we have.
  • For Linux: Rotatelogs in Linux can be tried by updating proxyserver.sh (under CA/secure-proxy/proxy-engine) below for non-Empty nohups for 60 seconds, instead of one with OOTB:

    $NOHUP_JAVACMD $JVM_MEM_OPTS $JVM_PERF_OPTS $SPS_TOMCAT_OPTS -DNETE_WA_ROOT=$NETE_WA_ROOT -DPWD=$PWD -classpath $CLASSPATH com.netegrity.proxy.ProxyBootstrap -config $CONFIGFILE  2>&1 | rotatelogs -l -n 10 $OUTPUT_FILE 60 & echo $! > $SPS_PID_FILE

  • For Windows: Any alternative to rotatelogs in windows (cygwin, powershell, etc.) can be tried.

    (NOTE: Both of the above options, rotatelogs in Linux and any alternative on Windows, are NOT SUPPORTED alternatives.)