Home | History | Annotate | Download | only in man4
 te
CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at CDDL.txt
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at CDDL.txt.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END
Copyright 2006 Sun Microsystems, Inc. All rights
reserved. Use is subject to license terms.
commandlog 4 "18 Jul 2006" "Sun Cluster 3.2" "Sun Cluster File Formats"
NAME
commandlog - command log file
SYNOPSIS

/var/cluster/logs/commandlog 
DESCRIPTION

The commandlog ASCII text file contains records of selected Sun Cluster commands that are executed in a cluster. The logging of commands starts automatically when you set up the cluster and ends when you shut down the cluster.

Commands that are not logged in this file include those that display the configuration and current state of the cluster. Commands that are logged in this file include those that configure and change the current state of the cluster, as follows:

claccess

cldevice

cldevicegroup

clinterconnect

clnasdevice

clnode

clquorum

clreslogicalhostname

clresource

clresourcegroup

clresourcetype

clressharedaddress

clsnmphost

clsnmpmib

clsnmpuser

cltelemetryattribute

cluster

scconf

scdidadm

scdpm

scgdevs

scrgadm

scshutdown

scswitch

Each record in the commandlog file contains the following information:

Date and timestamp

Host name from the which the command was executed

Process ID of the command

ID of the user who executed the command

Command that the user executed, including all options and operands

Note - Command options are quoted in the commandlog file to enable you to copy, paste, and execute them in the shell.

Exit status or signal of the executed command

By default, the commandlog file is regularly archived at the end of every week. Sun Cluster maintains up to eight previously archived commandlog files on each cluster node at any given time.

EXAMPLES

Example 1 /var/cluster/logs/commandlog File

The following example shows the contents of a typical /var/cluster/logs/commandlog file:

11/11/2006 09:43:36 phys-schost-1 5758 root START - clrg add "app-sa-1"
11/11/2006 09:43:36 phys-schost-1 5758 root END 0
11/11/2006 09:43:36 phys-schost-1 5760 root START - clrg set -y
"RG_description=Department Shared Address RG" "app-sa-1"
11/11/2006 09:43:37 phys-schost-1 5760 root END 0
11/11/2006 09:44:15 phys-schost-1 5810 root START - clrg online "app-sa-1"
11/11/2006 09:44:15 phys-schost-1 5810 root END 0
11/11/2006 09:44:19 phys-schost-1 5222 root END -20988320
12/02/2006 14:37:21 phys-schost-1 5542 jbloggs START - clrg -c -g "app-sa-1"
-y "RG_description=Joe Bloggs Shared Address RG"
12/02/2006 14:37:22 phys-schost-1 5542 jbloggs END 0
ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWsczu
Interface StabilityEvolving
SEE ALSO

scha_control(1HA), scha_resource_setstatus(1HA), scconf(1M), scdidadm(1M), scdpm(1M), scgdevs(1M), scrgadm(1M), scshutdown(1M), scswitch(1M), attributes(5)