Sun Management Center 3.6.1 User's Guide

Overview of the Sun Management Center CLI

The Sun Management Center command-line interface (CLI) is a character-driven console application for monitoring and managing your system. The CLI offers several useful features:

You can use the CLI to perform the following tasks:


Note –

(On Solaris and Linux) You can automatically log in to the console using the parameters file. If the parameters file contains user name and password, the permission for that file must be 400. Otherwise, automatic login through CLI is not possible.


System Requirements

You can access the CLI from a user terminal session on one of the following system configurations:

CLI Interaction Modes

The CLI supports the following two interaction modes:

Configuring CLI Batch Mode

CLI batch mode can be configured by modifying the cli.properties file located at /opt/SUNWsymon/cli. This file contains nine configurable parameters.

Table 20–1 describes the configurable parameters.

Table 20–1 Parameters to Configure CLI Batch Mode

Parameter 

Description 

Default Value 

process_time_out

When this time expires, CLI back end processes will be removed from the system. 

Process time-out 24 hrs

process_time_out = 86400 (in seconds)

uds_dgram_wait_time

DGRAM client will be waiting for response from the CLI back end process. If the client does not receive any response within the specified time, an error message “Error receiving data from Backend” is displayed. 

UDS DGRAM wait time in seconds

uds_dgram_wait_time = 300

uds_stream_wait_time

STREAM client will be waiting for response from the CLI back end process. If the client does not receive any response within the specified time, an error message “Error receiving data from Backend” is displayed. 

UDS STREAM wait time in seconds

uds_stream_wait_time = 180

out_file

This file contains the details of the currently running CLI back end processes. The format of this file is  

<user>:<hostname>:<C Process ID>:<Java Process ID>

User & process information file

out_file = /var/opt/SUNWsymon/cli/process-file

socket_pathclnt

This file contains the path of the client broker UDS file. The output of the processed CLI commands is sent to this file. 

Path to uds file

socket_pathclnt = /var/opt/SUNWsymon/cli/broker_uds_client_file

cli_log_path

This file contains the path of the CLI log files. 

Location of CLI log file

cli_log_path = /tmp/sunmclog/cli

cli_log_file

Name of the CLI log file. 

Location of backend(broker) log file

cli_log_file = /tmp/sunmclog/cli/cli-batch-mode-log

uds_file_path

This path contains the location of the STREAM and DGRAM UDS files. 

Path of the uds files

uds_file_path = /var/opt/SUNWsymon/cli/

log_level

Specifies the logging level to be used. Set the log level to ERROR for the production environment. Set the log level to INFO for the debugging environment.

Batch mode log level [options : INFO|ERROR]

log_level=ERROR

CLI Command and Parameter Overview

This section provides an overview of CLI commands and parameters.

CLI Command Overview

CLI commands can be divided into two types: basic commands and extended commands.

In session mode, commands execute in either the foreground or the background.

The CLI also supports aliases. You can define a shorthand term or pseudonym for a more complicated command and its parameters. User-defined aliases persist across different CLI sessions.

CLI Parameter Overview

CLI parameters are name-value pairs: each parameter has a name and a value. Some parameters are built-in to the CLI. Their names and the significance of their values are predefined within the CLI. You can define other parameters, also known as variables. Some parameters are global in scope. Global parameters affect the execution of all CLI commands that are run in a particular session. Other parameters are specific to a certain command or group of commands.

Input and Output Capabilities

The CLI provides several capabilities for input and output.

CLI Command Help

The CLI provides online help for each CLI command. CLI help is available from within the CLI. CLI help does not require a GUI. For each command, the help provides a synopsis of command usage and a list of the parameters associated with that command.