1、配置Vlan 1的IP

    <S5700>system-view

    [S5700]interface vlanif 1

    [S5700-vlanif1] ip address 192.168.0.11 255.255.255.0

    [S5700-vlanif]quit

2、 [S5700]snmp-agent sys-info version v1      这个v1是对应的cacti中的snmp协议版本;

    [S5700]snmp-agent community read 123456    这个123456要与Cacti中设置一致

    [S5700]snmp-agent trap enable

    [S5700]snmp-agent target-host trap address udp-domain 192.168.0.12 udp-port 161 params securityname 123456 v1

    [S5700]quit

    <S5700>save 保存

    <S5700>display current-configuration    查看当前配置

3、恢复交换机默认设置

    <S5700>reset saved-configuration    注意:使用此命令时系统有提示,请根据提示操作

    <S5700>reboot                       重启交换

整个SNMP协议开启过程设置完毕;