Input file1
zone: BAU_SERVER1
C0:50:76:01:C6:20:00:12; 50:06:01:69:3B:20:14:8B;
50:06:01:60:3B:20:14:8B
zone: BAU_SERVER2
C0:50:76:01:C6:20:00:08; 50:06:01:69:3B:20:14:8B;
50:06:01:60:3B:20:14:8B
zone: BAU_SERVER3
C0:50:76:01:C6:20:00:06; 50:06:01:69:3B:20:14:8B;
50:06:01:60:3B:20:14:8B
Effective configuration:
cfg: Fabric_A
zone: BAU_SERVER1
c0:50:76:01:c6:20:00:12
50:06:01:69:3b:20:14:8b
50:06:01:60:3b:20:14:8b
50:00:09:72:08:2D:95:10
zone: BAU_SERVER2
c0:50:76:01:c6:20:00:08
50:06:01:69:3b:20:14:8b
50:06:01:60:3b:20:14:8b
zone: BAU_SERVER3
c0:50:76:01:c6:20:00:06
50:06:01:69:3b:20:14:8b
I have another ALIAS file ( for example called ALIAS1)..with this syntax
50:06:01:60:3b:20:14:8b,host1
50:06:01:69:3b:20:14:8b,host2
50:00:09:72:08:17:8d:40,host3
50:00:09:72:08:2D:95:10,host4
50:06:01:69:3b:20:10:67,host5
...
Required Output ( basically want to read the input below Effective configuration: )
Fabric_A,BAU_SERVER1,c0:50:76:01:c6:20:00:12,host1,host2,host4
Fabric_A,BAU_SERVER2,c0:50:76:01:c6:20:00:08,host1,host2
Fabric_A,BAU_SERVER3,c0:50:76:01:c6:20:00:06,host1
If there is no alias in the ALIAS file ,print the orignal number
Thanks
Mickey