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 Administrationsmsconnectsc(1m)


NAME

 smsconnectsc - accesses a remote SC console

SYNOPSIS

 smsconnectsc [-y|n]
 smsconnectsc -h

DESCRIPTION

 

smsconnectsc creates a remote tip console session from a local SC in order to reach a hung remote SC console.

smsconnectsc enables the bit that connects the local SC's port B to the remote SC's RS-232 port A when you are logged in to the local SC. The remote SC is the SC which is hanging. Once the tty connection is enabled, smsconnectsc invokes a tip console session to the remote SC. Using the tip console session, you can do whatever needs to be done to the remote SC.

smsconnectsc works in the absence of an external connection to the remote SC. If the remote SC has an active external connection to port A then smsconnectsc will fail and the session will most likely hang. To exit, type: ~.

When you finish, there are several ways to end the session depending on whether you logged into the local SC using telnet or rlogin. See the EXTENDED DESCRIPTION section below.

OPTIONS

 

The following options are supported.

-h
Help. Displays usage descriptions. Note – Use alone. Any option specified in addition to -h is ignored.
-n
Automatically answers "no" to all prompts.
-y
Automatically answers "yes" to all prompts.

EXTENDED DESCRIPTION

 

Usage

 

In the tip console window established by smsconnectsc, a tilde (~) that appears as the first character of a line is interpreted as an escape signal that directs the tip console to perform the following action:

  • ~. Disconnect the tip session.

    If you are telnetted in to the local SC this will disconnect the tip session and you will remain logged in to the local SC.

    If you rlogged in to the local SC, this will disconnect the tip session and also disconnect your rlogin session.

    Note – The tilde will not echo to the screen until after the period is pressed.
  • ~~. Disconnect tip session.

    ~~. only works with rlogin. If you are telnetted in to the local SC you will receive the error message: ~.: Command not found

    If you are rlogged in to the local SC this will disconnect the tip session and you will remain logged in to the local SC.

    Note – The first tilde will not echo to the screen. The second will not echo until after the period is pressed.

rlogin also processes tilde-escape sequences whenever a tilde is seen at the beginning of a new line. If you need to send tilde sequence at the beginning of a line and you are using rlogin, use two tildes (the first escapes the second for rlogin). Alternatively, do not enter a tilde at the beginning of a line when running inside of rlogin. If you use a kill -9 command to terminate a console session, the window or terminal in which the smsconnectsc command was executed goes into raw mode, and appears hung. To escape this condition, type ^j, then stty sane, then ^j.

Group Privileges Required

 

You must have platform administrator privileges 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. Creating a Remote Connection From the Local SC to the Hung Remote SC
 

In the following example, the local SC is shown as sc1 and the remote SC is shown as sc0. Log in to the local SC as a platform administrator.

 
sc1:sms-user:> smsconnectsc
TTY connection is OFF. About to connect to other SC. 
Do you want to continue (yes/no)? y
connected  
sc0:sms-user:>

EXIT STATUS

 

The following exit values are returned:

0
Successful completion
>0
An error occurred.

ATTRIBUTES

 

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

Attribute TypesAttribute Values
AvailabilitySUNWSMSop

SEE ALSO

 

rlogin(1m), rlogin(1m), tip(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.