How to use Simple Network Management Protocol (SNMP)

How to use Simple Network Management Protocol (SNMP)



SNMP or Simple network Management Protocol is a networking protocol used for managing and monitoring of network-connected devices in IP networks. The devices can be routers, switches, firewalls, gateways, servers, printers etc. All SNMP messages are transported via UDP (User Datagram Protocol). The SNMP agent receives requests on port 161.

 

1.2           How to configure SNMP on the switch using CLI?

Telnet or ssh to the switch using Putty or the command line. If using command line use either of the following command.

 

ssh admin@<access_ip_address_of_the_switch>

Or

telnet <access_ip_address_of_the_switch>

 

When prompted for username and password use the following default credentials:

Username: admin

Password: admin

 

Put in the following commands to enable SNMP on the switch:

 

Switch>enable

Switch#configure terminal

Switch(config)#security-manage snmp enable

Switch(config)#snmp community <community_name(userdefined)> {ro | rw}

Switch(config)#exit

 

(ro stands for read only and rw stands for read write)

 

 

Checking SNMP information, use the below command

 

Switch#show snmp system information

 

This will be the output.


 

 

1.3           How to configure SNMP using the GUI?

In any browser type in the IP address of the switch and enter the default credentials as shown above (if user and password not set).

 

Go to System -> SNMP Community, and give a community name and choose Read and Write Purview and click on Apply.

 

 

Here in the above picture, we have configured an SNMP community named ‘sw6012’ with read-write purview.

 

Finally go to Tools and save the configuration done.

 

2         Testing SNMP using Linux SNMP Management server

On the Linux server put in the following commands to install SNMP management server:

 

sudo apt-get update

sudo apt-get install snmp snmp-mibs-downloader

 

Make sure the server and the switch are in the same subnet.

To test if SNMP is working or not put in the following command:

 

snmpwalk -v2c -c <community_string> <ip_address_of_the_switch>

 

If the output at the end is similar to the following, then SNMP is working on the device

​

    • Related Articles

    • How to use the WP6012 Ethernet switch CLI

      Basic commands 1.                  Modes in CLI There are three modes in the switch, namely normal/unprivileged, privileged and configuration modes. There are some commands or settings that can alter the switch’s role in the network and hence can ...
    • How to login a WP6012-8POE Ethernet Switch

      1. Different methods to log in to Switch console Connect the switch and one’s PC with RJ45 LAN cable. One can use any RJ45 port on switch. The default switch IP will be 192.168.0.1 and subnet mask 255.255.255.0. Note: The switch and one’s system ...
    • Manual - WX7028/WX7052 CLI Document

      CLI manual for the WX7028-410G and WX7052-410G
    • Manual - activeARC Cloud Management System

      This is the manual for the cloud management system
    • How to: Configure Port Security - WP6010

      Port Security   1.    What is Port security? Port Security helps secure any network by preventing unknown devices from forwarding packets. One can limit the number of MAC addresses on a given port. The ‘switchport security’ feature offers the ability ...