1. Usage - lateralblast/oort GitHub Wiki

The Oracle downloads require a support contract and a MOS account. To prevent the possibility of displaying username and password details the script sets the WGETRC environment variable to read them from a file. If the file does not exist it will ask you for the details and create a file. The files permission are set so only you can read it, e.g.

$ cat ~/.mospasswd
[email protected]
http-password=P@$$w0r]
check-certificate=off

Get help on usage:

$ ./oort.rb -h

Usage: oort.rb -[HV?abchlvxA:E:M:N:P:R:S:X:d:e:i:m:n:o:p:q:r:s:t:w:x:z:]

-V:          Display version information
-h:          Display usage information
-v:          Verbose output
-b:          Test mode (don't perform downloads)
-c:          Output in CSV format (default text)
-x:          Download patchdiag.xref
-w WORK_DIR: Set work directory (Default is ~/.firith)
-u TERM:     Search all Solaris 11 SRUs for a term
-U TERM:     Download Solaris 11 SRUs associated with a term
-p PATCH:    Download a patch from MOS (Requires Username and Password)
-r PATCH:    Download README for a patch from MOS (Requires Username and Password)
-R PATCH:    Download README for a patch from MOS (Requires Username and Password) and send to STDOUT
-P SEARCH:   Search patchdiag.xref (Solaris 10 and earlier)
-S RELEASE:  Set Solaris release (used with -Y)
-A ARCH:     Set architecture (e.g. SPARC, or x86, used with -Y, -m and -M)
-o FILE:     Open a file for writing
-H:          Delete temporary HTML files
-Y:          Update patch archive
-i FILE:     Open a locally saved HTML file for processing rather then fetching it
-l:          Only show (or download) latest firmware versions (can be used in combination with the following options)
-m all:      Display firmware information for all machines
-m MODEL:    Display firmware information for a specific model (eg. X2-4)
-M all:      Download firmware patch for all models from MOS (Requires Username and Password)
-M MODEL:    Download firmware patch for a specific model (eg. X2-4) from MOS (Requires Username and Password)
-z all:      Display firmware zip file contents for all models
-z MODEL:    Display firmware zip file contents for a specific model (eg. X2-4)
-t all:      Display TFTP file for all models
-t MODEL:    Display TFTP file for a specfic model (e.g. T5440)
-d all:      Display firmware information for all disks
-d MODEL:    Display firmware information for a specific model of disk (eg. MAW3300FC)
-D all:      Download firmware information for all disks
-D MODEL:    Download firmware information for a specific model of disk (eg. MAW3300FC)
-e all:      Display firmware information for all Emulex HBAs
-e MODEL:    Display firmware information for a specific model of Emulex HBA (eg. SG-XPCIEFCGBE-E8-Z)
-E all:      Download firmware patch for all Emulex HBAs
-E MODEL:    Download firmware patch for a specific model of Emulex HBA
-q all:      Display firmware information for all Qlogic HBAs
-q MODEL:    Display firmware information for a specific model of Qlogic HBA (eg. SG-XPCIEFCGBE-Q8-Z)
-n all:      Display firmware information for all older V Series
-n MODEL:    Display firmware information for specific old V Series
-N all:      Download firmware information for all older V Series
-N MODEL:    Download firmware information for specific old V Series
-x all:      Display firmware information for all older M Series (M3000 - M5000
-x MODEL:    Display firmware information for specific old M Series model (M3000-M9000)
-X all:      Download firmware information for all older M Series (M3000 - M5000
-X MODEL:    Download firmware information for specific old M Series model (M3000-M9000)
-u all:      Display all Solaris 11 SRUs