[Contents] [Prev] [Next] [Index] [Report an Error]

# Configuring Notification Targets (SRC CLI)

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:

1. 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.

2. Specify the IPv4 or IPv6 address of the system to receive notifications.
   `
   [edit snmp notify target target-name]
   user@host# set address address
   `
3. (Optional) Specify the SNMP trap port number.
   `
   [edit snmp notify target target-name]
   user@host# set port port
   `
4. Specify the community string used when sending traps.
   `
   [edit snmp notify target target-name]
   user@host# set community community
   `
5. 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
   `
6. (Optional) Verify your configuration.
   `
   [edit snmp notify target target-name]
   user@host# show
   `

#### Related Topics

- Configuring Notification Targets (C-Web Interface)
- Overview of SNMP Traps

[Contents] [Prev] [Next] [Index] [Report an Error]