Итак, если нужно настроить ALOM с нуля:
С помощью tip (или можно HyperTerminal, если вы сидите в Windows) cоединяемся с портом, установки стандартные (9600 8N1):
# tip /dev/term/a -9600
connected
Набираем #. чтобы получить консоль.
Даем пароль пользователю admin :
sc> password
password: Changing password for admin
Enter new password: ********
Re-enter new password: ********
sc>
Настраиваем доступ по сети:
sc> setupsc
Entering Interactive setup mode. To exit and discard changes to that
point, use Ctrl-C or to exit and save changes to that point, use Ctrl-Z.
Do you wish to configure the enabled interfaces [y]? y
Should the SC network interface be enabled [y]? y
Should the SC email alerts be enabled [y]? n
Do you wish to configure the network interface [y]? y
Should the SC use DHCP to obtain its network configuration [n]? n
Enter the SC IP address [100.100.100.100]?
Enter the SC IP netmask [255.255.255.0]?
Enter the SC IP gateway address [100.100.100.100]?
Should the TPE link test be enabled [y]? y
Do you wish to configure the managed system interface [y]? y
What level of SC events should be reported to the managed system where
valid settings are 0 (none), 1 (critical), 2 (critical and major) and 3
(critical, major and minor) [2]? 2
What action should the SC invoke if the OS is hung. The available
options are 'none', 'xir' or 'reset' where an xir will attempt to
collect diagnosis data before invoking a reset [xir]? xir
How many seconds should be allowed for an XIR to complete (maximum
timeout of 10800s) [900]? 900
Do you wish to configure the network management interfaces [y]? y
Enter the number of mail servers to configure [0]? 1
Enter the IP address for mail server 1 [100.100.100.100]?
Enter the number of email recipients to configure [0]? 1
Enter the email address for recipient 1 (maximum of 30 characters) []?
Enter the level of events to send to recipient 1 where valid settings
are 1 (critical), 2 (critical and major) and 3 (critical, major and
minor) [2]? 2
Do you wish to configure the SC parameters [y]? y
Enter any customer data for this platform (maximum of 40 characters) []?
Enter the console session escape sequence (2 characters). The first
character can be any printable characters or control-A through
control-Y except for control-C, control-D, control-H, control-J, or control-M.
The second character must be a ".". [#.]? #.
Enter level of events to be displayed over the CLI where valid settings
are 0 (none), 1 (critical), 2 (critical and major) and 3 (critical,
major and minor) [2]? 2
Should poweron sequencing be enabled [y]? y
Enter the SC cli prompt (maximum of 16 characters) [sc]?
Enter the SC CLI timeout in seconds (maximum of 10000s) [0]? 0
Should password entry echo '*'s [y]? y
Your ALOM configuration profile has been successfully completed. To
activate your network configuration, please reset the SC.
sc>
Проверяем настройки:
sc> showsc
Advanced Lights Out Manager v1.5.1
parameter value
--------- -----
if_network true
if_modem false
if_emailalerts false
sys_autorestart xir
sys_bootrestart none
sys_bootfailrecovery none
sys_maxbootfail 3
sys_xirtimeout 900
sys_boottimeout 120
sys_wdttimeout 60
netsc_tpelinktest true
netsc_dhcp false
netsc_ipaddr
netsc_ipnetmask
netsc_ipgateway
mgt_mailhost
mgt_mailalert
sc_customerinfo
sc_escapechars #.
sc_powerondelay true
sc_powerstatememory false
sc_clipasswdecho true
sc_cliprompt
sc_clitimeout 0
sc_clieventlevel 2
sc_backupuserdata true
sys_eventlevel 2
ser_baudrate 9600
ser_parity none
ser_stopbits 1
ser_data 8
netsc_enetaddr 00:12:34:56:78:9a
sys_hostname myhostname
sys_enetaddr 00:12:34:56:78:9b
sc>
Для того, чтобы поменять какой-либо параметр, надо набрать: setsc [param] [value].
Сохраняем конфигурацию:
sc> resetsc -y
User Requested SC Shutdown
[...]
Please login:
Проверяем сетевое соединение с ALOM:
Disconnect the serial connection to the Serial Mgt port.
Connect the NET MGT port with the local area network via a switch. Note: The network management port is a 10-Mbit port!
Log in to ALOM from either the host that you just configured or from another machine on the LAN, as shown here.
# telnet
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Sun(tm) Advanced Lights Out Manager 1.5.1 (myhostname)
Please login: admin
Please Enter password: ********
sc>
Команды ALOM:
sc> help
Available commands
------------------
poweron {FRU}
poweroff [-y] [-f]
removefru [-y] {FRU}
reset [-y] [-x]
break [-y]
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]
sc>
Пример вывода команды showenvironment:
sc> showenvironment
=============== Environmental Status ===============
-----------------------------------------------------------------------------
System Temperatures (Temperatures in Celsius):
-----------------------------------------------------------------------------
Sensor Status Temp LowHard LowSoft LowWarn HighWarn HighSoft HighHard
-----------------------------------------------------------------------------
MB.P0.T_CORE OK 49 -- -- -- 88 93 100
MB.T_ENC OK 21 -6 -3 5 40 48 51
--------------------------------------
Front Status Panel:
--------------------------------------
Keyswitch position: NORMAL
--------------------------------------------------------
System Indicator Status:
--------------------------------------------------------
MB.LOCATE MB.SERVICE MB.ACT
--------------------------------------------------------
OFF OFF OFF
--------------------------------------------
System Disks:
--------------------------------------------
Disk Status Service OK2RM
--------------------------------------------
HDD0 OK OFF OFF
HDD1 NOT PRESENT OFF OFF
----------------------------------------------------------
Fans (Speeds Revolution Per Minute):
----------------------------------------------------------
Sensor Status Speed Warn Low
----------------------------------------------------------
F0.RS OK 11440 -- 1000
F1.RS OK 10546 -- 1000
F2.RS OK 11250 -- 1000
F3.RS OK 11250 -- 1000
MB.P0.F0.RS OK 15697 2000 2000
MB.P0.F1.RS OK 16875 2000 2000
-----------------------------------------------------------------------------
Voltage sensors (in Volts):
-----------------------------------------------------------------------------
Sensor Status Voltage LowSoft LowWarn HighWarn HighSoft
-----------------------------------------------------------------------------
MB.P0.V_CORE OK 1.46 -- 1.26 1.54 --
MB.P1.V_CORE OK 1.41 -- 1.26 1.54 --
MB.V_VTT OK 1.24 -- 1.17 1.43 --
MB.V_GBE_+2V5 OK 2.51 -- 2.25 2.75 --
MB.V_GBE_CORE OK 1.20 -- 1.08 1.32 --
MB.V_VCCTM OK 2.54 -- 2.25 2.75 --
MB.V_+2V5 OK 2.50 -- 2.34 2.86 --
MB.V_+1V5 OK 1.49 -- 1.35 1.65 --
MB.BAT.V_BAT OK 2.95 -- 2.70 -- --
--------------------------------------------
Power Supply Indicators:
--------------------------------------------
Supply Active Service OK-to-Remove
--------------------------------------------
PS0 ON OFF OFF
-----------------------------------------------------------------------------
Power Supplies:
-----------------------------------------------------------------------------
Supply Status Underspeed Overtemp Overvolt Undervolt Overcurrent
-----------------------------------------------------------------------------
PS0 OK OFF OFF OFF OFF OFF
----------------------
Current sensors:
----------------------
Sensor Status
----------------------
MB.FF_SCSI OK
sc>
Для получения краткой информации о той или иной команде, используем команду help [command].
В самом Solaris можно из-под root использовать команду scadm для управления ALOM:
# /usr/platform/`uname -i`/sbin/scadm help
USAGE: scadm [options]
For a list of commands, type "scadm help"
scadm - COMMANDS SUPPORTED
help, date, set, show, resetrsc, download, send_event, modem_setup,
useradd, userdel, usershow, userpassword, userperm, shownetwork,
loghistory, version
scadm - COMMAND DETAILS
scadm help => this message
scadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] => print or set date
scadm set => set variable to value
scadm show [variable] => show variable(s)
scadm resetrsc [-s] => reset SC (-s soft reset)
scadm download [boot] => program firmware or [boot] monitor
scadm send_event [-c] "message" => send message as event (-c CRITICAL)
scadm modem_setup => connect to modem port
scadm useradd => add SC user account
scadm userdel => delete SC user account
scadm usershow [username] => show user details
scadm userpassword => set user password
scadm userperm [cuar] => set user permissions
scadm shownetwork => show network configuration
scadm loghistory => show SC event log
scadm version [-v] => show SC version (-v verbose)
#
(По материалам BigAdmin)