Hello akiefer,

there are some things recommended:

1. search the path under /zenoss/ where /share/ and /libexec/ are
Example /usr/zenoss/common/share/ /usr/zenoss/common/libexec/

make symbolic link to this path in path ZENHOME$, because in older Version they 
where in ZENHOME$. Group and owner should be user:zenoss

2. add an enviroment variable with all full paths to mibs in file
.bashrc or .profile in $ZENHOME

Example:


Code:
export 
SMIPATH=$ZENHOME/share/mibs:$ZENHOME/share/mibs/iana:$ZENHOME/share/mibs/ietf:$ZENHOME/share/mibs/irtf:$ZENHOME/share/mibs/site:$ZENHOME/share/mibs/tubs




3. search your MIB-File for line "IMPORTS"
when there lines begin with "xxxxxxxx FROM yyyyy-MIB"
these lines are dependencies MIB-files

sometimes the name of the MIB-file depend from the MIB-Name shown in MIB itself

Example:


Code:
A3COM0004-GENERIC DEFINITIONS ::= BEGIN


        IMPORTS
                generic FROM A3Com-products-MIB
                OBJECT-TYPE FROM RFC-1212



The first Line is the Name of the MIB "A3COM0004-GENERIC" (zenmib-command is 
case-sensitiv!!!) but the MIB-file is named "3COM0004.MIB".

After "IMPORTS" there are two dependencies-MIB

first: "A3Com-products-MIB" wich is 3Com special an must be first in line of 
zenmib-command (see example below)

second: "RFC-1212" wich is in the $ZENHOME/share/mibs/ietf - path and included 
automatically (see below)

compare the dependencies-MIB-files to MIB-files in path 
$ZENHOME/share/mibs/iana, ..../mibs/ietf, ..../mibs/irtf, ..../mibs/tubs (not 
..../mibs/site, this directory is for your device-special MIBs)
MIBs in these paths are include automatically

4. copy MIB-File and the device-special-dependence MIB-files to 
$ZENHOME/share/mibs/site

specific dependence MIBs must be first in same line of zenmib-command
its a little bit like a chain ...
when dependence MIB-files Import special MIB-files they must be first in line 
of zenmib-command.

in the example below the mib-dependence-a1-MIB is in chapter "IMPORTS" line 
"FROM" of second MIB-file mib-dependence-1-MIB, wich is in "IMPORTS"-chapter of 
MIB-file mib-dependence-2-MIB, wich is in "IMPORTS"-chapter of MIB-file 
cisco-MIB 

Example with two dependencies with one "subdependence":

as user zenoss in zenconsole in path $ZENHOME type


Code:
zenmib -run ./share/mibs/site/mib-dependence-a1-MIB 
./share/mibs/site/mib-dependence-1-MIB ./share/mibs/site/mib-dependence-2-MIB 
./share/mibs/site/cisco-MIB (or whatever the name of the MIB-Files are)




Hope it will helpful




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=27149#27149

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to