Oracle Enterprise Manager Ops Center includes the OCDoctor utility, a tool that can check systems for installation prerequisites, troubleshoot issues, and tune systems for Oracle Enterprise Manager Ops Center. This chapter discusses the use of the OCDoctor.
The following features and topics are covered in this chapter:
The OCDoctor is a tool that can provide a variety of information about Oracle Enterprise Manager Ops Center and current or potential Enterprise Controller, Proxy Controller, and Agent Controller systems.
The OCDoctor is located in the
/var/opt/sun/xvm/OCDoctor directory on the Enterprise Controller system. You can copy the OCDoctor to other systems or download it from Oracle. Once you have copied it onto a system, you can perform preinstallation checks, troubleshoot issues, and check for OCDoctor updates.
If you are operating in disconnected mode, or if you want to install the latest version of the OCDoctor on a new system, you can download the latest version from Oracle.
On an Internet-facing system, navigate to http://java.net/projects/oc-doctor/downloads and click the OCDoctor-LATEST.zip download.
Move the downloaded file to the target system.
Unzip the file.
If the target system is an existing Enterprise Controller, replace the contents of the /var/opt/sun/xvm/OCDoctor directory with the contents of the zip file.
You can use the OCDoctor to verify that systems meet the prerequisites for an Oracle Enterprise Manager Ops Center installation, get a benchmark score, or check the system's connectivity.
Change to the
OCDoctor.sh script with one of the following options:
--ec-prereq: Verifies that the system meets the prerequisites for an Enterprise Controller installation.
--proxy-prereq: Verifies that the system meets the prerequisites for a Proxy Controller installation.
--agent-prereq: Verifies that the system meets the prerequisites for an Agent Controller installation.
--performance: Checks the speed of the system and provides a Benchmark Time (BT) score. You can use a BT score to estimate how many assets a system can effectively manage. You should use this option when the system is idle.
--check-connectivity: Verifies that the system has network connectivity by connecting to My Oracle Support and downloading two test files.
# ./OCDoctor.sh --check-connectivity Ops Center Doctor 4.36 [OC 18.104.22.1688,SunOS11] ======================== Checking Network Connectivity ============================== Using Ops Center Proxy server:example-proxy.company.com Port:80 (you may overwrite it by setting https_proxy) Please enter the My Oracle Support (MOS) Username: email@example.com Password: Test 1/4: Checking CC service reachability (without using user/password yet) ============================================================================== Connecting to https://hs-ws1.oracle.com/ochi/servicecheck?type=cc OK: CC status is OK Test 2/4: Checking GUUS service (KnowledgeBase Service) reachability (without using user/password yet) ============================================================================== Connecting to https://hs-ws1.oracle.com/ochi/servicecheck?type=guus OK: GUUS status is OK Test 3/4: Downloading Knowledge Channels file from updates.oracle.com =========================================================================== Connecting to https://updates.oracle.com/channels3/channels.xml OK: Knowledge download was successful! Test 4/4: Downloading patch 108437-06 from updates.oracle.com =========================================================================== Connecting to https://updates.oracle.com/all_unsigned/108437-06.zip OK: Patch download was successful!
The OCDoctor can help you troubleshoot issues and tune systems.
Change to the
Run the OCDoctor.sh script with one of the following options:
--troubleshoot: Troubleshoots common problems and suggests solutions. You can also use the
--fix option to automatically fix certain issues.
--collectlogs <parameters>: Collects all logs from the current system. You can add optional parameters to pass the logs to collection scripts.
--needhelp: Provides information on gathering additional system information and filing a support case.
--tuning: Scans the current system and suggests changes to improve system performance. You can also use the
--fix option to automatically apply some tuning improvements.
--whatisblobid <id>: Provides details about the specified blob id.
--getblobid <patch id>: Provides the blob id for a specified patch.
# ./OCDoctor.sh --troubleshoot Ops Center Doctor 4.36 [OC 22.214.171.1248,SunOS11] [Read only] [31-Mar-2014 10:34AM MDT] ======================== Checking Enterprise Controller... ============================== OK: Total number of agents (without Solaris 11 ones): 20 OK: Number of agents with inventories: 20 OK: Enterprise Controller requirements are met OK: Files in /var/opt/sun/xvm/images/agent/ have the right permissions OK: Files in /var/opt/sun/xvm/osp/web/pub/pkgs/ have the right permissions OK: both pvalue and pdefault in systemproperty are equal to false (at id 114) OK: Found only 57 OCDB*.aud files in oracle/admin/OCDB/adump folder OK: Found no ocdb*.aud files in oracle/admin/OCDB/adump folder OK: No auth.cgi was found in cgi-bin OK: User 'oracleoc' home folder points to the right location OK: User 'allstart' home folder points to the right location OK: Apache logs are smaller than 2 GB OK: n1gc folder has the right permissions OK: All agent packages are installed properly OK: All Enterprise Controller packages are installed properly OK: Enterprise Controller status is online <Output omitted>
The OCDoctor can locate and download updates if it is on an Internet-facing system. The Enterprise Controller performs this update automatically. You can also perform this update manually.
Change to the
Run the OCDoctor.sh script with the
--update option. If you want to force a download of the latest online version, use the
# ./OCDoctor.sh --update Ops Center Doctor 4.36 [OC 126.96.36.1998,SunOS11] Trying to download updates... Using Ops Center Proxy server:example-proxy.company.com Port:80 Downloading version file using mirror: updates.oracle.com OK: Version file was downloaded successfully OK: Connected successfully - but no updates were found (current: 4.36, online: 4.36). You may force downloading the online version by running: # ./OCDoctor.sh --update --force
The OCDoctor directory includes a script that you can run on the Enterprise Controller to see the current asset count for the Enterprise Controller and each Proxy Controller, including a breakdown of the type of assets on each Proxy Controller.
The asset count is included when you run the OCDoctor script with the
Change to the
AssetCount.sh script. For example: