最新消息:阿啰哈,本人90后,目前单身,欢迎妹子们来撩!.(。→‿←。)

四种常见厂商交换机SNMP配置实例

Cisco 林志斌 993浏览

snmpwalk -Os -OQ -Ou -v 2c -c public 172.27.1.6 ifDescr | egrep -vi '(vlan|null|loop)'
snmpwalk -Os -OQ -Ou -v 2c -c public 172.27.1.6 ifDescr | egrep -vi '(vlan|null|loop)' | wc -l
number of interfaces

1、华为
核心:
snmp-agent
snmp-agent local-engineid 000007DB7FFFFFFF00006FAC
snmp-agent community read amtt-ro
snmp-agent community write amtt-rw
snmp-agent sys-info contact R&D Nanjing, Huawei Technologies co.,Ltd.
snmp-agent sys-info location Nanjing China
snmp-agent sys-info version all
snmp-agent trap enable basetrap

接入:Quidway 2326
admin
edp0574
sys
snmp-agent
snmp-agent sys-info version v2c
snmp-agent community read amtiumro
snmp-agent community write amtiumwr
snmp-agent trap enable
y
snmp-agent target-host trap address udp-domain 192.168.100.254 params securityname amtiumwr
quit
save
y
q

astor
su
astor
sys
snmp-agent
snmp-agent sys-info version v2c
snmp-agent community read public
snmp-agent community write private
quit
save
y
quit

楼层:
snmp-agent
snmp-agent local-engineid 000007DB7F0000010000043E
snmp-agent community read amtt-ro
snmp-agent community write amtt-rw
snmp-agent sys-inf oversion all

2、思科
核心:
snmp-server community amtium ro
snmp-server community amtium wr
snmp-server trap-source Vlan1000
snmp-server enable traps snmp authentication linkdown linkupcoldstart warmstart
snmp-server enable traps mac-notification
snmp-server host 192.168.100.100 amtt-ro
snmp ifmib ifindex persist

汇聚:Cisco 3560
cisco
en
cisco
s cd ne
conf t
snmp-server community amtium-ro ro
snmp-server community amtium-rw rw
snmp-server host 192.168.200.201 amtium-rw  snmp
do wr
end
exi

楼层:
snmp-server community amtt-ro RO
snmp-server community amtt-rw RW
snmp-server trap-source Vlan1000
snmp-server enable traps snmp authentication linkdown linkupcoldstart warmstart
snmp-server enable traps mac-notification change movethreshold
snmp-server host 192.168.100.100 amtt-ro
snmp
snmp ifmib ifindex persist

3、H3C
核心:
snmp-agent
snmp-agent local-engineid 800063A2033822D6279455
snmp-agent communityread public
snmp-agent communitywrite private
snmp-agent sys-infoversion all
snmp-agent target-host trap address udp-domain 172.27.16.200 params securityname public
snmp-agent trap enable default-route
snmp-agent trap source Vlan-interface200

楼层:
snmp-agent
snmp-agent local-engineid 800063A23822D6B719E86877
snmp-agent community read pUblIc
snmp-agent community write pRivaTe
snmp-agent sys-infoversion all
snmp-agent target-host trap address udp-domain 172.27.16.200 params securityname public
snmp-agent trapsource Vlan-interface200

4、HP
核心:
snmp-server community"public" unrestricted

楼层:
snmp-server community"public" Unrestricted

转载请注明:林志斌 » 四种常见厂商交换机SNMP配置实例

发表评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址