C H A P T E R 4 |
System Management Tools |
Content Delivery Server provides tools to monitor and manage your system. This section describes the following tools:
A diagnostic tool is provided with Content Delivery Server to report information about the system and the environment when problems occur. Use this tool to obtain diagnostic information for the following system components:
The diagnostic tool cdsdiag is located in the $CDS_HOME/bin directory. Run the tool using the following command:
cdsdiag [options] -component
The following table describes the valid options. TABLE 4-2 describes the valid components.
The following table describes the valid components.
Provides information about the application server. See Section 4.1.2.1, Application Server Diagnostics. |
|
Provides information on the current configuration of Content Delivery Server. See Section 4.1.2.2, Content Delivery Server Configuration. |
|
Provides information about the Java virtual machine. See Section 4.1.2.3, Java Virtual Machine Diagnostics. |
|
Provides information about the database based on the value specified for task. The following values are valid for task:
|
|
Provides information about the operating system. See Section 4.1.2.5, Operating System Diagnostics. |
The information provided by the diagnostic tool depends on the component specified in the diagnostic tool command. The following sections describe the information by component.
Use the following command to generate all information for all components:
cdsdiag [options] -all
The valid options are described in TABLE 4-1.
Note - If you are using WebLogic Server, run this command for all diagnostics only when Content Delivery Server is not being heavily used. Otherwise, you risk bringing down the system. |
Content Delivery Server must be running before you use the diagnostic tool to get information on the application server. Use the following command to generate the diagnostic information:
cdsdiag [options] -appserv
The valid options are described in TABLE 4-1.
The following information is provided:
Use the following command to generate diagnostic information about the Content Delivery Server configuration:
cdsdiag [options] -conf
The valid options are described in TABLE 4-1.
The following information is provided:
Use the following command to generate diagnostic information for the Java virtual machine:
cdsdiag [options] -jdkstat
The valid options are described in TABLE 4-1.
The following information is provided:
By default, Java virtual machine diagnostics are written to standard output for the command window in which Content Delivery Server is running. Use the -f option to write the diagnostics to a file. Use the log filter utility cdslogfilter.pl when Content Delivery Server is started to write the diagnostic information to the window in which the diagnostic tool is executed, for example:
cdse starterserver | cdslogfilter.pl [options]
See Section 4.1.3, Log Filter Utility more for information.
Use the following command to generate diagnostic information for the database:
cdsdiag [options] -oracle task
The valid options are described in TABLE 4-1.
The information provided about the database is based on the value specified for task. The following values are valid:
Use the following command to generate diagnostic information for the operating system:
cdsdiag [options] -osstat
The valid options are described in TABLE 4-1.
The following information is provided:
The diagnostic tool uses the following system utilities to gather the information. If one of the utilities is not available or is not configured correctly, warnings might be generated and the corresponding information might not be provided.
Note - If you receive errors from the lsof utility, make sure that you are running the latest version, which is available at http://people.freebsd.org/~abe/. Also, if the diagnostic tool is run by a non-privileged user, the s-bit must be set for the lsof utility. To set the s-bit, use the command chmod u+s lsof. |
The log filter utility captures the output of a Java virtual machine thread dump, and is called by the diagnostic tool when Java virtual machine diagnostics are requested. See Section 4.1.2.3, Java Virtual Machine Diagnostics for an example of how the utility is used.
This utility acts as a proxy for the output of another process and is not intended to be run as a stand-alone process. Use this utility whenever you want to filter a Java virtual machine thread dump from a Java virtual machine process. The utility is a script written in Perl and requires a Perl interpreter for execution.
The log filter utility cdslogfilter.pl is located in the $CDS_HOME/bin directory. Run the utility using the following command:
cdslogfilter.pl [options]
The following table describes the valid options.
The option to obtain information about the operating system, -osstat, is currently not supported on the HP-UX platform.
For other options of the diagnostic tool to work, use the following code to create a wrapper script for the ps command.
Change the default locations for some of the system commands in the diagnostic tool itself using the following steps:
1. Open the $CDS_HOME/bin/cdsdiag file for edit.
2. Find the line that starts with TAIL= and replace it with TAIL=/usr/bin/tail.
3. Find the line that starts with AWK= and replace it with AWK=/usr/bin/awk.
4. Find the line that starts with UPS= and replace it with UPS=/ups.sh.
If you saved the wrapper script to a different location, specify that location in place of /ups.sh.
A license auditing tool is provided with Content Delivery Server to generate a report on system usage. The purpose of this tool is to monitor system usage to ensure that usage is within the bounds of the license agreement. This tool is run automatically every month and at the end of every license period. You can also run the tool manually to generate a report for a specific time period.
Auditing data is generated by the Event Service for the Vending Manager with which the Event Service is associated. Monthly data is stored locally in a file. Data generated at the end of a license period or by manual execution is emailed to an address that you specify.
To ensure accurate reporting by the license auditing tool, set the properties described in the following table. These properties are in the License.properties file in the $CDS_HOME/deployment/deployment-name/conf directory. Set these properties for each deployment.
If automatic reporting is enabled (the license.disabled property is set to false), the Event Service triggers the license auditing tool once each month and at the end of a license period. The license auditing tool can also be executed manually. The properties referred to throughout this section are defined in TABLE 4-4.
The first time the Event Service is started, an audit entry is generated for every month from the date specified for the license.start_date property to the current date. Subsequently, the license auditing tool runs monthly on the day of the month that corresponds to the license.start_date property. For example, if the start date is set to 6/7/2007, the license auditing tool runs on the 7th of each month.
The monthly report contains an entry for each month since the license start date. Depending on the license model, each entry contains either the number of active subscribers or the number of transactions for the month. Entries are written to the License.txt file in the $CDS_HOME/deployment/deployment-name/logs directory. If this file is not found, the tool recreates the file and regenerates the data for all past months.
The length of a reporting period is specified in the license.period property. Beginning with the license start date, the Event Service triggers the license auditing tool at the end of each period. The report generated contains either the number of active subscribers or the number of transactions for the period, depending on the license model. This information is sent to the email address specified for the license.smtp.address property.
You can generate a manual report at any time using the following command:
cdsi license [-deployment deployment-name] [-date date]
The following table describes the optional arguments.
Content Delivery Server must be running when you execute the command. The license report is obtained from the Event Service in the specified deployment.
The report generated contains either the number of active subscribers or the number of transactions for the period that contains the date specified. The type of data reported depends on the license model. The information is sent to the email address specified for the license.smtp.address property.
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.