S o n o m a U s e r M a n u a l
50
C H A P T E R S I X
51
S o n o m a U s e r M a n u a l
S I M P L E N E T W O R K M A N A G E M E N T P R O T O C O L ( S N M P )
Change Default Community Strings (Passwords)
You can, and should, change the default community names by editing /etc/snmpd.conf and modifying
these two lines:
rwcommunity endrun_1
rocommunity Sonoma
Configuring SNMPv1
Trap Generation
To have your Sonoma send SNMPv1 traps (RFC-1215) you must congure the community and desti-
nation for SNMPv1 traps by uncommenting and editing this line in /etc/snmpd.conf:
trapsink xxx.xxx.xxx.xxx trapcommunity trapport
where trapcommunity should be replaced by your community, and xxx.xxx.xxx.xxx is the IP
address or hostname of the destination host for receiving the traps generated by the Sonoma. By de-
fault, the trap will be sent to port 162. You may optionally add another parameter, trapport to the
end of the above line to override the default port setting. Otherwise leave it blank.
Note: Though the agent will recognize multiple trapsink lines within /etc/snmpd.conf and send the
generic SNMP coldStart or authenticationFailure traps to multiple destinations, the Sonoma enter-
prise MIB trap generation mechanism will only send a trap to the last declared trapsink in the le.
Configuring SNMPv2c
Notifications and Informs
To have your Sonoma send SNMPv2c notications (SMIv2, RFC-2578) or informs, you must con-
gure the communities and destinations by uncommenting and editing one or both of these lines in
/etc/snmpd.conf:
trap2sink xxx.xxx.xxx.xxx trap2community trap2port
informsink xxx.xxx.xxx.xxx informcommunity informport
where trap2community and informcommunity should be replaced by your communities, and
xxx.xxx.xxx.xxx is the IP address or hostname of the destination host for receiving the notica-
tions or informs generated by the Sonoma. By default, the v2c trap or inform will be sent to port 162.
You may optionally add another parameter, trap2port or informport to the ends of the above
lines to override the default port setting. Otherwise leave it blank.
Note: Though the snmpd agent will recognize multiple trap2sink or informsink lines within
/etc/snmpd.conf and send the generic SNMP coldStart or authenticationFailure notications and
informs to multiple destinations, the Sonoma enterprise MIB notication/inform generation mecha-
nism will only send a notication to the last declared trap2sink, and an inform to the last declared
informsink in the le.