Finding Stale Brocade Zone Configurations
I recently wrote about a situation where I was creating a zoning configuration and had to figure out which fiber channel devices were active . After we finished that project, we decided that we should go through and actually remove the inactive aliases and zones. We had a list of active devices, so we were all ready to move forward and say "delete everything that isn't on this list!". That'll work great, right? Of course not; we needed the opposite. "Delete everything that is on this list" is a far better instruction that is way less likely to lead to painful mistakes. Even better is "run these commands to delete all of these unnecessary objects" and I know one good way to generate such a list of commands: a script (I feel like I'm developing a battle-cry...). I put together a script that does a few basic things. First, it uses the nsshow command to get a list of all of the active WWNs on a given Brocade fiber switch. Then, it compa...