Would you like to learn how to enable Cisco SNMP version 3 feature using the command-line? In this tutorial, we are going to show you all the steps required to configure the SNMPv3 service on a Cisco Switch 2960 or 3750 using the command-line.

Cisco Switch Playlist:

On this page, we offer quick access to a list of videos related to Cisco Switch.

Don’t forget to subscribe to our youtube channel named FKIT.

Cisco Switch Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Cisco Switch.

Tutorial – Enable Cisco SNMP Version 3

First, you need to access the console of your Cisco Switch.

In our example, we are going to use an Opensource software named Putty and a computer running Windows.

The Putty software is available on the putty.org website.

After finishing the download, run the software and wait for the following screen.

Putty windows

To access the console of a Cisco Switch model 2960 or 3750, you will need to select the Serial Connection category and use the following options:

• Connection type: Serial
• Serial line: COM1
• Speed: 9600

If COM1 does not work you will need to try to use COM2, COM3, COM4 or the next.

cisco switch terminal settings

Using either the console, telnet or ssh, connect to the command-line of your switch and log in with a user who has administrative privileges.

On the prompt screen, enter the administrative login information.

After a successful login, the console command-line will be displayed.

Switch>

Use the enable command to enter the privilege mode.

Switch> enable

Use the configure terminal command to enter the configuration mode.

Switch# configure terminal

Use the following command to enable and configure the Cisco SNMP version 3.

Switch(config)# snmp-server group Universe7 v3 priv
Switch(config)# snmp-server user goku Universe7 v3 auth sha 0123456789 priv aes 128 9876543210
Switch(config)# snmp-server contact Zamasu <zamasu@dbsuper.com>
Switch(config)# snmp-server location Universe10 – IT Room
Switch(config)# exit

A group name universe7 was created and configured to use encryption and authentication to secure the switch SNMP communication.

A username goku was created and configured to use the password 0123456789 for authentication and the password 9876543210 to encrypt the Switch SNMP communication.

The contact person responsible for this Switch was configured as Zamasu.

The location of the equipment was configured as the IT Room of Universe 10.

Don’t forget to save your switch configuration.

Switch# copy running-config startup-config

You have successfully enabled the Cisco SNMP version 3 service.

You have successfully configured the Cisco V3 service.

To test your CiscoV3 configuration, use the following commands on a computer running Ubuntu Linux.

# apt-get install snmp
# snmpwalk -v 3 -u goku -l authPriv -a SHA -A 0123456789 -x AES -X 9876543210 192.168.0.1

Here is a small sample of the SNMPWALK output.

iso.3.6.1.2.1.1.1.0 = STRING: “Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Fri 16-Dec-16 21:27 by prod_rel_team”
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.9.1.1208
iso.3.6.1.2.1.1.3.0 = Timeticks: (77872563) 9 days, 0:18:45.63
iso.3.6.1.2.1.1.4.0 = STRING: “Zamasu <zamasu@dbsuper.com>”
iso.3.6.1.2.1.1.5.0 = STRING: “FKIT-SW01.FKIT.LOCAL”
iso.3.6.1.2.1.1.6.0 = STRING: “Universe10 – IT Room”

You have successfully tested the Cisco SNMP version 3 communication using a computer running Linux.