Following are the steps to enable and validate RDT & PTY logging:
- Launch Putty
- Login to the server using credentials with admin access
- Go to directory $DCS_HOME/dcs
- Open hidden file “.dcs_profile” file
- Search for below 3 environment variables and enable them by removing the “#” from the front (Uncomment)
export CRT_LOG="$DCS_TMPDIR" # Log file for ritch processes (also need to enable Function Access)
export PTY_LOG="$DCS_TMPDIR" # Log file for ptysvr processes
export CRTRDT_LOG="$DCS_TMPDIR" # Log file for crtrdt processes
Below command needs to be executed in putty session to enable the hidden FA (CRT_LOG_ENABLED)
dcsdba@uk1svcvlnx37.dev.corp.local bash[1123]: sga -h|grep -i CRT_LOG_ENABLED
CRT_LOG_ENABLED RDT - Enable CRT_LOG ritch screen logging N
dcsdba@uk1svcvlnx37.dev.corp.local bash[1124]: sga -f CRT_LOG_ENABLED -e -y
Checking function id... done
Updating function access... done
dcsdba@uk1svcvlnx37.dev.corp.local bash[1125]: sga -h|grep -i CRT_LOG_ENABLED
CRT_LOG_ENABLED RDT - Enable CRT_LOG ritch screen logging Y
To validate the changes, follow the below steps
- Log off from application server putty session
- Log back into the application server putty
- Restart the application from APPCONTROL
- Log into any RDT and perform some operation
- Go to path $DCS_TMPDIR and validate that files like PTY****_DCS and CRT****_DCS are getting created
Enabling RDT and PTY logging would increase the disk space consumption, hence housekeeping and purging the log files is very important. The following information provides more details around the housekeeping and purging log files
- Script purgerdtlogs available in directory $DCS/server/bin is meant for purging the RDT, PTY and CRT log files
- Purgerdtlogs needs to be scheduled as crontab job and should execute at least once a day. The frequency can be increased/decreased based on disk space analysis
- The first run of the job would truncate the original log files and archives them by adding “.OLD” extension to the files. During next run, it would truncate the files with “.OLD” extension