To set up limited security for SNMP by creating a community string, follow these steps:
Right click on My Computer and select Manage.
In the Computer Management window, open Services in the Services and Applications section.
On the right hand side, right click on SNMP Service and select Properties.
Go to the Security index and add mfwk as a READ-ONLY community in the Accepted Community Names area.
Click on OK.
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"="mfwk" "AgentPort"="gf-port" "ProxyOIDRoot"=".126.96.36.199.188.8.131.52.9999" "ProxiedOIDRoot"=".184.108.40.206.220.127.116.11.9999" "Retries"="3" "TimeOut"="2000"
Substitute the IP address for the machine on which the Enterprise Server is running for gf-ip-address. Substitute the port for the Enterprise Server for gf-port.
Execute the following command:
regedit /s GlassFish_proxy.reg
You can edit this configuration later using the regedit command.
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
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 mfwk localhost 18.104.22.168.22.214.171.124.99126.96.36.199.1