HW Knowledge/Hewlett-Packard Enterprise

MR(MegaRAID) Controller/How to collect storage logs

스쳐가는인연 2026. 1. 6. 21:03

MR(MegaRAID) Controller/How to collect storage logs

 

LSIget
Note. LSIget script download
lsiget log bundle analysis information
https://www.broadcom.com/support/knowledgebase/1211261522992/lsiget-log-bundle-analysis-information

the LSIget data capture script
https://www.broadcom.com/support/knowledgebase/1211161499563/lsiget-data-capture-script

1. Linux / VMware
# ./lsigetlunix.sh -D -Q 

or # ./lsigetlinux.sh -D -Q

2. Windows
C:\> lsigetwin.bat

or C:\> bcmget.bat

 

 

Command Tool: storcli
CLI
Usage Information - syntax:
/cx = Controller (Replace "/cx" with /c0 for the first controller, /c1 for the second controller, etc.)
/vx = Virtual Drive Number.
/ex = Enclosure ID
/sx = Slot ID.

Information on the Controller and Configuration
storcli /cx show all
storcli /cx show all > all.txt     (Controller and Configuration information)

Information on the existing hard drives and their status (IDs,...)
storcli /cx /eall /sall show       (all)

Information on the existing virtual drives and their status
storcli /cx /vall show             (all)

Event logs
storcli /cx show events file=<absolute path>
storcli /c0 show events file=C:\Temp\storcli_events_c0.txt 
storcli /cx show termlog=contents [logfile[=log.txt]]
storcli /c0 show termlog logfile=storecli_termlog_c0.txt
storcli /cx show alilog [logfile[=log.txt]]
storcli /c0 show alilog logfile=storcli_alilog_c0.txt

StorCLI User Guide
https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=a00048288en_us

MR Storage Administrator User Guide
https://support.hpe.com/hpesc/public/docDisplay?docId=a00048286en_us

 

 

collect_storcli_data.sh:

#!/bin/bash

# Usage Information - syntax:
# /cx = Controller (Replace "/cx" with /c0 for the first controller, /c1 for the second controller, etc.)
# /vx = Virtual Drive Number.
# /ex = Enclosure ID
# /sx = Slot ID.

echo "sleep 2s for store data - show"
sleep 2
/opt/MegaRAID/storcli/storcli64 show >> show.txt

echo "sleep 2s for store data - show all"
sleep 2
# Information on the Controller and Configuration
# storcli /cx show all
/opt/MegaRAID/storcli/storcli64 /c0 show all >> show_all.txt

# Event logs
echo "sleep 2s for store data"
sleep 2
# storcli /cx show events file=<absolute path>
/opt/MegaRAID/storcli/storcli64 /c0 show events file=storcli_events_c0.txt

echo "sleep 2s for store data"
sleep 2
# storcli /cx show termlog=contents [logfile[=log.txt]]
/opt/MegaRAID/storcli/storcli64 /c0 show termlog logfile=storecli_termlog_c0.txt
# /opt/MegaRAID/storcli/storcli64 /c0 show termlog >> show_termlog.log

echo "sleep 2s for store data"
sleep 2
# storcli /cx show alilog [logfile[=log.txt]]
/opt/MegaRAID/storcli/storcli64 /c0 show alilog logfile=storcli_alilog_c0.txt

echo "sleep 2s"
sleep 2
/opt/MegaRAID/storcli/storcli64 /c0 show events type=sincereboot file=SBevents.log

echo "sleep 2s"
sleep 2
/opt/MegaRAID/storcli/storcli64 /c0 get snapdump

 

collect_storcli_data.bat:

@echo off
set STORCLI="C:\Program Files\MR Storage Administrator\StorCLI\bin\storcli64.exe"


echo sleep 2s for store data - show
timeout /t 2 /nobreak > nul
%STORCLI% show >> show.txt

echo sleep 2s for store data - show all
timeout /t 2 /nobreak > nul
:: Information on the Controller and Configuration
%STORCLI% /c0 show all >> show_all.txt

echo sleep 2s for store data
timeout /t 2 /nobreak > nul
:: Event logs
%STORCLI% /c0 show events file=storcli_events_c0.txt

echo sleep 2s for store data
timeout /t 2 /nobreak > nul
%STORCLI% /c0 show termlog logfile=storecli_termlog_c0.txt

echo sleep 2s for store data
timeout /t 2 /nobreak > nul
%STORCLI% /c0 show alilog logfile=storcli_alilog_c0.txt

echo sleep 2s
timeout /t 2 /nobreak > nul
%STORCLI% /c0 show events type=sincereboot file=SBevents.log

echo sleep 2s
timeout /t 2 /nobreak > nul
%STORCLI% /c0 get snapdump

echo All tasks completed.
pause

 

 

 

 

 

반응형