03-07-2017 03:47 AM
I Have list of 1800 zones for 900 servers with a active zone config on 6510B SAN switch. Now I have decommed some servers among these.
I need command to list the zone details which have offline servers in it.
I tried, zone --validate | grep "alias"
But as I have lots of servers(aroung 200) it is more complicate for me to grep this.
Can you please give me a command to get this information.
03-16-2017 05:31 AM
It all depends on the format of your "zone --validate" command, but the below would list all WWN
zoneshow --valiate | grep "\\*" | grep ":"
If you interested in the aliases, then something like the below might work
zoneshow --validate | grep -B1 "\\*" | grep alias: