Showing posts with label Hardware. Show all posts
Showing posts with label Hardware. Show all posts

hpacucli - Check RAID Information from Linux Shell

Have you ever tried to check how the hardware RAID Array configured on server from your Linux Shell? Have you ever wanted to change or modify your Hardware RAID configurations without rebooting the server and without leaving your Linux shell?

hpacucli utility is there to help you, If your server is HP Hardware. hpacucli  (HP Array Configuration Utility CLI) is a command line based disk configuration program for Smart Array Controllers and RAID Array Controllers. You can download and  install hpacucli tool from HP website.

Quick Abbreviations:
chassisname = ch
controller = ctrl
logicaldrive = ld
physicaldrive = pd
drivewritecache = dwc

As root, just type "hpacucli" and you will be into hpacucli command line interface. Let me give you a quick example of what you can do with this hpacucli.

To Get the quick details about the RAID controller and its Health:
=> ctrl all show status

Smart Array P400 in Slot 9
   Controller Status: OK
   Cache Status: OK
   Battery Status: OK

=>
To get a quick idea of How the disks are grouped and which raid level used:

=> ctrl all show

Smart Array P400 in Slot 9           (sn: PXXXXXXXXXXXXX)

=> ctrl all show config

Smart Array P400 in Slot 9           (sn: P6YYYYYYYYYYYY)

   array A (SAS, Unused Space: 0 MB)

      logicaldrive 1 (68.3 GB, RAID 1, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 72 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 72 GB, OK)

To Get complete details about how the raid configured in the server:

=> ctrl all show config detail

Smart Array P400 in Slot 9
   Bus Interface: PCI
   Slot: 9
   Serial Number: PXXXXXXXXX
   Cache Serial Number: PAXXXXXXXXT
   RAID 6 (ADG) Status: Enabled
   Controller Status: OK
   Chassis Slot:
   Hardware Revision: Rev D
   Firmware Version: 7.08
   Rebuild Priority: Medium
   Expand Priority: Medium
   Surface Scan Delay: 15 secs
   Post Prompt Timeout: 0 secs
   Cache Board Present: True
   Cache Status: OK
   Accelerator Ratio: 25% Read / 75% Write
   Drive Write Cache: Disabled
   Total Cache Size: 512 MB
   Battery Pack Count: 1
   Battery Status: OK
   SATA NCQ Supported: True

   Array: A
      Interface Type: SAS
      Unused Space: 0 MB
      Status: OK

      Logical Drive: 1
         Size: 68.3 GB
         Fault Tolerance: RAID 1
         Heads: 255
         Sectors Per Track: 32
         Cylinders: 17562
         Stripe Size: 128 KB
         Status: OK
         Array Accelerator: Enabled
         Unique Identifier: 600508XXXXXXXXXXXXXXXX0002
         Disk Name: /dev/cciss/c0d0
         Mount Points: /boot 103 MB, swap 8.0 GB
         Logical Drive Label: A08923XXX61630G9SVI3RJCC0A
         Mirror Group 0:
            physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 72 GB, OK)
         Mirror Group 1:
            physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 72 GB, OK)

      physicaldrive 1I:1:1
         Port: 1I
         Box: 1
         Bay: 1
         Status: OK
         Drive Type: Data Drive
         Interface Type: SAS
         Size: 72 GB
         Rotational Speed: 10000
         Firmware Revision: HPDA
         Serial Number:         PXXXXXXA
         Model: HP      DG072A4951
         PHY Count: 1
         PHY Transfer Rate: Unknown
      physicaldrive 1I:1:2
         Port: 1I
         Box: 1
         Bay: 2
         Status: OK
         Drive Type: Data Drive
         Interface Type: SAS
         Size: 72 GB
         Rotational Speed: 10000
         Firmware Revision: HPDA
         Serial Number:         PXXXXXXA
         Model: HP      DG072A4951
         PHY Count: 1
         PHY Transfer Rate: Unknown

=>
 Be sure to verify your version of hpacucli and refer the ReadMe always, before you trying to modify the configuration of RAID or Smart Array controllers. 

Video Tutorials: Basic Hardware & Windows in Tamil and Malayalam

Another One, I am really happy to share these Video Tutorials for Basic Hardware, Windows XP, Windows 2003 in Tamil and Malayalam languages, which i found on web today. 

It's really nice to see these kind of Technical Video Tutorials in Indian Regional languages such as Tamil, Malayalam, Telugu, Hindi, etc..  The explanation and teaching skill is really good these tutorials. Hope this helps to peoples who starting their career as Windows or Desktop Support.

I really wish these kind of Video Tutorials should come in all the Indian Regional languages. That will help lot and lot of Peoples of India to understand technology better.

Really appreciate and Thank Bitnetz.com Team for their Video Tutorials.

Link? Here you go: 


Happy Learning..!

HPASMCLI - Overview and Commands


hpasmcli stands for HP Server Management Application and Agents Command Line Interface


It comes with HP ProLiant Support Pack (PSP) and can be installed in HP ProLiant Servers to view, modify the BIOS / System settings such as  hyper-threading, boot sequence control, and UID LEDs, etc. It can also be used to display hardware status  of the HP ProLiant servers. 



It’s a scriptable command line interface for interacting with the hpasm management daemons.
hpasmcli is also usable for incorporating into shell scripts. Hpasmcli supports TAB completion of command names and has a history buffer that can be accessed using the up/down arrows. 

To get the basic information about server:

hpasmcli> show server
System        : ProLiant DL385 G1
Serial No.    : SGH532X0KK      
ROM version   : A05 06/14/2005
iLo present   : Yes
Embedded NICs : 2
NIC1 MAC: 00:14:38:4c:62:3e
NIC2 MAC: 00:14:38:4c:62:3d

Processor: 0
Name         : AMD Opteron
Stepping     : 2
Speed        : 2200 MHz
Bus          : 0 MHz
Socket       : 2
Level2 Cache : 1024 KBytes
Status       : Ok

Processor: 1
Name         : AMD Opteron
Stepping     : 2
Speed        : 2200 MHz
Bus          : 0 MHz
Socket       : 1
Level2 Cache : 1024 KBytes
Status       : Ok

Processor total  : 2

Memory installed : 1024 MBytes
ECC supported    : Yes


Verify the Automatic System Recovery values:
hpasmcli> show asr
ASR timeout is 10 minutes.
ASR is currently enabled.




To verify the boot order:


hpasmcli> show boot
First boot device is: CD-ROM.
One time boot device is: Not set.


To check the DIMM Information:


hpasmcli> show dimm
DIMM Configuration
------------------
Cartridge #:   0
Module #:      3
Present:       Yes
Form Factor:   9h
Memory Type:   12h
Size:          1024 MB
Speed:         400 MHz
Status:        Ok


Cartridge #:   0
Module #:      4
Present:       Yes
Form Factor:   9h
Memory Type:   12h
Size:          1024 MB
Speed:         400 MHz
Status:        Ok




To check the F1 Prompt:


hpasmcli> show f1
The POST F1 prompt is currently delayed.


To Verify the FANS:


hpasmcli> show fans
Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        2        Yes           
#2   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        1        Yes           
#3   I/O_ZONE        Yes     NORMAL 18%     Yes        1        Yes           
#4   I/O_ZONE        Yes     NORMAL 18%     Yes        1        Yes           
#5   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        1        Yes           
#6   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        1        Yes           
#7   POWERSUPPLY_BAY Yes     NORMAL 18%     Yes        1        Yes           
#8   POWERSUPPLY_BAY Yes     NORMAL 18%     Yes        1        Yes           




To Verify the HT Status:


hpasmcli> show ht
Processor hyper-threading is currently disabled.




To view the IML Logs:


hpasmcli> show iml
The IML Log is empty.




hpasmcli> show ipl
IPL (Standard Boot Order)
-------------------------
#0 CDROM
#1 Floppy
#2 USBKEY
#3 HDD
#4 PXE




To check the Power Supply Status:


hpasmcli> show powersupply
Power supply #1
Present  : Yes
Redundant: No
Condition: Ok
Hotplug  : Supported


Power supply #2
Power Supply not present


To check the PXE status of the network cards:


hpasmcli> show pxe
PXE boot status (2 Embedded NICs):
NIC1: PXE enabled
NIC2: PXE disabled


To check the Serial Port status:


hpasmcli> show serial bios
BIOS console redirection port is currently set to COM1/9600.


hpasmcli> show serial bios
Embedded serial port A: COM1
Embedded serial port B: Disabled


hpasmcli> show serial virtual
The virtual serial port is currently COM2.


To check the temperature of the server:


hpasmcli> show temp
Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#0        SYSTEM_BD             -          -       
#1        CPU#1                51C/123F   80C/176F 
#2        I/O_ZONE             52C/125F   62C/143F 
#3        CPU#2                46C/114F   80C/176F 
#4        PROCESSOR_ZONE       41C/105F   60C/140F 
#5        POWER_SUPPLY_BAY     41C/105F   51C/123F 


To check LED status:


hpasmcli> show uid
UID is currently off.


To check the Wake on LAN status:


hpasmcli> show wol
Wake-On-Lan is currently enabled.


To exit from hpasmcli:


hpasmcli> exit

Collecting Server Hardware Information in Linux

To Print Entire Hardware Information - dmidecode

To List PCI devices - lspci 

To List USB devices - lsusb

To Find CPU Information - cat /proc/cpuinfo

To Find Memory/RAM in Information,

    1. cat /proc/meminfo
    2. free -m

To find Hard disk Information,

  • fdisk –l
  • df –h
  • vgdisplay
  • lvdisplay

To Know SWAP information,

   cat /proc/swaps

To detect Hardware Changes,

    service kudzu restart

To See Kernel Version, Architecture, OS Release Version, etc..

  • uname –a
  • cat /etc/redhat-release