I'm extending the main agent of Net-SNMP with a dynamically loadable sub-agent
that manages private sub-tree MIB.
The sub-agent retrieves the values of its objects communicating with an
external equipment connected by serial RS232.
In other words, in the MODE_GET case of the scalar helper handle
What I mean is that I want it to be able to run independently of any config
files. I only want to have to link the librarys and not have any files being
read from anything other than what I want it to use. And the netsnmp_config
function seems to allow me to do that.
Dave Shield <[EMAIL PRO
On 22/01/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote:
> I register scalars for the following OIDs:
>1.3.6.1.4.1.xxx.1.2.1(.0)
>1.3.6.1.4.1.xxx.1.2.1.1(.0)
> using netsnmp_register_scalar().
That's not legal.
If you've defined a MIB object (using OBJECT-TYPE),
then you cannot have any
I register scalars for the following OIDs:
1.3.6.1.4.1.xxx.1.2.1(.0)
1.3.6.1.4.1.xxx.1.2.1.1(.0)
using netsnmp_register_scalar().
After I use snmpget application to retrieve the value for both the OIDs from
the agent. It works good.
When I use snmpwalk application to retrieve objects starti
On 22/01/2008, Leif Pitcock <[EMAIL PROTECTED]> wrote:
> Is it possible to set the community string, port, and SNMP version without
> using the .conf files from the code itself?
What do you mean by "setting the community string and SNMP version"
of the agent?A command-line client needs to spec
On 21/01/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote:
> Do you know how I give read access to public community to my
> dinamically loaded module
rocommunity public
Once the module has been loaded, there's no difference between this
and one statically compiled into the main agent bin