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.
Installation places the rscadm utility in the following directory:
/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:
Note - You cannot use the rscadm utility, and you should not use RSC software, while SunVTS diagnostics are running.
The rscadm utility uses the following subcommands.
Note - On Sun Enterprise 250 servers, the rscadm subcommands shownetwork, loghistory, and version are not available.
This subcommand prints out a basic Help message including a list of rscadm subcommands and a short description of each.
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.
See "date [[mmdd]HHMM|mmddHHMM[cc]yy][.SS]" for a description of date formats.
Use the set subcommand to set an RSC configuration variable. See "RSC Configuration Variables" 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:
# rscadm set page_info2 "" # rscadm set page_init1 "&F &E0"
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" for descriptions of these variables.
The shownetwork subcommand displays the current network configuration.
For example:
# 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 #
Note - The rscadm subcommand shownetwork is not available on Sun Enterprise 250 servers.
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.
Note - The rscadm subcommand loghistory is not available on Sun Enterprise 250 servers.
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.
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.
Use this subcommand to enter an event into the RSC event log. Use the -c option to also send an alert message that RSC forwards according to the alert configuration. The message is an ASCII string of no more than 80 characters. To use a string that includes spaces or UNIX shell special characters, enclose the string in double quotes.
See Appendix C for an example of a Perl script that uses this subcommand to send an alert.
![]()
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 ~. #
The escape character for modem_setup is the same as the escape character used for the RSC shell console command, which is set using the escape_char configuration variable. See escape_char.
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.
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.0.0 RSC Bootmon v2.0.0 RSC Main v2.0.0 RSC POST status = 0XFFFF
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 RSC Firmware Version: v2.2.0 RSC Build Release: 20 RSC firmware checksum: 00A000A0 RSC firmware built: Sep 14 2001, 14:40:38 RSC System Memory Size 8 MB RSC NVRAM Version = 4 RSC hardware type: 3
Same as the version -v command; available on all supported servers.
To administer user accounts from the host using rscadm, log in to the host as root and use the rscadm utility with the following subcommands:
This section offers further explanation of error messages received from the rscadm utility. The last 12 messages are usage error messages.
Passwords didn't match, try again
rscadm: all user slots are full
rscadm: command line too long
rscadm: command unknown
rscadm: could not connect to modem
rscadm: could not disconnect from modem
rscadm: could not read date from RSC
rscadm: could not send alert
rscadm: could not set date on RSC
rscadm: couldn't add user
rscadm: couldn't change password
rscadm: couldn't change permissions
rscadm: couldn't create thread
rscadm: couldn't delete user
rscadm: couldn't get information on user
rscadm: download failed, RSC reported erase error
rscadm: download failed, RSC reported int_wp error
rscadm: download failed, RSC reported range error
rscadm: download failed, RSC reported verify error
rscadm: download failed, RSC reported vpp error
rscadm: download failed, RSC reported wp error
rscadm: download rejected, keyswitch in secure mode?
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.
rscadm: Error downloading file
rscadm: ERROR, callback init failed
rscadm: ERROR, passwords didn't match
rscadm: ERROR, unable to set up message queue
rscadm: event message can't exceed 80 characters
rscadm: file could not be opened
rscadm: file not a valid s-record
rscadm: INTERNAL ERROR in set date
rscadm: INTERNAL ERROR, overflow in callback
rscadm: invalid variable
rscadm: invalid variable or value
rscadm: malformed password
rscadm: malformed username
rscadm: maximum username length is - 16
rscadm: RSC did not respond during boot initialization
rscadm: RSC failed to respond during download
rscadm: RSC firmware not responding
rscadm: RSC not responding to requests
rscadm: RSC returned fatal error
rscadm: RSC returned garbage
rscadm: RSC returned unknown error
rscadm: RSC returned wrong response
rscadm: RSC unable to free up memory
rscadm: Unable to reset RSC hardware
rscadm: unable to send data to RSC
rscadm: Unable to send modem data to RSC
rscadm: user already exists
rscadm: username did not start with letter or did not contain lowercase letter
rscadm: username does not exist
This program MUST be run as root
USAGE: rscadm <command> [options]
USAGE: rscadm date [-s] | [[mmdd]HHMM | mmddHHMM[yyyy]][.SS]
USAGE: rscadm download [boot] <file>
USAGE: rscadm loghistory
USAGE: rscadm resetrsc [-s]
USAGE: rscadm send_event [-c] "message"
USAGE: rscadm set <variable> <value>
USAGE: rscadm show [variable]
USAGE: rscadm shownetwork
USAGE: rscadm useradd <username>
USAGE: rscadm userdel <username>
USAGE: rscadm userpassword <username>
USAGE: rscadm userperm <username> [cuar]
USAGE: rscadm usershow [username]