sccli> show battery
Check cache parameters.
sccli> show cache-parameters
Disable cache.
sccli> set cache-parameters write-through
sccli> show battery-status
sccli> show battery-status -u
To Confirm
sccli> show battery-status
sccli > show redundancy
sccli> set cache-parameters write-back
Tag: oracle
Compare ALOM and ILOM commands
ALOM CMT Command
|
Summary
|
Comparable ILOM Command
|
---|---|---|
password
|
Changes the login password of the current user.
|
set /SP/users/username password
|
restartssh
|
Restarts the SSH server so that new host keys generated by the ssh-keygen command are reloaded.
|
set /SP/services/ssh restart_sshd_action=true
|
setdate [[mmdd]HHMM |mmddHHMM[cc]yy][.SS]
|
Sets ALOM CMT date and time.
|
set /SP/clock datetime=value
|
setdefaults [–a]
|
Resets all ALOM CMT configuration parameters to their default values. The –a option resets the user information to the default (one admin account only).
|
set /SP reset_to_defaults=[none|factory|all]
|
setkeyswitch [normal|stby|diag| locked]
|
Sets the status of the virtual keyswitch. Setting the virtual keyswitch to standby (stby) powers off the server. Before powering off the host server, ALOM CMT asks for a confirmation.
|
set /SYS keyswitch_state=value
|
setsc [param] [value]
|
Sets the specified ALOM CMT parameter to the assigned value.
|
set target property=value
|
setupsc
|
Runs the interactive configuration script. This script configures the ALOM CMT configuration variables.
|
No equivalent in ILOM
|
showplatform [–v]
|
Displays information about the host system’s hardware configuration, and whether the hardware is providing service. The –v option displays verbose information about the displayed components.
|
show /HOST
|
showfru
|
Displays information about the field-replaceable units (FRUs) in a host server.
|
Use the ILOM show [FRU] command to display static FRU information. (For dynamic FRU information, use the ALOM CMT showfru command.)
|
showusers –g lines
|
Displays a list of users currently logged in to ALOM CMT. The display for this command has a similar format to that of the UNIX command who. The –g option pauses the display after the number of lines you specify for lines.
|
show –level all –o table /SP/sessionsNo equivalent in ILOM for –g option
|
showhost version
|
Displays version information for host-side components. The version option displays the same information as the showhost command with no option.
|
show /HOST
|
showkeyswitch
|
Displays status of virtual keyswitch.
|
show /SYS keyswitch_state
|
showsc [param]
|
Displays the current nonvolatile random access memory (NVRAM) configuration parameters.
|
show target property
|
showdate
|
Displays the ALOM CMT date. ALOM CMT time is expressed in Coordinated Universal Time (UTC) rather than local time. The Solaris OS and ALOM CMT time are not synchronized.
|
show /SP/clock datetime
|
ssh-keygen –l ssh-keygen –r
ssh-keygen –t {rsa|dsa} |
Generates Secure Shell (SSH) host keys and displays the host key fingerprint on the SC.
|
show /SP/services/ssh/keys rsa|dsaset /SP/services/ssh generate_new_key_action=true
set /SP/services/ssh generate_new_key_type=[rsa|dsa] |
usershow [username]
|
Displays a list of all user accounts and permission levels, and whether passwords are assigned.
|
show /SP/users
|
useradd username
|
Adds a user account to ALOM CMT.
|
create /SP/users/username
|
userdel [–y] username
|
Deletes a user account from ALOM CMT. The –y option enables you to skip the confirmation question.
|
delete [–script] /SP/users/username
|
userpassword [username]
|
Sets or changes a user password.
|
set /SP/users/username password
|
userperm [username] [c] [u] [a] [r] [o] [s]
|
Sets the permission level for a user account.
|
set /SP/users/username role=permissions [a|u|c|r|o|s]
|
|
|
|
|
Table 29 ALOM CMT Shell Miscellaneous Commands
|
XSCF Cheat Sheet
adduser – Creates an XSCF user account.
deleteuser – Deletes an XSCF user account.
disableuser – Disables an XSCF user account
enableuser – Enables an XSCF user account.
showuser – Displays XSCF user account information
password – Changes an XSCF user account password.
setpasswordpolicy – Configures the XSCF password policy.
showpasswordpolicy – Displays the XSCF password policy.
setprivileges – Assigns user privileges.
setloginlockout – Configures the lockout of user accounts.
showloginlockout – Displays the lockout setting of user accounts.
setnetwork – Configures the XSCF network.
shownetwork – Displays the XSCF network settings and XSCF-LAN network status.
setroute – Configures the XSCF-LAN route.
showroute – Displays XSCF-LAN route settings.
sethostname – Specifies the XSCF-LAN host name and domain name.
showhostname – Displays the XSCF-LAN host name and domain name.
setnameserver – Sets a name server (DNS) with XSCF.
shownameserver – Displays the XSCF name server(s).
applynetwork – Applies the network settings.
setdscp – Configures DSCP.
showdscp – Displays the DSCP settings.
nslookup – Checks for the name resolution of a host name.
ping – Checks the response for a host.
traceroute – Displays the network path to the host by list.
settimezone – Specifies the time zone.
showtimezone – Displays the time zone setting.
setdate – Sets the XSCF time.
showdate – Displays the XSCF time.
setntp – Configures the NTP server.
showntp – Displays the SSH settings and fingerprint.
resetdateoffset – Resets the time subtraction between the XSCF and the domain.
showdateoffset – Displays the time subtraction between the XSCF and the domain.
setssh – Configures SSH, Generates RSA and DSA keys for SSH2 host authentication.
showssh – Displays the SSH settings.
settelnet – Configures telnet.
showtelnet – Displays the telnet settings.
setautologout – Sets the session timeout time of the XSCF Shell.
showautologout – Displays the session timeout time of the XSCF Shell.
setsmtp – Configures the SMTP server.
showsmtp – Displays the the SMTP server settings.
setemailreport – Configures mail notification.
showemailreport – Displays the mail notification settings.
setlookup – Enables or disables the use of an LDAP server.
showlookup – Displays information about whether an LDAP server is used.
setldap – Configures LDAP client settings.
showldap – Displays LDAP client settings.
sethttps – Configures the https settings.
showhttps – Displays the https settings.
setupplatform – Configures the log archiving function of XSCF.
showarchiving – Displays the settings of the log archiving function of XSCF.
setaudit – Configures the auditing of XSCF.
showaudit – Displays the settings of the audit of XSCF.
viewaudit – Displays the audit records (Audit trail) of XSCF.
setsnmp – Configures the SNMP Agent.
showsnmp – Displays the SNMP Agent settings.
setsnmpusm – Configures the USM management information for the SNMP agent.
showsnmpusm – Displays the USM management information for the SNMP agent.
setsnmpvacm – Configures the VACM management information for the SNMP agent.
showsnmpvacm – Displays the VACM management information for the SNMP agent.
setsunmc – Start or stop the Sun Management Center agent and make changes to its configuration.
showsunmc – Show setup information and status of Sun Management Center agent.
setdcl – Specifies the domain configuration information (DCL).
showdcl – Displays the domain configuration information.
showboards – Displays the component information and the COD information about a system board.
showdevices – Displays the domain information specified for a system board.
showdomainstatus – Displays the domain status.
setupfru – Specifies the number of XSB partitions of the system board and sets the memory mirror mode.
showfru – Displays the specified number of XSB partitions of the system board and the memory mirror mode that is set.
- Example:
- Displays the settings of all PSBs.
- XSCF> showfru -a sb
- Device Location XSB Mode Memory Mirror Mode
-
- sb 00 Quad no
testsb – Diagnoses the system board.
addboard – Adds a system board to a domain.
deleteboard – Deletes a system board from a domain.
moveboard – Moves a system board to another domain.
replacefru – Replaces a CPU/Memory Board unit, I/O unit, fan unit, PSU, or XSCFi.
addfru – Installs a CPU/Memory Board unit, I/O unit, fan unit, or PSU.
deletefru – Removes a CPU/Memory Board unit or I/O unit.
setdomainmode – Sets a hardware initial diagnostic level (No, standard, maximum).
Enables or disables break signal sending, host watchdog, automatic boot, and sets CPU operation mode.
showdomainmode – Displays the domain host ID, the hardware initial diagnostic level, information of enabled or disabled status on break signal sending, Host watchdog, automatic boot, and displays CPU operation mode, ethernet address, mac address.
sendbreak – Sends a break signal to the server.
showresult – Displays the exit status of the most recently executed command.
setlocale – Sets locale.
showlocale – Displays locale.
setaltitude – Sets altitude.
showaltitude – Displays altitude.
cfgdevice – Sets/Displays the connection destination/status of the DVD drive, tape drive.
addcodlicense – Applies the obtained COD license key to the system.
deletecodlicense – Deletes the license key applied to the system.
showcodlicense – Displays the license keys applied to the system.
showcodusage – Displays license usage information.
setcod – Configures COD settings.
showcod – Displays COD settings.
console – Connects to a domain console.
showconsolepath – Displays the operating status of the main console.
showenvironment – Displays the temperature, humidity, voltage, fan rotation speed, power consumption, and exhaust airflow.
showstatus – Lists degraded components.
showhardconf – Displays all components mounted in the server.
poweron – Turns on power to all domains or the specified domain.
poweroff – Turns off power to all domains or the specified domain.
reset – Resets the specified domain.
The following three reset modes are available:
- por: Domain system reset
- request: Domain panic instruction
-
- xir: Domain CPU reset
setpowerupdelay – Sets the warm-up time and the air-conditioning wait time.
showpowerupdelay – Displays the warm-up time and the air-conditioning wait time settings.
setshutdowndelay – Sets the UPS shutdown delay time at power failure.
showshutdowndelay – Displays the UPS shutdown delay time at power failure.
setdualpowerfeed – Sets the dual power feed.
showdualpowerfeed – Displays the dual power feed.
setlocator – Enables or disables the CHECK LED blinking.
showlocator – Displays the LED status.
switchscf – Switches the XSCF Unit state (Active/Standby).
ioxadm – Configures/Displays the External I/O Expansion Unit settings(IOBOX).
clockboard – Sets/Displays the number of clock unit (CLKU) used when the next platform is powered on.
setdomparam – Rewrites the OpenBoot PROM environment variable that is compulsory.
getflashimage – Gets the firmware update program.
flashupdate – Updates the firmware program.
version – Displays XCP, XSCF, and OpenBoot versions.
prtfru – Displays the FRU-ROM data.
dumpconfig – Saves XSCF configuration information to the specified destination.
restoreconfig – Restores XSCF configuration information from the specified destination.
restoredefaults – Initialises the server or XSCF to the factory defaults.
snapshot – Saves log information to the specified destination.
showmonitorlog – Displays the XSCF monitoring messages on console in real time.
showlogs – Displays the error log, power log, event log, console log, panic log, IPL log, temperature/humidity log, and monitor message log.
fmadm – Monitors/controls the Fault Management Diagnosis Engines (FMDE).
fmdump – Dumps the fault event log containing FM diagnosis results.
fmstat – Displays the FMDE status.
unlockmaintenance – Forcibly release the locked status of the XSCF.
rebootxscf – Reboots/Resets the XSCF.
who – Displays users who login to the XSCF.
man – Displays the man page of the specified command.
You can see this list of commands by executing man intro.
exit – Ends the XSCF Shell.
Default passwords
IBM
3576-L5B Operator Panel Username admin Password secure
DELL
MD3200i Username Administrator Password supportDell
Huawei
OceanStor Default username and password: admin / Admin@storage
Sun StorEdge T3 / T3+
Data collection Sun StorEdge T3 / T3+
sys list
sys stat
vol list
vol stat
fru list
fru stat
StorEdge A1000 CLI commands
A1000: Basic checks/commands
/usr/lib/osa/bin/lad # Lists all RAID devices connected to the system
c2t0d0 1T04359725 LUNS: 0 1 /usr/lib/osa/bin/healthck <c2t0d0> # General check of selected device mya1000_001: Failed Battery # <– Failing battery healthck succeeded! /usr/lib/osa/bin/raidutil -c <c2t0d0> # Generic information about the device raidutil succeeded! /usr/lib/osa/bin/raidutil -c <c2t0d0> -i # Detailed information Vendor ID Symbios /usr/lib/osa/bin/raidutil -c <c2t0d0> -B # Information about battery life raidutil succeeded! # Battery age: /usr/lib/osa/bin/raidutil -c <c2t0d0> -R # Reset battery life counter /usr/lib/osa/bin/drivutil -I <c2t0d0> # Information about LUNs Group Information for mya1000_001 Group No. of RAID No. of Total Remaining 1 1 0 6 103407 0 drivutil succeeded! /usr/lib/osa/bin/drivutil -i <c2t0d0> # Information about each of the drives Drive Information for mya1000_001 Location Capacity Status Vendor Product Firmware Serial drivutil succeeded! /usr/lib/osa/bin/rm6 # RAID MANAGER Graphic interface |
SE3xx0 Controller Redundancy
sscli> show redundancy
sccli: selected se3000://10.7.1.1:58632 [SUN StorEdge 3310 SN#001234]
Primary controller serial number: 8012345
Redundancy mode: Active-Active
Redundancy status: Failed
Secondary controller serial number: 8004321
DUAL controller: Redundancy mode is Active-Active and the status is Enabled
SINGLE controller: Redundancy mode is Active-Active and the status is Scanning
LSI SAS2 configuration tool
bash]# sas2ircu 0 status
LSI Corporation SAS2 IR Configuration Utility.
Version 11.00.00.03 (2011.10.14)
Copyright (c) 2009-2011 LSI Corporation. All rights reserved.
[Wed May 23 14:39:45.546 2018] Background command progress status for controller 0…
[Wed May 23 14:39:45.551 2018] IR Volume 1
[Wed May 23 14:39:45.551 2018] Volume ID : 885
[Wed May 23 14:39:45.551 2018] Current operation : None
[Wed May 23 14:39:45.551 2018] Volume status : Enabled
[Wed May 23 14:39:45.551 2018] Volume state : Optimal
[Wed May 23 14:39:45.561 2018] Volume wwid : 0c21290b235ed52b
[Wed May 23 14:39:45.561 2018] Physical disk I/Os : Not quiesced
[Wed May 23 14:39:45.561 2018] IR Volume 2
[Wed May 23 14:39:45.561 2018] Volume ID : 886
[Wed May 23 14:39:45.561 2018] Current operation : None
[Wed May 23 14:39:45.561 2018] Volume status : Enabled
[Wed May 23 14:39:45.561 2018] Volume state : Optimal
[Wed May 23 14:39:45.561 2018] Volume wwid : 007128f03f8ed54c
[Wed May 23 14:39:45.561 2018] Physical disk I/Os : Not quiesced
[Wed May 23 14:39:45.561 2018] SAS2IRCU: Command STATUS Completed Successfully.
[Wed May 23 14:39:45.561 2018] SAS2IRCU: Utility Completed Successfully.
# sas2ircu 0 DISPLAY
LSI Corporation SAS2 IR Configuration Utility.
Version 11.00.00.03 (2011.10.14)
Copyright (c) 2009-2011 LSI Corporation. All rights reserved.
Read configuration has been initiated for controller 0
————————————————————————
Controller information
————————————————————————
Controller type : SAS2008
BIOS version : 7.21.04.00
Firmware version : 11.05.02.00
Channel description : 1 Serial Attached SCSI
Initiator ID : 0
Maximum physical devices : 831
Concurrent commands supported : 1024
Slot : Unknown
Segment : 0
Bus : 3
Device : 0
Function : 0
RAID Support : Yes
————————————————————————
IR Volume information
————————————————————————
IR volume 1
Volume ID : 885
Volume Name : vol1
Status of volume : Okay (OKY)
Volume wwid : 0c21290b235ed52b
RAID level : RAID1
Size (in MB) : 285148
Physical hard disks :
PHY[0] Enclosure#/Slot# : 1:3
PHY[1] Enclosure#/Slot# : 1:2
IR volume 2
Volume ID : 886
Volume Name : vol0
Status of volume : Okay (OKY)
Volume wwid : 007128f03f8ed54c
RAID level : RAID1
Size (in MB) : 285148
Physical hard disks :
PHY[0] Enclosure#/Slot# : 1:1
PHY[1] Enclosure#/Slot# : 1:0
————————————————————————
Physical device information
————————————————————————
Initiator at ID #0
Device is a Hard disk
Enclosure # : 1
Slot # : 0
SAS Address : 5000c50-0-3a02-de55
State : Optimal (OPT)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 00111673M7YD
GUID : 5000c5003a02de57
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 1
Slot # : 1
SAS Address : 5000cca-0-0a04-66cd
State : Optimal (OPT)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : HITACHI
Model Number : H103030SCSUN300G
Firmware Revision : A2A8
Serial No : 000920G2E19E
GUID : 5000cca00a0466cc
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 1
Slot # : 2
SAS Address : 5000cca-0-0a21-3f55
State : Optimal (OPT)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : HITACHI
Model Number : H103030SCSUN300G
Firmware Revision : A2A8
Serial No : 000940GL8UTE
GUID : 5000cca00a213f54
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 1
Slot # : 3
SAS Address : 5000c50-0-39fd-c489
State : Optimal (OPT)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 00111673QE51
GUID : 5000c50039fdc48b
Protocol : SAS
Drive Type : SAS_HDD
Device is a Sequential access device
Enclosure # : 2
Slot # : 0
SAS Address : 5080020-0-00ea-75bd
State : Standby (SBY)
Manufacturer : SUN
Model Number : NEM Hydra II
Firmware Revision : 0308
Serial No : x365380
GUID : N/A
Protocol : SAS
Drive Type : SAS_HDD
Device is a Sequential access device
Enclosure # : 3
Slot # : 32
SAS Address : 5080020-0-0095-b5fd
State : Standby (SBY)
Manufacturer : SUN
Model Number : Blade Storage II
Firmware Revision : 0308
Serial No : x365380
GUID : N/A
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 0
SAS Address : 5000cca-0-0a77-14d1
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : HITACHI
Model Number : H103030SCSUN300G
Firmware Revision : A2A8
Serial No : 1013G3H6DE
GUID : 5000cca00a7714d0
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 1
SAS Address : 5000c50-0-31b6-6541
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 1049721A3L
GUID : 5000c50031b66543
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 2
SAS Address : 5000cca-0-0ac7-e811
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : HITACHI
Model Number : H103030SCSUN300G
Firmware Revision : A2A8
Serial No : 1035GJY5UE
GUID : 5000cca00ac7e810
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 3
SAS Address : 5000c50-0-31bd-d229
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 10497221X6
GUID : 5000c50031bdd22b
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 4
SAS Address : 5000c50-0-31bb-9cf5
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 104971ZJTE
GUID : 5000c50031bb9cf7
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 5
SAS Address : 5000c50-0-31bd-d175
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 10497221WM
GUID : 5000c50031bdd177
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 6
SAS Address : 5000c50-0-31b6-6699
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 1049720V47
GUID : 5000c50031b6669b
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 4
Slot # : 7
SAS Address : 5000c50-0-31bd-faad
State : Ready (RDY)
Size (in MB)/(in sectors) : 286102/585937499
Manufacturer : SEAGATE
Model Number : ST930003SSUN300G
Firmware Revision : 0B70
Serial No : 104972227Q
GUID : 5000c50031bdfaaf
Protocol : SAS
Drive Type : SAS_HDD
Device is a Sequential access device
Enclosure # : 4
Slot # : 32
SAS Address : 5080020-0-009b-fdfd
State : Standby (SBY)
Manufacturer : SUN
Model Number : Blade Storage II
Firmware Revision : 0308
Serial No : x365380
GUID : N/A
Protocol : SAS
Drive Type : SAS_HDD
————————————————————————
Enclosure information
————————————————————————
Enclosure# : 1
Logical ID : 500605b0:06d56fc0
Numslots : 8
StartSlot : 0
Enclosure# : 2
Logical ID : 50800200:00ea7580
Numslots : 1
StartSlot : 0
Enclosure# : 3
Logical ID : 50800200:0095b580
Numslots : 33
StartSlot : 0
Enclosure# : 4
Logical ID : 50800200:009bfd80
Numslots : 33
StartSlot : 0
————————————————————————
SAS2IRCU: Command DISPLAY Completed Successfully.
SAS2IRCU: Utility Completed Successfully.
Usefull IPMI Commands
IPMI :
ipmitool -I lan -H <SP IP> -U root fru print
ipmitool -I lan -H <SP IP> -U root sensor list
ipmitool -I lan -H <SP IP> -U root sunoem led get
ipmitool -I lan -H <SP IP> -U root sunoem sbled get all
ipmitool -I lan -H <SP IP> -U root sdr list all info
ipmitool -I lan -H <SP IP> -U root chassis status
ipmitool -I lan -H <SP IP> -U root chassis restart_cause
Troubleshooting commands M-Series
M-Series
– showstatus
– showlogs error
– showlogs event
– showhardconf
– showhardconf -u
– fmdump
– fmdump –m
– showboards -a (or showdcl -a)
– version -c xscf -v