Comtrol eCos User Manual
Page 623

Chapter 47. SNMP for eCos
This is a flag returning either the integer value 1
or
0 if an error is detected for this table entry.
.101 -- errorMsg
This is a DISPLAY-STRING describing any error trig-
gering the errorFlag above.
.102 -- errorFix
If
this entry is SNMPset to the integer value of 1
AND the errorFlag defined above is indeed
a
1,
a
program
or script will get executed with the table
entry name from above as the argument.
The program
to
be
executed is configured in the config.h file
at compile time.
Directives
proc NAME
proc NAME MAX
proc NAME MAX MIN
Checks to see if the NAME’d processes
are
running
on
the
agent’s
machine.
An error flag (1) and a
description
message
are
then
passed
to
the
1.3.6.1.4.1.2021.2.100
and
1.3.6.1.4.1.2021.2.101
mib tables (respectively) if the NAME’d program
is
not
found
in
the
process
table
as reported by
"/bin/ps -e".
If MAX and MIN are not specified, MAX is assumed to
be infinity and MIN is assumed to be 1.
If
MAX
is specified but MIN is not specified, MIN
is assumed to be 0.
procfix NAME PROG ARGS
This registers a command
that
knows
how
to
fix
errors
with
the
given
process
NAME.
When
1.3.6.1.4.1.2021.2.102 for a given NAMEd program is
set to the integer value of 1, this command will be
called.
It defaults to a compiled value set
using
the PROCFIXCMD definition in the config.h file.
exec NAME PROG ARGS
exec MIBNUM NAME PROG ARGS
If
MIBNUM is not specified, the agent executes the
named PROG with arguments of ARGS and
returns
the
exit status and the first line of the STDOUT output
of
the
PROG
program
to
queries
of
the
1.3.6.1.4.1.2021.8.100
and
1.3.6.1.4.1.2021.8.101
mib
tables
(respectively).
All
STDOUT
output
beyond the first line is silently truncated.
519