| Author | Forum: PowerSNMP for .NET Topic: How to get parent MIB file name? |
| Li Fei Jowey.Li@honeywell.com From: Beijing, Peoples Rep of China Posts: 1 Member Since: 06/29/09 |
posted June 29, 2009 4:39 AM Hi Forum admin. I tried Module.ImportedModuleNames method to get IMPORTS information. But if an IMPORTS variable comes from another MIB file, I didn't find method to get that MIB file's name. Please advice how to get those parent MIB file name by using PowerSNMP for .Net version 4.1 Thanks |
| Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted June 29, 2009 10:49 AM Hello, this request needs to be handled through our administrative procedures prior to response. Please contact sales@dart.com directly about this issue. Thank you. |
| snmpuser From: beijing Posts: 21 Member Since: 06/11/09 |
posted June 29, 2009 10:29 PM Hello, I was away yesterday and my colleague asked the question instead of me due to the customer's question. When failed to load a MIB file due to the lack of dependent mib files, the user want to the name of the un-loaded dependent mib files. Could you please let me know how to get the dependent information of a mib file? Thanks! |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 30, 2009 10:30 AM Hi, The keys in the ImportedModuleNames dictionary are the dependent objects, and the values are the mibs where the objects are defined. Example code: private string getImportList(System.Collections.Generic.Dictionary<string, Module> modules) { string list = ""; foreach (string moduleName in modules.Keys) { Module module = modules[moduleName]; list += moduleName + Environment.NewLine; foreach (string importedModuleName in module.ImportedModuleNames.Keys) list += " " + importedModuleName + " in " + module.ImportedModuleNames[importedModuleName] + Environment.NewLine; } return list; } Hope it helps, -ken |
| Reply | PowerSNMP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|