Skip to content

Instantly share code, notes, and snippets.

View mvanvuuren's full-sized avatar

Marius van Vuuren mvanvuuren

  • Breakpoint
  • South Africa
View GitHub Profile
@mvanvuuren
mvanvuuren / Megacli_cheatsheet.md
Created September 22, 2015 08:19
MegaCLI cheatsheet

Inside the tarball or zip file you’ll find an RPM archive which contains the MegaCli and MegaCli64 binaries (will be installed to /opt/MegaRAID/MegaCli).

Please note: This emergency cheat sheet is not exhaustive, but it should be sufficient in most cases. For a complete reference either call MegaCli -h or refer to the manual at: http://www.lsi.com/files/docs/techdocs/storage_stand_prod/sas/mr_sas_sw_ug.pdf

While there are a lot of different parameters for MegaCli, some of them are always identical. These are described here in short.

Adapter parameter -aN The parameter -aN (where N is a number starting with zero or the string ALL) specifies the PERC5/i adapter ID. If you have only one controller it’s safe to use ALL instead of a specific ID, but you’re encouraged to use the ID for everything that makes changes to your RAID configuration.

@mvanvuuren
mvanvuuren / oracle_curl.sh
Last active July 28, 2021 20:58 — forked from danievanzyl/oracle_curl.sh
Download from OTN Oracle
#!/bin/bash
curl -L -O -H "Cookie: oraclelicense=accept-securebackup-cookie" $1
#ORACLE Solaris download links
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-sparc.iso
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-sparc.usb
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.iso
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.usb
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-ai-sparc.iso
@mvanvuuren
mvanvuuren / gist:22a2d98b1262944b0a2b
Last active September 18, 2015 10:20
Solaris 10 fc command examples
Solaris 10 fc command examples
To see info on all fc ports:
fcinfo hba-port -l
To see port status:
luxadm -e port
Show link errors:
luxadm -e rdls /dev/cfg/c3