Wrapper around the smidump utilities used to convert MIB definitions
into python code which is in turn loaded into the DMD tree.
|
|
makeMibFileObj(self,
fileName)
Scan the MIB file to determine what MIBs are defined in the file and
what their dependencies are. |
source code
|
|
|
MibFile
|
|
|
list of strings
|
getDependencyFileNames(self,
mibFileObj)
smidump needs to know the list of dependent files for a MIB file in
order to properly resolve external references. |
source code
|
|
|
|
savePythonCode(self,
pythonCode,
fileName)
Stores the smidump-generated Python code to a file. |
source code
|
|
|
list
|
|
|
|
evalPythonToMibs(self,
pythonCode,
name)
Evaluate the code and return an array of MIB dictionaries. |
source code
|
|
|
|
evalAddSavedPythonCode(self)
Read the file named in the command-line option, evaluate it, and add
it to our list of MIBs. |
source code
|
|
|
|
getDmdMibDict(self,
dmdMibDict,
mibOrganizer)
Populate a dictionary containing the MIB definitions that have been
loaded into the DMD Mibs directory |
source code
|
|
|
int
|
addMibEntries(self,
leafType,
pythonMib,
mibModule)
Add the different MIB leaves (ie nodes, notifications) into the DMD. |
source code
|
|
|
boolean
|
loadMibFile(self,
mibFileObj,
dmdMibDict)
Attempt to load the MIB definitions in fileName into DMD |
source code
|
|
|
|
|
|
|
loadPythonMibs(self,
pythonMibs)
Walk through the MIB dictionaries and add the MIBs to the DMD. |
source code
|
|
|
set
|
getAllMibDepFileNames(self)
Use command line parameters to create a list of files containing MIB
definitions that will be used as a reference list for the files being
loaded into the DMD |
source code
|
|
|
list
|
getMibsToImport(self)
Uses command-line parameters to create a list of files containing MIB
definitions that are to be loaded into the DMD |
source code
|
|
|
|
|
|
|
|
|
Inherited from ZenUtils.ZCmdBase.ZCmdBase:
__init__,
closeAll,
closedb,
findDevice,
getConnection,
getContext,
getDataRoot,
getDmdObj,
login,
logout,
opendb,
sigTerm,
syncdb,
zodbConnect
Inherited from ZenUtils.ZenDaemon.ZenDaemon:
becomeDaemon,
becomeWatchdog,
changeUser,
convertSocketOption,
logname,
niceDoggie,
openPrivilegedPort,
setupLogging,
sighandler_USR1,
watchdogCycleTime,
watchdogMaxRestartTime,
watchdogStartTimeout,
writePidFile
Inherited from ZenUtils.CmdBase.CmdBase:
buildParser,
checkLogpath,
generate_configs,
generate_xml_configs,
generate_xml_table,
getConfigFileDefaults,
getGlobalConfigFileDefaults,
getParamatersFromConfig,
loadConfigFile,
parseOptions,
pretty_print_config_comment,
validateConfigFile
|