Configuring Notification Targets (SRC CLI)
Use the following configuration statements to configure notification targets:
To configure notification targets:
From configuration mode, access the configuration statement that configures the notification target.
[edit]user@host# edit snmp notify target target-nameSpecify the notification target name.
Specify the IPv4 or IPv6 address of the system to receive notifications.
[edit snmp notify target target-name]user@host# set address address(Optional) Specify the SNMP trap port number.
[edit snmp notify target target-name]user@host# set port portSpecify the community string used when sending traps.
[edit snmp notify target target-name]user@host# set community communitySpecify the notification types as traps or informs. Traps are unconfirmed notifications. Informs are confirmed notifications.
To specify the notification type as an SNMPv1 trap:
[edit snmp notify target target-name]user@host# set type trapv1To specify the notification type as an SNMPv2 trap:
[edit snmp notify target target-name]user@host# set type trapv2To specify the notification type as an SNMPv2 inform:
[edit snmp notify target target-name]user@host# set type inform(Optional) Verify your configuration.
[edit snmp notify target target-name]user@host# show