SNMP Protocol
SNMP Protocol
)
Defined by IETF(internet engineering task force) & used to manage network. Internet standard protocol
for collecting & organizing information about managed devices on IP N/W.
Components:-
An SNMP manager is a computer that is configured to poll SNMP agent for information. The
management component, when only discussing its core functionality, is actually a lot less
complex than the client configuration, because the management component simply requests
data.
The manager can be any machine that can send query requests to SNMP agents with the correct
credentials. Sometimes, this is implemented as part of a monitoring suite, while other times this
is an administrator using some simple utilities to craft a quick request.
Almost all of the commands defined in the SNMP protocol (we will go over these in detail later)
are designed to be sent by a manager component. These
include GetRequest, GetNextRequest, GetBulkRequest, SetRequest, InformRequest,
and Response. In addition to these, a manager is also designed to respond to Trap,
and Response messages.
2. Agent:- s/w management s/w module installed on managed device (Router,Hub etc).
SNMP agents do the bulk of the work. They are responsible for gathering information about the
local system and storing them in a format that can be queried.updating a database called the
“management information base”, or MIB.
The MIB is a hierarchical, pre-defined structure that stores information that can be queried or
set. This is available to well-formed SNMP requests originating from a host that has
authenticated with the correct credentials (an SNMP manager).
The agent computer configures which managers should have access to its information. It can
also act as an intermediary to report information on devices it can connect to that are not
configured for SNMP traffic. This provides a lot of flexibility in getting your components online
and SNMP accessible.
SNMP agents respond to most of the commands defined by the protocol. These
include GetRequest, GetNextRequest, GetBulkRequest, SetRequest and InformRequest. In
addition, an agent is designed to send Trap messages.
The MIB structure is best understood as a top-down hierarchical tree. Each branch that forks off
is labeled with both an identifying number (starting with 1) and an identifying string that are
unique for that level of the hierarchy. You can use the strings and numbers interchangeably.
To refer to a specific node of the tree, you must trace the path from the unnamed root of the
tree to the node in question. The lineage of its parent IDs (numbers or strings) are strung
together, starting with the most general, to form an address. Each junction in the hierarchy is
represented by a dot in this notation, so that the address ends up being a series of ID strings or
numbers separated by dots. This entire address is known as an object identifier, or OID.
SNMP message:-
6. Trap:- send by agent being requested by manager. sent when fault occur. A trap message is
generally sent by an agent to a manager. Traps are asynchronous notifications in that they are
unsolicited by the manager receiving them. They are mainly used by agents to inform managers
of events that are happening on their managed devices.