Skip to content

Instantly share code, notes, and snippets.

@jahkeup
Created July 29, 2024 20:44
Show Gist options
  • Select an option

  • Save jahkeup/8f0413e2404b7cde0057a7e7d3b8221d to your computer and use it in GitHub Desktop.

Select an option

Save jahkeup/8f0413e2404b7cde0057a7e7d3b8221d to your computer and use it in GitHub Desktop.
sas3flash usage without the builtin pagingator bullshit
[root@store1:~]# $SAS3FLASH_DIR/sas3flash -o -help
Avago Technologies SAS3 Flash Utility
Version 17.00.00.00 (2018.04.02)
Copyright 2008-2018 Avago Technologies. All rights reserved.
Advanced Mode Set
-debug: Enable debug prints in the tool
-o: Enables Advanced Mode
-c x: Choose adapter by index
x = index of the adapter to choose (in hexadecimal)
-cpci x: Choose adapter by PCI Address
x = string indicating PCI Address
Must be in format segment:bus:dev:func (segment optional)
-s: Set output to silent mode
-l x: Log all output to file
x = the name of the log file
-f x: Flash firmware image
x = the firmware file to flash
-sbr: If mismatch found between Current and NVDATA MFG Page 2,
then update Persistent MFG Page 2, which will also
update SBR.
-fwall x: Flash firmware image to all adapters
x = the firmware file to flash
-b x: Flash BIOS image
x = the BIOS image to flash
-biosall x: Flash BIOS image to all adapters
x = the bios image to flash
-listall: List information on all Avago SAS Controllers found
-list: List detailed information about the selected SAS controller
-devicename: Set the flag to program Device Name
This flag will be used in conjuction with sasadd/sasaddhi command
-ufirmware x: Upload the current firmware to file x
-ubios x: Upload the bios area to file x
-ver: Display the version information for SASFlash
-umpb x: Upload the current Mfg Parameter Block to file x
-listsasadd: List the SAS address for the selected SAS controller
-testssid x: Verify adapter by SSVID and SSDID
x = string indicating SSVID and SSDID
Must be in format SSVID:SSDID
-e x: Erase selected controller's flash region
x = Segment(s) of flash to erase
1 . . . Erase NVSRAM
2 . . . Erase Backup Firmware
3 . . . Erase Persistent Pages including Manufacturing Pages
4 . . . Manufacturing Parameter Block
5 . . . Boot Services
6 . . . Clean Flash (erase all except Manufacturing Parameter Block)
7 . . . Erase Complete Flash
8 . . . Erase MegaRAID Firmware
-vpd x: Program the selected controller with VPD
x = VPD file to parse
-showvpd: Displays contents of the Vital Product Data for the
selected SAS controller
-eth x: Program the selected controller's Ethernet page
x = Ethernet file to parse
-showeth: Displays contents of the Ethernet Page Data for the
selected SAS controller
-sasadd x: Program the selected controller with a SAS Address
x = SAS Address to program
-h / -help / -?: Display the help
-scanchar x: Define character to denote start of a valid SAS Address
x = the final character preceeding the SAS Address
-sasaddhi x: Program selected controller with partial SAS Address
x = First 7 bytes of the SAS Address to program
User will be prompted for remaining SAS Address
-assem x: Program the selected controller with an assembly value
x = Assembly value
-tracer x: Program the selected controller with a board tracer
x = Tracer value
-unvdata x: Upload the current nvdata to file x
-ufwbackup x: Upload the backup fw area to file x
-uflash x: Upload the entire flash contents to file x
-reset: Reset selected adapter
-resetall: Reset all adapters
-testfw x: Test firmware version
x = Firmware version to test in xx.xx.xx.xx format
-testbios x: Test bios version
x = BIOS version to test in xx.xx.xx.xx format
-testls x y: Test link status of a specific PHY
PHY value should be specified in hex
x = PHY number to test
y = Link status value
Valid Link status values are:
0 - Link Down
1 - 3.0 Gbps
2 - 6.0 Gbps
3 - 12.0 Gbps
-testlsall: List link state on all PHY's on selected controller
-testprodid x: Test selected controller's product id against input
x = Product Id to test in 0x0000 format
-testnvram size: Test selected controller's NVRAM for given size
size = NVRAM size to test
-dflash x y: Download complete flash on selected controller
x = Complete flash image file to be flashed
y = Valid firmware file to be used to flash
-noreset: Skip reset of the selected adapter
-nossid: Skip SSID check while flashing firmware
-method: Set a global flag that will be used to determine
the SAS Address Programming method.
This flag will be used in conjuction with sasadd/sasaddhi
command
Note: To prevent the Unix shell from interpreting a special character, we must
escape it from the shell by starting it with a backslash (\).
Finished Processing Commands Successfully.
Exiting SAS3Flash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment