Version |
Releasedate |
Description
|
2.1.0 |
03.10.2014 |
#### 03.10.2014
v2.1.0 /bs #### the script now also prints the PCI Slot usage for SPARC Tx machines #### added the parameter -P (show PCI slot usage only) |
2.0.1 |
17.09.2014 |
#### 17.09.2014
v2.0.1 /bs #### PCI Slot information in the output file for -L for x86 machines was still wrong -- corrected |
2.0.0 |
04.09.2014 |
#### 03.09.2014
v2.0.0 /bs #### script rewritten using the template scriptt.sh v2.0.0.7 #### changed the code for x86 machines some how #### added some debug switches (use -D help to list the known debug switches) |
1.2.2 |
05.12.2013 |
initial public release |
[xtrnaw7@t540p scripts]$ ./check_fc_config.sh -v -h
[03.10.2014 14:07:07] check_fc_config.sh v2.0.1 started at Fr 3.
Okt 14:07:07 CEST 2014.
[03.10.2014 14:07:07] No config file ("check_fc_config.conf")
found (use -C to create a default config file)
check_fc_config.sh v2.0.1 - check the fiber channel
configuration in Solaris
Usage: check_fc_config.sh [-v|+v] [-q|+q] [-h] [-l
logfile|+l] [-y|+y] [-n|+n]
[-D debugswitch] [-a|+a] [-O|+O] [-f|+f] [-C] [-H] [-X] [-S n]
[-V] [-T]
-L outputfile [-s|+s] [-P|+P]
Use the parameter "-v -h [-v]" to view the detailed
online help; use the parameter "-X" to view some usage examples.
see also http://bnsmb.de/solaris/scriptt.html
Note: Use -{switch} or --{longswitch} to turn an option
on;
use +{switch} or
++{longswitch} to turn an option off
The long format of the
parameter (--parameter/++parameter) is not supported by all ksh
implementations
Parameter:
-v|+v - turn verbose mode on/off;
current value: y
Long format: --verbose / ++verbose
-q|+q - turn quiet mode on/off;
current value: n
Long format: --quiet / ++quiet
-h - show usage
Long format: --help
-l - set the
logfile
current value: /var/tmp/check_fc_config.LOG
Long format: --logfile
+l - do not
write a logfile
Long format: ++logfile
-y|+y - assume yes to all
questions or not
Long format: --yes / ++yes
-n|+n - assume no to all
questions or not
Long format: --no /++no
-D|+D - debug switch
current value:
use "-D help" to list the known debug switches
Long format: --debug / ++debug
-a|+a - turn colors on/off;
current value: n
Long format: --color / ++color
-O|+O - overwrite existing files
or not; current value: n
Long format: --overwrite / ++overwrite
-f|+f - force; do it anyway;
current value: n
Long format: --force / ++force
-C - write a
default config file in the current directory and exit
Long format: --writeconfigfile
-H - write
extended usage to STDERR and exit
Long format: --doc
-X - write
usage examples to STDERR and exit
Long format: --view_examples
-S n - print error/warning
summaries:
n = 0 no summariess, 1 = print error msgs,
2 = print warning msgs, 3 = print error and warning mgs
Current value: 0
Long format: --summaries
-V - write
version number to STDOUT and exit
Long format: --version
-T - append
STDOUT and STDERR to the file
"/var/tmp/check_fc_config.sh.22735.tee.log"
Long format: --tee
-P - only list
all slots found; only supported for x86 and sun4v SPARC machines
current value: n
Long format: --list_slots_only
-s - list all
slots found; only supported for x86 and sun4v SPARC machines
current value: n
Long format: --list_all_slots
-L outputfile
- write the zoning for SAN devices to the file outputfile
current value:
Long format: --logZoning
Legend:
PCI S/P -
PCI Slot / Port (sparc: prtdiag, x86: prtconf)
Device Path - Solaris Device Path
(/etc/path_to_inst)
Ctlr
- Solaris controller number (/dev/cfg/*)
State:
- state of the port (fcinfo)
Port WWN: - port wwn
(fcinfo)
Name:
- Solaris device name (/etc/path_to_inst)
#
LUNs
- number of LUNs visible/uniq numer of LUNs visible (fcinfo)
# Disks -
number of disks visible (cfgadm)
# Tapes -
number of tapes visible (cfgadm)
# fabrics - number of
fabrics visible (cfgadm)
#
misc
- number of devices visible that are neither tape nor disk
(cfgadm)
SAN dev/w errors - SAN devices with errors (cfgadm)
[03.10.2014 14:07:07] The log file used was
"/tmp/check_fc_config.sh.22735.TEMP"
[03.10.2014 14:07:07] check_fc_config.sh v2.0.1 started at Fr 3.
Okt 14:07:07 CEST 2014 and ended at Fr 3. Okt 14:07:07 CEST
2014.
[03.10.2014 14:07:07] The time used for the script is 0 minutes
and 0 seconds.
[03.10.2014 14:07:07] The RC is 1.
[xtrnaw7@t540p scripts]$