Turn on suggestions
![]() Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
|
11-04-2015 01:29 AM - edited 11-04-2015 01:29 AM
Hi,
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
best regards,
Tomek
11-04-2015 02:01 AM
"cfgactvshow" command, you get the output of all active zone.
11-04-2015 05:04 AM
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 :(
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
example output:
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-16-2015 12:15 PM
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
MIS-A-EMC8510:admin>
So this somehow doesn't work for me.
My FOS is 7.4.0a
11-23-2015 09:24 AM