zenmib parses a mib file differently than smidump. If your a Python programmer, you will find the answer by examining how the map_file_to_dependents function starting on line 152 in http://dev.zenoss.com/trac/browser/branches/zenoss-2.4.x/Products/ZenModel/zenmib.py takes apart your MIBs. It is apparently failing to find a DEFINITION in your files and causing the error.
Basically, map_file_to_dependents does the following: 1. Find the first location of "OBJECT IDENTIFIER" in the file and split the file at the point. 2. Take the part of the file BEFORE the words "OBJECT IDENTIFIER" and perform a regular expression match for the "modName DEFINITIONS ::= BEGIN" expression. If there is anything in the file before the DEFINITIONS line, specifically any non alphanumeric characters, it can cause a failure. Make sure nothing appears in the file before the DEFINITIONS line. I've actually submitted a substantial rewrite of zenmib, but have yet to receive any comments. Please post a reply if this works for you. Otherwise, post your MIBs. Dave Da Phone Guy -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=38284#38284 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
