Hi,

I am having some issues including table elements inside a trap notification. 
Can someone tell me what the format is for including a table element inside a 
NOTIFICATION-TYPE?

I have the following in a MIB (extract):

notificationVswr   NOTIFICATION-TYPE
        DESCRIPTION "High VSWR"
        OBJECTS     { highVswr }
        Status     current
        ::= { notificationGroup 5 }

radioVswrEntry OBJECT-TYPE
        SYNTAX         radioVswrEntry
        ACCESS         not-accessible
        STATUS         optional
        DESCRIPTION    "Each entry contains a Reverse power."
        INDEX          { radioVswrTableIndex }
        ::= { radioVswrTable 1 }

    radioVswrEntry ::=
        SEQUENCE {
            radioVswrTableIndex
                INTEGER,
            radioVswr
                INTEGER
        }

    radioVswrTableIndex OBJECT-TYPE
        SYNTAX         INTEGER
        ACCESS         read-only
        STATUS         optional
        DESCRIPTION    "VSWR table (row) index."
        ::= { radioVswrEntry 1 }

    radioVswr OBJECT-TYPE
        SYNTAX         DisplayString (SIZE(0..10))
        ACCESS         read-only
        STATUS         optional
        DESCRIPTION    "VSWR"
        ::= { radioVswrEntry 2 }

I am unsure what I should be putting inside the OBJECTS field within the 
NOTIFICATION-TYPE notificationVswr. I have tried putting radioVswr.1 (the 
object I want to return), but this did not work, nor just a plain radioVswr.

However, if I include the OID in the snmpd.conf instead of modifying the 
NOTIFICATION-TYPE with -i preceeding the OID, I get the object returned with 
the notification, which is the behaviour I am after. But this isn't as neat as 
having it all defined within the MIB.

Another question would be, is it possible to return all present rows in the 
table rather than explicitly specifying an individual OID for each row? I have 
a feeling a solution is related to preceeding the OID in the snmpd.conf with -o 
rather than -i. Hopefully there is a solution involving just the MIB file.

Thanks in advance for any advice.

Regards,

Wei
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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