SCSI_MANDAT(8) SG3_UTILS SCSI_MANDAT(8)NAME
scsi_mandat - check SCSI device support for mandatory commands
SYNOPSIS
scsi_mandat [--help] [--log] [--quiet] [--verbose] DEVICE
DESCRIPTION
This Bourne shell script calls several SCSI commands on the given DEVICE. These SCSI commands are considered mandatory (although that
varies a little depending on which standard/draft the DEVICE complies with). The results of each test and a pass/fail count are output.
OPTIONS
Arguments to long options are mandatory for short options as well.
-h, --help
print out the usage message then exit.
-L, --log
the output to stderr (from each SCSI command executed) is appended to a file called 'scsi_mandat.err' in the current working direc-
tory.
-q, --quiet
the amount of output is reduced and typically only the pass/fail count is output.
-v, --verbose
increase level or verbosity.
EXIT STATUS
The exit status of this script is the number of "bad" errors found. So an exit status of 0 means all mandatory SCSI commands worked as
expected.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2011 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
SEE ALSO
sg_inq,sg_luns,sg_turs,sg_requests,sg_vpd,sg_senddiag (sg3_utils)
sg3_utils-1.33 December 2011 SCSI_MANDAT(8)
Check Out this Related Man Page
SCSI_READY(8) SG3_UTILS SCSI_READY(8)NAME
scsi_ready - do SCSI TEST UNIT READY on devices
SYNOPSIS
scsi_ready [--brief] [--help] [--verbose] DEVICE [DEVICE]*
DESCRIPTION
This bash shell script calls the sg_turs utility on each given DEVICE. This will send a SCSI TEST UNIT READY command to each DEVICE. Disks,
tape drives and DVD/BD players amongst others may respond to this SCSI command.
OPTIONS
Arguments to long options are mandatory for short options as well.
-b, --brief
for each DEVICE given output a line containing either ' ready' or ' device not ready'. If DEVICE is not found or there is
another serious error then an error message will appear instead.
-h, --help
print out the usage message then exit.
-v, --verbose
increase level or verbosity.
EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_turs utility called. See the
sg3_utils(8) man page.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2009-2013 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
SEE ALSO
sg_turs (sg3_utils)
sg3_utils-1.36 May 2013 SCSI_READY(8)
Hi everyone , i am new to shell scripting and am having some problem to test if this line has been executed well and display a pass message on the screen or fail if not
sqlplus XXTEST/$2 <<END > $XXTEST_TOP/log/$0.log
@$XXTEST_TOP/admin/sql/XXTEST_SPE1_XX_QUOTE_DETAILS_TBL.sql XXTEST$2... (2 Replies)
Hi guys i had a script which will generate a log file.Is there any commands to check the dynamic changes in the log file,i.e if i open the log file i should able to see the updating changes live...I hope u understand my query... (2 Replies)
Hi,
Some part of output:
================
$ hwmgr show scsi
SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
68: ... (10 Replies)
I'd like to create a script that keeps track of the commands used.
For example:
count ls ps
and from now on whenever I use ls or ps a counter is increased.
I want that after the command count has been activated a session starts(here I can use any commands) and I want to stop the session... (5 Replies)
Hey Gang,
This is the last part of my script I am creating. I need to output the results of running commands to a file named "log.out"
I want to put the echo commands in the log file. I tried adding the
echo "Process is running" > log.out
I am not having much luck with that. Could... (5 Replies)
I have an awk script which can be used in the following ways:
xi and xf will only be mandatory when processing the file fin.zc.
awk -v xi=0/-0.5 -v xf=80/30 -f ./zc2cmd.awk fin.zc > fout.cmod
awk -f ./zc2cmd.awk -u
awk -f ./zc2cmd.awk --usg
awk -f ./zc2cmd.awk -e
awk -f ./zc2cmd.awk... (1 Reply)
Hi,
My requirement is to check wheather some csv files have mandatory columns value as empty if empty log a error message or set a flag.
The problem here is that the column number varies for different CSVs hence we can not hardcode $1 or $3 like this in the awk command hence we are reading a... (5 Replies)
Hi,
I have been in IT for 7 yrs. I worked in different sort of project in unix (know to right shell script). Now I would like to do certification in Red hat (also its mandatory to take). Shall I go for admin or programming certification.
Please help me out which one will suit me, also will... (3 Replies)
Hello
I would like to write a bash shell script which will need user to supply one variable which is mandatory and some other optional variables. If mandatory variable is not supplied by user, the script will exit. If optional values are not supplied by user, hard-coded value (in the script)... (3 Replies)