Set Snmp v2 on Cisco Router&Switch’s

Set SNMP V2 in cisco Device:

#conf t

>snmp-server community MOHA RO
do wri


# do sh run |s snmp
  • with this command we find interface index’s for monitoring.using this for monitoring Download/Upload parameter:
#show snmp mib ifmib ifindex


  • with this command send ping and size of packet to destination IP:
#ping 'IP' repeat 100 size 200


  •  In Linux distribute:
# ping 'ip' -s  2000


  • snmpwalk command(in Linux):

we can get all of information about a device by snmpwalk in linux:

snmpwalk -v2c -c "community" clientIP

for example :snmpwalk -v2c -c  “MOHA”

Leave a Reply

Your email address will not be published. Required fields are marked *