华为交换机-SNMP配置

1.1     SNMP基础配置

<switch>system-view

进入交换机的配置模式

 

[switch]snmp-agent

使能snmp服务

 

[switch]snmp-agent community read Huawei

配置community 只读属性为huawei

 

[switch]snmp-agent community write Huawei

配置community 可写属性为huawei

 

[switch]snmp-agent sys-info version all

配置版本为所有

[switch]snmp-agent sys-info contact Mr.Wang-Tel:3306

设置联系方式

 

[switch]snmp-agent sys-info location 3rd-floor

设置设备位置

1.1     配置SNMP trap

snmp-agent trap enable

使能snmp的trap功能

 

snmp-agent target-host trap address udp-domain 129.102.149.23 udp-port 5000 params securityname public

允许向网管工作站(NMS)129.102.149.23发送Trap报文,使用的团体名为public

 

display current-configuration

展示当前配置信息

 

转载于:https://www.cnblogs.com/dyh004/p/9253108.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值