Posted by: kezhong | January 7, 2011

How to verify snmp is working with snmpwalk command

Our company had just bought 50 switches for datacenter. And we wanted to know if they support SNMP, because we need to monitor them using cacti in the future.

The default IP of these switches is 192.168.0.1. I set my one of NICs’ IP to 192.168.0.2. Open the browser, login and enter configuration. Check if SNMP Enabled, and read Community. The default Community is “public”.

Execute the snmpwalk command as below, if the output is similar to the following, it will prove snmp is working.
# snmpwalk -Os -v 1 -c public 192.168.0.1 system
sysDescr.0 = STRING: TENDA 16 Port Gigabit Switch – V2.0
sysObjectID.0 = OID: zeroDotZero
sysUpTimeInstance = Timeticks: (209500) 0:34:55.00
sysContact.0 = STRING: http://www.tenda.com.cn
sysName.0 = STRING:
sysLocation.0 = STRING: Shenzhen, China
sysServices.0 = INTEGER: 3


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: