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; --===============0329954884== Content-Type: multipart/alternative; boundary="0-625979631-1160791958=:68540" Content-Transfer-Encoding: 8bit --0-625979631-1160791958=:68540 ...


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-14-2006
Subrahmanya Hegde
 
Posts: n/a
Default Re: Can We place Traps as part of Tables

--===============0329954884==
Content-Type: multipart/alternative; boundary="0-625979631-1160791958=:68540"
Content-Transfer-Encoding: 8bit

--0-625979631-1160791958=:68540
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Santosh
I don't think you can have 4*3 trap definitions.
Also, you don't require a Trap table for this.

You can have one trap definition for this

For ex:
xxDslNotification NOTIFICATION-TYPE
OBJECTS { ifName, ifAdminStatus, ifOperStatus }
You can add ;xxAlarmStatus' object if you want that will provide additional alarm status. Some of the standard MIBs(HC-ALARM-MIB) might be useful to refer for this.

Where same Notification can be sent for all the Interfaces :
(ofcourse same notification is sent 4 times but with different values)
for ex:
ifName.1 = "local pair1"
ifName.2="local pair2"
ifName.3='remote pair1"
ifName.4="remote pair2"

and other objects with appropriate status.

more comments inline. Look for [subrah1]

thx
Subra


santhosh <santhosh@rtsindia.com> wrote:
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

[Subrah1] You can send the same notification multiple times with different values. Hence 4*3 trap definition is not required


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."
::= { xDSL 2 }

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

XDSLEntry ::=
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
" "
::= { xdslaEntry 1 }

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

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

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

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

