Friday, December 11, 2009

Console RSC

================================================================================
Access the System Controller command line interface (CLI). This is
accomplished using the console escape characters. (normally "#.")

{0} ok #.
sc>

================================================================================
Please login: admin
Password: sun123 (default password)
rsc>console

================================================================================
SC Alert: SC Request to send Break to host.

vi /etc/default/kbd

#this will keep a spurious break from being sent
KEYBOARD_ABORT=alternate

From OS, while on console, do the following:


~
^b
xir #send break

================================================================================
Navigating between the OS level and the RSC card level using tip (serial)
or telnet (ehternet) sessions on the Sun Fire(TM) 280R, V480, and V880
Server products.
Document Body Top

There are two methods to switch from the OS level to the RSC card. Choose
the appropriate method depending on how you are connected to the RSC card.



Navigating between RSC and the OS using telnet
-----------------------------------------------

Execute the following command from the OS level: ~.
This will return the console to the rsc> prompt

To resume your connection with the OS type "console" at the rsc> prompt.



Navigating between RSC and the OS using tip
--------------------------------------------

Execute the following command: ~~.
You may have to run the command 1-2 times before the console will return to
the rsc> prompt.

To resume your connection with the OS type "console" at the rsc> prompt.

Executing the command ~. will disconnect the tip session with the RSC card.



If the escape character ~ does not work
----------------------------------------

If the escape character ~ fails to return the console session to the rsc>
prompt, run the following command:

# ./rscadm show escape_char
escape_char="*"

The escape character is ~ by default, but can be user defined. To return to
the rsc> prompt, type the escape_char followed by a period (.). In this
example, you would type *. or ~*. to return to the rsc> prompt.



How to clear open console sessions
-----------------------------------

rsc> console
Console session already in use.

If the console is busy, run either of the following commands to reset the
console and clear any open sessions:

From the rsc prompt:

rsc> resetrsc

From the OS:

./rscadm resetrsc

================================================================================
RSC Commands at the rsc> prompt.

environment Displays current environmental information

showenvironment (The showenvironment command is not available on Sun
Enterprise[TM] 250 servers.)

shownetwork Displays the current network configuration

console Connects you to the server console

break Puts the server in debug mode

xir Generates an externally initiated reset to the server

bootmode Controls server firmware behavior, if followed by a server reset
within 10 minutes (similar to L1-key combinations on Sun keyboards)

-u

Force the server to direct the console to RSC; the -u option must precede any
boot_mode you specify; requires server reset

normal

Normal boot; server runs low-level diagnostics; requires server reset

forth

Enter Forth interpreter as soon as possible (equivalent to L1-F on keyboard);
requires server reset

reset_nvram

Reset all NVRAM variables to default values (equivalent to L1-N on keyboard);
requires server reset

diag

Force the server to run full diagnostics (equivalent to L1-D on keyboard);
requires server power-off and power-on

skip_diag

Force the server to skip diagnostics (equivalent to L1-S on the keyboard);
requires server power-off and power-on

reset Resets the server immediately

poweroff Powers off the server

poweron Powers on the server

loghistory Displays the history of all events logged in the RSC event buffer

consolehistory Displays the history of all console messages logged in the
buffer

consolerestart Makes the current boot and run console logs "original"

set Sets a configuration variable

Table 1.

serial_baud
serial_stop
serial_data
serial_hw_handshake

ppp_local_ip_addr
ppp_remote_ip_addr
ppp_enabled
page_enabled

mail_enabled
page_info1
page_init1
page_password1

page_baud1
page_data1
page_parity1
page_stop1

page_info2
page_init2
page_password2
page_baud2

page_data2
page_parity2
page_stop2
customerinfo

hostname
mailuser
mailhost
ip_mode

ip_addr
ip_netmask
ip_gateway
escape_char

country_code +
page_verbose *
tpe_link_test



+rsc 2.0 and above

*not available for the 250

show Displays one or more configuration variables

date Displays or sets the current time and date

password Changes your RSC password

useradd Adds an RSC user account

userdel Deletes an RSC user account

usershow Shows characteristics of an RSC user account

userpassword Sets or changes a user's password

userperm Sets the authorization for a user

resetrsc Resets RSC immediately

help Displays a list of RSC shell commands and a brief description of each

version Displays the RSC firmware version

