Log Command Reference
Page 276 7705 SAR OS System Management Guide
SNMP Trap Groups
snmp-trap-group
Syntax [no] snmp-trap-group log-id
Context config>log
Description This command creates the context to configure a group of SNMP trap receivers and their operational
parameters for a given log-id.
A trap group specifies the types of SNMP traps and specifies the log ID that will receive the group of
SNMP traps. A trap group must be configured in order for SNMP traps to be sent.
To suppress the generation of all alarms and traps, see the
event-control command. To suppress
alarms and traps that are sent to this log-id, see the
filter (log destination) command. Once alarms and
traps are generated, they can be directed to one or more SNMP trap groups. Logger events that can be
forwarded as SNMP traps are always defined on the main event source.
The no form of the command deletes the SNMP trap group.
Default There are no default SNMP trap groups.
Parameters log-id — the log ID value of a log configured in the
to snmp context. Alarms and traps cannot be sent
to the trap receivers until a valid log-id exists.
Values 1 to 99
trap-target
Syntax trap-target name [address ip-address] [port port] [snmpv1 | snmpv2c | snmpv3] notify-
community {communityName | snmpv3SecurityName} [security-level {no-auth-no-
privacy | auth-no-privacy | privacy}]
no trap-target name
Context config>log>snmp-trap-group log-id
Description This command adds or modifies a trap receiver and configures the operational parameters for the trap
receiver.
Before an SNMP trap can be issued to a trap receiver, the
to console, snmp-trap-group, and at least
one trap-target must be configured.