SUN Remote System Control.
SUN Remote System Control.
Copyright 2003 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303-4900 Etats-Unis. Tous droits réservés.
Ce produit ou document est distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et la décompilation. Aucune
partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l’autorisation préalable et
écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de
caractères, est protégé par un copyright et licencié par des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées des systèmes Berkeley BSD licenciés par l’Université de Californie. UNIX est une marque
déposée aux Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, AnswerBook2, docs.sun.com, Java, OpenBoot, Solstice, SunVTS, SunExpress, Solaris, Sun Enterprise, et
Sun Fire sont des marques de fabrique ou des marques déposées, ou marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans
d’autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC
International, Inc. aux Etats-Unis et dans d’autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par
Sun Microsystems, Inc.
L’interface d’utilisation graphique OPEN LOOK et Sun™ a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun
reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d’utilisation visuelle ou graphique
pour l’industrie de l’informatique. Sun détient une licence non exclusive de Xerox sur l’interface d’utilisation graphique Xerox, cette licence
couvrant également les licenciés de Sun qui mettent en place l’interface d’utilisation graphique OPEN LOOK et qui en outre se conforment aux
licences écrites de Sun.
LA DOCUMENTATION EST FOURNIE “EN L’ETAT” ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES
OU TACITES SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT
TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L’APTITUDE A UNE UTILISATION PARTICULIERE OU A
L’ABSENCE DE CONTREFAÇON.
Contents
Preface xi
iii
Email Alerts 13
Pager Alerts 13
Planning Configuration Settings 13
Running the Server Configuration Script 16
Redirecting the Console to RSC 17
Configuring Point-to-Point Protocol (PPP) 18
Configuring PPP on the Client 18
Completing Alert Configuration 19
Backing Up RSC Configuration 20
iv Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
bootmode [-u] [normal|forth|reset_nvram|diag|
skip_diag] 32
reset 34
poweroff 34
poweron 34
setlocator 35
showlocator 35
RSC View Log Commands 35
loghistory [index [+|-]n] [pause n] 35
index [+|-]n 36
pause n 36
consolehistory [boot|run|oboot|orun]
[index [+|-]n] [pause n] 37
pause n 37
consolerestart 38
RSC Configuration Commands 39
set variable value 39
show [variable] 40
date [[mmdd]HHMM|mmddHHMM[cc]yy][.SS] 40
showdate 41
setdate 41
password 41
useradd username 42
userdel username 42
usershow [username] 43
userpassword username 43
userperm username [a][u][c][r] 43
resetrsc 44
Other RSC Commands 45
Contents v
help 45
version [-v] 45
showsc 45
logout 46
flashupdate ip_address image 46
showfru 46
RSC Configuration Variables 46
Point-to-Point Protocol (PPP) Variables 47
ppp_local_ip_addr 47
ppp_remote_ip_addr 47
ppp_enabled 47
Modem Variables 47
modem_parity 47
modem_stop 48
modem_data 48
country_code 48
Alert Variables 51
page_enabled 51
mail_enabled 51
page_info1 51
page_init1 52
page_password1 52
page_baud1 52
page_data1 52
page_parity1 52
page_stop1 53
page_info2 53
page_init2 53
vi Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
page_password2 53
page_baud2 54
page_data2 54
page_parity2 54
page_stop2 54
customerinfo 55
hostname 55
mailuser 55
mailhost 55
page_verbose 56
Ethernet Port Variables 56
ip_mode 56
ip_addr 56
ip_netmask 56
ip_gateway 57
tpe_link_test 57
Console Session Variable 57
escape_char 57
RSC Shell Error Messages 58
Usage Errors 58
General Errors 59
Contents vii
shownetwork 66
loghistory 66
resetrsc [-s] 66
download [boot] file 67
send_event [-c] message 67
modem_setup 67
version 68
status 69
User Account Administration Subcommands 69
rscadm Error Messages 69
7. Troubleshooting 81
Troubleshooting RSC Problems 81
Can’t log in to RSC 81
Can’t connect to RSC using telnet 81
Can’t connect to RSC through the Ethernet connection 82
viii Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Can’t connect to RSC through the modem 82
No alerts received from RSC 83
RSC passwords are unknown 84
Times in RSC event log do not match times in server console logs 84
You can perform some RSC functions, but not others 84
Troubleshooting Server Problems Using RSC 85
Scenario: SIMM in memory bank 2 is causing continuous reboots 85
B. Configuring the Sun Enterprise 250 Server RSC Serial Port Modem 99
General Settings 100
Pager Variable Settings 100
Pager Phone Number 102
Storing Configuration Strings in the Modem’s NVRAM 102
Modem Initialization Strings 102
Contents ix
Pager Password 103
Setting Up the MultiTech MultiModem II 103
Set Modem DIP Switches 103
Modify RSC Configuration Variables 104
Modify Modem Settings 104
Setting Up the Courier V.Everything Modem 106
Set Modem DIP Switches 106
Modify RSC Configuration Variables 107
Modify Modem Settings 108
Modem Reconfiguration Required After Changing RSC Serial Port Settings 109
Troubleshooting Modem Problems 110
x Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Preface
Sun Remote System Control (RSC) 2.2 User’s Guide tells you how to configure and use
Sun™ Remote System Control software. These instructions are designed for an
experienced system administrator with networking knowledge.
Note – Because Sun Enterprise™ 250 servers have different RSC communication
ports and firmware, RSC running on Sun Enterprise 250 servers has slightly different
features from RSC running on other supported workgroup servers. In this manual,
such differences are marked with a graphic taken from the Sun Enterprise 250 server
front panel, shown to the left of this note.
xi
■ Chapter 7 “Troubleshooting” provides information about troubleshooting RSC
problems, and troubleshooting the server using RSC.
■ Chapter 8, "Platform Specific Information," discusses specific information about
how RSC works on certain hardware platforms.
■ Appendix A “Installing and Configuring an Uninterruptible Power Supply
(UPS)” provides an example of installing and configuring a UPS for use with RSC.
■ Appendix B “Configuring the Sun Enterprise 250 Server RSC Serial Port Modem”
provides information about configuring a modem attached to a Sun Enterprise
250 server RSC serial port.
■ Appendix C “Creating a Script That Sends an Alert Message or RSC Event”
provides a code example used to configure an RSC alert or event.
■ Appendix D “RSC Event Codes” lists RSC event log codes.
xii Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Typographic Conventions
TABLE P-1
Shell Prompts
Shell Prompt
C shell machine_name%
C shell superuser machine_name#
Bourne shell and Korn shell $
Bourne shell and Korn shell superuser #
Remote System Control shell rsc>
OpenBoot PROM shell ok
Preface xiii
Related Documentation
Application Title
http://www.sun.com/products-n-solutions/hardware/docs
A complete set of Solaris documentation and many other titles are located at:
http://docs.sun.com
xiv Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Ordering Sun Documentation
Fatbrain.com, an Internet professional bookstore, stocks select product
documentation from Sun Microsystems, Inc.
For a list of documents and how to order them, visit the Sun Documentation Center
on Fatbrain.com at:
http://www1.fatbrain.com/documentation/sun
Please include the part number (806-0426-10) of your document in the subject line of
your email.
Preface xv
xvi Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
CHAPTER 1
Sun Remote System Control (RSC) 2.2 software is a server management tool that
allows you to monitor and control servers over modem lines and over a network.
RSC provides remote system administration for geographically distributed or
physically inaccessible systems. RSC 2.2 software works with the RSC card included
in supported Sun workgroup servers released after 1999 and also with RSC
hardware included with Sun Enterprise 250 servers. For information about
supported servers, click on Server Types in the RSC graphical user interface.
Note – Because Sun Enterprise 250 servers have different RSC communication ports
and firmware, RSC running on Sun Enterprise 250 servers has slightly different
features from RSC running on other supported workgroup servers. In this manual,
such differences are marked with a graphic taken from the Sun Enterprise 250 server
front panel, shown to the left of this note.
Online copies of Sun Remote System Control (RSC) 2.2 User’s Guide are available in
these locations after RSC installation:
■ Solaris operating environment, PDF format: Use Adobe Acrobat Reader to open
/opt/rsc/doc/en/pdf/user_guide.pdf
■ Solaris operating environment, HTML format: Point your browser to
/opt/rsc/doc/en/html/index.html
■ Microsoft Windows operating environment, PDF format: Use Adobe Acrobat
Reader to open C:\Program Files\Sun Microsystems\
Remote System Control\doc\en\pdf\user_guide.pdf
■ Microsoft Windows operating environment, HTML format: Point your browser to
C:\Program Files\Sun Microsystems\Remote System Control\
doc\en\html\index.html
1
RSC Access
You can access RSC from a workstation running the Solaris, Microsoft Windows 98,
Windows 2000, or Windows NT operating environment and Sun’s RSC Java™
application, or from an ASCII terminal or device running ASCII terminal emulation
software. FIGURE 1-1 shows remote access paths to RSC.
2 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Solaris workstation Solaris workstation
and modem and modem
Windows PC Windows PC
and modem and modem
Secure modem
Secure Ethernet
Company modem
pool
Solaris workstation
Windows PC
After RSC software is installed and configured to manage your server, you can use it
to run diagnostic tests, view diagnostic and error messages, reboot your server, and
display environmental status information from a remote console.
Note – RSC hardware for Sun Enterprise 250 servers does not include a backup
battery.
The server can boot and operate normally when RSC software is not enabled, and
Sun console features continue to be available on standard RS232 ports.
RSC Features
RSC has the following features:
■ View of the server’s front panel including keyswitch position and LEDs
■ Remote system monitoring and error reporting, including output from power-on
self-test (POST) and OpenBoot™ Diagnostics
■ Remote server reboot, reset, power-on, and power-off on demand
■ Ability to monitor fan sensors and the temperatures of CPUs, disks, and other
components without being near the managed server
■ Ability to run diagnostic tests from a remote console
■ Remote event notification of server problems
■ A detailed log of RSC events
■ Remote console functions available through both the Ethernet port and modem
■ Personal Computer Memory Card International Association (PCMCIA) modem
on the RSC card
■ RSC battery backup on the RSC card that allows RSC use after a complete power
failure
Note – RSC hardware for Sun Enterprise 250 servers does not include a backup
battery or PCMCIA modem; you can connect a modem to the RSC serial port.
4 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
RSC complements existing Sun monitoring and diagnostics tools such as Solstice™
Sun Management Center, SunVTS™, the kadb kernel debugger, OpenBoot PROM,
and OpenBoot Diagnostics. Sun Management Center operation remains unchanged,
and it continues to be the main tool for observing system operation and performance
while the server operating system is running.
RSC Use
After installing and configuring Sun Remote System Control software on the server
and client systems, you may use an OpenBoot PROM command and set OpenBoot
PROM variables to redirect the console output to RSC.
Part of RSC configuration defines and enables alert mechanisms. Alerts provide
remote notification of system problems and can be sent to pagers or an email
address. RSC also sends alerts to any clients that are currently logged in to RSC.
Note – For sending pager alerts, RSC is designed to operate with any modem
paging service that complies with the Telocator Alphanumeric Protocol (TAP).
Note – RSC hardware for Sun Enterprise 250 servers does not include a backup
battery.
Each alert message includes the server name and other important details, including
time, date, and a description of the event. RSC configuration controls whether an
alert is sent to an email address, to pagers, or to both. In addition, an alert is always
sent to any clients currently logged in to RSC accounts for that server, and to the
RSC event log. FIGURE 1-2 shows RSC remote alert paths.
Windows PC Windows PC
and modem Alphanumeric pager 2 and modem
Secure modem
Secure Ethernet
Company modem
pool
Solaris workstation
Windows PC
6 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
After receiving an alert message, you can connect to your RSC account for the server
that caused the alert. Then you can check console messages to determine whether
the server has recovered and is running, or whether the server operating system is
down.
If the server is running, you can log in to it and debug the system using UNIX
system administration tools such as SunVTS and Sun Management Center. If the
server is not running, or if UNIX system administration tools are not available, you
can use the RSC remote console feature to debug the server. After diagnosing a
problem, you can schedule server downtime and service, if necessary.
RSC Capabilities
RSC provides the following capabilities for remotely monitoring and controlling
supported Sun workgroup servers.
View Logs
■ Display a detailed log of RSC events and detected errors.
■ Display and reset server console logs.
After installation, you run a script file that guides you through basic configuration.
See Chapter 2.
You can extend the amount of time you can use RSC beyond the RSC battery life by
using a UPS (recommended). See Appendix A.
Note – RSC hardware for Sun Enterprise 250 servers does not include a backup
battery.
User Interfaces
RSC user interfaces include:
■ A graphical user interface (GUI) that runs using Sun’s RSC Java application
■ A command-line interface (CLI) you can access using a serial port and telnet, or
by using PPP (point-to-point protocol) and a standard modem connection
RSC supports a total of four concurrent telnet sessions per server, including
command-line interface sessions and a graphical user interface (GUI) connection to
the server console (Open Console). In addition, RSC supports up to four active
concurrent RSC GUI sessions.
Note – Sun Enterprise 250 servers support two concurrent telnet sessions and three
active concurrent RSC GUI sessions.
8 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
RSC Security
The hardware and process required for you to log in to an RSC account on a
managed server depend on company security practices, and whether the serial port,
Ethernet, or modem dial-in are used. Further security is provided by RSC accounts,
individual account access rights, and passwords. In addition, RSC records all logins
and sends an alert if it detects more than five login failures within five minutes.
Characteristics of the modem settings and phone line connection to RSC determine
access security for modem connections. For instance, use of a dial-back option or a
phone line that supports dial-out only can increase security.
Caution – For purposes of security, do not leave your session unattended. Always
use the RSC logout command before disconnecting your session. In addition,
before logging out of RSC, take care to log out of any server sessions you initiate
while using the RSC console.
This chapter provides information about how to configure Sun Remote System
Control (RSC) software. For installation instructions, see the instructions that
accompany your release media. Downloadable software is also available at the
following web site: http://www.sun.com/servers/rsc.html.
The RSC configuration script allows you to set up RSC configuration. You can
change RSC configuration after initial configuration using RSC shell commands, the
RSC graphical user interface (GUI), or the rscadm utility. However, before running
the configuration script, you must decide how you will use RSC software to manage
your server. The basic decisions you need to make are:
■ Which RSC communication ports to enable
■ Whether to enable alert messages, and by what means
Note – Sun Enterprise 250 servers have an RSC Ethernet port and an RSC serial
port, but no internal modem. You can connect an external modem to the RSC serial
port. See Appendix B.
11
RSC Ethernet Port
The RSC Ethernet port, when connected to your local Ethernet, is most useful for
accessing RSC from within your company network. You can connect to RSC
remotely using any standard telnet and PPP (point-to-point protocol) clients with
TCP/IP (Transmission Control Protocol/Internet Protocol). For example, you may
use a pool of modems attached to a terminal server running PPP.
RSC Modem
You can use the RSC modem to send alerts to pagers. For sending pager alerts, RSC
is designed to operate with any modem paging service that complies with the
Telocator Alphanumeric Protocol (TAP).
Note – Sun Enterprise 250 servers have an RSC serial port to which you can connect
an external modem.
To use the RSC GUI, users must have RSC client software installed on their
machines. If an incoming connection uses PPP, then RSC can support several remote
user sessions simultaneously. Otherwise, only one remote user can be active at a
time.
You can also configure RSC to send alerts to people who are not logged in to RSC
accounts on that server. These additional alerts can be sent to an email address, to
alphanumeric pagers, or to both. After receiving an alert, an RSC user can connect to
their RSC account for that server and address the alert condition.
12 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Email Alerts
If the RSC Ethernet port is enabled, you can set an email address to use for alerts.
Although only a single email address is permitted, you can notify several people
that a problem has occurred by using an email alias or mailing list.
Pager Alerts
If the RSC modem is enabled and connected, you can page one or two alphanumeric
pagers when an alert occurs. Use this alert mechanism if your system administrators
typically carry pagers. For sending pager alerts, RSC is designed to operate with any
modem paging service that complies with the Telocator Alphanumeric Protocol
(TAP).
Note – Sun Enterprise 250 servers have an RSC serial port to which you can connect
an external modem.
Note – For Sun Enterprise 250 servers, the server hostname and customer
information strings are limited to eight characters.
■ Customer information string to identify the server in alert messages (40 characters
maximum, including alphanumeric characters and hyphen):
You may want to use the server’s service contract number (recommended),
location, system administrator’s name, or responsible department as customer
information.
■ Do you want to enable Ethernet connection to RSC? (y|n):
Note – Sun recommends setting the RSC device name associated with the Internet
address in name server maps (either NIS or DNS) to be the name of the server with
-rsc appended to it. For instance, if your server’s hostname is bert, the
recommended name to assign to the RSC device for that server is bert-rsc. Sun
also recommends that if you use DHCP, you configure the DHCP server to assign a
fixed IP address to RSC.
Note – For Sun Enterprise 250 servers, verbose alerts are enabled and you cannot
limit the length of pager alert messages.
14 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
■ Pager 1 parity:
■ Pager 1 stop bits:
■ Do you want RSC to send alert messages to an additional pager? (y|n):
■ If you want RSC to send alert messages to an additional pager:
■ Pager 2 telephone number:
■ Pager 2 modem initialization string:
■ Pager 2 account password:
■ Pager 2 baud rate:
■ Pager 2 data bits:
■ Pager 2 parity:
■ Pager 2 stop bits:
■ Do you want to enable the RSC modem? (y|n):
Note – Sun Enterprise 250 servers use the RSC serial port for modem connection. If
you are configuring RSC on a Sun Enterprise 250 server, the configuration script asks
if you want to enable the RSC serial port, and if you respond yes it prompts for a
value for serial port baud rate, serial data bits, serial parity, serial stop bits, whether
to use hardware handshaking, and whether to enable PPP over the RSC serial port.
# /usr/platform/platform-name/rsc/rsc-config
You can obtain the string to use for platform-name using the Solaris command
uname -i. For example:
% uname -i
SUNW,Sun-Fire-280R
The script prompts you for configuration information. Some prompts may not
appear, depending on choices you make. To respond to the prompts, refer to the
information you recorded following the instructions in “Planning Configuration
Settings” beginning on page 13.
Prompts relating to enabling alerts, the RSC Ethernet port, or the RSC modem
include a skip option. This option is useful only if you run the script again after
initial configuration to change selected options of the RSC configuration. When you
choose skip when running the script after initial configuration, configuration for
that option will not change. If you choose skip and that option has not been
previously set, RSC uses the default setting (shown in brackets).
After you have responded to all configuration setting prompts, the configuration
script displays a summary for each section of the procedure and asks whether it is
correct. For each section, respond y or yes to confirm your choices, or respond n or
no to revisit that section of the configuration procedure.
When you have confirmed all sections, the configuration procedure updates the RSC
flash PROM.
Caution – It takes a few minutes to update the RSC flash PROM. Do not interrupt
this process by aborting the configuration procedure or removing system power. If
the update is interrupted, you must restart the configuration script, and it must
complete successfully, before RSC can function properly.
16 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
After setting up RSC as you specified, the configuration procedure prompts you for
the password for the user account, if you chose to create a user account. Then it
prompts you to repeat the password.
Finally, the procedure asks if you want to reset RSC. A reset is required before
Ethernet configuration takes effect. This completes RSC server software
configuration.
ok diag-console rsc
Note – For Sun Enterprise 250 servers, use the following commands at the ok
prompt: diag-output-to rsc, setenv input-device rsc, setenv output-
device rsc. Also, use diag-output-to ttya in the next example below.
These commands take effect after the next server reset. At any time, you can use the
following command to remove RSC as the default console:
ok diag-console ttya
If your server has a keyboard and monitor, you also need to type the following
commands after removing RSC as the default console:
After initial configuration, you can control configuration and add or modify user
accounts by using the GUI or RSC shell commands. You can also log in to the host as
root and use the rscadm utility to control RSC configuration and user accounts; see
Chapter 5.
If you are using an uninterruptible power supply (UPS) for the host, you must
configure it properly. For an example of UPS configuration, see Appendix A.
To use PPP for dialing in to the RSC modem, the RSC configuration variable
ppp_enabled must be set to true, or PPP must be enabled using the RSC GUI. In
addition, you must configure PPP on each client machine that will use PPP to dial in
to RSC accounts on the RSC modem.
18 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Completing Alert Configuration
To complete alert configuration, choose Configure Alerts in the GUI, or set the
following configuration variables using the RSC shell or rscadm utility:
■ customerinfo
■ hostname
■ page_enabled
■ mail_enabled
■ page_info1
■ page_info2 (optional)
■ mailuser
■ mailhost
■ page_verbose
The GUI provides help for configuring RSC alerts. For help configuring RSC alert
variables in the shell, see “Alert Variables” on page 51. RSC generates alert messages
with the following format:
You can also use the rscadm subcommand send_event -c to send a customized
alert at any time. You can do this directly at the superuser prompt, and you can also
create a command file that runs and sends the alert under special circumstances. See
Appendix C.
Use a meaningful file name that includes the name of the server that RSC controls.
Later, you can refer to this file to restore the settings if you need to reinstall RSC
software on the server or replace RSC hardware.
20 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
CHAPTER 3
This chapter explains how to access the RSC GUI (graphical user interface) and use
the RSC windows and dialog boxes. If you need to use RSC commands and the GUI
is not available, you can use RSC shell commands. After you log in to your RSC
account from a terminal window, the RSC shell prompt appears (rsc>), and you can
enter commands.
% /opt/rsc/bin/rsc
If you are using a client running the Microsoft Windows 98, Windows 2000, or
Windows NT operating environment, follow these steps to start the RSC GUI:
When the login screen appears, it prompts you to enter an RSC device name or IP
address, your RSC username, and your password.
21
Note – Enter the name or IP address of the RSC device, not the name or IP address
of the server. If you enter the server name instead of the RSC device name, the
interface searches for the name you entered, and if necessary it also searches for the
name with -rsc appended; if neither search is successful, RSC returns an error
message.
To simultaneously monitor or control more than one server, start a separate GUI
session for each server.
Note – If you have created a shortcut to RSC, you can start the RSC GUI by double-
clicking the Remote System Control icon.
22 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
■ RSC Card Configuration
■ Alert Settings
■ Ethernet Settings
■ Communications Settings
■ Set RSC Date and Time
■ Change Password
■ User Administration
■ Reset RSC
■ Help
■ Help Topics
■ About RSC
Online Help is available when you use the GUI. Additional detail about RSC
functions is provided in the sections of Chapter 4 that describe the corresponding
RSC shell commands.
Admin. Permission
Admin. permission allows the user to modify RSC configuration, including the
following items in the command tree:
■ Alert Settings
■ Ethernet Settings
■ Communications Settings
■ Set RSC Date and Time
■ Reset Console Logs
■ Reset RSC
User Permission
User permission allows the user to choose User Administration in the command tree
to add, modify, and remove RSC user accounts.
Reset Permission
Reset permission allows the user to use the following items in the command tree:
■ Send XIR
■ Set Boot Mode
■ Reset Server
■ Power Off or Power On
■ Toggle Locator LED (Sun Fire V480 servers only)
Read-Only Permission
If no user permissions are checked, the user’s permission is read-only. A user with
read-only permission can use the following options only:
■ Show Environmental Status
■ View Logs options (except Reset Console Logs)
■ Ethernet Settings (read only)
■ Change Password (current user’s own password only)
■ Help Topics
■ About RSC
24 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
CHAPTER 4
RSC supports a total of four concurrent telnet sessions per server, including
command-line interface sessions and a graphical user interface (GUI) connection to
the server console (Open Console). In addition, RSC supports up to four active
concurrent RSC GUI sessions.
Note – Sun Enterprise 250 servers support two concurrent telnet sessions and three
active concurrent RSC GUI sessions.
After you log in to your RSC account, the RSC shell prompt appears (rsc>), and you
can enter RSC shell commands. This chapter tells you how to log in to your RSC
account and describes RSC command use and syntax.
The following table summarizes RSC shell commands. Each command is explained
in greater detail in the following sections.
Name Description
25
TABLE 4-1 RSC Shell Commands (Continued)
Name Description
Note – For Sun Enterprise 250 servers, the following shell command aliases are not
available: showenvironment, showdate, setdate, and showsc.
26 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
More detailed descriptions of the commands are provided in the following sections.
Note – Some commands require a specific user permission level. See “userperm
username [a][u][c][r]” on page 43 for information about user permission levels.
b. If you are already connected to your company Ethernet, use the telnet
command to connect to RSC.
c. Use PPP to connect to the RSC modem. To use this option, PPP must be
enabled.
Please login:
e. If your server has an RSC serial port, connect an ASCII terminal directly to the
RSC serial port.
rsc>
Logins are recorded in the RSC event log. In addition, RSC sends an alert if it detects
more than five login failures within five minutes. Except for Sun Enterprise 250
servers, RSC automatically disconnects a session after 10 minutes of user inactivity.
Note – For Sun Enterprise 250 servers, you can set RSC to disconnect a session
connected to the serial port after 10minutes of inactivity.
28 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
■ setlocator
■ showlocator
environment
Use the environment command to display a snapshot of server environmental
status, such as temperatures, power supply status, front panel LED status, keyswitch
position, and so forth. You can also use the command abbreviation env. The display
uses similar format to that used for the UNIX command prtdiag(1m).
rsc> environment
=================================
=================================
=================================
Fan Bank:
---------
=================================
30 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Power Supplies:
---------------
Supply Status
------ ------
1 OK: 560w
=================================
rsc>
The display differs according to the server model and configuration. Note that some
environmental information may be unavailable when the server is in Standby mode.
showenvironment
The shownenvironment command is the same as the environment command.
(Not available for Sun Enterprise 250 servers.)
shownetwork
The shownetwork command displays the current network configuration.
For example:
rsc> shownetwork
RSC network configuration is:
DHCP server: 129.149.2.3
IP Address: 129.149.2.6
Gateway Address: 129.149.2.7, 129.149.2.8
Netmask: 255.255.255.0
Ethernet Address: ae:30:30:00:00:01
rsc>
console
Use the console command to enter RSC console mode and connect to the server
console from the RSC shell. When you use this command, the system displays a
standard Solaris login prompt. If RSC is not designated as the server console,
nothing is displayed.
break
Use the break command to put the server into Debug mode. You must have C level
user permission to use this command. The server front panel keyswitch must not be
in the Lock position, and RSC must be designated as the console (see Chapter 6).
Debug mode can use either kadb or OpenBoot PROM, depending on server
configuration.
xir
This command generates the equivalent of an externally initiated reset (XIR) of the
server. You must have R level user permission to use this command. The server
enters OpenBoot PROM mode and displays the ok prompt. This command is useful
for driver or kernel debugging, as most of the contents of the server’s memory and
registers is preserved. To resume operation of the system after using the xir
command, you must reboot the server.
bootmode [-u]
[normal|forth|reset_nvram|diag|
skip_diag]
This command provides control over the server firmware behavior after a server
reset. Functionality of this command is identical to that available on non-USB Sun
keyboards using L1 key combinations. You must have R level user permission to use
this command. If you use the bootmode command without arguments, RSC displays
the current boot mode.
rsc> reset
32 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
To set the diag or skip_diag option, you must follow the bootmode command
with the poweroff and poweron commands within 10 minutes. For example:
rsc> poweroff
rsc> poweron
To force console input and output to RSC, use the -u option before specifying the
boot mode. This is the equivalent of using the OpenBoot PROM commands shown
in “Redirecting the Console to RSC” on page 17, but affects the next boot only.
The following table describes modes you can specify using the bootmode command.
Mode Description
-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
non-USB keyboards); requires server reset
reset_nvram Reset all NVRAM variables to default values (equivalent to L1-N on
non-USB keyboards); requires server reset
diag Force the server to run full diagnostics (equivalent to L1-D on non-
USB keyboards); requires server power-off and power-on
skip_diag Force the server to skip diagnostics (equivalent to L1-S on non-USB
keyboards); requires server power-off and power-on
Note – The diag and skip_diag modes take effect only if you follow the
bootmode command with the poweroff and poweron commands within 10
minutes.
Note – The default configuration of Sun workgroup server firmware does not
invoke POST when the server resets. However, you can change this behavior
through NVRAM variable settings; for additional details, see the Platform Notes for
your server.
poweroff
Use the poweroff command to power off the server. You must have R level user
permission to use this command. This command has no effect if the server is already
powered off. RSC remains available since it uses the server’s standby power. Note,
however, that some environmental information may be unavailable when the server
is in Standby mode.
It can take up to 35 seconds for the poweroff command to completely shut down
the system (except on Sun Enterprise 250 servers). This is because RSC waits for a
clean shutdown to complete before poweroff can occur.
Note – For Sun Enterprise 250 servers, the poweroff command does not perform a
clean shutdown of the system.
poweron
Use the poweron command to power on the server. You must have R level user
permission to use this command. This command has no effect if the server’s
keyswitch is in the Standby position, or the server is already powered on.
34 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
setlocator
Use the setlocator command to turn the system locator LED on or off. This
command applies to Sun Fire V480 servers only. For more information on this
command, refer to “Controlling the Locator LED” on page 93.
For more information on the locator LED, refer to the Sun Fire V480 Administrator’s
Guide.
showlocator
Use the showlocator command to view the state of the system locator LED (on or
off). This command applies to Sun Fire V480 servers only. For more information on
this command, refer to “Controlling the Locator LED” on page 93.
For more information on the locator LED, refer to the Sun Fire V480 Administrator’s
Guide.
The origin of counting is 1; that is, index +1 indicates the first line in the buffer,
index -1 indicates the last. For example:
This command prints the last 30 lines and any additional lines that were appended
to the buffer between the time that the command began execution and the time that
it terminated.
pause n
Use the pause subcommand to display n lines of the log at a time (similar to the
more command). The value of n must be a decimal integer. The default is to display
the entire RSC log without pausing.
EVENTID is a unique identifier for the event, TIME is the time the event occurred (as
measured by RSC time), and message is a user-friendly description of the event.
36 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
consolehistory [boot|run|oboot|orun]
[index [+|-]n] [pause n]
Use the consolehistory command to display console messages logged in RSC
buffers. With no arguments, this command prints the entire contents of all non-
empty console buffers. You can use the command abbreviation chist.
Each buffer can contain up to 64Kbytes of information. (On Sun Enterprise 250
servers, the original boot log and boot log buffers can contain up to 16 Kbytes of
information.)
When the first power-on boot begins, RSC fills the original boot (oboot) buffer with
data from the server’s console. After that buffer fills up, it writes data to the original
run (orun) log. When the orun log fills up, it overwrites old data in the orun log.
When RSC senses a server reset while writing the orun log, it switches to the boot
log. After that fills up, it switches to the run log. When the run log fills up, it
overwrites old data in the run log.
When RSC senses a server reset while writing the current run log, it switches to the
current boot log again.
pause n
Use the pause subcommand to display n lines of the log at a time (similar to the
more command). The value of n must be a decimal integer. The default is to display
10 lines of the log at a time.
consolerestart
Use the consolerestart command to make the current boot and run logs the
original logs (designated oboot and orun). This command copies the current boot
and run buffers to the oboot and orun buffers, overwriting the previous contents.
Next, it clears the current boot and run buffers, and begins logging to the old run
log. You must have A level user permission to use this command.
For example, after adding a hardware component to the server, reboot the server and
use the consolerestart command so that the new component will appear in the
original console logs.
38 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
RSC Configuration Commands
Use the following RSC commands to set or show characteristics of the RSC or server
configuration:
■ set
■ show
■ date (also showdate and setdate)
■ password
■ useradd
■ userdel
■ usershow
■ userpassword
■ userperm
■ resetrsc
Changes to some variables do not take effect until the you reset RSC using the
command-line interface (CLI) resetrsc command, or the rscadm subcommand
rscadm resetrsc, or by using the graphical user interface.
You can use the null string ("") to set a variable to null. To set a variable to a string
that includes spaces, enclose the string in double quotes. For example:
date [[mmdd]HHMM|mmddHHMM[cc]yy][.SS]
Use the date command without arguments to show RSC’s current date and time. If
you have A level user permission, you can use the date command to set the current
date and time. The following table describes components of the date format.
Option Description
mm Month number
dd Day-of-the-month number
HH Hour number (24-hour system)
MM Minute number
.SS Second number
cc First two digits of year
yy Last two digits of year
You may omit the month, day, and year; the current values are applied as defaults.
Examples:
The first example sets the time to September 15, 9:45 p.m., 2000. The second example
sets the time to September 15, 9:45 p.m. of the current year. The third example sets
the time to 9:45 p.m. of the current month, day, and year.
40 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Note – Whenever the server boots, it sets the RSC current date and time. In
addition, the RSC hardware includes a battery backed-up time-of-day chip for
maintaining RSC time in between server reboots. However, to keep RSC time in sync
with server time, you should periodically run the script /usr/platform/platform-
name/rsc/rsc-initscript. You can obtain the string to use for platform-name
using the Solaris command uname -i. If you like, you can run this script at a
specified interval using the cron utility. You can also use the rscadm command
rscadm date -s.
showdate
Same as the date command without arguments. (Not available for Sun Enterprise
250 servers.)
setdate
Same as the date command with arguments. You need to have A level user
permission to use the setdate command to set the RSC current date and time.
(Not available for Sun Enterprise 250 servers.)
password
Use the password command to change the RSC password for the account to which
you are logged in. This command behaves similarly to the UNIX passwd(1)
command.
When used to change a password, RSC prompts for your current password, and if
you enter it correctly, it prompts for the new password. RSC prompts again for the
new password and updates it if entered identically both times. For example:
rsc> password
password: Changing password for username
Enter login password: ******
Enter new password: ******
Re-enter new password: ******
rsc>
useradd username
Use the useradd username command to add an RSC user account. You must have U
level user permission to use this command. The maximum number of RSC user
accounts is 16, except on Sun Enterprise 250 servers, where the maximum number is
4. Valid characters for username include:
■ Alphabetic characters
■ Numeric characters
■ Period (.)
■ Underscore (_)
■ Hyphen (-)
The username field has a maximum length of 16 characters (eight characters for Sun
Enterprise 250 servers), must contain at least one lowercase alphabetic character, and
the first character must be alphabetic. If these restrictions are not met, the system
issues a warning and the command fails.
userdel username
This command deletes an RSC user account. You must have U level user permission
to use this command.
42 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
usershow [username]
This command shows RSC user accounts; a maximum of 16 user accounts are
available (4 on the Sun Enterprise 250 servers). You must have U level user
permission to use this command. If no argument is supplied, all accounts are shown.
Information displayed includes username, permissions, and whether a password is
assigned. For example:
rsc> usershow
rsc>
userpassword username
This command sets or changes the password for the specified user account. You
must have U level user permission to use this command. RSC does not prompt for an
existing password. See the password command for details on password format and
restrictions. For example:
All RSC users can look at RSC information. The following arguments increase a
user’s authorization level:
■ a – Administration permission; authorized to change the state of RSC
configuration variables
■ u – User administration permission; authorized to use commands that add and
delete users, change user permissions, and change the authorization level of other
users
You must have U level user permission to use this command. You can specify zero
through four authorizations. The default authorization level for a new RSC account
is none of the above (that is, read-only).
If you do not specify authorization levels, RSC sets the permissions for username to
read-only. However, the default user permission for the account you create during
the installation procedure is cuar (full authorization).
A user with read-only permission can only use the following commands:
■ help
■ password
■ date (without arguments) and showdate (The showdate command is not
available on Sun Enterprise 250 servers.)
■ shownetwork
■ environment and showenvironment (The showenvironment command is not
available on Sun Enterprise 250 servers.)
■ loghistory
■ consolehistory
■ show
■ version and showsc (The showsc command is not available on Sun Enterprise
250 servers.)
■ logout
■ showlocator (Sun Fire V480 servers only)
resetrsc
The resetrsc command performs a hard reset of RSC. This terminates all current
RSC sessions. You must have A level user permission to use this command. You can
also reset RSC by using the rscadm resetrsc command.
Note – When you reset RSC on a Sun Enterprise 250 server without also resetting
the server, RSC time defaults to 1/1/70. To synchronize RSC time with server time,
reset the server, use the rscadm command rscadm date -s or run the script
/usr/platform/platform-name/rsc/rsc-initscript. You can obtain the string
to use for platform-name using the Solaris command uname -i.
44 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Other RSC Commands
help
The help command displays a list of all RSC shell commands and a brief
description of each.
version [-v]
The version command displays the firmware version running on RSC. Use the -v
option to display more verbose information. For example:
rsc> version
RSC Version: 2.2
RSC Bootmon version: 2.0.0
RSC Firmware version: 2.2.0
rsc> version -v
RSC Version: 2.2
RSC Bootmon version: 2.0.0
RSC bootmon checksum: 4D018EBD
rsc>
showsc
Same as the version command without the -v option. (Not available for Sun
Enterprise 250 servers.)
showfru
The showfru command displays information stored in the RSC serial EEPROM.
You must have A level user permission to set configuration variables from the GUI
or RSC shell; you must log in to the server as root to use the rscadm utility.
Use the show command to show configuration variables, and use the set command
to set a variable. Changes to variables take effect immediately except as noted.
You can use the null string ("") to set a variable to null. To set a variable to a string
that includes spaces, enclose the string in double quotes. Note that it is not necessary
to enter the null string or use quotes in GUI entry fields.
46 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Point-to-Point Protocol (PPP) Variables
ppp_local_ip_addr
Use this variable to specify the Internet Protocol (IP) address for RSC to use during
a PPP session; use standard dot notation. If this variable is empty, RSC expects the
remote node to set the Internet address dynamically. The default setting is 0.0.0.0
(empty). Changes to this variable take effect on the next PPP connection over the
RSC modem.
ppp_remote_ip_addr
Use this variable to specify the IP address for the remote node during a PPP session;
use standard dot notation. If this variable is empty, RSC expects that the remote
node already has an Internet address assigned for the PPP session. The default
setting is 0.0.0.0 (empty). Changes to this variable take effect on the next PPP
connection over the RSC modem.
ppp_enabled
Use this variable to specify whether PPP is the default protocol on the RSC modem.
Valid values are true or false; the default is false. Changes to this variable take
effect on the next login connection over the RSC modem.
Modem Variables
Note – Modem variables are not available for Sun Enterprise 250 servers. Instead,
you connect an external modem to the RSC serial port and use serial port variables
to configure the connection. Refer to “Serial Connections” on page 90 for more
information.
modem_parity
This variable sets the RSC modem parity for incoming connections. Valid values are
none, odd, or even. The default setting is none. Changes to this variable take effect
on the next login connection over the RSC modem.
modem_data
This variable sets the number of RSC modem data bits for incoming connections.
Valid values are 7 and 8. The default setting is 8. Changes to this variable take effect
on the next login connection over the RSC modem.
country_code
This variable sets the modem country code. The default setting is 001 (USA).
Changes to this variable take effect on the next login connection over the RSC
modem.
48 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
086 China 672 Christmas Island
669 Cocos Island 057 Colombia 718 Comoros Isles
242 Congo 682 Cook Isle 506 Costa Rica
385 Croatia 053 Cuba 700 Curacao
357 Cyprus 042 Czech Republic 045 Denmark
727 Diego Garcia 253 Djibouti 806 Dominica
816 Dominican Republic 704 Easter Isles 593 Ecuador
020 Egypt 503 El Salvador
240 Equatorial Guinea 291 Eritrea 372 Estonia
251 Ethiopia 555 Europe 554 Europe A
500 Falkland Islands 298 Faroe Islands 679 Fiji
358 Finland 033 France 594 French Guiana
693 French Polynesia 241 Gabon 220 Gambia
007 Georgia 049 Germany 233 Ghana
350 Gibraltar 030 Greece 299 Greenland
807 Grenada 705 Grenadines 590 Guadaloupe
671 Guam 502 Guatemala 224 Guinea
245 Guinea-Bissau 592 Guyana 509 Haiti
388 Herzegovina 504 Honduras 728 Hong Kong
036 Hungary 354 Iceland 091 India
062 Indonesia 098 Iran 964 Iraq
353 Ireland 711 Isle of Man 972 Israel
039 Italy 225 Ivory Coast 808 Jamaica
081 Japan 962 Jordan 729 Kampuchea
008 Kazakhstan 254 Kenya 686 Kiribati
956 Kuwait 996 Kyrgyzstan 856 Laos
371 Latvia 961 Lebanon 738 Leeward Isles
266 Lesotho 231 Liberia 218 Libya
013 Liechtenstein 370 Lithuania 352 Luxembourg
853 Macau 389 Macedonia 261 Madagascar
721 Madeira 265 Malawi 060 Malaysia
960 Maldives 223 Mali 356 Malta
50 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
256 Uganda 380 Ukraine 971 United Arab Emirates
044 United Kingdom 001 United States of America 598 Uruguay
012 Uzbekistan 678 Vanuatu 713 Vatican City
058 Venezuela 814 Virgin Isle 084 Vietnam
736 Wake Islands 681 Wallis/Futuna 967 Yemen
381 Yugoslavia 243 Zaire 260 Zambia
263 Zimbabwe
Alert Variables
page_enabled
Use this variable to specify whether paging is enabled for RSC alerts. Valid values
are true or false. The default is false.
mail_enabled
Use this variable to specify whether an email message is enabled for RSC alerts.
Valid values are true or false. The default is false.
page_info1
This variable contains the phone number and associated pager ID number for
sending a Telocator Alphanumeric Protocol (TAP) alert to a pager. Use the character
@ to separate the telephone number and PIN ID number (if used or needed). Valid
characters are:
■ digits (0-9)
■ * (asterisk)
■ # (pound sign)
■ , (comma, for pause dialing)
■ @ (for appending PIN)
page_password1
This variable contains the pager service password used to send an alert to pager 1.
The password must be an alphanumeric string of six characters or fewer.
page_baud1
This variable specifies the modem baud rate to use when sending an alert to pager 1.
Valid values are 300, 1200, 2400, 4800, and 9600. After RSC sends the page alert,
the baud setting reverts to 9600 baud.
Note – For Sun Enterprise 250 servers, the baud setting reverts to the setting
specified for the serial_baud variable.
page_data1
This variable specifies the number of RSC modem data bits for sending an alert to
pager 1. Valid values are 7 and 8. After RSC sends the page alert, the data bits revert
to the setting specified in the modem_data variable.
Note – For Sun Enterprise 250 servers, the data bits revert to the setting specified
for the serial_data variable.
page_parity1
This variable specifies the RSC modem parity for sending an alert to pager 1. Valid
values are none, odd, and even. After RSC sends the page alert, the parity reverts to
the setting specified in the modem_parity variable.
Note – For Sun Enterprise 250 servers, the parity reverts to the setting specified for
the serial_parity variable.
52 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
page_stop1
This variable specifies the number of RSC modem stop bits for sending an alert to
pager 1. Valid values are 1 and 2. After RSC sends the page alert, the stop bits revert
to the setting specified in the modem_stop variable.
Note – For Sun Enterprise 250 servers, the stop bits revert to the setting specified for
the serial_stop variable.
page_info2
This variable contains the phone number and associated pager ID number for
sending a Telocator Alphanumeric Protocol (TAP) alert to another pager. Use the
character @ to separate the telephone number and ID. Valid characters are:
■ digits (0-9)
■ * (asterisk)
■ # (pound sign)
■ , (comma, for pause dialing)
■ @ (for appending PIN)
page_init2
This variable specifies a string consisting of attention (AT) commands used for
configuring the RSC modem prior to sending an alert to pager 2.
page_password2
This variable contains the pager service password used to send an alert to pager 2.
The password must be an alphanumeric string of six characters or fewer.
Note – For Sun Enterprise 250 servers, the baud setting reverts to the setting
specified for the serial_baud variable.
page_data2
This variable specifies the number of RSC modem data bits for sending an alert to
pager 2. Valid values are 7 and 8. After RSC sends the page alert, the data bits revert
to the setting specified in the modem_data variable.
Note – For Sun Enterprise 250 servers, the data bits revert to the setting specified
for the serial_data variable.
page_parity2
This variable specifies the RSC modem parity for sending an alert to pager 2. Valid
values are none, odd, and even. After RSC sends the page alert, the parity reverts to
the setting specified in the modem_parity variable.
Note – For Sun Enterprise 250 servers, the parity reverts to the setting specified for
the serial_parity variable.
page_stop2
This variable specifies the number of RSC modem stop bits for sending an alert to
pager 2. Valid values are 1 and 2. After RSC sends the page alert, the stop bits revert
to the setting specified in the modem_stop variable.
Note – For Sun Enterprise 250 servers, the stop bits revert to the setting specified for
the serial_stop variable.
54 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
customerinfo
This variable contains customer information used in the message generated for a
pager or email alert, for instance, one of the following:
■ Server service contract number (recommended)
■ Server location
■ Name or telephone extension of the server’s system administrator
■ Name of the department that owns the server
hostname
This variable contains the name of the server connected directly to RSC. RSC
includes this host name in alert messages. This string can be up to 40 characters
(eight characters on Sun Enterprise 250 servers), including alphanumeric characters
and hyphen (-). The default setting is empty.
mailuser
This variable contains the address used for email alerts. The string has a 40-character
limit; the default setting is empty. Although only a single mail address is permitted,
you can notify several people that a problem has occurred by using an email alias.
mailhost
This variable contains a colon-separated list of Internet addresses to which RSC
sends Simple Mail Transfer Protocol (SMTP) mail alerts. Each address is tried until
the SMTP alert is successfully transmitted. Specify addresses using standard dot
notation. For example:
You can specify a maximum of two addresses, separated by a colon. If this variable
is empty, or if the mail_enabled variable is set to false, no email is sent. The
default setting is empty.
Note – The page_verbose variable is not available for Sun Enterprise 250 servers.
Alert messages sent to pagers have unrestricted length.
ip_mode
Use this variable to control how RSC configures the IP address for its local Ethernet
port. Choose the ip_mode value according to the services available on the network
to which RSC is connected. The following list describes the available values.
■ none – Ethernet port is disabled and is not accessible.
■ dhcp – Use the Dynamic Host Configuration Protocol (DHCP) to obtain the IP
address.
■ config – Use the ip_addr configuration variable to obtain the IP address.
The default setting is dhcp. Changes to this variable take effect after the next RSC
reset.
ip_addr
This variable is only used if the ip_mode variable is set to config. Specify the IP
address in standard Internet dot notation. The default setting is 0.0.0.0 (empty).
Changes to this variable take effect after the next RSC reset.
ip_netmask
This variable is only used if the ip_mode variable is set to config. Specify the
subnet mask in standard Internet dot notation. The default setting is 0.0.0.0
(empty). Changes to this variable take effect after the next RSC reset.
56 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
ip_gateway
This variable is only used if the ip_mode variable is set to config. This is the
default gateway to which RSC will send IP packets when the destination is not on
the same subnet as RSC. Specify the IP address in standard Internet dot notation.
The default setting is 0.0.0.0 (empty). Changes to this variable take effect after the
next RSC reset.
tpe_link_test
This variable enables 10BASE-T Ethernet link integrity tests when set to true, the
default. If you are using RSC in a hub that does not support Ethernet link integrity
tests or that has them disabled, set this variable to false. Changes to this variable
take effect after the next RSC reset. The tpe_link_test variable behaves similarly to
the OpenBoot PROM environment variable named "tpe-link-test?", which is
available on some SPARC platforms.
RSC and the local hub should have Ethernet link integrity tests enabled or disabled
consistently. If this setting is not consistent, communication may not be possible.
escape_char
This variable sets the escape sequence character for ending a console session or
modem setup and returning to the RSC shell. The escape sequence applies to all RSC
users for the server. The escape sequence consists of the escape character followed
by a period. The default escape character is ~ (tilde).
The escape sequence character can be a single alphanumeric character. It can also be
a control character. To enter a control character as the escape character, type “^”
(Shift-6) to represent the Control key, followed by another character. If the second
character is a question mark (?), the Delete key is selected; otherwise the second
character is converted to a control character and used as the escape character. For
example, if you enter ^y to set the escape character, users will use Control-y period
to end a console session.
Usage Errors
This section lists usage error messages that are displayed due to improper command
syntax. Refer to the description of the command in this chapter for the correct
syntax.
Usage: break
Usage: consolerestart
Usage: environment
Usage: password
Usage: poweroff
Usage: poweron
Usage: reset
Usage: resetrsc
58 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Usage: setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
Usage: showdate
Usage: showenvironment
Usage: shownetwork
Usage: showsc
Usage: xir
General Errors
RSC reports the following general errors.
ERROR: username did not start with letter or did not contain
lowercase letter
You entered an invalid username.
Invalid login
Login attempt failed. This message appears at the login prompt.
Invalid password
You entered an illegal password with the userpassword command.
60 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Invalid permission: <permission>
You entered an invalid user permission. Valid permissions are [c] [u] [a] [r]. See
“userperm username [a][u][c][r]” on page 43.
Malformed username
You specified a nonexistent user when entering the userpassword, userperm,
or userdel command.
Permission denied
You attempted to execute a shell command for which you do not have the proper
user permission level.
The rscadm utility and its subcommands allow administration of Sun Remote
System Control (RSC) from the host. You must log in to the server as root to use
rscadm.
/usr/platform/platform-name/rsc/
You can obtain the string to use for platform-name using the Solaris command
uname -i. For example:
% uname -i
SUNW,Sun-Fire-280R
Set your path to the rscadm utility so that you can use the command rscadm.
Most rscadm subcommands are also available using the RSC command shell, but
rscadm is convenient for:
■ Reconfiguring RSC when account passwords are unknown
■ Resetting RSC when it fails to respond
■ Backing up configuration data
■ Downloading RSC firmware
■ Synchronizing RSC date and time to the server’s date and time
Note – You cannot use the rscadm utility, and you should not use RSC software,
while SunVTS diagnostics are running.
63
The rscadm utility uses the following subcommands.
Subcommand Description
64 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
rscadm Subcommands
help
This subcommand prints out a basic Help message including a list of rscadm
subcommands and a short description of each.
date [-s]
date [[mmdd]HHMM|mmddHHMM[cc]yy][.SS]
Use the date subcommand to show the current date and time. Use the -s option to
synchronize RSC time to the server time. Supply a date with the subcommand to set
RSC time to a time other than the server time.
set variable-value
Use the set subcommand to set an RSC configuration variable. See “RSC
Configuration Variables” on page 46 for descriptions of these variables.
You can use the null string ("") to set a variable to null. To set a variable to a string
that includes spaces or UNIX shell special characters, enclose the string in double
quotes. For example:
show [variable]
Use the show subcommand to display the value of one or more RSC configuration
variables. If you do not specify a variable, RSC displays all configuration variables.
See “RSC Configuration Variables” on page 46 for descriptions of these variables.
# shownetwork
RSC network configuration is:
IP Address: 129.149.2.6
Gateway Address: 129.149.2.7, 129.149.2.8
Netmask: 255.255.255.0
#
loghistory
Use the loghistory subcommand to display the history of all events logged in the
RSC event buffer. These events include server reset events and all RSC commands
that change the state of the system. This will return the log entries in reverse order,
with the newest messages first.
resetrsc [-s]
This subcommand resets RSC immediately. To terminate all connections cleanly
before the reset, use the -s option. If no argument is supplied, this subcommand
performs a hard reset and drops all connections.
Note – When you reset RSC on a Sun Enterprise 250 server without also resetting
the server, RSC time defaults to 1/1/70. To synchronize RSC time with server time,
reset the server, use the rscadm command rscadm date -s, or run the script
/usr/platform/platform-name/rsc/rsc-initscript. You can obtain the string
to use for platform-name using the Solaris command uname -i.
66 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
download [boot] file
This subcommand supports downloading new firmware residing in file into RSC. If
you specify boot, the contents of file will be installed in the boot section of RSC non-
volatile memory. If you do not specify boot, the contents of file will be installed in
the main firmware section of RSC non-volatile memory.
When the transfer completes, RSC resets itself. If the host keyswitch is in the Lock
position, you cannot update RSC firmware, and an error message displays.
See Appendix C for an example of a Perl script that uses this subcommand to send
an alert.
modem_setup
Use this subcommand to change configuration of the RSC modem (or for Sun
Enterprise 250 servers, the configuration of the modem connected to the RSC serial
port). You can enter standard attention (AT) commands and see responses from the
modem. At the beginning of a line, enter the escape character followed by a period
to exit from this subcommand. By default, the escape character is tilde (~). For
example:
# rscadm modem_setup
AT <enter>
OK
~.
Note – For Sun Enterprise 250 servers, the escape sequence for rscadm
modem_setup is always ~. (a tilde followed by a period). The RSC console has a
configurable exit character, but the escape character for rscadm modem_setup is
fixed.
version
Reports the RSC version on the host (not available on Sun Enterprise 250 servers).
An example of output returned by this command is:
# rscadm version
RSC version v2.2
RSC Bootmon v2.0.0
RSC Firmware Version: v2.2.0
This command also has a -v switch. Using -v provides more information about
RSC, as shown in the following example:
# rscadm -v version
RSC Version v2.2
RSC Bootmon Version: v2.0.0
RSC Bootmon checksum: 3688AD82
68 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
status
Same as the version -v command; available on all supported servers.
70 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
rscadm: download failed, RSC reported erase error
During execution of the download subcommand, RSC reported a hardware
problem when trying to program the RSC EEPROM.
rscadm: either the RSC hardware was not detected or a lock file
was found. Only one instance of rscadm can run at a given time.
As stated.
72 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
rscadm: RSC did not respond during boot initialization
An internal error occurred during execution of the download subcommand.
rscadm: username did not start with letter or did not contain
lowercase letter
You used an invalid username format when trying to add an RSC user account.
■ 01 <= mm <= 12
■ 01 <= dd <= 31
■ 01 <= HH <= 23
■ 00 <= MM <= 59
■ 19 70 <= ccyy <= 2038
74 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
USAGE: rscadm userperm <username> [cuar]
This chapter contains information about OpenBoot PROM features that support Sun
Remote System Control (RSC) software.
diag-console rsc|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.
Note – The command diag-console is not available for Sun Enterprise 250
servers; use the diag-output-to command instead (see “diag-output-to
rsc|ttya” on page 78).
.rsc
Displays RSC information, including the diag-console setting (diag-output-to
for Sun Enterprise 250 servers) and the RSC POST status word.
77
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|ttya
Directs POST output to either RSC (1) or ttya (0). This command takes effect after the
next server reset.
Note – Available for Sun Enterprise 250 servers only. For other supported
workgroup servers, use the diag-console command. See “diag-console
rsc|ttya” on page 77.
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.
78 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
OpenBoot PROM Environment Variable
Properties
Two environment variable properties are available to the user for specifying the RSC
console to OpenBoot PROM. Define these variables at the ok prompt. For example:
Note – For Sun Enterprise 250 servers, you must set input-device and
output-device to rsc rather than to rsc-console.
rsc-console
This property is a new device alias that is valid for ttyio, input-device, and
output-device OpenBoot PROM console variables. Screen output and keyboard
input are typically still set to be the default, and ttya and ttyb continue to be other
valid options.
Note – Not available for Sun Enterprise 250 servers. For Sun Enterprise 250 servers,
you must set input-device and output-device to rsc rather than to rsc-
console.
rsc
This property is a device alias that is valid for ttyio, input-device, and output-
device OpenBoot PROM console variables. Screen output and keyboard input are
typically still set to be the default, and ttya and ttyb continue to be other valid
options.
rsc!
This property is a new device alias that is valid for ttyio, input-device, and
output-device OpenBoot PROM console variables. Screen output and keyboard
input are typically still set to be the default, and ttya and ttyb continue to be other
valid options. This variable does not allow OpenBoot PROM to automatically search
for a working console if RSC is broken.
80 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
CHAPTER 7
Troubleshooting
81
When the maximum number of telnet sessions are active, further attempts to connect
using the telnet command will receive a connection closed error. The following
example shows system messages for the UNIX operating environment:
% telnet bert-rsc
Trying 129.148.49.120...
Connected to bert-rsc.
Escape character is ’^]’.
Connection closed by foreign host.
Note – Sun Enterprise 250 servers support two concurrent telnet sessions and three
active concurrent RSC GUI sessions.
82 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
As an alternative, you can also log in to RSC through the serial port and use the
show command to check that the modem configuration variables are set correctly.
Note – For Sun Enterprise 250 servers, it is very important that the external modem
is configured to use a fixed baud rate for incoming calls.
Chapter 7 Troubleshooting 83
RSC passwords are unknown
If users have forgotten RSC passwords or passwords are not working, log in to the
server as root and use the command rscadm userpassword to assign new
passwords. Inform RSC users of the new passwords.
84 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Troubleshooting Server Problems
Using RSC
RSC is useful for troubleshooting a server that is not responding. If the server is
responsive, connect to it as usual and use standard tools such as Sun Management
Center, SunVTS, and OpenBoot Diagnostics.
Chapter 7 Troubleshooting 85
86 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
CHAPTER 8
This chapter discusses specific information on how RSC works on the following
server platforms:
■ Sun Enterprise 250 Servers
■ Sun Fire V480 Servers
87
Hardware and Configuration Issues
The RSC hardware for Sun Enterprise 250 servers differs from the hardware on other
platforms, and the configuration script differs somewhat. TABLE 8-1 describes those
differences.
Issue Description
Backup battery/ RSC hardware for Sun Enterprise 250 servers does not include a
Modem backup battery or internal PCMCIA modem. You can connect an
external modem to the RSC serial port. For more information on
configuring the external modem, refer to Appendix B.
RSC ports Sun Enterprise 250 servers have an RSC Ethernet port and an RSC
serial port. If you are configuring RSC on a Sun Enterprise 250
server, the configuration script asks if you want to enable the RSC
serial port. If you respond yes, it prompts for a value for serial port
baud rate, serial data bits, serial parity, serial stop bits, whether to
use hardware handshaking, and whether to enable PPP over the
RSC serial port.
Issue Description
Telnet and GUI Sun Enterprise 250 servers support two concurrent telnet sessions
sessions and three active concurrent RSC GUI sessions.
Hostname and Limited to eight characters.
customer
information strings
Alerts Verbose alerts are enabled. You cannot limit the length of pager alert
messages.
Number of user Sun Enterprise 250 servers support four user accounts.
accounts
Software Issues
RSC software on Sun Enterprise 250 servers uses some commands that differ from
the commands used on other servers. This section describes some procedures where
RSC requires different commands. It also describes some shell commands unique to
RSC on Sun Enterprise 250 servers.
88 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
This section includes the following topics:
■ Redirecting the console to RSC
■ Software commands and shell command aliases
■ Serial connections
■ OpenBoot PROM environment variable properties
ok diag-output-to-rsc
After the next server reset, use the following commands to remove RSC as the
default console:
ok diag-output-to ttya
For more information about the equivalent commands on other Sun servers, refer to
Chapter 4.
When you reset RSC on a Sun Enterprise 250 server without also resetting the server,
RSC time defaults to 1/1/70. To synchronize RSC time with server time, reset the
server, use the rscadm command rscadm date -s or run the script
/usr/platform/platform-name/rsc/rsc-initscript. You can obtain the string
to use for platform-name by using the Solaris command uname -i.
Serial Connections
The modem variables used with other Sun servers are not available for Sun
Enterprise 250 servers. Instead, you connect an external modem to the RSC serial
port and use the serial port variables described in this section. For more information
about configuring the external modem, refer to Appendix B.
To log in to your RSC account using a modem on a Sun Enterprise 250 server, you
must disable PPP by using the RSC shell, RSC GUI, or the rscadm utility to set the
ppp_enabled configuration variable to false.
For Sun Enterprise 250 servers, you can set RSC to disconnect a session connected to
the serial port after 10 minutes of inactivity. See information for the configuration
variable “serial_hw_handshake” on page 92.
RSC on the Sun Enterprise 250 servers uses the following serial port variables:
■ serial_baud
90 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
■ serial_parity
■ serial_stop
■ serial_data
■ serial_hw_handshake
serial_baud
This variable sets the RSC serial port baud rate. Valid values are as follows:
■ 9600
■ 19200
■ 38400
■ 57600
■ 115200
The default setting is 9600. Changes to this variable take effect on the next login
connection over the RSC serial port.
Note – If you set up pager alerts using the page_baud1 or page_baud2 variables,
the baud settings for these variables revert to the setting specified for the
serial_baud variable. Refer to “Pager Variable Settings” on page 100 for more
information.
If you change the serial baud rate after configuring the serial port modem, you must
reconfigure the modem. Refer to Appendix B.
serial_parity
This variable sets the RSC serial port parity. Valid values are none, odd, or even.
The default setting is none. Changes to this variable take effect on the next login
connection over the RSC serial port.
If you change the serial parity setting after configuring the serial port modem, you
must reconfigure the modem. Refer to “Modem Reconfiguration Required After
Changing RSC Serial Port Settings” on page 109.
This variable sets the number of RSC stop bits. Valid values are 1 or 2. The default
setting is 1. Changes to this variable take effect on the next login connection over the
RSC serial port.
Note – If you set up pager alerts using the page_stop1 or page_stop2 variables,
the baud settings for these variables revert to the settings specified for the
serial_stop variable. Refer to “Pager Variable Settings” on page 100 for more
information.
If you change the serial stop bits setting after configuring the serial port modem, you
must reconfigure the modem. Refer to “Modem Reconfiguration Required After
Changing RSC Serial Port Settings” on page 109.
serial_data
This variable sets the number of RSC data bits; valid values are 7 and 8. The default
setting is 8. Changes to this variable take effect on the next login connection over the
RSC serial port.
If you change the serial data bits setting after configuring the serial port modem,
you must reconfigure the modem. See “Modem Reconfiguration Required After
Changing RSC Serial Port Settings” on page 109.
serial_hw_handshake
This variable controls whether RSC uses hardware handshaking on the RSC serial
port. Valid values are true and false. The default setting is true. If set to true,
hardware flow control and modem control are enabled. If set to false, RSC
disconnects a session connected to the serial port after 10 minutes of inactivity.
Two environment variable properties are available for specifying the RSC console to
OpenBoot PROM. Define these variables at the ok prompt. For example:
92 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
For more information about OpenBoot PROM commands and environment
variables, refer to Chapter 6.
The instructions in this section explain how to control and monitor the Locator LED
using the command line interface. For more information on the Locator LED, refer to
the Sun Fire V480 Administrator’s Guide.
To control the locator LED, perform the following procedure and press return after
each command.
rsc> showlocator
Locator LED is OFF
rsc> setlocator on
rsc> showlocator
Locator LED is ON
5. Type showlocator.
This time, the RSC CLI shows that the locator LED is off.
rsc> showlocator
Locator LED is OFF
A fault indicates that a device is operating in a degraded state, but is still fully
operational. Due to this degradation, the device may not be as reliable as a device
that does not show a fault, but it will still be able to perform its primary function.
For example, a power supply would show a fault state if an internal fan has failed;
however, it can still provide regulated power as long as itstemperature does not
exceed the critical threshold. In this faulted state, the power supply may not be able
to function indefinitely, depending on the temperature, load, and efficiency;
therefore, it is not as reliable as a non-faulted power supply.
94 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
APPENDIX A
Sun Remote System Control (RSC) Version 2.2 cards include a battery that supplies
power to RSC for a short period of time after a complete power failure. To extend the
time you can use RSC, connect the host power cord to an uninterruptible power
supply (UPS). SunExpress™ sells several suitable UPS devices.
Note – RSC hardware on Sun Enterprise 250 servers does not include a battery.
95
How to Configure the UPS to Record
Events and Send Alerts
PowerChute plus software allows you to run a command file or shell script
whenever a designated “event action” occurs. See “Configuring Actions” in the
PowerChute plus User Guide. Use the command rscadm send_event to log events
and send alerts to RSC from the server.
3. In the Event Actions dialog box, click on an event that you want to notify RSC
about (for example, UPS On Battery).
4. Select the Run Command File and then click on the associated Options button.
The Run Command File dialog box opens.
5. Using a text editor, create a command file with the following content:
You can use any message string in place of "UPS: UPS On Battery". Be sure to
enclose the message string in double quotes.
Use the -c option to send an alert and also record the event in the RSC event log.
To log the event only, do not use the -c option.
You can obtain the string to use for platform-name using the Solaris command
uname -i. For example:
% uname -i
SUNW,Sun-Fire-280R
7. Type the name of this file into the Run Command File dialog box.
9. Click on OK.
96 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
10. Repeat steps 2 through 9 for each event for which you want to create a log entry or
send an alert, using appropriate content and command file names.
This appendix applies to Sun Enterprise 250 servers only. When you connect a third-
party modem to the Sun Enterprise 250 RSC serial port, you must configure the
modem. For other platforms, the modem on the RSC card is preconfigured.
You can access RSC using an Ethernet connection, and you can also install a
dedicated modem connected to the RSC serial port for access from outside your
company network. For increased security, you can specify a dialback number if the
modem supports this feature.
To install and configure the modem, follow the instructions that came with it.
This appendix gives examples for configuring a MultiTech MultiModem II, MT2834
Series Intelligent Data/Fax Modem (Sun part number 370-2234-03), and a Courier
V.Everything modem.
To enable and set up the RSC modem, you should use the following configuration
settings unless otherwise indicated. You can use the GUI (graphical user interface) to
change configuration settings, or you can use the RSC shell or the rscadm utility to
change configuration variables.
99
General Settings
Use the following settings to configure the RSC serial port.
100 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Use the following settings to enable and configure pager alerts. Use of pager 2 is
optional. You do not need to enter settings for pager 2 if you are using a single
pager. In this table, the characters -> indicate menu hierarchy; for example,
Alert Settings->Pager means open Alert Settings and then choose Pager.
Alert Settings->Pager
Appendix B Configuring the Sun Enterprise 250 Server RSC Serial Port Modem 101
Pager Phone Number
The pager phone number is the number for the paging service’s TAP connection,
and not the number for voice page notifications. It must be a phone number that
connects to a modem that adheres to the TAP protocol. You may need to contact
your paging service to obtain this number as well as other pager configuration
parameters.
Pager phone numbers must include the complete string to dial; for instance, if your
internal phone network requires a 9 before the number, include it. You can include a
comma (,) after the 9 if a pause is required in order to wait for a dial tone. For
example, 9,18005551212.
See “Setting Up the MultiTech MultiModem II” on page 103 for the MultiTech
MultiModem II initialization string, and see “Setting Up the Courier V.Everything
Modem” on page 106 for the Courier V.Everything modem initialization string.
102 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Pager Password
The pager password is the password for the TAP paging service. In most cases in the
United States, this password is not used. However, some paging services (for
instance, in the United Kingdom) require a password.
Appendix B Configuring the Sun Enterprise 250 Server RSC Serial Port Modem 103
Modify RSC Configuration Variables
Using the RSC GUI or RSC shell, set the following configuration variables.
The string &D3 sets the modem to reset when DTR drops, the string &E0 disables
error correction, the string &E14 disables data compression, and the string $BA1
turns off speed conversion.
To check that these settings are correct, use the rscadm show command.
# rscadm modem_setup
OK
ATZ (Reset modem)
OK
AT$BA1 (Turn off speed conversion)
OK
AT&W0 (Write out settings to modem)
104 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
OK
AT$SB9600 (Set serial port baud rate to 9600)
OK
AT&W0 (Write out settings to modem)
OK
AT$BA0 (Turn on speed conversion)
OK
AT&W0 (Store current settings to modem NVRAM)
OK
After executing these AT commands, you can verify the modem settings in NVRAM
by using the ATL5 command:
OK
ATL5
B1 E1 M1 Q0 R0 V1 X0 &E0 &E4 &E6 &E8 &E10 &E13 &E14 %C0 #C1 *C0 &C1
$MB9600 $SB9600 $BA0 &W0
OK
After confirming settings, turn the modem off, reset RSC using the GUI or the
resetrsc shell command, and then turn the modem on again.
Appendix B Configuring the Sun Enterprise 250 Server RSC Serial Port Modem 105
Setting Up the Courier V.Everything
Modem
Use the following information to set up the Courier V.Everything modem.
106 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Modify RSC Configuration Variables
Using the RSC GUI or RSC shell, set the following configuration variables.
The string E1 turns echo on, the string &B1 sets fixed serial port baud rate, the string
&M0 disables error correction, the string &K0 disables data compression, and the
string &N6 sets baud rate to 9600.
To use a baud rate other than 9600, change the baud rate for pager 1 or 2, and also
use the corresponding AT command in the modem initialization string:
■ &N1 – 300 baud
■ &N2 – 1200 baud
■ &N3 – 2400 baud
■ &N4 – 4800 baud
■ &N6 – 9600 baud
To check that these settings are correct, use the rscadm show command.
Appendix B Configuring the Sun Enterprise 250 Server RSC Serial Port Modem 107
Modify Modem Settings
Use the rscadm modem_setup command to enter the following AT commands.
# rscadm modem_setup
OK
ATZ (Reset modem)
OK
ATE1 (Turn echo on for this session)
OK
AT&N6 (Set serial port baud rate to 9600)
OK
AT&R1 (Turn off RTS flow control)
OK
ATS13=1 (Set S-register 13 to 1; reset modem when DTR drops)
OK
AT&B1 (Set serial port to fixed rate)
OK
AT&W (Store current settings to modem NVRAM)
OK
108 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
After executing these AT commands, you can verify the modem settings in NVRAM
by using the ATI5 command.
OK
ATI5
OK
After confirming settings, turn the modem off, reset RSC using the GUI or the
resetrsc shell command, and then turn the modem on again.
2. If desired, adjust the modem’s phone line baud rate to match the serial port baud
rate.
For example, if you changed the serial port baud rate to 19200, use the following AT
commands:
For the MultiTech II MultiModem: AT&$MB19200.
For the Courier V.Everything modem: AT&N10.
Appendix B Configuring the Sun Enterprise 250 Server RSC Serial Port Modem 109
3. Write the modem’s current settings to the modem’s NVRAM, so that the modem
will default to the current settings.
For the MultiTech II MultiModem, use this AT command at the OK prompt: AT&W0.
For the Courier V.Everything modem, use this AT command at the OK prompt: AT&W.
Instead of using the rscadm command, you can connect the modem to one of the
server’s serial ports and use a UNIX utility such as tip to connect to the TAP
paging terminal. This allows you to check the modem independent of RSC. If you
can connect successfully using this method, you know you are using the correct
paging terminal number. See the man pages for tip and stty for UNIX-level
troubleshooting.
110 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
APPENDIX C
You can embed the rscadm subcommand send_event in a script or command file
to log a Remote System Control (RSC) event or send an alert when certain conditions
occur. Use the -c option to send an alert.
This appendix provides an example Perl script file named dmon.pl that sends an
RSC alert when a specified disk partition exceeds a specified percent of its capacity.
This script is written for use with a Sun Fire™ 280R server. To use this script as
intended, submit a separate entry to the crontab utility for each disk partition you
want to monitor.
#!/usr/bin/perl
# Disk Monitor
# USAGE: dmon <mount> <percent>
# e.g.: dmon /usr 80
@notify_cmd = ‘/usr/platform/SUNW,Sun-Fire-280R/sbin/rscadm’;
if (scalar(@ARGV) != 2)
{
print STDERR “USAGE: dmon.pl <mount_point> <percentage>\n”;
print STDERR “ e.g. dmon.pl /export/home 80\n\n”;
exit;
}
$found = 0;
while ($fields = <DF>)
111
{
chop($fields);
($fs, $size, $used, $avail, $capacity, $mount) = split(‘ ‘, $fields);
if ($ARGV[0] eq $mount)
{
$found = 1;
if ($capacity > $ARGV[1])
{
print STDERR “ALERT: \””, $mount, “\” is at “, $capacity,
“ of capacity, sending notification\n”;
$nofify_msg = ‘mount point “‘.$mount.’” is at ‘.
$capacity.’ of capacity’;
exec (@notify_cmd, ‘send_event’, ‘-c’, $nofify_msg)
|| die “ERROR: $!\n”;
}
}
}
if ($found != 1)
{
print STDERR “ERROR: \””, $ARGV[0],
“\” is not a valid mount point\n\n”;
}
close(DF);
112 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
APPENDIX D
Certain entries in the RSC (Sun Remote System Control) event log and in alert
messages include an event code that identifies system events. The following tables
identify these codes.
0x00000000 PS1_FAIL
0x00000001 PS1_OK
0x00000002 PS2_FAIL
0x00000003 PS2_OK
0x00000004 PS_GENERAL_FAIL
0x00010000 DISK0_FAILURE
0x00010001 DISK0_OK
0x00010002 DISK1_FAILURE
0x00010003 DISK1_OK
0x00010004 DISK2_FAILURE
0x00010005 DISK2_OK
0x00010006 DISK3_FAILURE
0x00010007 DISK3_OK
0x00010008 DISK4_FAILURE
0x00010009 DISK4_OK
113
TABLE D-2 Disk Event Codes (Continued)
0x0001000a DISK5_FAILURE
0x0001000b DISK5_OK
0x0001000c DISK6_FAILURE
0x0001000d DISK6_OK
0x0001000e DISK7_FAILURE
0x0001000f DISK7_OK
0x00020000 CPU0_MIN_TEMP
0x00020001 CPU0_WARNING
0x00020002 CPU0_SHUTDOWN
0x00020003 CPU0_OK
0x00020004 CPU1_MIN_TEMP
0x00020005 CPU1_WARNING
0x00020006 CPU1_SHUTDOWN
0x00020007 CPU1_OK
0x00020008 MB0_MIN_TEMP
0x00020009 MB0_WARNING
0x0002000a MB0_SHUTDOWN
0x0002000b MB0_OK
0x0002000c MB1_MIN_TEMP
0x0002000d MB1_WARNING
0x0002000e MB1_SHUTDOWN
0x0002000f MB1_OK
0x00020010 PDB_MIN_TEMP
0x00020011 PDB_WARNING
0x00020012 PDB_SHUTDOWN
0x00020013 PDB_OK
0x00020014 SCSI_MIN_TEMP
114 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
TABLE D-3 Temperature Event Codes (Continued)
0x00020015 SCSI_WARNING
0x00020016 SCSI_SHUTDOWN
0x00020017 SCSI_OK
0x00030000 USER_WARNING
0x00030001 USER_CRITICAL
0x00030002 USER_TEST_PAGE
0x00030003 USER_TEST_START
0x00030004 USER_TEST_END
0x00040000 POWER_OFF
0x00040001 POWER_ON
0x00040002 SYSTEM_RESET
0x00040003 SYSTEM_GEN_ERROR
0x00040004 SYSTEM_FAN_OK
0x00040005 SYSTEM_FAN_FAILURE
0x00040006 SYSTEM_SET_BOOTMODE_NORMAL
0x00040007 SYSTEM_SET_BOOTMODE_FORTH
0x00040008 SYSTEM_SET_BOOTMODE_RESET_NVRAM
0x00040009 SYSTEM_SET_BOOTMODE_DIAG
0x0004000a SYSTEM_SET_BOOTMODE_SKIP_DIAG
0x0004000b SYSTEM_SET_BOOTMODE_CLEAR
0x0004000c SYSTEM_I2C_ERROR
0x0004000d SYSTEM_POLLER_OFF
0x00050000 KEYSWITCH_LOCKED
0x00050001 KEYSWITCH_OFF
0x00050002 KEYSWITCH_ON
0x00050003 KEYSWITCH_DIAG
0x00050004 KEYSWITCH_BROKEN
0x00060000 RSC_LOGIN
0x00060001 RSC_LOGIN_FAILURE
0x00060002 RSC_LOGOUT
0x00060003 RSC_BOOT
0x00060004 RSC_RESET_HOST_COMMAND
0x00060005 RSC_NVRAM_UPDATE
0x00060006 RSC_PAGER_FAILURE
0x00060007 RSC_EMAIL_FAILURE
0x00060008 RSC_DHCP_INIT
0x00060009 RSC_DHCP_COMPLETE
0x0006000a RSC_DHCP_LEASELOST
0x0006000b RSC_BREAK_COMMAND
0x0006000c RSC_DATE_CHANGED
0x0006000d RSC_BATTERY_LOW
0x0006000e RSC_CARD_DETECT
0x0006000f RSC_MODEM_LINE_ERROR
0x00060010 RSC_MODEM_ERROR
0x00060011 RSC_PAGE_SVC_ERROR
0x00060012 RSC_BATTERY_POWER (???)
116 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
Index
A command shell
alert messages configuration commands, 39
choosing types, 12 configuration variables, 46
content, 5 alert, 51
delivery, 5 console, 57
email, 13, 14 Ethernet port, 56
enabling, 14 serial port, 47
pager, 13 logging in to RSC account, 27
pager variables, 14 other commands, 45
server status and control commands, 28
alerts
view log commands, 35
configuring, 19
creating a script to send, 111, 113 commands, shell, 25
format, 19 bootmode, 32
troubleshooting, 83 break, 32
configuration commands, 39
alphanumeric pager, 13
configuration variables, 46
alert, 51
console, 57
B Ethernet port, 56
serial port, 47
backing up configuration, 20
console, 31
bootmode command, 32
consolehistory (chist), 37
break command, 32 consolerestart, 38
date, 40, 41
environment, 29, 31, 45
help, 45
C
loghistory (lhist), 35
choosing alert message types, 12 logout, 46
choosing communication ports, 11 other commands, 45
Ethernet port, 12 password, 41
client poweroff, 34
requirements, 9 poweron, 34
types, 2 reset, 34
117
resetrsc, 44 Ethernet port, 56
server status and control, 28 ip_addr, 56
set, 39 ip_gateway, 57
show, 40 ip_mode, 56
shownetwork, 31 ip_netmask, 56
table, 25 serial port, 47
useradd, 42 ppp_enabled, 47
userdel, 42 ppp_local_ip_addr, 47
userpassword, 43 ppp_remote_ip_addr, 47
userperm, 43 serial_baud, 91
usershow, 43 serial_data, 48, 92
version, 45 serial_hw_handshake, 92
view log commands, 35 serial_parity, 47, 91
xir, 32 serial_stop, 48, 92
communication ports, choosing, 11 console
Ethernet port, 12 autosearch, disabling, 79, 92
configuration enabling RSC as, 17, 77, 78, 89
after installation, 11 redirecting to RSC, 17, 79, 89, 92
backing up, 20 removing RSC as default, 17, 89
during installation, 11 console command, 31
modem, 18 console log, 7, 22, 35
point-to-point protocol (PPP), 18 consolehistory (chist) command, 37
uninterruptible power supply (UPS), 18 consolerestart command, 38
configuration planning, 13 customer information variable, 13
configuration variables, 46 customerinfo variable, 19
alert, 51
customerinfo, 55
hostname, 55
mail_enabled, 51 D
mailhost, 55 date command, 40, 41
mailuser, 55
diag-output-to OBP command, 78
page_baud1, 52
page_baud2, 54 diag-output-to OpenBoot PROM command, 77
page_data1, 52
page_data2, 54
page_enabled, 51 E
page_info1, 51
page_info2, 53 environment command, 29, 31, 45
page_init1, 52 Ethernet port configuration, 13
page_init2, 53 event log, 7, 22
page_parity1, 52 creating a script to write to, 111, 113
page_parity2, 54
page_password1, 52
page_password2, 53
page_stop1, 53 F
page_stop2, 54 flash PROM, updating, 16
console, 57
escape_char, 57
118 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
G N
graphical user interface (GUI) NVRAM module, replacing, 78
functions, 22
online Help, 23
permissions required to access functions, 23
starting, 21 O
OpenBoot PROM, 77
commands for RSC, 77
.rsc, 77
H diag-output-to, 77, 78
help command, 45 rsc-hard-reset, 78, 92
hostname variable, 19 rsc-mac-update, 78
rsc-soft-reset, 78
environment variable properties for RSC, 79, 92
rsc, 79
I rsc!, 80
If, 15 output-device variable, 79
input-device variable, 79
installing
alert variables, 14
Ethernet configuration, 13
P
flash PROM update, 16 page_enabled variable, 19
resetting RSC, 17 page_info1 variable, 19
page_info2 variable, 19
pager variables, 14
pager, alphanumeric, 13
L
password command, 41
loghistory (lhist) command, 35
passwords, troubleshooting, 84
login failures, 28
planning configuration, 13
logout command, 46
point-to-point protocol (PPP)
configuration, 18
ppp_enabled variable, 18
M poweroff command, 34
mail_enabled variable, 19 poweron command, 34
mailhost variable, 19 ppp_enabled variable, 18
mailuser variable, 19
Microsoft Windows operating environment, 21
modem R
configuration (example), 99
Remote System Control (RSC)
general settings, 100
capabilities, 7
pager variable settings, 100
configuration, 8
modem configuration, 15 server status and control, 7
modem multiple sessions, 18 view logs, 7
modem variables, 15 clients, configuring PPP on, 18
configuration, backing up, 20
configuring, 11, 18
Index 119
features, 4 serial port, 47
graphical user interface (GUI) console, 31
functions, 22 consolehistory (chist), 37
online Help, 23 consolerestart, 38
permissions required to access functions, 23 date, 40, 41
starting, 21 environment, 29, 31, 45
installing, 11 help, 45
login failures, 28 logging in to RSC account, 27
overview, 1 loghistory (lhist), 35
resetting, 17 logout, 46
security, 9 other commands, 45
use overview, 5 password, 41
user interfaces, 8 poweroff, 34
replace, 20 poweron, 34
reset command, 34 reset, 34
resetrsc, 44
resetrsc command, 44
server status and control, 28
RSC, 12
set, 39
rscadm and user account administration, 69 show, 40
rscadm date, 65 shownetwork, 31
rscadm download, 67 table, 25
rscadm help, 65 useradd, 42
rscadm loghistory, 66 userdel, 42
rscadm modem_setup, 67 userpassword, 43
userperm, 43
rscadm resetrsc, 66
usershow, 43
rscadm send_event, 67 version, 45
rscadm set, 65 view log commands, 35
rscadm show, 65 xir, 32
rscadm shownetwork, 66 show command, 40
rscadm utility, 11, 18, 19, 20 shownetwork command, 31
S T
security, 9 time
sessions, multiple differences in event and console logs, 38
Ethernet port, 18 synchronizing to server’s, 65
modem, 18 troubleshooting, 84
set command, 39 timeout, 92
shell commands, 25 troubleshooting RSC problems, 81
bootmode, 32 can’t connect through Ethernet, 82
break, 32 can’t connect through serial port, 82
configuration commands, 39 can’t log in, 81
configuration variables, 46 can’t perform some functions, 84
alert, 51 no alerts received, 83
console, 57 passwords unknown, 84
Ethernet port, 56 times don’t match, 84
120 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003
troubleshooting server problems using RSC, 85 ip_netmask, 56
serial port, 47
ppp_enabled, 47
ppp_local_ip_addr, 47
U ppp_remote_ip_addr, 47
uninterruptible power supply (UPS), 18 serial_baud, 91
alerts and events, 96 serial_data, 48, 92
installing and configuring, 95 serial_hw_handshake, 92
updating flash PROM, 16 serial_parity, 47, 91
user account, creating during installation, 15 serial_stop, 48, 92
user interfaces, 8 version command, 45
useradd command, 42
userdel command, 42
userpassword command, 43 X
userperm command, 43 xir command, 32
usershow command, 43
V
variables, configuration, 46
alert, 51
customerinfo, 55
hostname, 55
mail_enabled, 51
mailhost, 55
mailuser, 55
page_baud1, 52
page_baud2, 54
page_data1, 52
page_data2, 54
page_enabled, 51
page_info1, 51
page_info2, 53
page_init1, 52
page_init2, 53
page_parity1, 52
page_parity2, 54
page_password1, 52
page_password2, 53
page_stop1, 53
page_stop2, 54
console, 57
escape_char, 57
Ethernet port, 56
ip_addr, 56
ip_gateway, 57
ip_mode, 56
Index 121
122 Sun Remote System Control (RSC) 2.2 User’s Guide • November 2003