1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
SLB NEWS -- history of user-visible changes. 2012-02-17
Copyright (C) 2011, 2012 Sergey Poznyakoff
See the end of file for copying conditions.
Please send SLB bug reports to <gray+slb@gnu.org.ua>
Version 1.0.93 (Git)
* Support SNMPv3
* Default SNMP version is 2c
* Use newer Grecs
* Drop unneeded dependencies
* Variable assignments in expressions
* Detection of SNMP counter overflows
* Comma operator
* Support for indexed MIBs
This feature allows you to use symbolic names instead of the fixed MIBs
for MIBs that are part of SNMP subtrees. For example, to get number of
packets sent over eth0 into variable "out", you would do the following:
table iftable IF-MIB::ifDescr;
variable out "IF-MIB::ifOutUcastPkts.$iftable[eth1]";
The first statement converts the subtree into a "table" named "iftable".
The second statement references an entry in this table that has
the value "eth1". For example, if the SNMP tree has the following MIB
IF-MIB::ifDescr.10: eth0
then the expression "$iftable[eth]" yields "10"
* Assertion syntax changed.
The assertion statement takes a single argument, which must be a
string consisting of the following three parts:
<oid: string> [!]<opcode>[/i] <value: string>
The <opcode> part can be either an arithmetical operator (=, <, <=, >,
>=), or any of the following string operators:
eq string equality
ne string inequality
prefix oid value must begin with <value>
suffix oid value must end with <value>
glob <value> is a glob(7) pattern that oid value must match
Each of these can be suffixed with "/i" to request case-insensitive comparison.
A "!" in front of opcode reverts its meaning.
The <value> part must not include the type prefix.
Version 1.0, 2011-04-26
First release.
=========================================================================
Copyright information:
Copyright (C) 2011, 2012 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the
copyright notice and this permission notice are preserved,
thus giving the recipient permission to redistribute in turn.
Permission is granted to distribute modified versions
of this document, or of portions of it,
under the above conditions, provided also that they
carry prominent notices stating who last changed them.
Local variables:
mode: outline
paragraph-separate: "[ ]*$"
eval: (add-hook 'write-file-hooks 'time-stamp)
time-stamp-start: "changes. "
time-stamp-format: "%:y-%02m-%02d"
time-stamp-end: "\n"
end:
|