07-30-2014
How to control a null output in EMC storage?
I dont want to print the output in a EMC VMAX storage if it says "The specified device was not found", however it is not letting me do it.
I am trying to run this command:
symaccess -sid xxxx list -type storage -devs 1234
output:
The specified device was not found
I just want the script to do nothing when it encounters this output but continue when it is not. Please help. Thanks.
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have a script that has an infile with system package information. For the most part the script is looking well. The only thing i need help is in testing for null entries and removing null data.
#!/usr/bin/ksh
for i in `cat /mwncps/bin/eco_pack`
do
NAME=`pkginfo -l |... (2 Replies)
Discussion started by: liketheshell
2 Replies
2. Solaris
Hi
Can anyone suggest me some documents for EMC clarion documents which I am going to use in the servers with solaris environments. (1 Reply)
Discussion started by: ningy
1 Replies
3. Shell Programming and Scripting
I'm using an text-to-speech synthesis in a script, and I need to redirect it's output to /dev/null
how can I do that ? And how to redirect the stream to his normal output then (sound card ) ?
thankx (2 Replies)
Discussion started by: firelink
2 Replies
4. Shell Programming and Scripting
Hi All,
This might be a basic question... I need to write a script to find all/any Speacial/Null/Control Chars and Print Line Numbers from an input file.
Output something like
Null Characters in File Name at : Line Numbers
Line = Print the line
Control Characters in File Name at : Line... (2 Replies)
Discussion started by: Kevin Tivoli
2 Replies
5. Solaris
Hi All!
I have a two x6270 solaris 10, blade, connected to a EMC x4 storage appliance via fibre.
I have little knowledge of veritasfile system, and EMC x4, storage device, but I found out that one DG is in shared mode.
I need to split the configuration, to use only one server (blade).
The EMC... (1 Reply)
Discussion started by: fretagi
1 Replies
6. UNIX for Beginners Questions & Answers
I am working an some if then statements for a script.
I want to be able to check for alpha characters or empty out put then exit out.
if ]];
echo "Serial Number Invaild"
then exit 3;
How do I account if the output is empty or null in this in this statement.
Many thanks (6 Replies)
Discussion started by: andysensible
6 Replies
LEARN ABOUT OPENSOLARIS
nscadm
nscadm(1M) System Administration Commands nscadm(1M)
NAME
nscadm - network storage control utility
SYNOPSIS
nscadm freeze device
nscadm unfreeze device
nscadm isfrozen device
DESCRIPTION
The nscadm command performs several network storage control functions.
The nscadm freeze command closes existing references to the specified device, and blocks future accesses. This allows maintenance of vir-
tual volume device drivers (for example, RAID 0, RAID 1, RAID 5) to be performed without shutting down the system.
The nscadm unfreeze command reverses the effects of nscadm freeze for the specified device.
The nscadm isfrozen command returns the current status of the specified device.
OPTIONS
The nscadm command supports the following option.
-h Display the usage menu.
OPERANDS
The nscadm command line supports the following operand.
device
Specifies the storage device to be acted upon by nscadm.
EXIT STATUS
For the freeze and unfreeze, subcommands nscadm returns the following exit values:
0 Success
255 Error
For the isfrozen subcommand, nscadm returns the following exit values:
0 Device is currently frozen.
1 Device is not currently frozen.
255 Error
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscmr, SUNWscmu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
scmadm(1M), attributes(5)
SunOS 5.11 2 Oct 2007 nscadm(1M)