Brocade Fibre Channel Networking Community

Expand all | Collapse all

list inactive members / zones

  • 1.  list inactive members / zones

    Posted 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


    #BrocadeFibreChannelNetworkingCommunity


  • 2.  Re: list inactive members / zones

    Posted 11-04-2015 02:02 AM

    "cfgactvshow" command, you get the output of all active zone.

     


    #BrocadeFibreChannelNetworkingCommunity


  • 3.  Re: list inactive members / zones

    Posted 11-04-2015 05:05 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 :(

     


    #BrocadeFibreChannelNetworkingCommunity


  • 4.  Re: list inactive members / zones

    Posted 11-09-2015 09:45 AM

    'zoneshow' at the top will list all the aliases, zones, etc. At the bottom under "Effective Configuration' are all the active zones.


    #BrocadeFibreChannelNetworkingCommunity


  • 5.  Re: list inactive members / zones

    Posted 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.


    #BrocadeFibreChannelNetworkingCommunity


  • 6.  Re: list inactive members / zones

    Posted 11-16-2015 12:16 PM


  • 7.  Re: list inactive members / zones

    Posted 11-23-2015 08:06 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

     

     


    #BrocadeFibreChannelNetworkingCommunity


  • 8.  Re: list inactive members / zones

    Posted 11-23-2015 09:25 AM
    admin doesn't have access to all the shell commands. try login as root.
    #BrocadeFibreChannelNetworkingCommunity