Popular Posts

Apr 26, 2017

Oracle Sparc iLOM commands


What is iLOM :
     -  Sun’s Integrated Lights Out Manager (ILOM) provides advanced service processor hardware and software that you can use to manage and monitor your Sun servers. ILOM’s dedicated hardware and software is preinstalled on a variety of Sun x64-based Sun Fire servers, Sun Blade Modular Systems, and Sun Blade server modules, as well as on SPARC-based servers. ILOM is a vital management tool in the data center and can be used to integrate with other data center management tools already installed on your systems.

What Does ILOM Do :
     -  Learn about hardware errors and faults as they occur
     -  Remotely control the power state of your server
     -  View the graphical and non-graphical consoles for the host
     -  View the current status of sensors and indicators on the system
     -  Determine the hardware configuration of your system

ILOM Connection Methods :
     -  Ethernet network management connection
     -  Serial connection, through server or blade
     -  Serial connection, through CMM

Roles for ILOM User Accounts :
     -  Administrator - Enables access to all ILOM features, functions, and commands.
     -  Operator - Enables access to fully manage and monitor the host system, and also provides read-only access to ILOM configuration.

Preconfigured ILOM Administrator Account :
     -  Preconfigured Administrator account:
     -  User name: root
     -  Password: changeme

1.     From Oracle ILOM, set the OpenBoot auto-boot? parameter to false.
                  -> set /HOST/bootmode script="setenv auto-boot? false"

2.     Reset the host.
                  -> reset /System

3.     Switch communication to the server host.
                  -> start /HOST/console

4.     In Oracle ILOM 3.1, the name space for /SYS was replaced with /System. You can use the legacy name in a command at any time, but to expose the legacy name in the output, you must enable it
                  -> set /SP/cli legacy_targets=enabled

5.     To view a list of components that have been faulted:
                  From a server SP, type: -> show /SP/faultmgmt
                  From a CMM, type: -> show /CMM/faultmgmt

6.     To display fault messages in the Oracle ILOM event log:
                  From a server SP, type: -> show /SP/logs/event/list
                  From a CMM, type: -> show /CMM/logs/event/list

7.     The fmadm faulty command displays the list of faults detected by PSH.
        Check for PSH-diagnosed faults.
                  start /SP/faultmgmt/shell
                  fmadm faulty

Configure T7-2 Console
8.     Set the SP to accept a static IP address.
                  ->set /SP/network pendingipdiscovery=static

9.     Set the IP address for the SP.
                  ->set /SP/network pendingipaddress=service-processor-IPaddr
                  set /SP/network pendingipaddress=10.192.168.10

10.    Set the IP address for the SP gateway.
                  -> set /SP/network pendingipgateway=gateway-IPaddr
                  set /SP/network pendingipgateway=10.192.168.1

11.    Set the netmask for the SP.
                  -> set /SP/network pendingipnetmask=255.255.255.0
                  set /SP/network pendingipnetmask=255.255.254.0

12.    Verify that the parameters were set correctly.
                  -> show /SP/network -display properties

13.    Set the changes to the SP network parameters.
                  -> set /SP/network commitpending=true

Add New Local User Accounts – CLI Procedure
14.    At the Oracle ILOM CLI prompt, type either:
                  -> create /SP/users/username password=password
                  create /SP/users/admin password=ABCD123$

15.    To assign a role to the user account, type either:
                  -> set /SP/users/admin role=aucro

Set identification labels for a server SP or CMM,
16.    To set hostname
                  -> set /SP|CMM hostname=text_string
                  set /SP  hostname=judi-dev-001.corporation.com

17.    To set system identifier (describtion)
                  -> set /SP|CMM system_identifier=text_string
                  set /SP system_identifier=Oracle-DBLDOMsHosting

18.    To set system contact (Phone or e-Mail ID)
                  -> set /SP|CMM system_contact=text_string
                  set /SP system_contact=unixteam@corporation.com

19.    To set system Location (Site/Room/RACk/U)
                  -> set /SP|CMM system_location=text_string
                 set /SP system_location=USTO-CR1-AN22-U10-12

 20.   To set check_physical_presence
                  -> set /SP|CMM check_physical_presence=true|false
                  set /SP check_physical_presence=true

 21.   Set SPARC Power Management Policy
              The disabled power policy enables the SPARC server to consume all available power permitted and to operate at full speed.
              The performance power policy enables unused and idle components in the system to operate at a slower speed or to go into a sleep state, Resulting in power savings with little impact to performance.
              The elastic power policy enables the SPARC server to adapt to the current power requirements of the components.
              To view the set power policy property from the SPARC server SP CLI, type:
                  -> show /SP/powermgmt policy
              To modify the property value set for power policy on the SPARC server, type:
                  -> set /SP/powermgmt policy=performance|elastic
              where the values for performance|elastic appear, type either performance, elastic or disabled.
              When prompted, type: y to confirm the action or n to cancel the action.

