NAME
snmpv2d.conf - the SNMP agent configuration
SYNOPSIS
TAG VALUE
DESCRIPTION
The configuration file snmpv2d.conf is one of several configuration files required by the SNMPv2 entities and the only file required by the SNMPv1 entities. The default location of snmpv2d.conf is /etc/opt/snm/agent for Solaris 2.x and /etc/snm/agent for Solaris 1.x, but can be specified by the environment variable SR_AGT_CONF_DIR.
The snmpv2d.conf file defines initial values for the system group, community names, trap community names, and whether authentication-failure traps should be generated.
Note: for bilingual and SNMPv2 agents, the snmpv2d.conf initializes the system variables and defines authenticationfailure traps. Communities are defined only when compiled as SNMPv1.
The form of each line is:
sysDescr
sysLocation
sysContact
snmpEnableAuthenTraps
community
trap
and VALUE is a valid value for the given key.
White space (tabs, spaces, line-feeds/carriage-returns) and blank lines are ignored.
System Variable Initialization
When the TAG is one of the system variables:
sysDescr
sysLocation
sysContact
snmpEnableAuthenTraps
that variable will be initialized to whatever value follows it.
According to RFC1213, the variables sysDescr, sysLocation, and sysContact can be any string of 0 to 255 NVT ASCII characters, and snmpEnableAuthenTraps can be either
1 to enable traps
or
2 to disable traps.
For example:
Community Entries
When the TAG is "community," the format of the VALUE clause is:
community-name IP-address privileges community-id
where
Trap Community Entries
When the TAG is "trap," the format of the VALUE clause is:
trap-community-name IP-address
where
FILES
SNMPv2 Configuration Files
When the agent is compiled with either SNMPv2 or both SNMPv1 and SNMPv2 defined, the additional configuration files acl.pty, agt.pty, context.pty, and view.pty are required.
Additional SNMPv2 Configuration Files
When the agent is compiled with either SNMPv2 or both SNMPv1 and SNMPv2 defined, the configuration files acl.pty, agt.pty, context.pty, and view.pty are required.
acl.pty
Access control privileges for the SNMPv2 parties.
agt.pty
Party information for the manager routines.
context.pty
Context information for the SNMPv2 parties.
view.pty
MIB view information for the SNMPv2 parties.acl.pty
For Solaris 2.x, the files are located under:
/etc/opt/snm/agent/acl.pty
/etc/opt/snm/agent/agent.pty
/etc/opt/snm/agent/context.pty
/etc/opt/snm/agent/snmpv2d.conf
/etc/opt/snm/agent/view.pty
For Solaris 1.x, the files are located under:
/etc/snm/agent/acl.pty
/etc/snm/agent/agent.pty
/etc/snm/agent/context.pty
/etc/snm/agent/snmpv2d.conf
/etc/snm/agent/view.pty
SEE ALSO
snmpv2d(1), v2install(1), acl.pty(5), agt.pty(5), context.pty(5), mgr.cnf(5), mgr.pty(5), view.pty(5), SNMP RFCs (RFC1155 RFC1157 RFC1212 RFC1213 RFC1215, RFCs 14411452)
LIMITATIONS
Not all MIB variables can be supported without source code alterations to the kernel or device drivers.