sham-link MIB【済】

iosv-4がManager, iosv-6がAgent

初期設定

PE間でsham-link(オプション特になし)を繋ぐ。

設定

Manager

R4(config)#snmp-server community SNMP RW
R4(config)#snmp-server manager

Agent

R6(config)#snmp-server community SNMP RW
R6(config)#snmp-server host 155.1.146.4 version 2c SNMP ospf
R6(config)#snmp-server host 155.1.146.4 2c snmp
R6(config)#snmp-server enable traps ospf

R6#sh run | s snmp
mmi snmp-timeout 180
snmp-server community SNMP RW
snmp-server chassis-id 
snmp-server enable traps ospf state-change
snmp-server enable traps ospf errors
snmp-server enable traps ospf retransmit
snmp-server enable traps ospf lsa
snmp-server enable traps ospf cisco-specific state-change nssa-trans-change
snmp-server enable traps ospf cisco-specific state-change shamlink interface
snmp-server enable traps ospf cisco-specific state-change shamlink neighbor
snmp-server enable traps ospf cisco-specific errors
snmp-server enable traps ospf cisco-specific retransmit
snmp-server enable traps ospf cisco-specific lsa
snmp-server host 155.1.146.4 2c  snmp
snmp-server host 155.1.146.4 version 2c SNMP  ospf

snmp-server enable traps ospfを入力するだけで自動的にsham-linkの基本的なトラップも有効になる。(エラートラップとかは別途設定が必要)

パケットキャプチャ

iosv-6にてsham-linkを削除してからもう一度接続しなおす。

(config-router)#no area 1 sham-link 6.6.6.6 5.5.5.5
(config-router)#area 1 sham-link 6.6.6.6 5.5.5.5

error traps

R6(config)#no snmp-server enable traps ospf cisco-specific errors config-error
% OSPF: This command also disables previously enabled shamlink config error traps.
R6(config)#do sh run | s snmp                                       
mmi snmp-timeout 180
snmp-server community SNMP RW
snmp-server chassis-id 
snmp-server enable traps ospf state-change
snmp-server enable traps ospf errors
snmp-server enable traps ospf retransmit
snmp-server enable traps ospf lsa
snmp-server enable traps ospf cisco-specific state-change nssa-trans-change
snmp-server enable traps ospf cisco-specific state-change shamlink interface
snmp-server enable traps ospf cisco-specific state-change shamlink neighbor
snmp-server enable traps ospf cisco-specific errors virt-config-error
snmp-server enable traps ospf cisco-specific errors shamlink authentication bad-packet
snmp-server enable traps ospf cisco-specific retransmit
snmp-server enable traps ospf cisco-specific lsa
snmp-server host 155.1.146.4 2c  snmp
snmp-server host 155.1.146.4 version 2c SNMP  ospf

snmp-server enable  traps ospfで自動的に起動し、running-config上ではsnmp-server enable traps ospf cisco-specific errorsでまとめられる。
上記のようにerrorの中の一部だけdisableすることも可能。
その場合、running-config上ではerrorでまとめられることなく分家が表示される。

参考

Chapter: OSPF Sham-Link MIB Support

Reference record for OID 1.3.6.1.4.1.9.10.99


この記事が気に入ったらサポートをしてみませんか?