Total Pageviews

Disclaimer

This is a personal web page. The views expressed on this blog are mine and do not necessarily reflect the views of my current employer.

I am currently employed by Morgan Stanley.

September 26, 2009

Trident Sign: 3.1 Ready and Next

I just checked in the last bit for 3.1 release. So Trident Refresh will be released after one month of baking. This is a bug fix release, so changes are rare (but some are significant),
  1. Work item 4988 is resolved. This issue can lead to memory leak, so all 3.0 users need to migrate to 3.1 as soon as possible.
  2. snmpset tool is enhanced. Now it supports most argument the Net-SNMP alternative uses. 
  3. snmpwalk tool now supports "mode" switch.
  4. SharpSnmpLib.Optional.dll is added. An experimental AES privacy is added. I may port more such providers from SNMP#NET in the future.
  5. Message factory parser is enhanced. Bytes that cannot be parsed as SNMP messages will be thrown out in SharpMessageFactoryException.
  6. StringUtility.GetAlternativeTextualForm is finally added. It can be used to generate strings such as "iso.org.dod.internet.mgmt.mib-2.system" which is asked by many #SNMP users.
I have chosen a name for our 4.0 release. That is, SquareRoot. In that release, we will see more enhancements for the Browser and the Compiler, which aim to make your life much easier than present. If we are lucky enough to have a new compiler implemented in this release, then we may get rid of some long lived issues and provide much more powerful features.

I admit that this new compiler has been delayed several times. But still at this moment I don't have anything more to share. We won't upgrade the poor-designed one exising, and we lack of resources to finish the experimental one. Maybe I should have learned ANTLR earlier and spent more time on that approach.

Anyhow, we have delivered a lot still in Trident, so we are on the way again.

Stay tuned.

September 13, 2009

Trident Sign: How to Set Up SNMP4J Agent, Part 1

To enrich #SNMP v3 support, I am going to use snmp4j agent. But due to lack of documentation for me, a Java blind, I have to learn about it bit by bit.

Below is a summary of my steps,
  1. Download and install Java runtime from http://java.com. I install it to C:\Program Files (x86)\Java\jre6.
  2. Configure JAVA_HOME like this (http://wso2.org/project/wsas/java/1.1/docs/setting-java-home.html) and add C:\Program Files (x86)\Java\jre6\bin to PATH.
  3. Download snmp4j agent ZIP package from here (http://snmp4j.org/html/download.html). I use 1.3.1 version.
  4. Unzip this package and copy all JARs from "lib" to "dist\lib".
  5. Create a launch.bat in "dist\lib" and use the following content.
  6. Execute this batch file to launch the agent. To stop it, simply close the console window.
Batch file content is,

    java -cp SNMP4J-agent.jar;SNMP4J.jar;log4j-1.2.9.jar org.snmp4j.agent.test.TestAgent
    pause

I will spend more time on this agent and post future findings later.