showsc (The showsc command is not available on Sun Enterprise 250 servers.)

logout Ends your current RSC shell session

setlocator Turn the system locator LED on or off (Sun Fire[TM] V480 servers
only).

showlocator Show the state of the system locator LED (Sun Fire V480 servers
only).

showdate Same as the date command without arguments. (Not available for Sun
Enterprise 250 servers.)

setdate Same as the date command with arguments. (Not available for Sun
Enterprise 250 servers.)


rscadm subcommands

help Displays a list of rscadm commands and brief descriptions for each

date Displays or sets the current time and date

set Sets a configuration variable

show Displays one or more configuration variables

shownetwork Shows current RSC card network configuration (RSC 2.0 and above)

loghistory Returns the most recent log entries (RSC 2.0 and above)

resetrsc Resets RSC immediately

download Downloads firmware to the RSC flash PROM

send_event Logs an event; can also send an alert message

modem_setup Changes configuration of the modem connected to the RSC serial
port

useradd Adds an RSC user account

userdel Deletes an RSC user account

usershow Shows characteristics of an RSC user account

userpassword Sets or changes a user's password

userperm Sets the authorization for a user

version Reports the RSC version on the host (RSC 2.0 and above)

status Same as the version -v command. (RSC 2.0 and above)


OBP Commands

rsc-hard-reset Performs a hard reset of RSC; this is the same as using the
command rscadm resetrsc.

rsc-soft-reset Performs a soft reset of RSC; this is the same as using the
command rscadm resetrsc -s.

diag-output-to rsc*|rsc-console**|ttya Directs POST output to either RSC (1)
or ttya (0). This command takes effect after the next server reset. (E250
only)

diag-console rsc*|rsc-console**|ttya This command directs power-on self-test
(POST) output to either RSC (1) or ttya (0). This command takes effect after
the next server reset. (Not available for the 250)

rsc-mac-update Updates the RSC Ethernet address from the contents of the
server ID PROM. Use this command after replacing the server NVRAM module.

.rsc Displays RSC information, including the diag-output-to setting and the
RSC POST status word.

*Available for Sun Enterprise 250 servers only. For other supported workgroup
servers, you must set input-device and output-device to rsc-console rather
than to rsc. The test we made on SF280R showed that we had to use rsc rather
than rsc-console argument. So, it's apparently not applicable to E250 ONLY.
To be checked.

**For Sun Enterprise 250 servers, you must set input-device and output-device
to rsc rather than to rsc-console.


OBP Environment Variable Properties

input-device rsc|rsc!|ttya

output-device rsc|rsc!|ttya

diag-out-console true|false ( SF280R and V480 only ???? should be checked
also on V880 and E250 servers. )

================================================================================
What to do if RSC is configured and the password is forgotten.

STEP BY STEP SOLUTION TO THIS PROBLEM:

1. STEP 1:
Access the system as root to create a new RSC user: If root can
login into system remotely
then proceed to Step 2 If root can not access system remotely
and RSC is currently the active
console then the only other way to gain access to the system
console would be through ttya,
but because RSC is configured we would need to change the
system's output and input devices
back to their default settings. Setting these defaults can be
accomplished by using one of
the following two methods:

* Method 1:
After turning on the power to your system, watch the front
panel wrench LED for rapid
flashing during the boot process. Press the front panel Power
button twice (with a short,
one-second delay in between presses).

Notes:
The above procedure sets all nvram parameters to their default
settings.
These changes are temporary and the original values will be
restored after the next
hardware or software reset.

* Method 2:
Remove RSC card. By removing the RSC card the output and input
devices will forced to ttya.
For information on how to remove the RSC card please refer to
your Server Owner's Guide.

2. STEP 2:
a. Execute the following 3 commands in order to create a new RSC
user with full permissions:

/usr/platform/`uname -i`/rsc/rscadm useradd
/usr/platform/`uname -i`/rsc/rscadm userperm cuar
/usr/platform/`uname -i`/rsc/rscadm userpassword

Notes: You may need to delete an RSC user if there are 4
existing users defined. If you
did not remove the RSC card, please proceed to step c.

b. Reinstall RSC card. For information on How to install the RSC
card please refer to your
Server's Owner's Guide.
c. Reboot the RSC card.
d. Log into RSC using the login and password created in Step a.

================================================================================

No comments:

Post a Comment