More on SNMP

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 606
Joined: Mon May 12, 2008 10:55 am

More on SNMP

Post by SeeCwriter »

I have a few questions on my SNMP implementation using the Nano with IDE v2.7.3.
I've done several MIBs in the past, one for the MOD5234. So I am familiar with SNMP, but
no expert.

In the Runtime Library manual, pg 149, it shows a simple MIB that defines a READCOMMUNITY
and a WRITECOMMUNITY. I've never done that and have had no problems. How important is it
to have those objects defined?

The MIB file I created compiles without error with my MIB compiler. But when I run snmptranslate
to create a source file, I get a number of errors, though the source file is still created.
The errors are all in the non-custom MIB files. And those MIB files are all in the same
directory as my custom MIB.

For example:

Bad operator <TEXTUAL-CONVENTION>: At line 19 in .//SNMPv2-SMI.my

NOTE: Line 19 reads: snmpv2 OBJECT IDENTIFIER ::= { internet 6 }

Did not find 'DisplayString' in module SNMPv2-TC (.//SNMPv2-MIB.my)
Did not find 'TestAndIcr' in module SNMPv2-TC (.//SNMPv2-MIB.my)
Did not find 'TimeStamp' in module SNMPv2-TC (.//SNMPv2-MIB.my)

I've checked the module and those objects are in fact in the module.

Expected STATUS (SMI): At line 11 in .//SNMPv2-CONF.my
Expected "(" (EOF): At line 17 in .//SNMPv2-CONF.my
Bad object identifier: At line 17 in .//SNMPv2-CONF.my
Bad parse of OBJECT-GROUP: At line 17 in .//SNMPv2-CONF.my

Will any of these errors prevent SNMP from working for my project? Particularly, I'm
concerned about 'DisplayString' since I use that type extensively in my MIB.
Post Reply