Huawei
设备使用SNMPv1协议
对于不同型号和版本的设备,配置命令会略有不同。下面以华为S9700 V200R003C00为例介绍设备上需要进行的配置。
system-view
[S9700] snmp-agent sys-info version v1
[S9700] snmp-agent community write private mib-view View_ALL #配置写团体字和mib-view
[S9700] snmp-agent community read public mib-view View_ALL #配置读团体字和mib-view
[S9700] snmp-agent mib-view included View_ALLiso #创建MIB视图
[S9700] snmp-agent trap source MEth0/0/1 #此处应该配置的是网管添加该设备的接口
[S9700] snmp-agent trap enable #使能trap上传告警功能
[S9700] snmp-agent target-host trap address udp-domain 10.137.61.81 params securityname public v1
#10.137.61.81为eSight的IP地址, securityname与读团体字一致。
设备使用SNMPv2c协议
对于不同型号和版本的设备,配置命令会略有不同。下面以华为S9700 V200