Re: Can We place Traps as part of Tables

"santhosh" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <005301c6f0f2$d26dc940$6a01a8c0@rtsindia>
Hello Dave,

> What information (if any) should be associated with a "LocalPair1" object,
> and under what circumstances would you want to generate a
> "LocalPair1"-related trap?

let me try to explain with the code I am using

part of Code :

INT8 localpair1value = 10;
SN_Object_s     Alarm_LocalPair1 =
{            {{4, 1, 17887, 7,1,1, 0},7},           // OID (Example)
            SN_INT8,                                  // Type
            &localpair1value                                    // Value
};

TrapGen(SN_TRAP_ENTERPRISE_SPECIFIC, 0, 1, &Alarm_LocalPair1);

So in the above case I will update the "localpair1value" from the data which
I recieve from the Hardware

there are only two cases in this
if I recieve "0" value at this point there is nothing to do "Just Discard"

the second senario is, I need to send a Message(TRAP) saying that I have
recieve "1" or "2", which are the only possible values for this alarm

So as of My understanding SNMP manager will recieve a trap message with OID,
so It is enough for me to tell the Manager the OID from which trap is
generated and the value if possible

when I was doing the above I came across with the point of Implementing
traps under a table which I came to know that "Index" cannot be defined as
trap OID's

so as of description is concerned what I can mention over there is if "1"
then it is IN SYNC, or if it is "2" OUT OF SYNC

I think what I am trying to explain to you is clear,
I do understand that with the knowledge of what I am having on SNMP, I am
thinking in one side
These kind of conversations wil help me to explore more,
and more over I started with the mentioned books to get the clear picture

If any kind of corrections or mistakes I have done
let me know

or if my way of presenting the issue is not clear I will try to be more
specifc

Thanks
Santhosh



----- Original Message -----
From: "Dave Shield" <[email protected]>
To: "santhosh" <[email protected]>
Cc: "net-snmp-users" <[email protected]>
Sent: Saturday, October 14, 2006 10:28 PM
Subject: Re: Can We place Traps as part of Tables


> On 14/10/06, santhosh <[email protected]> wrote:
> > > If this is a MIB that you have written yourself, then you are showing
> > > some serious misunderstanding of how SNMP works.  I would strongly
> > > suggest that you get hold of a good book, and study it carefully
> > > before proceeding any further.
> >
> > Can you suggest some books
>
> I'd agree with Subra's recommendation - "Understanding SNMP MIBs" is
> the standard work on this subject, and you won't find a more
> comprehensive book.
>
> But I still feel that you need to define the requirements more clearly
> *before* you start thinking about how to represent them within a MIB
> structure.
>
> What information (if any) should be associated with a "LocalPair1" object,
> and under what circumstances would you want to generate a
> "LocalPair1"-related trap?
> (And similarly for the other objects).
>
> Dave
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.1.407 / Virus Database: 268.12.12/462 - Release Date: 10/3/06
>
>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.