counter

tk masu diary

日々感じた事などをメモってます。youtubeは「tk masu」で動画アップ中〜

Catalystのmac関連

とある案件でmacテーブル閾値を超えたことを検知する必要がありました。
これを実現するには
・telnetでshow Mac address xxxx
snmp MIBでmacじょうほを採取
・閾値を超えたらtrapで飛ばす。

telnetはどこかの作業とバッティングする可能性があるのであまりやりたくない。

mibはmacテーブルをそのまま引っ張ってくつので、採取したあとにソートなどして数える必要がある。

trapは受け取るサーバがいればそれでok。

結果trapを勧めることに。

Switch(config)# mac address-table notification
Switch(config)# mac address-table notification interval 60
Switch(config)# mac address-table notification history-size 100
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# snmp trap mac-notification added