Update SPARC T7-2 System Firmware from iLOM
21.   Check the current system firmware version.
                  -> show /HOST sysfw_version

22.   Download the firmware image from Oracle Support

23.   place the SysFW image in a shared location the host can access, a local or network share or on a TFTP, FTP, HTTP or HTTPS server.

24.   Load the firmware image from the shared location. Type:
                  -> load -source protocol://username:password@server_ip/path_to_image/image.pkg

         A series of prompts appear.
         Type y to load the image file, then type y to enable the Preserve Configuration option,
         which saves and restores the existing Oracle ILOM firmware settings after the firmware update is complete.
         Oracle ILOM displays a status message when the firmware process is complete. The system will reboot to apply the new firmware image.


iLOM Administrative commands
1.    Shut down the system from ILOM and take directly to OpenBoot firmware control (OK Prompt)
       Make Sure the OS is already down
                  -> set /HOST send_break_action=break
                  -> start /SP/console  ( the server will be in OK Prompt)

2.    Shut down the system from ILOM and disable autoboot.
                  -> set /HOST/bootmode script=”setenv auto-boot? false”
                  -> reset /SYS
                  -> start /SP/console

3.    Display iLOM Properties
                  -> show /SP
                  -> show /System

Simple instructions to collect ILOM snapshot
1.    Collect ILOM Snapshot via CLI - ILOM 3.2.x, 3.1.x, 3.0.x
       Set data set "normal or fruid", DO NOT select "Collect Only Log Files From Data Set" or only logfiles will be captured
                  -> set /SP/diag/snapshot dataset=[normal|fruid]
                  -> set /SP/diag/snapshot dataset=normal

2.    Set transfer method "tftp, ftp, ftps, sftp, http, https", available protocols depends on the installed system firmware, run ilom snapshot and save it.
                  -> set /SP/diag/snapshot dump_uri=tftp|ftp|sftp|scp|http|https]://[username:password@server_ip_or_server_hostname]/[file-path]
                  -> set /SP/diag/snapshot dump_uri=sftp://judi:password@192.168.10.10/var/judi/

3.    To confirm snapshot running/completed:
                  -> show /SP/diag/snapshot


List PCI decvices, CPU, Memory, Disks from iLOM
   1.  List PCI Cards from iLOM
             -> show -l all -t /system/PCI_Devices/ description
             -> show -l all -t /system/PCI_Devices/ part_number
             -> show -l all -t /system/PCI_Devices/ location
             -> show -l all -t /system/PCI_Devices/ pci_vendor_id
             -> show -l all -t /system/PCI_Devices/ pci_device_id
             -> show -l all -t /system/PCI_Devices/ pci_subvendor_id
             -> show -l all -t /system/PCI_Devices/ pci_subdevice_id

   2.  List all the PCI cards detailed information - combine of all above command
             -> show -l all -t /system/PCI_Devices/

   3.  List Server and CPU from iLOM
             -> show /SYS product_name product_serial_number product_manufacturer.

   4.  List Memory or List RAM from iLOM
             -> show -level all -output table /SYS type==DIMM fru_name fru_manufacturer
             -> show -level all -output table /SYS type==DIMM

   5.  List CPU or List processor from iLOM
             ->show -level all -output table /SYS type=='Host Processor'

   6.  List Power Supply from iLOM
             -> show -level all /SYS type=='Power Supply' fru_name fault_state

   7.  List HDDs from iLOM
             -> show -l all /SYS type=='Hard Disk' fru_part_number
             -> show -l all /SYS type=='Hard Disk' 

   8.  List iLOM event Logs
             -> show /SP/logs/event/list

   9.  List all hardware faults from iLOM
             -> show -level all -output table /SP/faultmgmt

   10.  List all temperature sensor readings from iLOM

             -> show -level all -output table /SYS type==Temperature value



~Judi~



Oracle Sparc iLOM commands
Configure iLOM, Configure iLOM IP address
Configure user account in iLOM
fmadm faulty

No comments:

Post a Comment

Popular Posts