Capture_Script_Version_091218
13:08:20
.
LSI HBA/MegaRAID/Expander Data Collection Script for Win 2012 - Win2016.
This script will collect system logs and info as well as controller, disk and 
enclosure info for debugging purposes. All files included in the original 
lsigetwin_xxxxxx.7z/zip file MUST be kept in the same subdir as lsigetwin.bat.
This script MUST be run from its own subdir, NOT pathed.
.
You MUST be an Administrator/have Admin rights to run this script. The latest
version of this script can be found at;
.
https://www.broadcom.com/support/knowledgebase/1211161499563/lsiget-data-capture-script
.
Command Line Options:
lsigetwin [Comment] [Option(s)]		
Comment: Enclose noncontiguous strings in double quotes "My Comments" 
Option: 
-UMS		= Use MegaCli Syntax in addition to native storcli syntax.
-EXT		= EXTRACT - Extracts all available utilities for use.
-P		= PRINT filename in .\LSICAPTUREFILES.TXT for scripting.
-D		= Working DIRECTORY is not deleted.
-Q		= QUIET Mode - No keystrokes required unless error.
-B		= BATCH Mode - No keystrokes required.
-E_AEC		= Clear and ENABLE AEC.
-E_DPM		= Clear and ENABLE DPMSTAT.
-E_AEC_DPM	= Clear and ENABLE AEC and DPMSTAT.
-G_AEC		= Disable and GET AEC Logs.
-G_DPM		= Disable and GET DPMSTAT Logs.
-G_AEC_DPM	= Disable and GET AEC and DPMSTAT Logs.
-M		= MONITOR Mode - Standard capture, daily/targeted logging.
-SDS		= Use the BETA storcli 2.03.00 for SDS support.
-H		= This Help Screen.
.
The following command line options are NOT standard and may be detrimental 
to a root cause analysis of your issue. Used for repetitive data collection
and script debugging, these are fluid and may change.
.
-SRS		= Skip MegaRAID AEN Record Sort, NOT standard. [Not Supported}
-SRC		= Skip MegaRAID AEN Record Capture and Sort, NOT standard.  [Not Supported]
-SWR		= Skip Windows Reporting (MSINFO32), NOT standard. {Not Supported]
-SCDA		= Skip Controller Disk Association, NOT standard. [Not Supported]
-SMR		= Skip MegaRAID DATA Capture, NOT standard.
-S3W		= Skip 3Ware DATA Capture, NOT standard. [Not Supported]
-SHBA		= Skip HBA DATA Capture, NOT standard.
-SEXP		= Skip Expander DATA Capture, NOT standard.
-SC		= Skip Compression of output subdirectory, NOT standard.
-F1		= FAST-1, combines -SRC/-SWR, NOT standard. {Not Supported]
-F2		= FAST-2, combines -SRC/-SCDA, NOT standard. [Not Supported]
-F3		= FAST-3, combines -SRC/-SWR/-SCDA, NOT standard. [Not Supported]
-F4		= FAST-4, combines -SRC/-SWR/-SCDA/-SC, NOT standard. [Not Supported]
.
Example; lsigetwin -D -Q "This is my comment"
Runs the standard script leaving the working directory, without prompts 
and leaves a comment.
.
Example; lsigetwin -Q "This is my comment" -D -M 
Runs the standard script leaving the working directory, without prompts 
and leaves a comment, once done the script stays resident in Monitor Mode.
.
Notes: 
Send "JUST" the created .7z file to your support rep. 
The file is PASSWORD Protected to get through the Broadcom firewall. 
Password=broadcom
.
SDS = Will force the use of the Beta storcli that supports SDS mode.
If the "storcli show" command output contains SDS this version will be used 
anyway.
.
EXT = EXTRACT - All of the embedded utilities that are in the pertinent 
capture script are extracted without the actual capture script running.
The architecture specific (32/64bit) specific Broadcom utilities such as
storcli/sas3ircu/etc. are all copied to the root of the capture script subdir.
All third party utilities are copied to that root\Utils, i.e. grep/sg_scan/etc.
After each script run, Broadcom utilities without a device are copied to the 
Utils subdir. On EACH run the Utils subdir is deleted.
.
If there are competing comments the lowest variable number wins.
If there are contradictory options the lowest variable number with the
option order listed in the help wins. Valid combinations would be;
-D or -D with -B or -Q any -E_* or -G_* option by itself or in conjunction
with a -D and -B/-Q option. -E_* is allowed with -D but has no effect as 
there is no working directory created.
.
MegaRAID -

This script should run with any 92xx, 93xx, 94xx controllers.

HBA -

This script should run with any 92xx, 93xx, 94xx HBAs.

Capture Script Version: 091218
.
Trouble Shooting - 
.
1Q. Script appears to hang
1A. Dont enable Quick Edit mode. Also command windows have been seen to go to 
sleep after a while (20-30 Minutes), hit return in the window to wake up.
.
.
Capture Script Version: 091218
.
13:08:20
.
