Sun Gathering Debug Data for Sun Connection
Peter Charpentier, October 11, 2007 This Tech Note is intended for anyone who needs to open a Service Request for a Sun Connection issue with the Sun Support Center. IntroductionSun Connection is a Solaris and Linux life cycle management tool that allows you to provision new systems, manage their updates and configuration changes, and eventually redeploy systems for new purposes. You can subscribe to update and provisioning channels to manage Solaris, Red Hat, and SUSE systems. If you have an active Sun service plan you can access to the Solaris 10 Update Channel. This technical note describes how to collect data that the Sun Support Center requires to debug problems with a Sun Connection system. By collecting this data before you open a Service Request, you can substantially reduce the time needed to analyze and resolve a problem. This technical note covers Sun Connection 1.0.x 1.1 and 1.1.x on the Solaris Operating System and Linux platforms. The information applies to all types of environments, including test, pre-production, and production. To reduce performance impact, verbose debugging is used only when necessary. It is possible that the problem might disappear when you configure logging for debug mode. In most cases, the debug data described here is sufficient to analyze the problem. If your problem does not conveniently fit into any of the specific categories that are presented here, supply the general information described in Collecting Basic Debug Data for Sun Connection and clearly explain your problem. If the information you provide is not sufficient to find the root cause of the problem, the Sun Support Center will ask for more details, as needed. Overview of Collecting Debug DataThere are five basic steps for collecting debug data for a Sun Connection problem. This document provides information about the first and last Step below.
Collecting Basic Debug Data for Sun ConnectionThis section describes the kinds of debug data that you need to provide based on the kind of problem that you are experiencing. Note that the script will detect which OS you are running, but also which parts are installed on a specific machine, such as agent, server, engine, and console software. To Enable and Restore Debugging for the Agent
To Enable and Restore Debugging for the Server
To Enable and Restore Debugging for the Engine
To Enable and Restore Debugging for the Console
To Enable and Restore Debugging for the CLI
To Collect Data Regarding the Agent, Engine, Server, and Console
Additional Command-Line OptionsSpecify an output directoryWhen using any of the # ./SUN-GDD_SunConnection.sh -collectAgent -o /var/tmp In this case, the agent data will be collected without prompting for a location and the resultant file will be located at:
Specify a userAs data is logged to each console or CLI user's home directory
when the software is in use, it is necessary to specify the location
of those files. When using the # ./SUN-GDD_SunConnection.sh -collectConsole -u /root # ./SUN-GDD_SunConnection.sh -collectCli -u none # ./SUN-GDD_SunConnection.sh -collectAll -u /home/scuser In the first example, data from the console user will be
collected from the /root directory. The second example will collect
basic data for the CLI, but user logs will not be collected. In the
third example, Disable restart of processesWhen any # ./SUN-GDD_SunConnection.sh -debugAgent -r The user will then be prompted to manually restart the agent processes. Disable filesystem space checkWhen the # ./SUN-GDD_SunConnection.sh -collectServer -s Automatic debug, collect and restoreWhen using any of the # ./SUN-GDD_SunConnection.sh -debugAll -auto 3600 When invoked as above, the user will be prompted for an output directory and user home directory, then all installed components will have debug enabled and the user will be prompted to reproduce any issues that have been noticed. The collection will resume after the specified time has elapsed, 1 hour (3600 seconds), once this has completed, all installed components will be restored to their original state. Putting it all together: # ./SUN-GDD_SunConnection.sh -debugAll -auto 3600 -s -u /home/scuser -o /var/tmp # ./SUN-GDD_SunConnection.sh -debugAgent -auto 3600 -o /var/tmp When the above commands are run simultaneously on the server and an agent system and any issue reproduced during the wait time, the collected data will provide a valuable view of the environment to a support engineer. Note - The Help Screen Example From the Sun GDD Sun Connection ScriptThe following help screen is provided by the script. It is displayed if no options are provided. At least one option is always required to be able to use the script. Usage: ./SUN-GDD_SunConnection.sh [option][-auto][-u -o -r -s]
Options:
-collectAll Collect Data from all
-collectAgent Collect Data from Agent only
-collectServer Collect Data from Server only
-collectEngine Collect Data from Engine only
-collectConsole Collect Data from Console only
-debugAgent Enable Agent Debug
-debugServer Enable Server Debug
-debugEngine Enable Engine Debug
-debugAll Enable Debug for All
-restoreAgent Restore Agent Debug
-restoreServer Restore Server Debug
-restoreEngine Restore Engine Debug
-restoreAll Restore Debug for All
-h or -help Print this Information.
-u <user-dir> / none Specify the user's home directory
for -collectConsole and -collectCli functions,
or “none” to disable user data collection
-o <output-dir> Specify output directory for -collect functions
-auto <time> Automatic debug and collection
Used with any debug option
A time in seconds must be specified
-r Disable restart of processes
-s Disable free space check when collecting server files
One debug/collect/restore option is mandatory or the script will just exit.
-debugConsole function has no effect on Sun Connection below version 1.1
Running any debug or restore option will restart Sun Connection processes unless -r is specified
Technical Script DetailsThe following debug information is required for the various software elements. Debug Information for the AgentThe following information is added to the
Debug Information for the ServerThe following information is added to the
Debug Information for the EngineThe following information is added to the
Creating a Service Request With the Sun Support CenterWhen you create a Service Request through the Sun Support Center, either online or by phone, provide the following information:
Upload your debug data archive file to the following locations: For more information on how to upload files to this site, see the following web page: http://supportuploads.sun.com/show?target=faq Note - When opening a Service Request by phone with the Dispatch Team, provide a
summary of the problem, then send the details in a text file
named Reporting ProblemsUse the following email aliases to report problems with this document and its associated scripts:
More InformationFor more information about Sun Connection, go to the Sun Connection information hub. To get an inside perspective of Sun Connection, Sun Management Center software, Sun N1 Service Provisioning System, and Sun N1 System Manager, visit the Sun Connection blog. Contributors to this blog include members of the Sun Connection Field Enablement team. The goal of this blog is to share information with customers who either have already implemented or will implement these products in the future. The blog also provides important information around training and other key enablement activities. Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||