Re: Adding description within trap PDU

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On 01/15/18 18:32, Fulko Hew wrote:
> Yes, you could, but...
> 
> If the definition of the trap doesn't include the fields that you want,
> you are not (technically) allowed to add them.
> 
> This is important because the receivers are designed to expect what
> the definitions (in the MIB files) specify. No more, no less, and in
> the order defined.

Hello Fulko,

Can you provide a reference to a standard that backs your claim that it 
is not allowed to include more varbinds in a trap than specified in the 
corresponding MIB?

I think that RFC 1902 suggests the opposite, namely that any additional 
number of varbinds may be included in a trap. From 
https://tools.ietf.org/html/rfc1902:

8.1.  Mapping of the OBJECTS clause

    The OBJECTS clause, which need not be present, defines the ordered
    sequence of MIB object types which are contained within every
    instance of the notification.  An object type specified in this
    clause may not have an MAX-ACCESS clause of "not-accessible".

Bart.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
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.