SC/RSC console setup

Many Sun servers have this nifty little “feature” called Net Management port. When connected to the network and configured it allows SC access over the network. It’s just like being hooked up directly to the ALOM port. Depending on the server model you can telnet or ssh to the server to gain access. Given this is console access to the server ssh is the preferred method if it’s supported. SC output below is from SunFire V245.

Configuration is straight forward, using scadm command. To use it:

bash-3.00# cd /usr/platform/`uname -i`/sbin

First, let’s see the parameters that can be set:

bash-3.00# ./scadm show
if_network="true"
if_modem="false"
if_connection="telnet"
if_emailalerts="false"
sys_autorestart="xir"
sys_bootrestart="none"
sys_bootfailrecovery="none"
sys_maxbootfail="3"
sys_xirtimeout="900"
sys_boottimeout="900"
sys_wdttimeout="60"
netsc_tpelinktest="true"
netsc_dhcp="false"
netsc_ipaddr="10.1.1.1"
netsc_ipnetmask="255.255.255.0"
netsc_ipgateway="10.1.1.254"
mgt_mailhost=""
mgt_mailalert=""
sc_customerinfo=""
sc_escapechars="#."
sc_powerondelay="false"
sc_powerstatememory="false"
sc_clipasswdecho="true"
sc_cliprompt="sc"
sc_clitimeout="0"
sc_clieventlevel="2"
sc_backupuserdata="true"
sys_eventlevel="2"

You can change the parameters using:

scadm set [parameter] [value]

To get SC accessible over the network, if_connection, netsc_ipaddr, netsc_ipnetmask and netsc_ipgateway parameters need to be set. After those parameters are set you will probably have to restart SC using scadm resetrsc for changes to take effect. This does not affect the server itself. Once SC is back up, you can gain access using the method specified in if_connection parameter and then log in using ALOM credentials.

Some server models, such as SunFire V490 do not have SC. Instead they come, at least they used to, with RSC. To use it you will have to download RSC software from Sun. Configuration is similar to SC. If this is your initial configuration of RSC, you can use rsc-config script. It will ask you a bunch of questions and configure RSC for you. Alternatively you can use rscadm utility. To use it

bash-3.00# cd /usr/platform/`uname -i`/rsc

Let’s see some RSC parameters:

bash-3.00# ./rscadm show
mail_enabled="false"
ip_mode="config"
ppp_enabled="false"
tpe_link_test="true"
serial_baud="9600"
serial_parity="none"
serial_stop="1"
serial_data="8"
customerinfo=""
ip_addr="10.1.1.1"
ip_netmask="255.255.255.0"
ip_gateway="10.1.1.254"
mailhost=""
mailuser=""
ppp_local_ip_addr="0.0.0.0"
ppp_remote_ip_addr="0.0.0.0"
hostname="pas2"
escape_char="~"

Once you are happy with your configuration you also have to set input-device and output-device Openboot variables to rsc-console. You will also need to set diag-out-console to true.

SC and RSC are very similar. One notable difference is availability of modem in RSC. For more info check out scadm and rscadm man pages. Pretty useful stuff…