Sun Microsystems, Inc.
   www.sun.com docs.sun.com | | |  
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Administrationsetkeyswitch(1m)


NAME

 setkeyswitch - change the position of the virtual keyswitch

SYNOPSIS

 setkeyswitch -d domain_id|domain_tag [-q] [-y|-n] [on|standby|off|diag|secure]
 setkeyswitch -h

DESCRIPTION

 

setkeyswitch(1M) changes the position of the virtual keyswitch to the specified value. setkeyswitch is responsible for powering on or powering down boards and bringing up a domain. See the OPERANDS section for more information.

If the domain specified contains a board in the automatic system recovery (ASR) blacklist file, an error message is displayed and setkeyswitch continues.

The state of each virtual keyswitch is maintained between power cycles of the system controller (SC) or physical power cycling of the power supplies by the pcd(1M). Use showkeyswitch to display the current position of a virtual keyswitch.

OPTIONS

 

The following options are supported.

Note – The -y and -n are optional arguments to the setkeyswitch(1M) command. If one of these optional arguments is not provided, setkeyswitch prompts the user for confirmation when changing from the on, diag, or secure position to the off or standby position.
-d domain_id
ID for a domain. Valid domain_ids are 'A'...'R' and are case insensitive.
-d domain_tag
Name assigned to a domain using addtag(1M).
-h
Help. Displays usage descriptions. Note – Use alone. Any option specified in addition to -h is ignored.
-n
Automatically answers "no" to all prompts. Prompts are displayed unless used with the -q option.
-q
Quiet. Suppresses all messages to stdout including prompts.

When used alone, -q defaults to the -n option for all prompts.

When used with either the -y or the -n option, -q suppresses all user prompts and automatically answers with either 'y' or 'n' based on the option chosen.

-y
Automatically answers "yes" to all prompts. Prompts are displayed unless used with the -q option.

OPERANDS

 

The following operands are supported:

on
From the off or standby position, on powers on all boards assigned to the domain (if not already powered on). Then the domain is brought up.

From the diag position, on is nothing more than a position change, but upon the next reboot of the domain, post is not invoked with verbosity and the diag level is set to its default value.

From the secure position, on restores write permission to the domain.

standby
From the off position, standby powers on all boards assigned to the domain (if not already powered on).

From the on, diag, or secure position, standby optionally causes a confirmation prompt and the domain is gracefully shut down. The boards remain fully powered.

off
From the on, diag, or secure position, off optionally causes a confirmation prompt and all boards are put into low-power mode.

From the standby position, off puts all boards into low-power mode.

diag
From the off or standby position, diag powers on all boards assigned to the domain (if not already powered on). Then the domain is brought up just as in the on position, except that post is invoked with the verbosity and diag levels set to at least their defaults.

From the on position, diag results in nothing more than a position change, but upon the next reboot of the domain, post is invoked with the verbosity and diag levels set to at least their defaults.

From the secure position, diag restores write permission to the domain and upon the next reboot, post is invoked with the verbosity and diag levels set to at least their defaults.

secure
From the off or standby position, secure powers on all boards assigned to the domain (if not already powered on). Then the domain is brought up just as in the on position, except that the secure position removes write permission to the domain, for example, flashupdates, and resets will not work.

From the on position, secure removes write permission to the domain (as described above).

From the diag position, secure removes write permission to the domain (as described above) and on the next reboot of the domain, post is invoked with the verbosity and diag levels set to at least their defaults.

EXTENDED DESCRIPTION

 

Group Privileges Required

 

You must have domain administrator privileges for the specified domain to run this command.

Refer to Chapter 2 in the System Management Services (SMS) 1.2 Administrator Guide for the Sun Fire 15K/12K Systems for more information.

EXAMPLES

 Example 1. Set Keyswitch on Domain A On
 
 
sc0:sms-user:> setkeyswitch -d A on
Example 2. Using Keyswitch on a Domain Containing a Board in the ASR Blacklist File
 
 
sc0:sms-user:> setkeyswitch -d A on
SB0 is in the ASR Blacklist.

EXIT STATUS

 

The following exit values are returned:

0
Successful completion
>0
An error occurred.

FILES

 

The following file is used by this command.

/etc/opt/SUNWSMS/config/asr/blacklist
List of components excluded by esmd.

Note – This file is created and used internally and should not be edited manually.

ATTRIBUTES

 

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

Attribute TypesAttribute Values
AvailabilitySUNWSMSop

SEE ALSO

 

addtag(1m), esmd(1m), flashupdate(1m), pcd(1m), reset(1m), showkeyswitch(1m)


SMS 1.2Go To TopLast Changed 22 April 2002

 
      
      
Copyright 2002 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 USA. All rights reserved.