Clean Up Zone Entries in Brocade Switches Using Expect / AWK
Typically after some migration work you may end up with switch configuration on your brocades which is out of synch and in some instances you may have duplicate zone entries. Below is a simple script that will take a log file which contains duplicate zone entries. The script will parse this file, connect to a switch and issue the corresponding commands to remove the duplicate zone entries. The problemzones file may look like 2013/09/22-14:43:25, [ZONE-1010], 52, FID 128, WARNING, SWITCH01, Duplicate entries in zone (ZONE2) specification. 2013/09/22-14:43:25, [ZONE-1010], 51, FID 128, WARNING, SWITCH01, Duplicate entries in zone (ZONE1) specification. 2013/09/22-14:43:25, [ZONE-1010], 51, FID 128, WARNING, SWITCH01, Duplicate entries in zone (ZONE3) specification. 2013/09/22-14:43:25, [ZONE-1010], 51, FID 128, WARNING, SWITCH01, Duplicate entries in zone (ZONE4) specification. 2013/09/22-14:43:25, [ZONE-1010], 51, FID 128, WARNING, SWITCH01, Duplicate entries in zone (ZONE5)