SNMPv2c vs SNMPv3 custom MIB

621 Views Asked by At

I'm writing a custom MIB that is spec'd to be SNMPv3 compliant. Right now, I know that it is SNMPv2c compliant (through smilint and other tools). Is there anything that I need to do with the MIB to make it SNMPv3 compliant?

The plan is to use SNMPv3 w/USM, so I believe an SNMPv2c MIB with Net-SNMP configured for USM meets these requirements. I'm just a little concerned that my MIB isn't specifying any privacy requirements, such as authNoPriv. Is that really done just through configuration files (in Net-SNMP), and not through the MIB at all?

Information on writing MIB's specifically for SNMPv3 is pretty sparse, so I'm just looking for some confirmation that I'm doing things correctly.

Here's an "example" object in the MIB file that is pretty exemplary of the rest of the file.

example OBJECT-TYPE
    SYNTAX
        Unsigned32 (1..4294967295)
    MAX-ACCESS
        read-only
    STATUS
        current
    DESCRIPTION
        "Example information."
    ::= { exampleEntry 2 }
2

There are 2 best solutions below

2
On BEST ANSWER

You want to write your MIB conforming SMIv2 as specified in RFC 2578 https://www.rfc-editor.org/rfc/rfc2578 .

0
On

You do not write MIBs to be "compliant to SNMPv3", or to any other version of SNMP. This has no meaning. MIBs describe a data interface, whereas SNMP is a way of transporting/exposing that interface across a network (others exist).

The relevant standards, when writing MIBs, are SMIv1 and SMIv2.

It is a good idea to write your MIBs to be SMIv2 compliant, because that's what "modern" technology expects.

But this has nothing to do with SNMPv2c vs SNMPv3.