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
"cfgactvshow" command, you get the output of all active zone.
thanks Antonio, but unfortunately with 100+ zones it is not even close to the solution of listing only zones which are not in an active configuration :(
'zoneshow' at the top will list all the aliases, zones, etc. At the bottom under "Effective Configuration' are all the active zones.
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.
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