包含在尋找其他文件熱門支援資源 | 以 PDF 格式下載這本書 (1042 KB)
Chapter 2 Logging SubcommandsThe logging subcommands configure parameters for the following applications: Portal Server, Search web application, Portal Administration Server, Administration Console and Portal Server Secure Remote Access Gateway, Netlet proxy, and Rewriter proxy. Changes you make using the logging subcommands are persistent. This chapter describes the following subcommands: psadmin list-loggersDescriptionLists all the loggers. SyntaxLong Formatpsadmin list-loggers --adminuser uid --passwordfile password-filename --component component-type [--portal portal-ID] [--instance portal-instance-name] [--searchserver search-server-ID] [--sra-instance sra-instance-name][--detail] [--output output-filename] [--verbose] Short Formatpsadmin list-loggers -u uid -f password-filename -m [-p portal-ID] [-i portal-instance-name] [-s search-server-ID] [-o output-filename] [-v] OptionsThe following options are required:
The following options depend on the --component option:
The following options are optional
ExamplesExample 2–1 list-loggers./psadmin list-loggers -u amadmin -f passwordfile -m portal -p myPortal -i myInstance the output is:
Example 2–2 list-loggers with detail./psadmin list-loggers -u amadmin -f passwordfile -m portal -p myPortal -i myInstance --detail the output is:
psadmin set-loggerDescriptionSets the level for logger and also separate file for the logger. SyntaxLong Formatpsadmin set-logger --adminuser uid --passwordfile password-filename --component component-type [--portal portal-ID] [--instance portal-instance-name] [--searchserver search-server-ID] [--sra-instance sra-instance-name] --name logger-name --level level [--file {--stack-trace | --parent}] [--output output-filename ] [--verbose] Short Formatpsadmin set-logger -u uid -f password-filename -m component-type [-p portal-ID] [-i portal-instance-name ][-s search-server ] -O logger-name -L level [ -F{-T | -P}] -o output-filename] [- v] OptionsThe following options are required:
The following options are optional:
Example 2–3 set-logger levelObtain the logger name from list-logger subcommand. Set the level of the logger. ./psadmin set-logger -u amadmin -f passwordfile -m portal -p myPortal -i myInstance -O debug.com.sun.portal.desktop -L INFO Example 2–4 set-logger for separate fileSet a separate file and level for the logger. In this new file, no stack trace is logged and no content is logged to the parent (the log related to debug.com.sun.portal.desktop is not logged into the file associated with debug.com.sun.portal): ./psadmin set-logger -u amadmin -f passwordfile -m portal -p myPortal -i myInstance -O debug.com.sun.portal.desktop -L INFO -F the output is:
Example 2–5 set-logger for stack traceSet a separate file and level for the logger. In this new file, stack trace will be logged. But log content will not logged to the parent (the log related to debug.com.sun.portal.desktop will not be logged into the file associated with debug.com.sun.portal) ./psadmin set-logger -u amadmin -f passwordfile -m portal -p myPortal -i myInstance -O debug.com.sun.portal.desktop -L INFO -F -T output is:
psadmin reset-loggerDescriptionResets the log level and log file to that of the root logger. SyntaxLong Formatpsadmin reset-logger --adminuser uid --passwordfile password-filename --component component-type [--portal portal-ID] [--instance portal-instance-name] [--searchserver search-server-ID] [--sra-instance sra-instance-name]--name logger-name [--output output-filename] [--verbose] Short Formatpsadmin reset-logger -u uid -f password-filename -m component-type [-p portal-ID] [--instance portal-instance-name] [-s search-server] [-i instance-name] [-O logger-name][ -o output-filename] [-v] OptionsThe following options are required:
The following options are not required:
Example 2–6 reset-loggerObtain the logger-name using the list-logger subcommand. ./psadmin reset-logger -u amadmin -f passwordfile -p myPortal -i myInstance -O debug.com.sun.portal.desktop The logs no longer go to the logger's log file, instead they go to the parent's log file with the same level as the parent. The log related to debug.com.sun.portal.desktop is only logged into the file associated with debug.com.sun.portal ) outputs:
Location of Log FilesThe location of log files is as follows: Portal InstanceLog Configuration Filename and Location ps-data-directory/portals/portal-ID/config/PSLogConfig.properties Example /var/opt/SUNWportal/portals/myPortal/config/PSLogConfig.properties Log file Location ps-data-directory/portals/portal-ID/logs/instance-ID By default only one file is created - portal.0.0.log Portlet ApplicationsLog Configuration Filename and Location ps-data-directory/portals/portal-ID/config/PSLogConfig.properties Example /var/opt/SUNWportal/portals/myPortal/config/PSLogConfig.properties Log file Location ps-data-directory/portals/portal-ID/logs/instance-ID By default only one file is created - portal.0.0.log Search WebappLog Configuration Filename and Location ps-data-directory/searchserver/search-ID/config/SearchLogConfig.properties Example /var/opt/SUNWportal/searchserver/mySearch/config/SearchLogConfig.properties Log file Location ps-data-directory/searchserver/search-ID/logs/ By default three files will be created - rdmserver.0.0.log, rdm.0.0.log, rdmgr.0.0.log Admin CLIsLog Config Filename and Location ps-config-directory/PSAdminLogConfig.properties Example /etc/opt/SUNWportal/PSAdminLogConfig.properties Log file Location ps-data-directory/logs/admin By default only one file is created - portal.admin.cli.0.0.log Admin ServerLog Config Filename and Location ps-config-directory/PSAdminLogConfig.properties Example /etc/opt/SUNWportal/PSAdminLogConfig.properties Log file Location ps-data-directory/logs/admin By default only one is created - portal.0.0.log Admin ConsoleLog Configuration Filename and Location ps-data-directory/portals/portal-ID/config/PSLogConfig.properties Example /var/opt/SUNWportal/portals/myportal/config/PSLogConfig.properties Log file Location ps-data-directory/logs/admin By default only one is created - portal.0.0.log GatewayLog Configuration Filename and Location ps-config-directory/platform.conf.gateway-profile-name Example /etc/opt/SUNWportal/platform.conf.gateway-profile-name Log file Location ps-data-directory/logs/sra/gateway-profile-name By default only one file is created - portal.gateway.0.0.log Netlet ProxyLog Configuration Filename and Location ps-config-directory/platform.conf.gateway-profile-name Example ps-data-directory/logs/sra/gateway-profile-name Log file Location ps-data-directory/logs/sra/gateway-profile-name By default only one file is created - portal.nlproxy.0.0.log Rewriter ProxyLog Configuration Filename and Location ps-config-directory/platform.conf.gateway-profile-name Example /etc/opt/SUNWportal/platform.conf.gateway-profile-name Log file Location ps-data-directory/logs/sra/gateway-profile-name By default only one file is created - portal.rwproxy.0.0.log |
|||||