On Sun, 2005-12-04 at 04:12 -0800, Pichi Reddy wrote:

> > I am using send_v2_trap ( ) to send notifications from subagents .I want to
> > send the following objects as varbinds with a notification.
> > 
> >     AlarmTableEntry ::= SEQUENCE {
> > 
> >         alarmId                   
> >         alarmObjectType
> >         alarmEventTime              
> >         alarmEventType                     
> >         alarmSeverity    
> >         alarmSlogan      
> > }

In which case, you'll need to pass this list of varbinds
to the 'send_v2_trap' call.


> > I want to send a notification when an newalarm is raised and
> > the alarm to be added to the activeAlarmTable. 
> >  But I am not able to understand how to add the alarms to the
> > activeAlarmTable

This is presumably a table that you are implementing yourself?
How are you writing this table - using mib2c or manually?
If mib2c, then which framework are you using?

 
> > In function send_v2trap () just before calling send_trap_vars ( ) function  
> > ,
> > I want to add one more new 
> > function which adds the alarms to activeAlarmTable.

Sounds sensible.
Presumably your implementation of the activeAlarmTable will include
some form of "createEntry" routine, which could be called here.


> I have generated skelton code for alarmTable using mib2c.notify.c 

No - that particular mib2c template is used for generating
notifications, *not* for implementing MIB tables.
Have a look at the FAQ entries that talk about extending
the agent.  That should give you a bit more guidance.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to