The ALOM (advanced light-outs manager) command shell enables you to administer, diagnose, or control the host server. Below are some of the most commonly used ALOM commands.
To check all the available commands :
sc> help Available commands ------------------ poweron [-c] {FRU} poweroff [-y] [-f] removefru [-y] {FRU} reset [-y] [-x] [-c] break [-y] [-c] bootmode [normal|reset_nvram|diag|skip_diag|bootscript="string"] console [-f] consolehistory [-b lines|-e lines] [-g lines] [-v] [boot|run] showlogs [-b lines|-e lines] [-g lines] [-v] setlocator [on|off] showlocator showenvironment showfru showplatform [-v] showsc [-v] [param] shownetwork [-v] setsc [param] [value] setupsc showdate setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] resetsc [-y] flashupdate [-s IPaddr -f pathname] [-v] setdefaults [-y] [-a] useradd userdel [-y] usershow [username] userpassword userperm [c][u][a][r] password showusers [-g lines] logout help [command]
Connecting console
To login into the console from ALOM
SC> console
To take the console forcefully if already someone else has logged into console.
SC> console -f
To come out of the console use the escape character set. For example :
#.
To set the escape character to #.
sc> setsc sc_escapechars #.
To logout from the ALOM
SC> logout
Show commands to gather system info
To check the sensor values
SC> showenvironment
To check the hardware model and domain status
SC> showplatform
To print the FRU-ID data stored in the FRU PROM
SC> showfru
To display the details of the SC software configuration
SC> showsc
Network commands
There are 2 ways to set the ALOM IP address. Using the setupsc to set all the network configuration variables or using the setsc command to set the network configuration variables separately.
To setup the ALOM IP address manually using setsc
sc> setsc set if_network true sc> setsc netsc_dhcp false sc> setsc netsc_ipaddr 192.168.1.10 sc> setsc netsc_ipnetmask 255.255.255.0 sc> setsc netsc_ipgateway 192.168.1.1 sc> resetsc Are you sure you want to reset the SC [y/n]? y
To display current network configuration
SC> shownetwork -v
User administration
Below are the commands used for adminstrating user accounts on system controller (SC).
SC> usershow user_name -- shows configuration details of a user SC> useradd user_name -- add new user SC> userdel user_name -- delete the user SC> userpassword user_name -- set/reset user password SC> userperm user_name -- Sets the permissions SC> password -- change your own password SC> showusers -- Displays currently logged in users
Poweron/poweroff/break Commands
To poweron the system
SC> poweron
To poweroff the system
SC> poweroff
To reset the system
SC> reset
To send break signal to solaris OS
SC> break
To set the bootmode to [ normal|reset_nvram|diag|skip_diag ]
SC> bootmode boot_mode
Logs and history
SC> showlogs -v SC> consolehistory
Locator commands
To Display the locator indicator current state and to set it on/off
SC> showlocator SC> setlocator [on|off]
OS commands to view ALOM info (sun4u system only)
# cd /usr/platform/`uname -i`/sbin/scadm (path of scadm command) # scadm resetrsc [-s] [ -s for soft reset ] # scadm set [variable] [value] # scadm show [variable] # scadm useradd user_name # scadm userdel user_name # scadm usershow user_name # scadm userpassword user_name # scadm userperm user_name # scadm shownetwork # scadm consolehistory -a # scadm loghistory -a # scadm version -v
Most Commonly used LOM commands (Cheat Sheet)
Most Commonly used ILOM commands (Cheat Sheet)
Most commonly used XSCF commands (Cheat Sheet)
Most Commonly used RSC commands (Cheat sheet)