Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Reference

Installing the SNMP Proxy for Windows

The SNMP Proxy for Windows can be downloaded from http://sourceforge.net/projects/snmppfw/.

    After downloading and unzipping the package, follow these steps:

  1. Copy the SNMPPfW.dll file under the package \bin directory to the Windows system32 directory, for example C:\Windows\System32.

  2. Register the proxy configuration in the Windows Registry using the following command:


    regedit /s Registry_Settings_Install.reg
  3. Change the registry entry number 9983842 to the next number in the list. Use the following command:


    regedit

    Find the following entry:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents]

    Replace 9983842 with the next number in the list using the command Edit->Rename.

  4. Create a proxy configuration file, for example GlassFish_proxy.reg, and enter the following lines:


    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\SNMPPfW\Config\1]
    "AgentAddress"="gf-ip-address"
    "AgentCommunity"="public"
    "AgentPort"="10161"
    "ProxyOIDRoot"=".1.3.6.1.4.1.42.2.9999"
    "ProxiedOIDRoot"=".1.3.6.1.4.1.42.2.9999"
    "Retries"="3"
    "TimeOut"="2000"

    Substitute the IP address for the machine on which the Enterprise Server is running for gf-ip-address. The default SNMP port is 10161; for information on how to change this port, see the Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide.

  5. Execute the following command:


    regedit /s GlassFish_proxy.reg

    This configuration can be edited later using the regedit command.

  6. Restart the Windows SNMP service in one of the following ways:

    • From the Computer Management window, right click on SNMP Service and select Restart.

    • Execute the following commands:


      net stop snmp
      net start snmp
  7. To test the Enterprise Server subagent through the Windows SNMP service, use an snmpwalk command such as this one, which retrieves all Enterprise Server tables:


    snmpwalk.exe -v1 -c public localhost 1.3.6.1.4.1.42.2.9999.1.1.1.1

    You can use your preferred snmpwalk.exe command to retrieve SNMP monitoring information. Several SNMP tools can be found on the internet. For more information about using snmpwalk with the Enterprise Server, see the Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide.