各类交换机的SNMP配置

CISCO设备
router>                            
router> enable                                        进入路由器是用户模式
router# conf terminal                               进入路由器的全局配置模式
#snmp-server community cisco ro         (只读) ;配置只读通信字符串
#snmp-server community secret rw        (读写) ;配置读写通信字符串
#snmp-server enable traps                配置网关SNMP TRAP
#snmp-server host 10.254.190.1 rw        配置网关工作站地址

华为交换机SNMP配置
<switch>
<switch>system-view                   进入交换机的配置模式、
[switch]snmp-agent community read huawei 配置community 只读属性为huawei
[switch]snmp-agent community write huawei配置community 可写属性为huawei
[switch]snmp-agent sys-info version all      配置版本为所有

港湾交换机配置TELNET SNMP
启动SNMP服务的配置步骤如下:
配置步骤
步骤1 service snmp enable 使能SNMP agent服务
步骤2 service snmp trap enable 使能SNMP trap服务
步骤3 config snmp community readonly <string> 设置SNMP只读权限认证密码
步骤4 config snmp community readwrite <string> 设置SNMP读写权限认证密码
步骤5 config snmpauthentrap [enable|disable] 使用enable设置当SNMP认证失败时发送trap
步骤6 show service 显示SNMP是否启动
步骤7 show snmp community-string 显示当前的权限认证密码

配置SNMP trap
交换机上的SNMP agent会产生很多种类的trap信息,如启动(start)、接口(interface)、RMON(远程监控)等。可以在交换机上配置SNMP trap来指定一台或多台trap接收站(trap receiver),并指定哪些种类的trap信息会发送到这些接收站。
配置步骤
步骤1 service snmp enable 使能SNMP agent服务
步骤2 service snmp trap enable 使能SNMP trap服务
步骤3 config snmp trap type [all|interface|bgp|ospf|vrrp|stp|rmon|start|auth|pppoe|isis] [on|off] 配置发送trap的类型
步骤4 config snmp trapreceiver add <A.B.C.D> version [v1|v2c] {community <string>}*1 添加一个trap接收站
步骤5 config snmp trapreceiver add <A.B.C.D> version [v1|v2c] {community <string>}*1 添加另一个trap接收站
步骤6 show snmp trap type 显示系统允许发送的trap种类
步骤7 Show snmp trapreceiver 显示已经添加的所有trap接收站

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值