On 22/09/06, rajasekhar kavuri <[EMAIL PROTECTED]> wrote:
> 1.) How to add a scalar object dynamically.

It's not generally possible to add a completely new MIB scalar object,
without writing some code to implement it.
   It should be possible to compile this into a dynamically loadable
module, and load this while the agent is running (either by editing
the config file, or via suitable SNMP SET requests).  But I'd strongly
suggest working with a "static" module first - before adding this
extra level of complexity.  The same basic code can be used for both.


> 2.) how to add a tabular object to a table dynamically.

What exactly do you mean by this?
If you're talking about adding a new column object to a MIB table,
then this will also require new code to be written.

If you're talking about adding a new *row* to a MIB table, then it
depends on how the table has been implemented.  But this is certainly
possible given a suitably-coded table.


> 3.) can a trap be send to multiple NMS

Yes.
If the agent has several "trapsink", "trap2sink", "informsink" or
"trapsess" entries, then it will typically send each trap to all of
these destinations.

If you're using the command-line tool "snmptrap", then you'd have to
invoke it several times, specifying the various required destinations.


> 4.) where will the subagent send it traps.

To the master agent, which will then send them on to the configured
destinations.   If you want the subagent to send the traps direct,
then you'd need to code this yourself (using snmptrapd.c as a model).

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to