RemotePair2 OBJECT-TYPE
SYNTAX INTEGER
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
" "
::= { 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
-------------------------------------------------------------------------
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=...______________
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



---------------------------------
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
--0-625979631-1160791958=:68540
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>Santosh</div> <div>&nbsp;I don't think you can have 4*3 trap definitions.</div> <div>Also, you don't require a Trap table for this.</div> <div>&nbsp;</div> <div>You can have one trap definition for this</div> <div>&nbsp;</div> <div>For ex:</div> <div>&nbsp; xxDslNotification NOTIFICATION-TYPE</div> <div>&nbsp;&nbsp;&nbsp;&nbsp; OBJECTS { ifName, ifAdminStatus, ifOperStatus }</div> <div>You can add ;xxAlarmStatus' object if you want that will provide additional alarm status. Some of the standard MIBs(HC-ALARM-MIB) might be useful to refer for this.</div> <div>&nbsp;</div> <div>Where same Notification can be sent for all the Interfaces :</div> <div>(ofcourse same notification is sent 4 times but with different values)</div> <div>for ex:</div> <div>&nbsp;&nbsp; ifName.1 = "local pair1"</div> <div>&nbsp;&nbsp; ifName.2="local pair2"</div> <div>&nbsp; ifName.3='remote pair1"</div> <div>&nbsp; ifName.4="remote pair2"</div> <div>&nbsp;</div> <div>and other
objects with appropriate status.</div> <div>&nbsp;</div> <div>more comments inline. Look for [subrah1]</div> <div>&nbsp;</div> <div>thx</div> <div>Subra</div> <div><BR><BR><B><I>santhosh &lt;santhosh@rtsindia.com&gt;</I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <STYLE></STYLE> <DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Dear Mr Dave<BR><BR>Mistakenly I sent with out checking "CC" and I will take care that issue from now<BR><BR>My system is having 3 xDSL Interfaces, when ever an Alarm is genetrated<BR>during the working of the xDSL Interface I should notify the manager with a<BR>trap message that an alarm had occured<BR><BR>These are the alarms which I need to monitor "Local Pair 1", "Local Pair 2",<BR>"Remote Pair 1" &amp; "Remote Pair 2"<BR><BR>as I said I am having 3 xDSL Interfaces the above said 4 Alarms
are<BR>applicable to all the 3 Interfaces<BR></FONT></FONT></DIV> <DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>[Subrah1] You can send the same notification multiple times with different values. Hence 4*3 trap definition is not required</FONT></FONT></DIV> <DIV><FONT face="Times New Roman" size=3></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3><BR>So, My intention was rather than creating 4*3 Traps I tought to create table<BR>and keep Traps as seperate Part<BR><BR>so this was the MIB's which I have created<BR><BR>-- xDSL Traps Table<BR><BR>xdsltrapTable OBJECT-TYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX&nbsp; SEQUENCE OF XDSLEntry<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; MAX-ACCESS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not-accessible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS mandatory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;
DESCRIPTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; "A table of E1 switch port configuration information."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp; ::= { xDSL 2 }<BR><BR>xdslEntry OBJECT-TYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX&nbsp; XDSLEntry<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; MAX-ACCESS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not-accessible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS mandatory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; DESCRIPTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; "A table entry containing "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; INDEX&nbsp;&nbsp; { interface1,interface2,interface3 }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::= { xdsltrapTable 1 }<BR><BR>XDSLEntry ::=<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SEQUENCE {<BR>&nbsp;&nbsp; InterfaceNo INTEGER,<BR>&nbsp;&nbsp; SystemType
INTEGER,<BR>&nbsp;&nbsp; LocalPair1 INTEGER,<BR>&nbsp;&nbsp; LocalPair2 INTEGER,<BR>&nbsp;&nbsp; RemotePair1 INTEGER,<BR>&nbsp;&nbsp; RemotePair2 INTEGER<BR>&nbsp; }<BR><BR>TableCardNo OBJECT-TYPE<BR>&nbsp;SYNTAX INTEGER (1..3)<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " "<BR>&nbsp;::= { xdslaEntry 1 }<BR><BR>SystemType OBJECT-TYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX&nbsp; INTEGER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; ACCESS not-accessible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS mandatory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; DESCRIPTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; " "<BR>&nbsp;::= { xdslaEntry 2 }<BR><BR>LocalPair1 OBJECT-TYPE<BR>&nbsp;SYNTAX INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS
mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " "<BR>&nbsp;::= { xdslaEntry 3 }<BR><BR>LocalPair2 OBJECT-TYPE<BR>&nbsp;SYNTAX INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " "<BR>&nbsp;::= { xdslaEntry 4 }<BR><BR>RemotePair1 OBJECT-TYPE<BR>&nbsp;SYNTAX INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " "<BR>&nbsp;::= { xdslaEntry 5 }<BR><BR>RemotePair2 OBJECT-TYPE<BR>&nbsp;SYNTAX INTEGER<BR>&nbsp;ACCESS not-accessible<BR>&nbsp;STATUS mandatory<BR>&nbsp;DESCRIPTION<BR>&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " "<BR>&nbsp;::= { xdslaEntry 6 }<BR><BR><BR>when I started the code for this I got the confusion what OID i need to<BR>Specify for particular entity<BR><BR>so to get the confirmation I asked you, which I am partially clear about<BR><BR>Now, I
suppose&nbsp; that I *cannot* do this way because I cannot 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 four interfaces<BR>&gt;(so that the objects are the same in each case), then you would only<BR>&gt;need a single set of 6 traps.<BR><BR>how to I implement the above idea<BR><BR>thanks<BR><BR>santhosh</FONT></FONT></DIV>-------------------------------------------------------------------------<BR>Using Tomcat but need to do more? Need to support web services, security?<BR>Get stuff done quickly with pre-integrated technology to make your job easier<BR>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat= 121642____________________________________________ ___<BR>Net-snmp-users mailing list<BR>Net-snmp-users@lists.sourceforge.net<BR>Please see the following page to
unsubscribe or change other options:<BR>https://lists.sourceforge.net/lists/listinfo/net-snmp-users<BR></BLOCKQUOTE><BR><p>
<hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.
--0-625979631-1160791958=:68540--


--===============0329954884==
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
--===============0329954884==
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

--===============0329954884==--

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 12:27 PM.


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