本文使用的交换机型号是SICOM2024M-24T-HV
#1.登录
telnet 交换机IP
#输入用户名密码
User:admin
Password:***
Welcome To Telnet.
Press RETURN to get started.
#2.全局模式
SWITCH>en
#输入用户名密码
User:admin
Password:***
#3.配置模式
SWITCH#config t
#4.开启snmp
SWITCH(config)#snmp enable
#5.开启v2版本
SWITCH(config)#snmp v2-start enable
#6.设置只读团体名为public,团体名可以根据需要更改
SWITCH(config)#snmp community public ro
#7.退出配置模式
SWITCH(config)#exit
#8.保存配置
SWITCH#save
Don't turn off power, saving config ......
Save config successfully. #配置成功
#9.查看团体名
SWITCH#show snmp community
Read only community string: public
Read write community string: private
SWITCH#
#使用snmpwalk 命令,有数据返回就可以了
snmpwalk -v 2c -c 第6步设置的团体名 交换机IP