Hi Dave,
Thanks very much for your response.
> > 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.
[pichi]
Actually I need to send notifications for server start and server
shutdown. I want to send server shutdown notification as a new raise
alarm and server start-up will be a clear alarm for that raised alarm.
So, I want to send these notifications using send_v2_trap() with the
above fields varbinds filled.
> > 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?
[pichi]
This table I have to implement myself in agent code. To write the
table I am using mib2c - frame work - mib2c.iterate.conf. I need to use
alarmId as a index to the table. alarmId is of type int32.
SNMP Manager should be able to access this table using get/get-next, set
requests.
Can you pls suggest what is the best method to write the table.
> > 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.
[pichi]
I am just thinking how to handle the table and adding new a entry when
a new alarm is received.
> 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.
[pichi] Actually I used mib2c.iterate.conf template. I have gone through the
FAQ. It is very useful.
Thanks,
pichi
----------------------------------------------------
--- Dave Shield <[EMAIL PROTECTED]> wrote:
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
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