11-04-2015 01:29 AM - edited 11-04-2015 01:29 AM
I probably have very silly question, but surprisingly I cannot find the answer. How can I list the list of 'inactive zones' from CLI ?
In webtools zone admin it's quite simple, inactive zone is put in different colour. But from CLI I have no idea how to quickly identify such ones?
* by 'inactive zones' I mean zones that are not added (or removed) from active configuration
11-09-2015 09:45 AM - edited 11-09-2015 09:49 AM
'zoneshow' at the top will list all the aliases, zones, etc. At the bottom under "Effective Configuration' are all the active zones.
11-16-2015 02:49 AM
I have worked out some solution, probably not perfect, but seems to work just fine:
cfgshow | grep "zone:" | sort | uniq -c
2 zone: my_first_zone
2 zone: my_second_zone
1 zone: my_third_zone
I'm not sure if it will work with all versions of fabric os...
if line: "zone: my_third_zonee" is mentioned once it means it is mentioned in 'defined configuration' section, but not in 'effective configuration'. It is mentioned twice, it means it is in both defined and efffective configuration.
Probably not perfect solution but it seems sufficient enough.
11-23-2015 08:05 AM
MIS-A-EMC8510:admin> cfgshow | grep "zone:" | sort | uniq -c
rbash: sort: command not found
rbash: uniq: command not found
So this somehow doesn't work for me.
My FOS is 7.4.0a