User guide
SNMP Additional configuration for SNMPv1 and
iMG/RG Software Reference Manual (System Configuration)
1-108
The configuration of context names is static and must be performed before the SNMP agent is launched for the
first time.
To configure a context name, add a vacmContextEntry line to the snmpd.cnf file accordingly the
following syntax:
vacmContextEntry <vacmContextName>
vacmContextName
is a human readable string representing the name of a context to be supported by this configuration.
Note: Note that the default context is always supported by an SNMPv3 agent.
1.6.9 Additional configuration for SNMPv1 and SNMPv2 agent entities
This section describes SNMP configuration that is required for SNMP entities that support SNMPv1 and/or
SNMPv2c in addition to SNMPv3.
1.6.9.1 Configuring communities
Configuration of at least one community string must be provided for an SNMP engine to send or receive
SNMPv1 or SNMPv2c messages. To configure an SNMPv1 or SNMPv2c community, add a snmpCommunity-
Entry line to the snmpd.cnf file accordingly the following syntax:
snmpCommunityEntry <snmpCommunityIndex> <snmpCommunityName> <snmpCom-
munitySecurityName> <snmpCommunityContextEngineID> <snmpCommunity-
ContextName> <snmpCommunityTransportTag> <snmpCommunityStorageType>
snmpCommunityIndex
is a human readable string which is an arbitrary index. The value of this field is unimportant, other than it must
unique from other values in this field in other snmpCommunityEntry entries.
snmpCommunityName
is the community string, which may be a human readable string or a hexadecimal representation containing
unprintable characters.
For example, if the community string was the word “public” with an unprintable ‘bell' character (ASCII code 7)
at the end, then the value of this field would be 70:75:62:6c:69:63:07 (the ASCII codes for
‘p,’‘u,’‘b,’‘l,’‘i,’‘c,’ and ‘bell').
snmpCommunitySecurityName
is a human readable string which identifies the security name for this community string. This string should
appear in at least one vacmSecurityToGroupEntry to assign the community string (principal) to an
access control group.
snmpCommunityContextEngineID
is an OctetString, usually “localSnmpID”.
snmpCommunityContextName
is the SNMPv3 context implied by the community string. A dash (-) in this field represents the default context.