Configuring Notification Targets
Use the following configuration statements to configure notification targets:
- snmp notify target target-name {
- address address;
- port port;
- community community;
- type (trapv1|trapv2|inform);
- }
To configure notification targets:
- From configuration mode, access the configuration statement
that configures the notification target.
- [edit]
- user@host# edit snmp notify target target-name
Specify 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 port
- Specify the community string used when sending traps.
- [edit snmp notify target target-name]
- user@host# set community community
- Specify 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 trapv1
To specify the notification type as an SNMPv2 trap:
- [edit snmp notify target target-name]
- user@host# set type trapv2
To 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
