Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

Re: How to verify MAC-Move or Enable MAC-Move logs

$
0
0

Hi Folks,

Just my 2 cents on this…

 

I love to analyze the logs on the box with inbuilt shell as below,

 

start shell

 

% cat mac

Mar 18 21:33:14 2018 vlan_name TEST mac 00:05:86:74:e5:ef was learned on ae10.0 with flags: 0x2001f

Mar 18 21:33:14 2018 vlan_name TEST mac 00:05:86:74:e5:ef was deleted from ae10.0 with flags: 0x1000

Mar 18 21:33:14 2018 vlan_name TEST mac 00:05:86:74:e5:ef was learned on ae10.0 with flags: 0x2001f

Mar 18 21:33:14 2018 vlan_name TEST mac 00:05:86:74:e5:ef was deleted from ae10.0 with flags: 0x1000

Mar 18 21:33:14 2018 vlan_name TEST mac 00:05:86:74:e5:ef was learned on ae10.0 with flags: 0x2001f

Mar 18 21:33:14 2018 vlan_name TEST mac 00:05:86:74:e5:ef was deleted from ae10.0 with flags: 0x1000

 

% cat mac | awk '{print $1"-"$2,$4, $5"-"$6,$8,$10,"interface "$12}' | sort | uniq -c

   3 Mar-18 2018 vlan_name-TEST 00:05:86:74:e5:ef deleted interface ae10.0

   3 Mar-18 2018 vlan_name-TEST 00:05:86:74:e5:ef learned interface ae10.0

%

 

These one-liners will give us with some good pointers during troubleshooting a live box with multiple mac-moves…

 

Juniper boxes are really cool… for automation

 


Viewing all articles
Browse latest Browse all 10307

Trending Articles