8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi i am having a acript for which i need to skip the execution of some lines and to continue with remaining lines for eg
script.sh
rm text
for i in *
do
.
.
.
.
.
if
then
rm
i want to skip the execution of the lines and to start with (11 Replies)
Discussion started by: rohit_shinez
11 Replies
2. Shell Programming and Scripting
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958(which is hostname) only,... (5 Replies)
Discussion started by: gsreeni
5 Replies
3. Shell Programming and Scripting
Hi Friends,
I need help in below requirements,
1. I have to get current datetime + <mins> into a variable
2. I have to compage dates like,
A=01-JAN-2009 10:20:10
B=01-JAN-2009 10:30:00
C=<same format date as above>
I have to find whether,
1. C is less than A OR,
2. C is greater... (7 Replies)
Discussion started by: smr_rashmy
7 Replies
4. Shell Programming and Scripting
Hi,
Iam having the two files as follows:
file1:
ASQWEDFR09876543121234512
POIUYTREW09876512345676788
ZXCVBNMKS1209888888888888
file2:
ASQWEDFR09876543121234516 asdcvfgbtg@abc.com 0000000-90-1239--2008 8990----
CXADFGTU09876543121234789 asdcvfgbtg@abc.com ... (14 Replies)
Discussion started by: nivas
14 Replies
5. Shell Programming and Scripting
Hi,
I want to compare two files. Files will look like as follows:
file1:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
file2:
ZXCVBVNM|0987654321234567
POLKIJUYH|1234789060985478
output file should be:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
Thnaks in advance (6 Replies)
Discussion started by: nivas
6 Replies
6. UNIX Desktop Questions & Answers
Hi There,
Can anyone help, where i can find list of UNIX commands just for regulat day ro day operations
Thanx
MGR (1 Reply)
Discussion started by: mgoutham
1 Replies
7. Cybersecurity
what do you think the best firewall is for slakware 7 (1 Reply)
Discussion started by: shadieshad
1 Replies
8. UNIX for Dummies Questions & Answers
Hello guys!
Can say me anybody about operatios with unix, I don't to make operations, only inside in a variable, like this
#y=4
#x=2
#let z=$y-$x
#echo $z
# 2
but I can't to make mathematical operations with decimal like this
#y=3.2
#x=1.5
#let z=$y-$x
#echo $z
# 3
this... (2 Replies)
Discussion started by: cesar720213
2 Replies
svadm(1M) System Administration Commands svadm(1M)
NAME
svadm - command line interface to control Availability Suite Storage Volume operations
SYNOPSIS
svadm -h
svadm -v
svadm [-C tag]
svadm [-C tag] -i
svadm [-C tag] -e {-f config_file | volume}
svadm [-C tag] -d {-f config_file | volume}
svadm [-C tag] -r {-f config_file | volume}
DESCRIPTION
The svadm command controls the Storage Volume (SV) driver by providing facilities to enable and disable the SV driver for specified vol-
umes, and to dynamically reconfigure the system.
OPTIONS
If you specify no arguments to an svadm command, the utility displays the list of volumes currently under SV control. svadm supports the
following options:
-C tag
On a clustered node, limits operations to only those volumes belonging to the cluster resource group, or disk group name, specified by
tag. This option is illegal on a system that is not clustered. The special tag, local, can be used to limit operations to only those
volumes that cannot switch over to other nodes in the cluster.
-d
Disables the SV devices specified on the command line or in the configuration file. If -C tag is specified with this option, then the
volume should be in this cluster disk group.
-e
Enables the SV devices specified on the command line or in the configuration file. Details of the volume are saved in the current con-
figuration. See dscfg(1M). If -C tag is specified with this option, then the volume should be in this cluster disk group.
-f config_file
Specifies a configuration file that contains a list of volumes. A command reads this volume list and then perform the operation. The
format of the config_file is a simple list of volume pathnames, one per line. Blank lines and lines starting with the comment character
(#) are ignored.
-h
Displays the svadm usage summary.
-i
Displays extended status for the volumes currently under SV control.
-r
When a config_file is specified, reconfigure the running system to match the configuration specified in the config_file. When the -C
option is specified, compare the cluster tag for each volume and change it to cluster_tag. If a volume is specified with this option,
it is valid only to reconfigure the cluster tag associated with the volume. The -e or -d options should be used to enable or disable
single volumes.
-v
Displays the SV version number.
USAGE
When an SV volume is enabled, normal system call access to the device (see intro(2)) is redirected into the StoreEdge architecture soft-
ware. This allows standard applications to use StorageTek features such as Sun StorageTek Point-in-Time Copy and Remote Mirror Software.
The svadm command generates an entry in the Availability Suite log file, /var/adm/ds.log (see ds.log(4)), when performing enable (-e) and
disable (-d) operations.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWspsvr, SUNWspsvu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
dscfg(1M), ds.log(4), attributes(5), sv(7D)
SunOS 5.11 2 Oct 2007 svadm(1M)