Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: MIB parsing question
tgrharris
aharris@harris.com

From: Palm Bay, FL USA
Posts: 25
Member Since: 06/22/09
posted June 22, 2009 8:02 PM

In the help you state:

A "Generate MIB Classes" option in the agent or manager component's Properties window. 

This option does not exist for either manager or agent components. I know you can parse a MMIB file at runtime but a typesafe collection of MibNodes in a generated class would be nice. Was this feature removed in version 4.0? Thanks in advance.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 23, 2009 4:02 PM

Hi,
First, thanks for pointing that out in the help.
It was written while the product was still in development, and an oversight that it was left that way in the docs.

There is no class generation like there was for version 1. The fact that classes were added to the AppDomain (and could not be removed) proved problematic in some scenarios. For example, if two device drivers used a plug-in created with the product to create dynamic classes, there were conflicts over which classes to use.

For the new version, we could have worked around this, but the developer would have had to handle static and dynamic objects differently. Therefore, we decided against this approach.

However, the next release of the product will allow you to add MibNodes without loading mibs at runtime.

It will also provide Intellisense through enumerations, just as the product currently allows for the built-in mibs.

The MibNodes collection will have a GenerateCode method that will produce a code file that can be added to your C# or VB.NET project. The code file will provide an Import method which will import MibNode and MibTrap objects generated from parsed mib files into an existing MibNodes collection (for example, Manager.Mib). Also, it will create enumerations that will provide Intellisense for the GetByNodeName and GetByTrapName functions during development.

See the Mib Treeview sample for a demonstration of code generation, and the Manager and Agent samples for an implementation of the generated code.

The new version will be available sometime this week.

-ken
tgrharris
aharris@harris.com

From: Palm Bay, FL USA
Posts: 25
Member Since: 06/22/09
posted June 23, 2009 4:15 PM

Thanks for the quick reply. Sounds like a better solution. I'll look for the new release. Is there a set of release notes available for the next release? Thanks in advance.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 24, 2009 4:45 PM

Hi,
When it is available, the release history page will be updated:
http://www.dart.com/psnet_relhist.aspx

-ken
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX