MikeHPE

updated

2 years ago

M

MikeHPE

1 Rookie

•

7 Posts

0

4859

March 3rd, 2020 09:00

Getting physical disk info using iDrac/Powershell

Hello All,

I'm trying to find a good way to cycle through a DRAC and for each controller and obtain the disk type (HDD/SSD), manufacturer, make, model and firmware level. The RACADM command below will work, but to capture the output in a PS script would be somewhat unwieldy.

racadm -r iDrac -u user -p pwd storage get pdisks -o -p Name,Manufacturer,ProductID,MediaType,Revision --nocertwarn

Is there a way to do the equivalent using the available DCIM schema? The one listed below does not provide what I need and I could not find any reference in the Dell materials. 

$Drives=Get-CimInstance -CimSession $connection -ResourceUri "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_EnclosureView"


Thanks.

  • DELL-Charles R

    Moderator

    •

    4730 Posts

    •

    25476 Points

    0

    0

    Posted January 15th, 2025 21:45

    Hello,

     

    If you have the DRAC tools installed then you can directly run RACADM commands in PowerShell.

    DELL-Charles R

    Social Media and Communities Professional
    Dell Technologies | Enterprise Support Services
    #IWork4Dell

    Did I answer your query? Please click on ‘Accept as Solution’. ‘Thumbs up’ the posts you like!

  • DELL-Marco B

    Moderator

    •

    3980 Posts

    3479

    0

    Posted March 4th, 2020 09:00

    Hello,

    i don't have in mind something equivalent using DCIM schema sorry.

    Marco

    DELL- Marco B

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • MikeHPE

    1 Rookie

    •

    7 Posts

    3478

    0

    Posted March 4th, 2020 09:00

    Thank you for responding Marco.

  • groundzero313

    1 Rookie

    •

    8 Posts

    0

    0

    Posted January 8th, 2025 14:42

    Question: is there a way to do a SSD Low Endurance pull using RACADMIN. Need to determine when a drive reaches 10%, so that I can get it replaced in our vSAN clusters. 

  • DELL-Chris H

    7 Practitioner

    •

    9682 Posts

    •

    48046 Points

    0

    0

    Posted January 8th, 2025 15:46

    Groundzero313,

     

    To perform a Low Endurance pull (LEP) on a Solid-State Drive (SSD) using RACADM, you can follow these steps:

     

    Prerequisites:

    Ensure you have RACADM installed and configured on your system.
    Make sure you have the necessary permissions and access to the vSAN cluster and the SSD in question.


    Step 1: Identify the SSD ID

    Use the racadm getconfig -t storage -i command to retrieve a list of all storage devices, including the SSD you want to monitor. Note down the SSD's ID, which is usually a combination of letters and numbers (e.g., SSD-12345678).

     

    Step 2: Monitor the SSD's health and endurance

    Use the racadm get -t storage -i <SSD_ID> -a health command to retrieve the SSD's health status. This will display information about the SSD's overall health, including its endurance level. You can repeat this command periodically to monitor the SSD's health and endurance level.

     

    Step 3: Check for LEP when the SSD reaches 10% endurance

    Once the SSD's endurance level reaches 10%, you can perform a Low Endurance Pull (LEP) to replace it. You can use the racadm set -t storage -i <SSD_ID> -a LEP true command to initiate the LEP process. This will remove the SSD from the vSAN cluster and prepare it for replacement.


    For example
    racadm set -t storage -i SSD-12345678 -a LEP true

     

    Also, before performing the LEP, ensure you have a replacement SSD ready and configured in the vSAN cluster.

    Let me know if this helps.

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • groundzero313

    1 Rookie

    •

    8 Posts

    0

    0

    Posted January 15th, 2025 19:00

    @DELL-Chris H ​ Thanks Chris, any chance there is an equivalent to doing it in powershell? There is 30 OME instances and about 600 idracs. If that is an option, it might be a better situation.