grep required data from two columns
hello,
I have output from a command and I need to filter some info out of that. I tried awk command but I can not grep what I am looking for:
Following is the output and I need to capture "disabled" for each volume from first column and report:
# vol status
Volume State Status Options
vol8 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
vol9 online raid_dp, flex nosnap=on, snapmirrored=on,
snapmirrored create_ucode=on,
read-only convert_ucode=on,
fs_size_fixed=on,
guarantee=volume(disabled)
vol4 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
vol5 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
vol6 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
vol7 online raid_dp, flex nosnap=on, snapmirrored=on,
snapmirrored create_ucode=on,
read-only convert_ucode=on,
fs_size_fixed=on,
guarantee=volume(disabled)
vol0 online raid_dp, flex root
vol1 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
vol2 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
vol10 online raid_dp, flex nosnap=on, snapmirrored=on,
snapmirrored create_ucode=on,
read-only convert_ucode=on,
fs_size_fixed=on,
guarantee=volume(disabled)
vol3 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on, guarantee=none,
read-only
vol11 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
logvol online raid_dp, flex nosnap=on, snapmirrored=on,
snapmirrored create_ucode=on,
read-only convert_ucode=on,
fs_size_fixed=on,
guarantee=volume(disabled)
vol12 online raid_dp, flex snapmirrored=on,
snapmirrored fs_size_fixed=on,
read-only guarantee=volume(disabled)
So I need to see the following as output:
vol8 guarantee=volume(disabled)
vol9 guarantee=volume(disabled)
vol4 guarantee=volume(disabled)
and so on ........
really appreciate your help.