ALOM commands.doc
-
Upload
victoria-phelps -
Category
Documents
-
view
232 -
download
0
Transcript of ALOM commands.doc
-
8/10/2019 ALOM commands.doc
1/22
ALOM commands
The ALOM (advanced light-outs manager) command shell enables you to administer,
diagnose, or control the host server. Below are some o the most commonly used ALOM
commands.
To chec! all the available commands "
sc> help
Available commands
------------------
poweron [-c] {FRU}
poweroff [-y] [-f]
removefru [-y] {FRU}
reset [-y] [-] [-c]
brea! [-y] [-c]
bootmode [normal"reset#nvram"dia$"s!ip#dia$"bootscript%&strin$&]
console [-f]
consolehistory [-b lines"-e lines] [-$ lines] [-v] [boot"run]
showlo$s [-b lines"-e lines] [-$ lines] [-v]
setlocator [on"off]
showlocator
showenvironment
showfru
showplatform [-v]
showsc [-v] [param]
shownetwor! [-v]
setsc [param] [value]
setupsc
showdate
setdate [[mmdd]''(( " mmdd''(([cc]yy][)**]
resetsc [-y]
-
8/10/2019 ALOM commands.doc
2/22
flashupdate [-s +,addr -f pathname] [-v]
setdefaults [-y] [-a]
useradd
userdel [-y]
usershow [username]
userpassword
userperm [c][u][a][r]
password
showusers [-$ lines]
lo$out
help [command]
Connecting console
To login into the console rom ALOM
*> console
To ta!e the console orceully i already someone else has logged into console.
*> console -f
To come out o the console use the esca#e character set. $or e%am#le "
.)
To set the esca#e character to &.
sc> setsc sc#escapechars .)
To logout rom the ALOM
*> lo$out
Show commands to gather system info
To chec! the sensor values
-
8/10/2019 ALOM commands.doc
3/22
*> showenvironment
To chec! the hardware model and domain status
*> showplatform
To #rint the $'-* data stored in the $' +'OM
*> showfru
To dis#lay the details o the sotware coniguration
*> showsc
Network commands
There are ways to set the ALOM + address. sing the setupscto set all the networ!
coniguration variables or using the setsccommand to set the networ! coniguration
variables se#arately.
To setu# the ALOM + address manually using setsc
sc> setsc set if#networ! true
sc> setsc netsc#dhcp false
sc> setsc netsc#ipaddr /01)/23)/)/4
sc> setsc netsc#ipnetmas! 155)155)155)4
sc> setsc netsc#ip$ateway /01)/23)/)/
sc> resetsc
Are you sure you want to reset the * [y6n]7 y
To dis#lay current networ! coniguration
*> shownetwor! -v
User administration
-
8/10/2019 ALOM commands.doc
4/22
Below are the commands used or adminstrating user accounts on system controller
().
*> usershow user#name -- shows confi$uration details of a user
*> useradd user#name -- add new user
*> userdel user#name -- delete the user
*> userpassword user#name -- set6reset user password
*> userperm user#name -- *ets the permissions
*> password -- chan$e your own password
*> showusers -- 8isplays currently lo$$ed in users
Poweron/poweroff/reak Commands
To #oweron the system
*> poweron
To #owero the system
*> poweroff
To reset the system
*> reset
To send brea! signal to solaris O
*> brea!
To set the bootmode to / normal0reset1nvram0diag0s!i#1diag 2
*> bootmode boot#mode
Logs and history
*> showlo$s -v
*> consolehistory
-
8/10/2019 ALOM commands.doc
5/22
Locator commands
To *is#lay the locator indicator current state and to set it on3o
*> showlocator
*> setlocator [on"off]
OS commands to !iew ALOM info "sun#u system only$
. cd 6usr6platform69uname -i96sbin6scadm :path of scadm command;
. scadm resetrsc [-s] [ -s for soft reset ]
. scadm set
. scadm show [variable]
. scadm useradd user#name
. scadm userdel user#name
. scadm usershow user#name
. scadm userpassword user#name
. scadm userperm user#name
. scadm shownetwor!
. scadm consolehistory -a
. scadm lo$history -a
. scadm version -v
-
8/10/2019 ALOM commands.doc
6/22
LOM commands
LOM commands "%&'()/*'+))$
The hardware models 456738977 etc uses the Lights-out management to manage
the hardware. LOM is a set o sotware tools on the un $ire 456738977 servers.
LOM is used to #erorm user maintenance and administrative activities.
Network ,elated Commands
how the current networ! coniguration
lom> shownetwor! -v
To assign an + address to LOM
lom> setupnetwor!
-
8/10/2019 ALOM commands.doc
7/22
+, Address []= /10)))
setescape @)
To set3reset #assword o the current user
lom> password
nter new password= admin
nter new password a$ain= admin
LOM -ardware .nfo
To see all the hardware
-
8/10/2019 ALOM commands.doc
8/22
lom> showboards
To only see the +s
lom> showboards -p cpu
To only see the memory modules
lom> showboards -p memory
To only see the #ower su##ly units
lom> showboards -p power
To see the version o each individual com#onent
lom> showboards -p version
To see individual com#onent status o a system board
lom> showcomponent sb4
To chec! the various sensors
lom> showenvironment
To see the logs
lom> showlo$s
Poweron/poweroff
To #oweron the system and boot solaris O
lom> poweron
To #oweron only a s#eciic com#onent
-
8/10/2019 ALOM commands.doc
9/22
lom> poweron sb1
To shutdown olaris O and #owero the system to standby mode
lom> shutdown
To #owero the entire system
lom> poweroff
To #owero a s#eciic hardware com#onent
lom> poweroff sb1
S 0())/*0+))1 2())1 #())/*#+)) SC commands
The hardware models un $ire :677, ;67738;977, ;657, and
-
8/10/2019 ALOM commands.doc
10/22
To view system controller details
schostname=*> showsc -v
To view logs
schostname=*> showlo$s -v
To view current connections
schostname=*> connections
To reboot a system controller
schostname=*> reboot
-ardware ,elated commands
To see all the hardware details o a domain
schostname=*> showboards
To see only the +s in a s#eciic domain
schostname=*> showboards -p cpu
To see only the memory in a s#eciic domain
schostname=*> showboards -p memory
To see only the #ower su##ly unit in a s#eciic domain
schostname=*> showboards -p power
To see the version o each individual com#onent
schostname=*> showboards -p version
-
8/10/2019 ALOM commands.doc
11/22
To see individual com#onent status o a system board
schostname=*> showcomponent sb4
Start/stop and power cycle a 3omain
To start a domain (*omain A)
schostname=A> set!eyswitch on
To sto# a domain (*omain A)
schostname=A> set!eyswitch off
To see the logs o a s#eciic domain (*omain A)
schostname=A> showlo$s
To test a +3memory board B7 in domain A
schostname=A> testboard sb4
To reset a domain
schostname=A> reset
To send brea! to the O rom *omain
schostname=A> send brea!
To lash u#date the system
schostname=*> flashupdate -y -f ftp=66root=passwordB/01)/23)/)/46firmware scapp rtos
-
8/10/2019 ALOM commands.doc
12/22
.LOM commands
ntegrated Lights-out Manager (LOM) hel#s to manage and troubleshoot the com#lete
hardware o a server. =ith the hel# o LOM we can remotely manage a server. =e can
#ower on and #ower o it remotely. Let us see some o the most commonly used
commands in the LOM shell.
Login related commands
-> start 6*,6console -- start the *,-console
-> show 6*,6sessions -- see the currently active sessions
-> stop 6*,6console -- to stop any user session
Start and stop system
-> start 6*C* :start system;
-> stop [-force] 6*C* :stop system;
-> show 6*C* :shows the power status;
-> reset 6*C* :reset host;
-> reset 6*, :reset +DE( *,;
-> set 6'E* send#brea!#action%brea! :send brea! si$nal to the E*;
-> reset 6(( :to reset (( on a blade hassis;
Locator commands
To set the locator on or o
-> set 6*C* DEA%on
-> set 6*C* DEA%off
Networking Commands To see the current networ! coniguration o LOM
-> show 6*,6networ!
-
8/10/2019 ALOM commands.doc
13/22
To set an + address or LOM
-> set pendin$ipdiscovery%static
-> set pendin$ipaddress%/4)/4)/4)/4
-> set pendin$ipnetmas!%155)155)155)4
-> set pendin$ip$ateway%/4)/4)/4)/
-> set commitpendin$%true
To show + MA address
show 6*,6networ! macaddress
on a Blade chassis, to chec! the MM + "
-> show 6((6networ!
User administration
-> show 6*,6users :8isplay all the +DE( users;
-> show 6*,6user6admin :8isplay confi$uration settin$s of a specific user;
-> create 6*,6users6user#name password%,G8 role%[administrator"operator] :create
new user;
-> delete 6*,6users6username :8elete a user;
-> set 6*,6users6admin4/ role%administrator :set the role of a user;
-> set 6*,6users6admin4/ :set or chan$e password of user;
Monitoring and logs
-> show 6*,6lo$s6event6list :+DE( event lo$;
-> show -level all -output table 6*,6faultm$mt :Dist all hardware faults;
-> show -level all -output table 6*C* type%%emperature value :Dist all
temperature sensor readin$s;
hardware info
-> show -level all -output table 6*C* type%%8+(( :show 8+((*;
-> show -level all -output table 6*C* type%%H'ost ,rocessorH :show ,Us;
-
8/10/2019 ALOM commands.doc
14/22
-> show -l all 6*C* type%%H'ard 8is!H :show dis!s;
-
8/10/2019 ALOM commands.doc
15/22
4SC commands
The e>tended ystem ontrol $acility nit (>$) is a service #rocessor that
o#erates and administrates both midrange servers. The >$ diagnoses and startsthe entire server, conigures domains, oers dynamic reconiguration, as well as detects
and notiies various ailures. The >$ enables standard control and monitoring
unction through networ!. sing this unction enables starts, settings, and o#eration
managements o the server rom remote locations.
Connecting a domain
hec! or the available domains on the servers "
I*F> showdomainstatus -a
8+8 8omain *tatus
44 Runnin$
4/ Runnin$
41 Runnin$
4J -
?ow to connect to the domain with * 77 "
I*F> console -d 4
Power/reoot/reset/panic commands
+oweron all domains
I*F> poweron -a
+oweron only domain 7
I*F> poweron -d 4
+owero all domains
-
8/10/2019 ALOM commands.doc
16/22
I*F> poweroff -a
+owero domain 7
I*F> poweroff -d 4
'eboot >$
I*F> rebootscf
The : modes to reset a domain are "
por= o reset the domain
panic= o panic the domain
ir= o reset the ,U in domain
I*F> reset -d 4 por
I*F> reset -d 4 panic
I*F> reset -d 4 ir
end a brea! signal to a domain (with * 7)
I*F> sendbrea! -d 4
User Administration
reating a ?ew user
I*F> adduser -u JK5 admin
*elete a user
I*F> deleteuser admin
*isable a user
I*F> disableuser admin
-
8/10/2019 ALOM commands.doc
17/22
8nable a user
I*F> enableuser admin
*is#lay user account inormation
I*F> showuser -a
et or change a ser (admin) #assword
I*F> password admin
Network related commands
*is#lay com#lete networ! coniguration
I*F> shownetwor! -a
et + address or >$-LA?&7 in the >$&7
I*F> setnetwor! scf.4-lan.4 -m 155)155)155)4 /01)/23)/)/4
=e must a##ly the networ! settings and reboot the >$ in order to the networ!
settings to ta!e eect "
I*F> applynetwor!
I*F> rebootscf
etu# ?T+ servers with + 59.5
-
8/10/2019 ALOM commands.doc
18/22
-ardware ,elated Commands
how ield re#laceable units($')
I*F> showhardconf
*is#lay degraded units
I*F> showstatus
To dis#lay conigured devices on >Bs
I*F> showdevices
ault Management configuration tool
To view ault management logs
I*F> fmdump -v
+( UU+8 (*-+8
fmdump -e -N -u 5f33dLd5-a/4L-KKJ5-00c0-Lc50KL0d11ed +( DA**
Logs
show the logs
I*F> showlo$s -v
I*F> showlo$s error
I*F> showlo$s power
Snapshots
-
8/10/2019 ALOM commands.doc
19/22
=e can ta!e a sna#shot o M series servers >$ either on a remote server or on a
B device locally connected. To ta!e a sna#hot on a remote system 59.5 snapshot -D F -d usb4
Connect 3%3 3e!ice to a domain
'un the ollowing rom the >$ to connect the *AT @ *4* to the needed #ort based
on the domain(s) coniguration.
I*F> cf$device -? -y -c attach -p 4-4
onirm that the device is attached to domain and is enabled "
I*F> cf$device -l
$rom the O #rom#t conigure the newly added *4* device and restart the volmgmt
service"
. cf$adm -c confi$ure . c4
. 6etc6init)d6volm$t start
-ostname *is#lay current hostanems o >$ units
I*F> showhostname -a
scf.4= hostname4/)eample)com
scf./= hostname41)eample)com
To set hostname and *? domain name or >$ doamin res#ectively
I*F> sethostname scf.4 hostname4/
I*F> sethostname -d eample)com
-
8/10/2019 ALOM commands.doc
20/22
,SC commands
Connecting console and logging out
R*> console
R*> lo$out
se .C to come out o the O login, bac! to '. n case the esca#e character .
doesnDt wor! chec! or the esca#e character rom O "
. 6usr6platform69uname -i96sbin6rscadm show escape#char
escape#char%O.)O
the console is busy ire either o the command rom ' and O res#ectively "
R*> resetrsc
. 6usr6platform69uname -i96sbin6rscadm resetrsc
User Administration
R*> usershow user#name --- shows characteristics of user
R*> useradd user#name --- Add R* user
R*> userpassword user#name --- *et6chan$e user password
R*> userdel user#name --- 8elete a R* user
R*> userperm user#name --- *et authoriPation for a user
R*> password --- chan$es your password
Poweron/Poweroff/5reak/,eset Commands
R*> poweron --- ,ower on the server
R*> poweroff --- ,ower off the server
R*> brea! --- *ends brea! si$nal to E*
R*>resetrsc --- Resets R* immediately
-
8/10/2019 ALOM commands.doc
21/22
R*>reset --- resets server immediately
Network related Commands
To set ' + address rom O rscadm command
. )6rscadm set ip#mode confi$
. )6rscadm set ip#addr /01)/23)/)/4
. )6rscadm set ip#netmas! 155)155)155)4
. )6rscadm set ip#$ateway /01)/23)/)/
. )6rscadm resetrsc
=e can also use the rsc-conig scri#t ( & 3usr3#latorm3Euname -iE3rsc3rsc-conig ) to
conigure the + address. To set the ' + address rom ' cli "
R*> set ip#addr /01)/23)/)/4
R*> set ip#netmas! 155)155)155)4
R*> set ip#$ateway /01)/23)/)/
R*> resetrsc
*rrors/logs capturing commands
R*> help
R*> showenvironment
R*> consolehistory
R*> consolehistory boot -- most recent ,E* and boot messa$es
R*> consolehistory run ---> most recent data received fro server E*
R*> lo$history
R*> show
R*> showsc
Other Commands
R*> showlocator --- shows locator D8 status :NK34 only;
R*> setlocator --- urn the system locator D8 on or off :NK34 only;
R*> shownetwor! --- shows current R* networ! confi$uration
-
8/10/2019 ALOM commands.doc
22/22
R*> date --- 8isplay6set current date and time
R*> showdate --- shows current date and time
R*> version --- Reports the R* version
OS commands to manage ,SC
Solaris rscadm sucommands6 "path 7 8 /usr/platform/9uname :i9/sin/rscadm$
help --- 8isplays a list of rscadm commands
date --- 8isplays6sets the current time and date
set --- *ets a confi$uration variable
show --- 8isplays confi$uration variables
shownetwor! --- *hows current R* networ! confi$uration
lo$history --- shows lo$ history
resetrsc --- Resets R* immediately
useradd --- Adds an R* user account
userdel --- 8eletes an R* user account
usershow --- *hows characteristics of an R* user account
userpassword --- *ets6chan$es a userHs password
userperm --- *ets the authoriPation for a user
version --- Reports the R* version on the host
status --- *ame as the version -v command
O5P commands
o!> rsc-hard-reset --- perform a hard R* reset
o!> rsc-soft-reset --- perform a soft R* reset
o!> )rsc --- displays R* info