[Optional] Simple Network Management Protocol (SNMP)

Table of Contents

1. Reference only: Configuring SNMP Agent on Cisco and Vyatta
2. Install the Net-SNMP Agent
3. Command-Line Clients from Net-SNMP
3.1. snmptranslate
3.2. snmpget and snmpgetnext
3.3. snmpwalk and snmpbulkwalk
3.4. snmptable
3.5. Other commands…
4. Management Information Bases (MIBs)
5. Short Term Graph Patterns
6. Long-Term Graph Trending
7. Trap Notifications
8. Optional: Installing the Microsoft Windows SNMP Agent
9. Self-Assessment
10. Final Words

In this lab, we shall use our Server1 and Client1 machines to explore the use of the Simple Network Management Protocol (SNMP) for monitoring network devices such as routers and hosts. We shall explore concepts such as how SNMP works, its conceptual model, and how the data is given meaning using Management Information Bases (MIBs). We shall briefly consider some different tools for processing the data.

We shall also enable SNMP monitoring of a server using the Net-SNMP package. This allows us to monitor a host, rather than just network devices. Finally, we shall extend an extensible SNMP agent so we can publish information of our choosing using SNMP.

Please do the first section of the assessment before coming to the lab. This is to ensure you review the conceptual model and architecture that you learned during the corresponding lecture. Once you have done this, please proceed with the rest of the lab.

1. Reference only: Configuring SNMP Agent on Cisco and Vyatta

You don’t need to do this for this lab, as you don’t have a Vyatta router in your network with Server1 and Client1. Therefore, it is for reference only.

Here are the basic commands you would use to configure an SNMP agent on Cisco IOS and Vyatta. These are for reference only; compare them with the following section, but you are not expected to perform anything for this section in the lab. First, here are some basic commands for Cisco devices, just to get you started, which would be done in configuration mode. For production use, you would also want to consider restricting access using ACLs (where queries can come from) and views (what parts of the tree can be seen, depending on the submitted community string).

snmp-server community COMMUNITY ro|rw 
snmp-server location LOCATION
snmp-server contact CONTACT

And here are the commands for Vyatta, also to be done in configuration mode.

set service snmp community COMMUNITY authorization ro|rw
set service snmp location LOCATION
set service snmp contact CONTACT