pdm_logfile lets you change your stdlog.x cutover size. The cutover can occur after a specified number of bytes are written. On UNIX, this value is reset with each pdm_init. On Windows, the settings are retained with each pdm_halt and pdm_init.
Syntax
This command has the following format:
pdm_logfile [-L|-h]
or
pdm_logfile [-g -h] [-b bytes]
Example
To change your stdlog.x files to cutover at 500,000 bytes, issue the following command:
pdm_logfile -f STD -b 500000
-L
Creates a listing of current cutovers.
-q
Runs pdm_logfile in quiet mode.
-b bytes
Specifies the number of bytes written before cutover occurs.
Restrictions
You can run pdm_load while CA SDM is active, but performance can become very slow. It is best to run pdm_load when no one is using CA SDM.
Important! On UNIX, the LIBPATH must be set before running several CA SDM utilities. Use pdm_task to set the LIBPATH before running a utility. For example, input "pdm_task pdm_clean_attachments ...".
The pdm_log4j_config.pl utility lets you configure the log4j properties file of CA SDM, web components, PDM_RPC, Support Automation, Rest, and CMDB Visualizer. Execute the utility batch script that is based on your environment. For Windows, execute pdm_log4j_config from the command line. For UNIX, execute the pdm_log4j_config.sh file.
This command has the following format:
pdm_log4j_config -f <component> -d pdm_log4j_config -h pdm_log4j_config -f <component> [-a | -n <name>] [-l <log level>] [I <max # of log files>] [-s <max size of log files>] [-t <log level threshold>]
Specifies the log4j configuration of CA SDM or the component of CA SDM that you want to change. Enter one of the following values:
SDM_WEB, SDM_RPC, REST, SA, or Viz.
Note: Use the mandatory option along with the other options.
Displays the current log4j.properties configuration.
Displays help for the utility.
Completes all changes to log4j.properties globally.
Specifies that you only want to modify a specific class or package name.
Specify a specific class name, such as bop_logging, or a complete package name, such as com.ca.ServicePlus.
Specifies the log level that you want to set.
Note: Specify the -a or -n option.
Specifies the max file number index that you want to set.
Note: Specify the -a or -n option.
Specifies the max file size that you want to set.
Note: Specify the -a or -n option.
Important! Change the appender in the log4j.properties file of Visualizer to Rolling File Appender before you execute the command with this parameter. If you do not change the appender, MaxFileSize generates logs in the same file.
Specifies the log level threshold.
Note: Specify the -a or -n option.
The following list provides examples of using the pdm_log4j_config utility:
For example, set all of the loggers configured in Support Automation to a level of DEBUG:
pdm_log4j_config -f SA -a -l DEBUG
For example, set the logger for the pdm_rpc package to DEBUG using one of the following code samples:
pdm_log4j_config -f SDM_RPC -n pdm_rpc -l DEBUG
pdm_log4j_config -f SDM_RPC -n com.ca.ServicePlus.pdm_rpc -l DEBUG
For example, set the maximum number of files for all appenders to 9.
pdm_log4j_config -f REST -a -i 9
For example, set the maximum number of files for bop_logging to 7.
pdm_log4j_config -f SDM_WEB -n bop_logging -i 7
For example, set the maximum size of files for all appenders to 9 MB.
pdm_log4j_config -f REST -a -s 9MB
For example, set the maximum size of files for bop_logging to 7 MB.
pdm_log4j_config -f SDM_WEB -n bop_logging -s 7MB
For example, set the log level threshold to DEBUG.
pdm_log4j_config -f SA -a -t DEBUG
Note: The -t parameter log level threshold overrides the -l parameter log level. If you modify the log level and the threshold level, the DEBUG logs from the servlet do not appear in the file.
For example, set the log level threshold to WARN.
pdm_log4j_config -f SDM_WEB -n bop_logging -t WARN
pdm_log4j_config -f REST -d
Important! Use -l, -i, -s, and -t variables together with one of the -a or -n options, Do not use both the options. The -f option is mandatory. The -h and -d options are mutually exclusive to any other option.
Administrators can modify how often CA SDM monitors the log4j.properties file for changes. By default, the refresh interval is set to 60 seconds. CA SDM components including SDM Servlets, PDM_RPC, Support Automation, CMDB Visualizer, and REST use log4j for logging.
Follow these steps:
NX_ROOT
Note: If you enter a negative or nonnumeric value, the value defaults to 60 seconds.
By default, servlets such as PDMContextListener, pdmweb, UploadServlet, and pdm_report log INFO level messages to the jsrvr.log file. You change the threshold level of the jsrvr.log appender to log any messages under the INFO level.
Follow these steps:
log4j.appender.jsrvrlog.Threshold=debug
log4j.logger.com.ca.ServicePlus.uploadservlet=debug, jsrvrlog
Note: If you modify the log level without modifying the threshold level, the DEBUG logs from the servlet do not appear in the file. Not all servlets have explicit loggers attached. For example, the log4j.properties file does include pdmweb, BOServlet, pdm_export, pdm_report, and pdm_cache, which are part of the pdmweb servlet. To see DEBUG logs from these servlets, modify the pdmweb log level.
All logs from nonwebapp applications dump into the jstd.log file separately. You can display logs for any of these applications, such as pdm_rpc by changing the log level of that specific application.
Follow these steps:
log4j.logger.com.ca.ServicePlus.pdm_rpc=debug
Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |