Table of Contents
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.
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).
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
set service snmp contact