Search Results

Search: Posts Made By: prodigy06
890
Posted By prodigy06
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...
1,488
Posted By prodigy06
appending a command to print a file in a comma delimited format
Hi everyone,

i have a file that I had grep'd from something else lets call it file1.txt which consists variable files and lines due to different scenarios/inputs

1782
9182
fe35
ac67

...
2,431
Posted By prodigy06
great, all of the suggestion works! thanks...
great, all of the suggestion works! thanks everyone.

can some one tell me what is NR for in awk? just for my future reference.

from the output above how can i also filter my final output to be...
2,431
Posted By prodigy06
disregarding space when using awk print
Hi guys,

I have this output, wherein the device is variable and changing values


Device Identifier Type Dir:P
------ ---------------- ----- ----------------
3065 ...
1,612
Posted By prodigy06
do you mean to do it like this? DEV=$1 ...
do you mean to do it like this?


DEV=$1

symdg show $DEV -sid 123 >> showdev.txt

awk '
/----/ { next; }
/Meta Device Members/ {
snarf = 1;
split( $(NF-1), a, "("...
1,612
Posted By prodigy06
filtering out certain output
hi guys, i have a long output and cant figure out a flexible way to show the meta members from a device. please help. some device have 2,4 or 8 meta members but for this example i have 4 meta...
1,337
Posted By prodigy06
yes, its Solaris 9
yes, its Solaris 9
1,337
Posted By prodigy06
it worked, thanks! what would be difference /...
it worked, thanks! what would be difference / specific application wherein nawk is better than awk??
1,337
Posted By prodigy06
print user variable input
this may be basic thing for everyone here, but i cant push awk to print the variable user input which is INS, please help.

code:

INS=$1

printf '\n'
symdg list | grep $INS-clone | awk -v...
2,616
Posted By prodigy06
Thanks a lot Rudic, im good now
Thanks a lot Rudic, im good now
2,616
Posted By prodigy06
here is the code again, seems it doesnt see the...
here is the code again, seems it doesnt see the NULL values in the Att column. the last column of my desired output should either be (M) or a space.

symdg show $INS-${SNAP} | egrep "D-" | awk...
2,616
Posted By prodigy06
sorry.. here is the source where i am filtering. ...
sorry.. here is the source where i am filtering.


----------------------------------------------------------------------------------
...
2,616
Posted By prodigy06
column 5 is the Attribute tab where it displays...
column 5 is the Attribute tab where it displays "(M)" which is in line 15:

D-data7 N/A 03C1 RAID-5 (M) RW 120675

and this is my current output,...
2,616
Posted By prodigy06
@rudic: this is what it gave me code: symdg...
@rudic: this is what it gave me
code:
symdg show $INS-${SNAP} | egrep "D-" | awk 'BEGIN {print "NAME DEV id Size Meta"}{print "%12s %5s %7s %3s\n",$1,$3,$NF,$5}'

output:
NAME ...
2,616
Posted By prodigy06
output spacing and formatting
here is my code and output, i just want to display it clearly to the users. how can I fix the spacing or put some headers like NAME, DEV id, Size, Meta

code:
symdg show $INS-${SNAP} | egrep "D-"...
2,095
Posted By prodigy06
thanks a lot
thanks a lot
2,095
Posted By prodigy06
awesome! one last question, what if I want all...
awesome! one last question, what if I want all the Device Config to be displayed and not just the VDEVS?
2,095
Posted By prodigy06
i got this Pamu awk '{if($0 ~ /Dev...
i got this Pamu

awk '{if($0 ~ /Dev Config/){a=1}else if($0 ~ /VDEV/ && $1 ~ /^[0-9]/){if(! X[a]){X[a]=$1;a++;if(a > max){max=a}}else{X[a]=X[a]" "$1;a++}}}END{ > for(i=1;i<max;i++){print X[i]}}'...
2,095
Posted By prodigy06
thanks for the help but the outputs are in one...
thanks for the help but the outputs are in one straight column, the closest one i need is Pamu's solution but this is the output, how can i exclude the words?

Remotely-associated 1240 0952...
2,095
Posted By prodigy06
awk printing question
im using awk as a part of my tasks to filter out stuff for reporting details in our storage environment, supposed i filtered out these details (sorry, this might be long.)


bash$ > for x in 1 2;...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 10:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy