Extension: Introduction To SNMP
Extension: Introduction To SNMP
MAY–JUNE 2003
Extension
A Technical Supplement to Control Network
Introduction to SNMP
By George Thomas, Contemporary Controls “trap” be set by the agent. A trap is simply a report to be
issued in the future which is triggered when a set of condi-
INTRODUCTION tions are met, similar to an alarm. The trap is triggered upon
an event and once it occurs, the agent immediately reports
One of the numerous acronyms from the Internet world the occurrence without a poll from the manager. This is no
is SNMP which stands for Simple Network Management different from having a remote I/O device report on a
Protocol. Of course, anything termed “simple” is suspect. “change of state.” The NMS that receives the trap can then
SNMP is an Internet protocol for managing devices on take appropriate action such as notifying personnel of the
IP networks. Usually people think SNMP only applies to event. In this situation, the NMS is acting as a server by
managed Ethernet switches, but it can be applied to any gathering data from agents and providing information on the
device that supports IP or TCP protocols. This includes state of devices to clients.
printers, workstations, servers, modems and even Manager Agent
industrial I/O devices. SNMP introduces us to the con-
cept of “managed” devices which offers numerous
advantages over unmanaged devices and could prove SNMP SNMP
Application Application
beneficial in industrial applications. As more and more
devices embrace Ethernet, adding SNMP support can UDP UDP
lead to greater advantages.
IP IP
(No part of the Extension may be reproduced without the written consent of Contemporary Controls.) 1
The additional commands for SNMPv2 and SNMPv3 are OBJECT ID
as follows:
Managed objects within an agent are organized into a
• get bulk tree-like hierarchy similar to the way files and folders are
• notification used to represent the contents of a hard disk. In fact, some
NMS software displays the management objects in a graphical
• inform fashion as if they were indeed files. However, the nomenclature
• report is different. Managed objects are identified as a series of
integers separated by dots representing the nodes on a tree.
Naming begins at the root, followed by branches and ending
Query from manager in leaves. Let me give an example. In FIG. 3 you will see
the tree structure for finding MIB-2. It begins at the root on
Manager Response from agent Agent the left. There are three branches, but we are interested only
in iso(1). From iso(1) we have three more branches, but we
Trap info from agent are only interested in org(3). Next there are six more branches,
but we follow dod(6). From this branch we go to internet(1).
At this node we are at the base of all SNMP MIBs. The short
FIG. 2 — A manager polls an agent in a similar fashion to a form for representing where we are is 1.3.6.1 or we could
master/slave protocol. say iso.org.dod.internet.
To understand how the commands are applied, we need At this point we could follow either mgmt(2) or
to introduce an integral component in the process: the private(4) branches. If we follow the mgmt(2) branch, we
managed objects that reside in the agent. will find standard MIBs. If we follow the private(4) branch,
we will find vendor-specific MIBs. This is where a vendor
MANAGED OBJECTS can register unique products with corresponding unique
Each agent consists of a collection of managed objects management information. For example, a UPS would have
that explain the capabilities and behavior of the agent in an much different information to share than an Ethernet switch.
abstract form. This is no different from the method by which We will follow the mgmt branch and locate MIB-2 which is at
a DeviceNet device is described by a collection of objects. 1.3.6.1.2.1 or you could simply say mgmt(1) which uniquely
The objects supported by a DeviceNet limit switch differ from identifies its location.
that of a DeviceNet We have found
pneumatic manifold MIB-2, but we do not
block; however, all know the location of the
DeviceNet devices individual managed
support some common objects. It’s best to
objects. This is the remember that MIB-2 is a
same situation with collection of objects and
agents. All SNMP each object description is
agents must support identified in RFC 1213. If
a common set of we study RFC 1213, we
managed objects, will learn there are ten
called a Management managed object groups
Information Base in MIB-2 as explained on
(MIB). But an agent page 3.
must support, at a
minimum, what is The first object group
defined in is system. The system
RFC 1213: MIB-2. group lets you enter the
physical location of the
You might ask device, the name of the
what happened to device and who is
MIB-1? In the ever- responsible for the
changing Internet device. Therefore, if the
world, MIB-2 super- FIG. 3 — The identification of objects follows a hierarchical structure.
device is queried by a
seded MIB-1. Before management system, it could say it was tagged UPS-1, locat-
we examine the ed in the pump house and if there is trouble to call Randy in
details of MIB-2, we need to understand the structure and the Instrument Shop. Another attribute of this object is up-
naming convention of MIBs. The Structure of Management time. It will continue to accumulate time until it is unpowered.
Information (SMI) is described in RFC 1155. First, we will
study the naming convention for managed objects and the
MIBs themselves, which are simply a collection of managed
objects. The term to identify an object is simply the
Object ID (OID).
2
The 10 Managed Object Groups in MIB-2
3
the program but from one workstation, an operator can view CONCLUSION
all SNMP compatible devices.
With more and more devices
embracing Ethernet and Internet
protocols, the addition of SNMP
protocol support adds benefits to the
device. Managed devices support the
SNMP protocol and are called agents.
Agents consist of a collection of
managed objects that can be queried by
a manager to determine the health of
the network or the status of particular
devices. By displaying this data in an
easily understood format, operators and
maintenance personnel, located at a
central site, can monitor the performance
of the entire network by observing
selected devices and pinpointing
potential problems before they occur.
Although commercial and freeware net-
work management software programs
exist for this purpose, the trend is to
use more web-based tools. SNMP is not
restricted to just the management of
switches and routers. Any industrial
device can have SNMP
FIG. 4 — Typical manager screen. support and could provide much aid in industrial applications.
www.ccontrols.com