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 }
You want to write your MIB conforming SMIv2 as specified in RFC 2578 https://www.rfc-editor.org/rfc/rfc2578 .