Re: Can We place Traps as part of Tables

This is a discussion on Re: Can We place Traps as part of Tables within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0326177305== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0233_01C6EEF6.D82C8680" This ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-13-2006
santhosh
 
Posts: n/a
Default Re: Can We place Traps as part of Tables

This is a multi-part message in MIME format.

--===============0326177305==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0233_01C6EEF6.D82C8680"

This is a multi-part message in MIME format.

------=_NextPart_000_0233_01C6EEF6.D82C8680
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear Mr Dave

Mistakenly I sent with out checking "CC" and I will take care that issue =
from now

My system is having 3 xDSL Interfaces, when ever an Alarm is genetrated
during the working of the xDSL Interface I should notify the manager =
with a
trap message that an alarm had occured

These are the alarms which I need to monitor "Local Pair 1", "Local Pair =
2",
"Remote Pair 1" & "Remote Pair 2"

as I said I am having 3 xDSL Interfaces the above said 4 Alarms are
applicable to all the 3 Interfaces

So, My intention was rather than creating 4*3 Traps I tought to create =
table
and keep Traps as seperate Part

so this was the MIB's which I have created

-- xDSL Traps Table

xdsltrapTable OBJECT-TYPE
SYNTAX SEQUENCE OF XDSLEntry
MAX-ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"A table of E1 switch port configuration information."
::=3D { xDSL 2 }

xdslEntry OBJECT-TYPE
SYNTAX XDSLEntry
MAX-ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"A table entry containing "
INDEX { interface1,interface2,interface3 }
::=3D { xdsltrapTable 1 }

XDSLEntry ::=3D
SEQUENCE {
InterfaceNo INTEGER,
SystemType INTEGER,
LocalPair1 INTEGER,
LocalPair2 INTEGER,
RemotePair1 INTEGER,
RemotePair2 INTEGER
}

TableCardNo OBJECT-TYPE
SYNTAX INTEGER (1..3)
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::=3D { xdslaEntry 1 }

SystemType OBJECT-TYPE
SYNTAX INTEGER
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::=3D { xdslaEntry 2 }

LocalPair1 OBJECT-TYPE
SYNTAX INTEGER
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::=3D { xdslaEntry 3 }

LocalPair2 OBJECT-TYPE
SYNTAX INTEGER
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::=3D { xdslaEntry 4 }

RemotePair1 OBJECT-TYPE
SYNTAX INTEGER
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::=3D { xdslaEntry 5 }

RemotePair2 OBJECT-TYPE
SYNTAX INTEGER
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::=3D { xdslaEntry 6 }


when I started the code for this I got the confusion what OID i need to
Specify for particular entity

so to get the confirmation I asked you, which I am partially clear about

Now, I suppose that I *cannot* do this way because I cannot define =
Index to
apply to the trap OID. which I came to know from your previous mail

>If you defined the MIB as a single table covering all four interfaces
>(so that the objects are the same in each case), then you would only
>need a single set of 6 traps.


how to I implement the above idea

thanks

santhosh
------=_NextPart_000_0233_01C6EEF6.D82C8680
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3>Dear Mr=20
Dave<BR><BR>Mistakenly I sent with out checking "CC" and I will take =
care that=20
issue from now<BR><BR>My system is having 3 xDSL Interfaces, when ever =
an Alarm=20
is genetrated<BR>during the working of the xDSL Interface I should =
notify the=20
manager with a<BR>trap message that an alarm had occured<BR><BR>These =
are the=20
alarms which I need to monitor "Local Pair 1", "Local Pair =
2",<BR>"Remote Pair=20
1" &amp; "Remote Pair 2"<BR><BR>as I said I am having 3 xDSL Interfaces =
the=20
above said 4 Alarms are<BR>applicable to all the 3 Interfaces<BR><BR>So, =
My=20
intention was rather than creating 4*3 Traps I tought to create =
table<BR>and=20
keep Traps as seperate Part<BR><BR>so this was the MIB's which I have=20
created<BR><BR>-- xDSL Traps Table<BR><BR>xdsltrapTable=20
OBJECT-TYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX&nbsp; =
SEQUENCE=20
OF XDSLEntry<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;=20
MAX-ACCESS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not-accessible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS=20
mandatory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;=20
DESCRIPTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"A table of E1 switch port configuration=20
information."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp; ::=3D { xDSL =
2=20
}<BR><BR>xdslEntry =
OBJECT-TYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =20
SYNTAX&nbsp; XDSLEntry<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;=20
MAX-ACCESS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not-accessible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS=20
mandatory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;=20
DESCRIPTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"A table entry containing =
"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;=20
INDEX&nbsp;&nbsp; { interface1,interface2,interface3=20
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::=3D { xdsltrapTable 1=20
}<BR><BR>XDSLEntry ::=3D<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; =
SEQUENCE=20
{<BR>&nbsp;&nbsp; InterfaceNo INTEGER,<BR>&nbsp;&nbsp; SystemType=20
INTEGER,<BR>&nbsp;&nbsp; LocalPair1 INTEGER,<BR>&nbsp;&nbsp; LocalPair2=20
INTEGER,<BR>&nbsp;&nbsp; RemotePair1 INTEGER,<BR>&nbsp;&nbsp; =
RemotePair2=20
INTEGER<BR>&nbsp; }<BR><BR>TableCardNo OBJECT-TYPE<BR>&nbsp;SYNTAX =
INTEGER=20
(1..3)<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS=20
mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
" "<BR>&nbsp;::=3D { xdslaEntry 1 }<BR><BR>SystemType=20
OBJECT-TYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;=20
INTEGER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; ACCESS=20
not-accessible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS=20
mandatory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;=20
DESCRIPTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
" "<BR>&nbsp;::=3D { xdslaEntry 2 }<BR><BR>LocalPair1 =
OBJECT-TYPE<BR>&nbsp;SYNTAX=20
INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS=20
mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
" "<BR>&nbsp;::=3D { xdslaEntry 3 }<BR><BR>LocalPair2 =
OBJECT-TYPE<BR>&nbsp;SYNTAX=20
INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS=20
mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
" "<BR>&nbsp;::=3D { xdslaEntry 4 }<BR><BR>RemotePair1 =
OBJECT-TYPE<BR>&nbsp;SYNTAX=20
INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS=20
mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
" "<BR>&nbsp;::=3D { xdslaEntry 5 }<BR><BR>RemotePair2 =
OBJECT-TYPE<BR>&nbsp;SYNTAX=20
INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS=20
mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
" "<BR>&nbsp;::=3D { xdslaEntry 6 }<BR><BR><BR>when I started the code =
for this I=20
got the confusion what OID i need to<BR>Specify for particular =
entity<BR><BR>so=20
to get the confirmation I asked you, which I am partially clear=20
about<BR><BR>Now, I suppose&nbsp; that I *cannot* do this way because I =
cannot=20
define Index to<BR>apply to the trap OID. which I came to know from your =

previous mail<BR><BR>&gt;If you defined the MIB as a single table =
covering all=20
four interfaces<BR>&gt;(so that the objects are the same in each case), =
then you=20
would only<BR>&gt;need a single set of 6 traps.<BR><BR>how to I =
implement the=20
above =
idea<BR><BR>thanks<BR><BR>santhosh</FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_0233_01C6EEF6.D82C8680--




--===============0326177305==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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=...057&dat=121642
--===============0326177305==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0326177305==--



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0