08-31-2011
The update script is appeding great. But for the last one it is not updating. What may be issue
Quote:
form meta from dev 0A2B config=striped stripe_size=1920;
add dev 0A2C to meta 0A2B;
map dev 0A2B to dir 0:0 LUN=00;
map dev 0A2B to dir 0:0 LUN=00;
form meta from dev 0A2D config=striped stripe_size=1920;
add dev 0A2E to meta 0A2D;
map dev 0A2D to dir 0:0 LUN=00;
map dev 0A2D to dir 0:0 LUN=00;
form meta from dev 0A2F config=striped stripe_size=1920;
add dev 0A30 to meta 0A2F;
---------- Post updated at 09:56 AM ---------- Previous update was at 09:10 AM ----------
Is it possible to delete the lines till the device used? Because now I manually deleting the created device from the /opt/emc/scripts/bin/noport-devs.
In the above example I need to delete the lines till the device ID is "0A30"
I need to delete the lines using sed '1d' /opt/emc/scripts/bin/noport-devs. But dont know how to add in the loop
Last edited by ranjancom2000; 08-31-2011 at 12:24 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:D can anyone tell me how to make this script continue after the *)
I have been reading C and shell scripting and am confused.. I tried to impliment a while (1) and a continue after the *) but I keep getting end of file error..! also there a few different loops that I am not sure which type to... (3 Replies)
Discussion started by: moxxx68
3 Replies
2. Shell Programming and Scripting
Hi
Following is the code . When I give input as Bangalore,its dospalying Welcome to Hitech City. But say , if I select Delhi or US, its not displaying the corresponding message. Its still says Welcome to Hitech City.
Seems that it not entering in the elif part. Please suggest.
#!... (4 Replies)
Discussion started by: pankajkrmishra
4 Replies
3. Shell Programming and Scripting
I want to write a shell script which clones a file, example the name of the file to be cloned is "es" and I want its clone have the name "es1", "es2", "es3", and so on.
Then another program called service needs the former clone as input,
for example service up /home/es1, service up /home/es2... (4 Replies)
Discussion started by: Puntino
4 Replies
4. Shell Programming and Scripting
Hi,
I have a unix shell script that I use to run the jobs, which internally calls a number of other jobs and outputs a log file. I want to call another shell script in the main script that constantly reads the log file that gets appended and emails the user upon each job completion.
for... (5 Replies)
Discussion started by: rudoraj
5 Replies
5. Shell Programming and Scripting
Hi Gurus
I have to write a script which does something like this
/usr/local/gpg2/bin/GPG2 -o arch_696354351_1_23.dbf -d arch_696354351_1_23.dbf.gpg
/usr/local/gpg2/bin/GPG2 -o arch_696354351_1_24.dbf -d arch_696354351_1_24.dbf.gpg
/usr/local/gpg2/bin/GPG2 -o arch_696354351_1_25.dbf... (8 Replies)
Discussion started by: appsdba.nitin
8 Replies
6. Shell Programming and Scripting
Hi all,
i got 2 text file.
file.txt
value.txt
i want use C shell script to write out
while both of the file got different limit....how i going to write it in 1 while loop? (4 Replies)
Discussion started by: proghack
4 Replies
7. Shell Programming and Scripting
Hello World
I need to create a script to verify ports are open from a new jump off node to access over 200 different servers.
I did a little research and put together this code:
!/bin/sh
exec 4<nodes.dat
while read sys <& 4
do
# PING TEST
echo "$sys"
ping $sys 1
# Example of... (1 Reply)
Discussion started by: paris123
1 Replies
8. Shell Programming and Scripting
Hi All
I want to make a script in which i can print prstat command output to a file in regular interval of 1 second
I am using below script for the same
dat=`date '+%d%m%y'`
echo "###########################################################" >>prstat-$dat
date >>prstat-$dat
prstat 1 1... (3 Replies)
Discussion started by: devesh123
3 Replies
9. Shell Programming and Scripting
Having issues with an expect script. I've been scripting bash, python, etc... for a couple years now, but just started to try and use Expect. Trying to create a script that takes in some arguments, and then for now, just runs a pwd command(for testing, final will be command I pass).
Here is... (0 Replies)
Discussion started by: cbo0485
0 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am newer to UNIX scripting. Here is what I am trying to accomplish:
I want to log a timestamp and a row count for a spcific file, out to another file.
Below is my script. WhenI run it, it says that line 6 is missing a ']' which I don't see how, and then echos File Does Not Exist... (5 Replies)
Discussion started by: eanolan
5 Replies
LEARN ABOUT SUNOS
mkdevmaps
mkdevmaps(1M) System Administration Commands mkdevmaps(1M)
NAME
mkdevmaps - make device_maps entries
SYNOPSIS
/usr/sbin/mkdevmaps
DESCRIPTION
The mkdevmaps command writes to standard out a set of device_maps(4) entries describing the system's frame buffer, audio, and removable
media devices.
The mkdevmaps command is used by the init.d(4) scripts to create or update the /etc/security/device_maps file.
Entries are generated based on the device special files found in /dev. For the different categories of devices, the mkdevmaps command
checks for the following files under /dev:
audio /dev/audio, /dev/audioctl, /dev/sound/...
tape /dev/rst*, /dev/nrst*, /dev/rmt/...
floppy /dev/diskette, /dev/fd*, /dev/rdiskette, /dev/rfd*
removable disk /dev/dsk/c0t?d0s?, /dev/rdsk/c0t?d0s?
frame buffer /dev/fb
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
allocate(1), bsmconv(1M), attributes(5)
NOTES
mkdevmaps might not be supported in a future release of the Solaris operating system.
SunOS 5.10 8 Oct 2003 mkdevmaps(1M)