Comtrol eCos User Manual
Page 624
Chapter 47. SNMP for eCos
If
MIBNUM
is
specified,
it
acts
as
above but
returns the exit status
to
MIBNUM.100.0
and
the
entire
STDOUT
output to the table MIBNUM.101 in a
mib table.
In this case, the MIBNUM.101
mib
con-
tains the entire STDOUT output, one mib table entry
per line of output (ie, the first line is output as
MIBNUM.101.1,
the second at MIBNUM.101.2, etc...).
Note:
The MIBNUM must be specified in dotted-inte-
ger
notation
and
can
not be specified as
".iso.org.dod.internet..."
(should
instead
be
Note:
The
agent caches the exit status and STDOUT
of the executed program for 30 seconds after
the
initial
query.
This
is
to increase
speed and maintain consistency
of
informa-
tion
for
consecutive
table
queries.
The
cache can be flushed by a
snmp-set
request
of
integer(1)
to 1.3.6.1.4.1.2021.100.VER-
CLEARCACHE.
execfix NAME PROG ARGS
This registers a command
that
knows
how
to
fix
errors
with
the
given
exec
or
sh
NAME.
When
1.3.6.1.4.1.2021.8.102 for a given NAMEd
entry
is
set to the integer value of 1, this command will be
called.
It defaults to a compiled value set
using
the EXECFIXCMD definition in the config.h file.
disk PATH
disk PATH [ MINSPACE | MINPERCENT% ]
Checks
the
named disks mounted at PATH for avail-
able disk space.
If the disk space
is
less
than
MINSPACE
(kB) if specified or less than MINPERCENT
(%) if a
%
sign
is
specified,
or
DEFDISKMINI-
MUMSPACE
(kB)
if
not
specified,
the associated
entry in the 1.3.6.1.4.1.2021.9.100 mib table
will
be
set to (1) and a descriptive error message will
be returned to queries of 1.3.6.1.4.1.2021.9.101.
load MAX1
load MAX1 MAX5
load MAX1 MAX5 MAX15
Checks the load average of the machine and
returns
an error flag (1), and an text-string error message
to
queries
of
1.3.6.1.4.1.2021.10.100
and
1.3.6.1.4.1.2021.10.101
(respectively)
when
the
1-minute, 5-minute, or
15-minute
averages
exceed
520