SCSI_STOP(8) SG3_UTILS SCSI_STOP(8)NAME
scsi_stop - stop (spin down) one or more SCSI disks
SYNOPSIS
scsi_stop [--help] [--verbose] [--wait] DEVICE [DEVICE]*
DESCRIPTION
This bash shell script calls the sg_start utility on each given DEVICE. The purpose is to spin down (stop) each given DEVICE.
OPTIONS
Arguments to long options are mandatory for short options as well.
-h, --help
print out the usage message then exit.
-v, --verbose
increase level or verbosity.
-w, --wait
wait for the spin down (stop) on each given DEVICE to complete. The default action is to do each stop in immediate mode.
NOTES
The sg_start utility calls the SCSI START STOP UNIT command and can either start (spin up) or stop (spin down) a SCSI disk depending on the
given command line options.
EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_start 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_start (sg3_utils)
sg3_utils-1.36 May 2013 SCSI_STOP(8)
Check Out this Related Man Page
SCSI_START(8) SG3_UTILS SCSI_START(8)NAME
scsi_start - start one or more SCSI disks
SYNOPSIS
scsi_start [--help] [--verbose] [--wait] DEVICE [DEVICE]*
DESCRIPTION
This Bourne shell script calls the sg_start utility on each given DEVICE. The purpose is to spin up (start) each given DEVICE.
OPTIONS
Arguments to long options are mandatory for short options as well.
-h, --help
print out the usage message then exit.
-v, --verbose
increase level or verbosity.
-w, --wait
wait for the spin up (start) on each given DEVICE to complete. The default action is to do each start in immediate mode.
NOTES
If a large number of disks are spun up at the same time (i.e. without the --wait option) then the power supply may be overloaded.
EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_start utility called. See the
sg3_utils(8) man page.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2009 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_start (sg3_utils)
sg3_utils-1.28 August 2009 SCSI_START(8)
I have a script that runs numerous other scripts. I am using a wait command to try and get the calling script to wait for all process called to finish before proceeding.
Issues
How can I set wait to timeout IE a called program never terminates.
Alternatively how can I check the called... (1 Reply)
# ioscan -f | grep disk
Class I H/W Path Driver S/W State H/W Type Description
disk 3 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC ... (1 Reply)
HI,
I written a shell script to stop my peoplesoft applications.Peoplesoft provides a psadmin utility to stop the application. I used the force shutdown option with it psadmin -c shutdown! -d pskri. When my application process hungs in the background the script is not able to continue and... (3 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)
Hello,
I have a script that needs to wait till the previous process is done within the same script.But my script doesnt wait till that it is done.Can anyone suggest how I can stop my process till the previous task is done.
I tried 'wait' but I dont have a static process id so is there... (2 Replies)
When running a command using the >(cmd) syntax in bash how do you wait for the command to complete before moving on in your script?
Here is a simple example:
zcat largefile.gz | tee >(wc && echo “HELLO”) > /dev/null
# I tried wait, here but it doesn't wait for the process in the subshell.... (8 Replies)
Hi Gurus,
Some questions regarding wait. I have tried searching in this forum for threads on wait but not completely got what I am looking for.
Background:
One script (.sh) that starts/calls a reference to an application's executable and submits a batch job to it. Objective is to wait... (2 Replies)
Can someone please assist me, I'm trying to get vi to remove all the occurences of the text in a file i.e. "DEVICE=/dev/mt??". The "??" represents a number variable. Is there a globel search and delete command that I can use?
Thank You in Advance. (3 Replies)
I cant figure out how the complete function works in tcsh.
1. I whould like it to complete after writing my_program.py with either start or stop.
I have tried to do something like this in .cshrc.user:
complete my_program.py \
'c/start/' \
'c/stop/'
However i cant get it to... (1 Reply)
I have a file with below format :
2013-05-20 hello
has done
2013-05-20 hi
000abc
abc
2013-05-21 thank you
I want the out put to be like this :
2013-05-20 hello has done
2013-05-20 hi 000abc abc
2013-05-21 thank you
What I could think of is something like this :
cat... (7 Replies)
Hello,
im having bash script with
while ***
command1 &&
command2 &&
command3 &&
done
i want to ask how i can prevent overloading server, by waiting untill all commands complete? any low resources intensive command like "wait" - i dont know if exist? (2 Replies)
Hello,
Using bash script, i need to process the following file:
887,86,,2013-11-06,1,10030,5,2,0,200,,
887,86,,2013-11-05,1,10030,5,2,0,199,,
887,138,,2013-11-06,1,10031,6,2,0,1610612736,,
887,164,,2013-11-06,1,10000,0,2,0,36000,,
and to create a new file such as the below
... (2 Replies)