
8. Protocollo SNMP per WebGate
8.1 Il protocollo SNMP in breve
Il protocollo SNMP (Simple Network Management Protocol) è un
protocollo Internet-standard, introdotto nel 1988 per la gestione di
dispositivi su reti IP. Nel corso degli ultimi anni, le reti sono via via
divenute sempre più complesse per l’aggiunta di molti dispositivi
diversi, come router, server, proxy, switch, workstation, stampanti,
gateway, UPS e così via.
Il protocollo SNMP può essere utilizzato per monitorare sia hardware di
rete standard che variabili specifiche, come la temperatura e l’umidità
di un ambiente.
L’essenza del protocollo è costituita da un insieme di operazioni che
permettono agli amministratori di rete di controllare e modificare lo
stato di alcuni dispositivi SNMP o i valori delle più importanti variabili di
un controllo, come ad esempio il setpoint.
Le due entità principali dell’archittettura di rete SNMP sono i manager
e gli agent (Fig.8.1.1). Un
manager
è un server in grado di svolgere
compiti di gestione di rete. I manager vengono spesso chiamati
Network Management Station (NMS). L’NMS interroga gli agent e da
questi riceve dei trap. L’azione di interrogazione da parte di un NMS
corrisponde alla richiesta di informazioni. Un trap è il modo in cui
l’agent informa l’NMS dell’accadimento di un particolare evento.
Generalmente, la richiesta di informazioni è sincrona, e cioè gli agent
rispondono solo in seguito ad una richiesta da parte di un NMS. I
messaggi trap sono invece asincroni: gli agent cioè inviano un trap
senza che vi sia stata alcuna richiesta da parte di un NMS, poiché
l’NMS non è a conoscenza del tipo di evento e del momento in cui
esso si verifica. In altre parole, non esistono limiti temporali per le
richieste di informazioni da parte di un NMS ad un agent né per l’invio
di un trap.
L’agent è un software eseguito dal dispositivo di rete (il WebGate nel
nostro caso), che fornisce all’NMS informazioni relative alla gestione,
come ad esempio lo stato, il valore di variabili significative, le
informazioni statistiche e così via.
8. WebGate SNMP Protocol
8.1 A brief overview of the SNMP protocol
SNMP (Simple Network Management Protocol) is an Internet-standard
protocol, introduced in 1988, for managing devices on IP networks.
Network complexity has increased very hard in last years by addition of
several different kinds of devices, as routers, servers, proxies, switches,
workstations, printers, gateways, UPSs, and so on.
SNMP can be used to monitor both standard network hardware and
specific variables, like the temperature and humidity inside a room.
The core of the protocol is a simple set of operations that gives to the
network administrators the ability to control and change the state of
some SNMP-based devices or the value of the most important
variables of a controller, i.e. a setpoint.
The two principal entities of an SNMP network architecture are
managers and agents (Fig.8.1.1). A
manager
is a server system that
can handle management tasks for a network. Managers are often
referred to as Network Management Station (NMSs). An NMS is
responsible for polling agents and for receiving traps from agents in the
network. Polling action by NMS is the act of querying an agent for
information. A trap is a way for the agent to inform NMS about a
particular event.
Generally querying is synchronous, that is agents respond only after a
request by NMS. Trap messages are asynchronous: agents send a trap
without any request by NMS, because NMS can’t knows nothing about
the nature of the event and instant the event occur. In other words,
there are no restrictions on when the NMS can query the agent or
when the agent can send a trap.
by keeping track of various aspects of the device, such as its state,
value of important variables, statistical informations, and so on.
37
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003
built-in terminal
built-in terminal
Network Management Station
Portante Ethernet /
Ethernet Backbone
polling line
trap line
Carel network
Agent 1
Agent 2
Agent 3
Agent N-1
Agent N
Fig. 8.1.1