Using the CLI to Install, Set Up, Uninstall, Start, and Stop Sun Management Center Software

This appendix describes how to install, set up, uninstall, start, and stop Sun Management Center software from the CLI. For more details, refer to the Sun Management Center Software and Installation Configuration Guide. If you prefer to installing using the installation GUI, see Chapter 2.

Installing and Setting Up the Software Using the CLI

First ensure that the latest update for Sun Management Center 3.5 base software is installed on your systems. Refer to the Sun Management Center Installation and Configuration Guide for instructions about installing this software.

Also ensure that any required patches are installed on your systems.

Refer to the Sun Management Center 3.5 Version 6 Release Notes for Sun Fire Entry-Level Midrange Systems for details about software requirements for the server, domain, and console layers.

To Install the Add-On Software Using the CLI

1. As superuser, change the directory to the path/sbin directory, where path/sbin is the location where the base Sun Management Center software has been installed.

2. To install the add-on software, run the es-inst command in the sbin directory.

The es-inst script prompts you for a source directory.

3. Type the source directory of the image of the Sun Management Center 3.5 Version 6 add-on software.

Refer to the Sun Management Center Installation and Configuration Guide for more information about the es-inst command and its options.

Caution - If the general Sun Management Center 3.5 software package is already installed, and you are installing onlythe Sun Fire supplement software, enter n(for no) when you are prompted to begin the setup process. Typing y(for yes) might cause the loss of any customized setup information, such as security keys.

Note - If you are installing the full Sun Management Center 3.5 software package, you have the option of running the setup script at the end of the installation procedure. If you choose not to run the setup script at that time, you can run it later. The setup script (es-setup) is in path/sbin, where path is the directory where the Sun Management Center software is installed. This step sets up all Sun Management Center agents, including the platform agent.

4. Install the add-on software on the server and on any Sun Fire entry-level midrange agent systems that you will monitor.

2. Type y to uninstall the Production Environment, which uninstalls all Sun Management Center software.

The system displays this message:

This will uninstall ALL Sun Management Center Products. !!!

Do you want to change selection? [y|n|q]

3. Do one of the following:

Type y to change your selection.

The system displays your selection; go to the beginning of Step 2.

Type n to not change your selection.

The system displays the following message:

Do you want to preserve database? [y|n|q]

Note - If you answer y for yes, the system preserves any data in the database, including open and closed alarms, loaded modules and their configurations, discoveries, managed objects, and rule thresholds.

4. Do one of the following:

Typey to keep any existing topology and event data.

Type n to discard the data.

The system displays the following message:

Proceed with uninstall? [y|n|q]

5. Do one of the following:

Type y to proceed with the uninstall.

Type n not to proceed with the uninstall.

If you type y to proceed, the system displays the list of packages to be uninstalled, the packages as they are uninstalled, the status of the uninstallation, and the location of the log file.

3. Type y beside each module you do want to uninstall and n beside each module you do not want to uninstall.

The system displays the modules that will be uninstalled and the following message:

Do you want to change selection? [y|n|q]

4. Do one of the following:

Type y to change your selection.

The system displays your selections; go to the beginning of Step 2.

Typennot to change your selections.

The system displays the following message:

Proceed with uninstall? [y|n|q]

5. Do one of the following:

Type y to proceed with the uninstall.

Type n not to proceed with the uninstall.

If you type y to proceed, the system displays the list of packages to be uninstalled, the packages as they are uninstalled, the status of the uninstallation, and the location of the log file.

Starting and Stopping Sun Management Center Software Using the CLI

To Start All Sun Management Center Components

The es-start command requires different command arguments, depending on which component you are starting. Refer to the Sun Management Center Installation and Configuration Guide for a list of the options for es-start. The -h option for es-start also lists all the options. The following procedure describes one common es-start option.

1. Go to the path/sbin directory, where path is the directory where the Sun Management Center software is installed.

2. As superuser, type the following to start all Sun Management Center components, except the console:

# ./es-start -A

To Stop All Sun Management Center Components

The es-stop command requires different command arguments, depending on which component you are stopping. Refer to the Sun Management Center Installation and Configuration Guide for a list of the options for es-stop. The -h option for es-stop also lists all the options. The following procedure describes one common es-stop option.

1. Go to the path/sbin directory, where path is the directory where the Sun Management Center software is installed.

2. As superuser, type the following to stop all Sun Management Center components, except the console: