Here's some documentation I am working on for my place of work - hope this helps:
There are two Sun-provided configuration files of note that must be maintained and provided to the SNMP agent program as command line arguments when it runs. They are:
X.acl (subagent access control file, where X is your agent name)
X.reg (subagent registration file, where X is your agent name)
Note: For more information on either of these files, read the Solstice Enterprise Agents User Guide found on the Sun website, but don't expect too much.
The reg file specifies the subagent name and OID tree it is responsible for, among other things.
The acl file contains a list of communities that will be sent traps. This file will need to be periodically updated with the IP addresses of any entity that wants to receive traps from the X subagent. The file looks in part like this:
acl = {
{
communities = public, private
access = read-write
managers = dv, localhost
}
}
.
.
.
trap = {
{
trap-community = SNMP-trap
hosts = dv, localhost
{
enterprise="Xenterprise"
trap-num = 1-5
}
Where "dv" and "localhost" are configured in the /etc/hosts file as IP addresses to send traps to and "Xenterprise" is an enterprise that must be registered EXACTLY as is shown in the /etc/snmp/conf/enterprises.oid file. (Note: Some of the enterprises in this file have spaces within their name. This WILL NOT WORK. So if for some reason, an enterprise you were going to use is "MY Enterprise" you must changes this file because your MIB will not compile with an enterprise with spaces in the TRAP-TYPE declaration.
So, to add a new community, add an argument to the "managers" and "hosts" line in the .acl file and ensure that this reference has its IP address listed in the /etc/hosts file.
Furthermore, in /etc/snmp/conf/snmpdx.acl a comparable entry needs to be added as well. The snmpdx executable is the master agent that the subagent communicates with. It also has an entry in its .acl file as follows:
trap = {
{
trap-community = SNMP-trap
hosts = dv, localhost
{
enterprise="Xenterprise"
trap-num = 1-5
}
}