
8.4.5 Il sotto-albero Carel-Units-var
Questo nodo contiene tutti gli oggetti SNMP relativi alle variabili dei
dispositivi collegati al WebGate. La Figura 8.4.5.1 riporta la struttura
del sotto-albero, considerando Netsize=4.
Definizione di un oggetto associato ad una variabile nel protocollo
SNMP:
Variable OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-write(_)
Status ---
DESCRIPTION “variabile generica intera, digitale o
analogica di un dispositivo”
::={Carel-Instruments x.y.z}
(_): tutte le variabili permettono l’accesso in lettura-scrittura come
impostazione predefinita. Se un parametro di un’unità è impostato in
“sola lettura”, quando un manager tenta una Set-operation, il WebGate
restituisce il messaggio d’errore “readONLY”.
Dove:
x=indirizzo dell’unità
1 £ x £ Netsize
y=tipo
1=digitale, 2=analogico, 3=intero
z=indice
1 £ z £ MaxIndex=207
Come indicato nella Fig. 8.4.5.1, l’OID della prima variabile intera per
l’unità 2 è 1.3.6.1.4.1.9839.2.2.3.1.0, dove l’indirizzo unità=2, tipo=3 e
indice=1.
8.4.5 The Carel-Units-var subtree
Under this node a manager can find all the SNMP objects relative to
the variables of the devices connected to the WebGate. Figure 8.4.5.1
shows how this subtree is structured, assuming
Netsize=4.
The formal SNMP definition for an object associated to a variable is:
Variable
OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-write(_)
Status ---
DESCRIPTION “generic integer, digital or analogue device
variable”
::={Carel-Instruments x.y.z}
(_): all variables have default read-write access. If a unit parameter is
declared “readable only”, when a manager tries a Set-operation,
WebGate returns the error message “readONLY”.
Where:
x=unit address
1 £ x £ Netsize
y=type
1=digital, 2=analogue, 3=integer
z=index
1 £ z £ MaxIndex=207
As indicated in Fig. 8.4.5.1, the OID of the first integer variable for unit
2 is 1.3.6.1.4.1.9839.2.2.3.1.0, where unit address=2, type=3 and
index=1.
43
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003
Analogue (2)
Digital (1)
Integer (3)
Units2-Var (2)
Units3-Var (3)
OID-NOME
OID-NOME
{1.3.6.1.4.1.
9
83
9
.2.3}
Units1-Var (1)
Units4-Var (4)
Carel-Instruments (2)
OID-NOME
NO
OID-NOME
NO
{1.3.6.1.4.1.
9
83
9
.2.2.1}
1.
9
{1.3.6.1.4.1.
9
83
9
.2.2.1}
1.
9
Unit 2
Database digitale
Digital database
Unit 2
Database analogico
Analogue database
Unit 2
Database intero
Integer database
OID={1.3.6.1.4.1.
9
83
9
.2.2.3.z.0}
Fig. 8.4.5.1