The core of SNMP is a simple set of operations (and the
information these operations gather) that gives
administrators the ability to change the state of some
SNMP-based device. For example, you can use SNMP to shut
down an interface on your router or check the speed at which
your Ethernet interface is operating. SNMP can even monitor
the temperature on your switch and warn you when it is too
high.
SNMP usually is associated with managing routers, but
it's important to understand that it can be used to manage
many types of devices. While SNMP's predecessor, the
Simple Gateway Management Protocol
(SGMP), was developed to manage Internet routers, SNMP can
be used to manage Unix systems, Windows systems, printers,
modem racks, power supplies, and more. Any device running
software that allows the retrieval of SNMP information can
be managed. This includes not only physical devices but also
software, such as web servers and databases.
Before going any further, let's look at a
before-and-after scenario that shows how SNMP can make a
difference in an organization.
1.1.1. Before and After SNMP
Let's say that you have a network of 100 machines
running various operating systems. Several machines are
file servers, a few others are print servers, another is
running software that verifies credit card transactions
(presumably from a web-based ordering system), and the
rest are personal workstations. In addition, there are
various switches and routers that help keep the actual
network going. A T1 circuit connects the company to the
global Internet, and there is a private connection to
the credit card verification system.
What happens when one of the file servers crashes? If
it happens in the middle of the workweek, it is likely
that the people using it will notice and the appropriate
administrator will be called to fix it. But what if it
happens after everyone has gone home, including the
administrators, or over the weekend?
What if the private connection to the credit card
verification system goes down at 10 p.m. on Friday and
isn't restored until Monday morning? If the problem was
faulty hardware and could have been fixed by swapping
out a card or replacing a router, thousands of dollars
in web site sales could have been lost for no reason.
Likewise, if the T1 circuit to the Internet goes down,
it could adversely affect the amount of sales generated
by individuals accessing your web site and placing
orders.
These are obviously serious problems -- problems that
can conceivably affect the survival of your business.
This is where SNMP comes in. Instead of waiting for
someone to notice that something is wrong and locate the
person responsible for fixing the problem (which may not
happen until Monday morning, if the problem occurs over
the weekend), SNMP allows you to monitor your network
constantly, even when you're not there. For example, it
will notice if the number of bad packets coming through
one of your router's interfaces is gradually increasing,
suggesting that the router is about to fail. You can
arrange to be notified automatically when failure seems
imminent, so you can fix the router before it actually
breaks. You can also arrange to be notified if the
credit card processor appears to get hung -- you may
even be able to fix it from home. And if nothing goes
wrong, you can return to the office on Monday morning
knowing there won't be any surprises.
There might not be quite as much glory in fixing
problems before they occur, but you and your management
will rest more easily. We can't tell you how to
translate that into a higher salary -- sometimes it's
better to be the guy who rushes in and fixes things in
the middle of a crisis, rather than the guy who makes
sure the crisis never occurs. But SNMP does enable you
to keep logs that prove your network is running reliably
and show when you took action to avert an impending
crisis.